naiveproxy/ios/chrome/browser/ui/toolbar/clean/BUILD.gn
2018-02-02 05:49:39 -05:00

138 lines
4.1 KiB
Plaintext

# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("toolbar") {
sources = [
"toolbar_coordinator.h",
"toolbar_coordinator.mm",
"toolbar_coordinator_delegate.h",
"toolbar_mediator.h",
"toolbar_mediator.mm",
]
configs += [ "//build/config/compiler:enable_arc" ]
deps = [
":toolbar_components_ui",
":toolbar_ui",
"//base",
"//components/bookmarks/browser",
"//components/google/core/browser",
"//components/search_engines",
"//ios/chrome/browser",
"//ios/chrome/browser/autocomplete",
"//ios/chrome/browser/bookmarks",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/reading_list",
"//ios/chrome/browser/search_engines",
"//ios/chrome/browser/ui",
"//ios/chrome/browser/ui/bookmarks",
"//ios/chrome/browser/ui/broadcaster",
"//ios/chrome/browser/ui/browser_list",
"//ios/chrome/browser/ui/commands",
"//ios/chrome/browser/ui/commands",
"//ios/chrome/browser/ui/coordinators",
"//ios/chrome/browser/ui/history_popup/requirements",
"//ios/chrome/browser/ui/omnibox",
"//ios/chrome/browser/ui/omnibox:omnibox_internal",
"//ios/chrome/browser/ui/qr_scanner/requirements",
"//ios/chrome/browser/ui/toolbar/keyboard_assist",
"//ios/chrome/browser/ui/toolbar/public",
"//ios/chrome/browser/ui/tools_menu:configuration",
"//ios/chrome/browser/ui/tools_menu/public",
"//ios/chrome/browser/ui/voice",
"//ios/chrome/browser/web_state_list",
"//ios/chrome/common",
"//ios/public/provider/chrome/browser",
"//ios/public/provider/chrome/browser/voice",
"//ios/third_party/material_components_ios",
"//ios/web",
]
}
source_set("toolbar_ui") {
sources = [
"toolbar_button_updater.h",
"toolbar_button_updater.mm",
"toolbar_consumer.h",
"toolbar_view_controller.h",
"toolbar_view_controller.mm",
]
deps = [
":toolbar_components_ui",
"//base",
"//ios/chrome/browser/ui",
"//ios/chrome/browser/ui/activity_services/requirements",
"//ios/chrome/browser/ui/bubble",
"//ios/chrome/browser/ui/commands",
"//ios/chrome/browser/ui/history_popup/requirements",
"//ios/chrome/browser/ui/toolbar/public",
"//ios/chrome/browser/ui/voice",
"//ios/third_party/material_components_ios",
]
libs = [ "UIKit.framework" ]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("toolbar_components_ui") {
sources = [
"toolbar_button.h",
"toolbar_button.mm",
"toolbar_button_factory.h",
"toolbar_button_factory.mm",
"toolbar_button_tints.h",
"toolbar_button_tints.mm",
"toolbar_component_options.h",
"toolbar_configuration.h",
"toolbar_configuration.mm",
"toolbar_constants.h",
"toolbar_constants.mm",
"toolbar_style.h",
"toolbar_tools_menu_button.h",
"toolbar_tools_menu_button.mm",
]
deps = [
"//base",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/app/theme",
"//ios/chrome/browser/ui",
"//ios/chrome/browser/ui/toolbar:resource_macros",
"//ios/chrome/browser/ui/toolbar/public",
"//ios/public/provider/chrome/browser",
"//ios/public/provider/chrome/browser/images",
"//ui/base",
]
libs = [ "UIKit.framework" ]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"toolbar_mediator_unittest.mm",
]
deps = [
":toolbar",
":toolbar_ui",
"//base",
"//base/test:test_support",
"//components/bookmarks/browser",
"//components/bookmarks/test",
"//ios/chrome/browser/bookmarks",
"//ios/chrome/browser/browser_state:test_support",
"//ios/chrome/browser/ui/toolbar/test",
"//ios/chrome/browser/web_state_list",
"//ios/chrome/browser/web_state_list:test_support",
"//ios/public/provider/chrome/browser/voice",
"//ios/web",
"//ios/web/public/test",
"//ios/web/public/test/fakes",
"//testing/gtest",
"//third_party/ocmock",
]
configs += [ "//build/config/compiler:enable_arc" ]
}