blob: 3543834797bb2f3aea938c59a54329880cb939c2 [file] [log] [blame]
[email protected]77ce8022014-06-16 19:29:561# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
brettw2b2364b2015-05-01 22:36:235import("//build/config/chrome_build.gni")
[email protected]dffd8a912014-06-30 23:24:316import("//build/config/crypto.gni")
7import("//build/config/features.gni")
8import("//build/config/ui.gni")
brettwf760b442016-06-29 18:57:289import("//build/split_static_library.gni")
brettw06c2ba32015-11-26 09:21:2510import("//chrome/common/features.gni")
xhwang5e630462015-10-30 03:18:4811import("//media/media_options.gni")
pkotwicz127726f2015-05-29 15:20:1212import("//third_party/protobuf/proto_library.gni")
scottmga266f952014-12-03 20:47:1013
James Robinson2ed4d692014-09-17 05:20:5814# //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
15# produces a conflict for the "grit" template so we have to only include one.
16if (is_android) {
17 import("//build/config/android/rules.gni")
18} else {
19 import("//tools/grit/grit_rule.gni")
20}
cmasone0a9e4ca2014-10-16 16:40:4921if (is_desktop_linux) {
22 import("//build/config/linux/pkg_config.gni")
23}
[email protected]77ce8022014-06-16 19:29:5624
amistryf269d3b2015-06-09 19:18:3925declare_args() {
mgiuca3cd6a822015-08-07 00:46:1326 # 'Ok Google' hotwording is disabled by default. Set to true to enable. (This
27 # will download a closed-source NaCl module at startup.) Chrome-branded
28 # ChromeOS builds have this enabled by default.
29 enable_hotwording = is_chrome_branded && is_chromeos
amistryf269d3b2015-06-09 19:18:3930}
31
[email protected]77ce8022014-06-16 19:29:5632additional_modules_list_file =
33 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
34
scottmga266f952014-12-03 20:47:1035gypi_values = exec_script("//build/gypi_to_gn.py",
36 [ rebase_path("../chrome_browser.gypi") ],
37 "scope",
38 [ "../chrome_browser.gypi" ])
[email protected]dffd8a912014-06-30 23:24:3139
mmenkede134672015-08-18 01:33:3940if (is_win) {
41 # This is in a separate config so the flags can be applied to dependents.
42 # ldflags in GN aren't automatically inherited.
43 config("browser_win_linker_flags") {
44 libs = [
45 "credui.lib",
jam66e4b2b2016-04-01 15:09:0946 "cryptui.lib",
47 "dwmapi.lib",
mmenkede134672015-08-18 01:33:3948 "netapi32.lib",
49 "ndfapi.lib", # Used by browser/net/net_error_diagnostics_dialog_win.h
manzagop74808fc2016-05-13 20:44:3950 "pdh.lib", # Used by browser/private_working_set_snapshot.h
mmenkede134672015-08-18 01:33:3951 ]
manzagop74808fc2016-05-13 20:44:3952 ldflags = [
53 "/DELAYLOAD:ndfapi.dll",
54 "/DELAYLOAD:pdh.dll", # The task manager is rarely used.
55 ]
mmenkede134672015-08-18 01:33:3956 }
57}
58
cmasone0a9e4ca2014-10-16 16:40:4959if (is_desktop_linux) {
brettwa68ea2b2015-02-01 02:54:0760 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
61 # will set this up.
cmasone0a9e4ca2014-10-16 16:40:4962 pkg_config("gnome_keyring") {
63 packages = [ "gnome-keyring-1" ]
brettwa68ea2b2015-02-01 02:54:0764 defines = [
65 "USE_GNOME_KEYRING",
66 "DLOPEN_GNOME_KEYRING",
67 ]
68 ignore_libs = true
69 }
70
71 # If you want to link gnome-keyring directly (use only for unit tests)
72 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
73 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
74 # are just itself and common gnome ones we link already, so we can get away
75 # with additionally just coding the library name here.
76 config("gnome_keyring_direct") {
77 libs = [ "gnome-keyring" ]
cmasone0a9e4ca2014-10-16 16:40:4978 }
79}
80
brettw022f8f32016-06-14 01:22:3981# Use a static library here because many test binaries depend on this but don't
brettwf760b442016-06-29 18:57:2882# require many files from it. This makes linking more efficient.
83split_static_library("browser") {
84 # Split into multiple static libraries on Windows official builds, where we
85 # run into a 2GB max size limit.
86 if (is_win && is_official_build) {
87 split_count = 5
88 } else {
89 split_count = 1
90 }
91
apavlove749bca2014-09-30 11:07:4192 configs += [
93 "//build/config/compiler:wexit_time_destructors",
brettwbc8b2a22015-07-28 18:24:4294 "//build/config:precompiled_headers",
apavlove749bca2014-09-30 11:07:4195 "//third_party/WebKit/public:debug_devtools",
96 ]
[email protected]dffd8a912014-06-30 23:24:3197 defines = []
98 sources = []
99 libs = []
100 ldflags = []
101
tfarina11b504b2016-03-02 19:49:51102 allow_circular_includes_from = [ "//chrome/browser/ui" ]
103
[email protected]dffd8a912014-06-30 23:24:31104 # iOS/non-iOS shared deps. New dependencies should generally be added in the
105 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:46106 public_deps = [
107 "//components/autofill/core/browser",
108 "//content/public/browser",
109 "//sql",
110 "//sync",
111 ]
[email protected]dffd8a912014-06-30 23:24:31112 deps = [
[email protected]dffd8a912014-06-30 23:24:31113 "//chrome:extra_resources",
114 "//chrome:resources",
115 "//chrome:strings",
[email protected]855b7de2014-07-08 21:02:45116 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:17117 "//chrome/app/theme:theme_resources",
harkness883658b2016-07-18 11:37:53118 "//chrome/browser/budget_service:budget_proto",
sdefresnea213ceb2015-10-05 09:23:39119 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
[email protected]797b25042014-07-01 23:54:17120 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:30121 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:31122 "//chrome/common",
[email protected]604828c2014-07-02 20:39:12123 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:01124 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:03125 "//components/bookmarks/managed",
blundell7282b512015-11-09 07:21:11126 "//components/browser_sync/browser",
blundell373c28c2015-11-05 14:07:50127 "//components/browser_sync/common",
[email protected]b9f4c682014-07-10 22:00:37128 "//components/captive_portal",
estark334673f42015-09-08 14:51:39129 "//components/certificate_reporting",
eranm3c2d6432016-06-01 10:17:27130 "//components/certificate_transparency",
[email protected]fca567b2014-07-02 17:37:34131 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:01132 "//components/component_updater",
vabrfc325fa2015-04-10 16:24:45133 "//components/content_settings/content/common",
vasiliiac461392014-09-18 11:35:17134 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:54135 "//components/content_settings/core/common",
abhishek.a21bbf8e4a2015-10-15 21:05:56136 "//components/cookie_config",
[email protected]478ed232014-08-19 02:10:55137 "//components/crx_file",
megjablon3476e042014-10-14 19:21:59138 "//components/data_reduction_proxy/core/browser",
sclittleae932be2015-10-08 20:53:50139 "//components/data_usage/core",
amohammadkhanf76ae112015-09-14 17:34:43140 "//components/data_use_measurement/core",
reillyg4a849272015-02-20 21:38:43141 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:25142 "//components/domain_reliability",
sdefresnecbacfd72015-03-20 12:11:32143 "//components/favicon/core",
sdefresne001b10de2015-03-20 18:41:46144 "//components/favicon_base",
droger888be0b2015-10-01 14:28:52145 "//components/flags_ui",
[email protected]abd4b682014-07-16 20:26:30146 "//components/gcm_driver",
jianli2104ce612015-05-06 00:24:34147 "//components/gcm_driver/instance_id",
Brett Wilson1c693992014-08-25 19:10:01148 "//components/google/core/browser",
fsamuelaf5bf6d12015-05-28 16:29:54149 "//components/guest_view/browser",
erikchen332265b2014-11-14 19:59:52150 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25151 "//components/history/core/browser",
152 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01153 "//components/infobars/core",
knn062cdbb2015-06-26 18:18:42154 "//components/invalidation/impl",
gunsch1afc65172014-09-16 00:03:32155 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34156 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06157 "//components/metrics:profiler",
blundell218124c22015-10-15 10:36:35158 "//components/metrics:profiler_content",
blundell8e66adc2015-10-12 11:46:12159 "//components/metrics:ui",
agrieved7a71c882015-11-20 19:53:28160 "//components/metrics/proto:proto",
blundell695d61f2015-10-21 11:25:53161 "//components/metrics_services_manager",
rsleevic327b48f82015-04-30 02:03:25162 "//components/mime_util",
[email protected]fca567b2014-07-02 17:37:34163 "//components/navigation_metrics",
bnc210d6f32016-05-24 07:40:47164 "//components/network_session_configurator",
Brett Wilson1c693992014-08-25 19:10:01165 "//components/network_time",
agrieved7a71c882015-11-20 19:53:28166 "//components/ntp_snippets",
sfiera0dc4da512016-04-29 09:23:05167 "//components/ntp_tiles",
fgorskife7b92f2015-06-15 19:19:40168 "//components/offline_pages",
petewil0b4d3662016-05-02 18:44:43169 "//components/offline_pages/background:background_offliner",
blundell2102f7c2015-07-09 10:00:53170 "//components/omnibox/browser",
[email protected]fca567b2014-07-02 17:37:34171 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00172 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01173 "//components/password_manager/core/browser",
174 "//components/password_manager/core/common",
dgozmane5a3e252016-03-22 21:45:08175 "//components/policy",
[email protected]fca567b2014-07-02 17:37:34176 "//components/policy:policy_component",
dgozmane5a3e252016-03-22 21:45:08177 "//components/policy/proto",
stevenjbb237e2ae2015-07-02 22:02:11178 "//components/proxy_config",
[email protected]fca567b2014-07-02 17:37:34179 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37180 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01181 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40182 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01183 "//components/search_engines",
184 "//components/search_provider_logos",
felt20e0f2002015-07-31 15:27:36185 "//components/security_interstitials/core",
estarkd9e54fb2016-01-11 19:37:12186 "//components/security_state",
[email protected]abd4b682014-07-16 20:26:30187 "//components/signin/core/browser",
felt2493b4452015-09-17 20:33:59188 "//components/ssl_errors",
sammc335844522016-06-09 10:15:59189 "//components/startup_metric_utils/browser:host",
fdoray443bd112015-11-16 20:44:23190 "//components/startup_metric_utils/browser:lib",
fdoray343068c42016-02-03 15:45:58191
192 # TODO(fdoray): Remove this once the PreRead field trial has expired.
193 # crbug.com/577698
194 "//components/startup_metric_utils/common",
[email protected]797b25042014-07-01 23:54:17195 "//components/strings",
engedy9ae04242016-06-08 13:31:18196 "//components/subresource_filter/core/browser",
mathp60143a32014-10-08 14:52:45197 "//components/suggestions",
aberentc987fed2016-03-18 18:17:47198 "//components/supervised_user_error_page",
blundellc759b682015-10-08 15:50:59199 "//components/sync_bookmarks",
Brett Wilson1c693992014-08-25 19:10:01200 "//components/sync_driver",
skym6b9887e2015-10-09 22:10:47201 "//components/sync_sessions",
zhenwecedcf22015-08-18 23:37:46202 "//components/tracing:startup_tracing",
[email protected]b9f4c682014-07-10 22:00:37203 "//components/translate/core/browser",
204 "//components/translate/core/common",
sdefresnec083d1f2015-04-17 21:12:18205 "//components/undo",
sorin39eab2f2015-01-06 01:09:08206 "//components/update_client",
rsleevi24f64dc22015-08-07 21:39:21207 "//components/url_formatter",
[email protected]fca567b2014-07-02 17:37:34208 "//components/user_prefs",
jitendra.ks94c0b962015-08-10 08:24:09209 "//components/user_prefs/tracked:user_prefs_tracked",
isherman3be67db2014-10-24 05:57:44210 "//components/variations",
211 "//components/variations/net",
blundellb50ad702015-08-27 17:08:29212 "//components/variations/service",
agrieved7a71c882015-11-20 19:53:28213 "//components/web_resource",
[email protected]bf4545f2014-07-11 19:49:46214 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56215 "//components/webdata_services",
juncaia64f769c22016-06-04 00:55:32216 "//components/zoom",
[email protected]dffd8a912014-06-30 23:24:31217 "//content/public/browser",
218 "//content/public/common",
hbos18f58912016-03-08 14:26:35219 "//content/public/common:feature_h264_with_openh264_ffmpeg",
220 "//content/public/common:features",
[email protected]604828c2014-07-02 20:39:12221 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31222 "//crypto",
davidben45eb19952016-05-05 16:30:44223 "//crypto:platform",
[email protected]604828c2014-07-02 20:39:12224 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56225 "//gpu/config",
[email protected]dffd8a912014-06-30 23:24:31226 "//skia",
227 "//sql",
228 "//sync",
[email protected]797b25042014-07-01 23:54:17229 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31230 "//third_party/icu",
ajwongf7b1cb692014-08-23 21:36:22231 "//third_party/libjingle",
agrieved7a71c882015-11-20 19:53:28232 "//third_party/libxml",
[email protected]dffd8a912014-06-30 23:24:31233 "//third_party/widevine/cdm:version_h",
234 "//third_party/zlib",
hajimehoshi1e1cc1a2016-01-14 19:09:00235 "//third_party/zlib:compression_utils",
[email protected]dffd8a912014-06-30 23:24:31236 "//third_party/zlib:minizip",
237 "//third_party/zlib:zip",
238 "//ui/base",
sdefresnec6574a552016-02-08 16:58:21239 "//ui/base:ui_data_pack",
cjhopman09981a92014-10-27 17:11:18240 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31241 "//ui/gfx",
242 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36243 "//ui/message_center",
agrieved7a71c882015-11-20 19:53:28244 "//ui/resources",
[email protected]a1d7d4f2014-07-16 21:33:36245 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31246 "//ui/strings",
[email protected]dffd8a912014-06-30 23:24:31247 ]
bencccedf12015-11-10 07:56:16248 data_deps = []
[email protected]dffd8a912014-06-30 23:24:31249
scottmga266f952014-12-03 20:47:10250 sources +=
251 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00252
[email protected]dffd8a912014-06-30 23:24:31253 if (!is_ios) {
scottmga266f952014-12-03 20:47:10254 sources +=
255 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59256 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10257 ".",
258 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59259 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10260 ".",
261 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18262 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
263 ".",
264 "//chrome")
265 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
266 ".",
267 "//chrome")
sclittlea133de02015-11-10 23:54:21268 sources += rebase_path(gypi_values.chrome_browser_data_usage_sources,
269 ".",
270 "//chrome")
benwellsedf5e082015-04-23 02:45:14271 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
272 ".",
273 "//chrome")
scottmga266f952014-12-03 20:47:10274 sources +=
275 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
276 sources +=
277 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
278 sources +=
279 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
280 sources +=
281 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
282 sources +=
283 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59284 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10285 ".",
286 "//chrome")
mlamouri4e372022015-03-29 14:51:06287 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
288 ".",
289 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59290 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10291 ".",
292 "//chrome")
293 sources +=
294 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59295 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10296 ".",
297 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59298 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10299 ".",
300 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59301 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10302 ".",
303 "//chrome")
304 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18305 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
306 sources +=
scottmga266f952014-12-03 20:47:10307 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
308 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18309 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
310 sources +=
scottmga266f952014-12-03 20:47:10311 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
sievers2f1e8112015-12-04 18:43:56312 if (android_java_ui) {
313 sources +=
314 rebase_path(gypi_values.chrome_browser_sync_android_java_ui_sources,
315 ".",
316 "//chrome")
317 sources +=
318 rebase_path(gypi_values.chrome_browser_ssl_android_java_ui_sources,
319 ".",
320 "//chrome")
321 sources += rebase_path(
322 gypi_values.chrome_browser_history_android_java_ui_sources,
323 ".",
324 "//chrome")
325 sources += rebase_path(
326 gypi_values.chrome_browser_permissions_android_java_ui_sources,
327 ".",
328 "//chrome")
329 sources += rebase_path(
330 gypi_values.chrome_browser_search_engines_android_java_ui_sources,
331 ".",
332 "//chrome")
333 if (enable_supervised_users) {
334 sources += rebase_path(
335 gypi_values.chrome_browser_supervised_user_android_java_ui_sources,
336 ".",
337 "//chrome")
338 }
339 }
scottmga266f952014-12-03 20:47:10340
[email protected]dffd8a912014-06-30 23:24:31341 deps += [
342 "//cc",
brettwca934582015-02-24 21:50:27343 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30344 "//chrome/browser/devtools",
sdefresnea213ceb2015-10-05 09:23:39345 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
brettwca934582015-02-24 21:50:27346 "//chrome/browser/resources:component_extension_resources",
tibellbe180332016-07-21 06:22:07347 "//chrome/common:search_provider_mojom",
tfarina04d426612015-08-18 16:42:33348 "//chrome/common/net",
brettwe26e6d02015-12-29 06:51:47349 "//chrome/installer/util:with_no_strings",
jitendra.ks4f2e9112015-08-14 11:40:26350 "//components/about_handler",
oshimaf65398422014-11-18 23:30:42351 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37352 "//components/autofill/content/browser",
ioanapb9419262016-07-20 08:24:47353 "//components/browsing_data/content",
354 "//components/browsing_data/core",
donndbda9b6f432015-12-10 20:39:05355 "//components/contextual_search:browser",
jeremyim364ac1182015-03-03 18:49:43356 "//components/data_reduction_proxy/content/browser",
amohammadkhan092adb22015-09-11 21:08:49357 "//components/data_use_measurement/content",
dgozmanec2b982a2015-04-28 10:36:39358 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46359 "//components/devtools_http_handler",
brettw15764b12015-11-30 22:11:05360 "//components/dom_distiller/content/browser",
tfarina041134472015-09-02 15:29:38361 "//components/error_page/common",
sdefresne001b10de2015-03-20 18:41:46362 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04363 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34364 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30365 "//components/navigation_interception",
drogerc690e8802015-09-21 14:29:16366 "//components/net_log",
tfarina041134472015-09-02 15:29:38367 "//components/network_hints/common",
[email protected]55699f392014-08-20 22:16:30368 "//components/password_manager/content/browser",
vabr5410d0b2015-08-07 11:02:04369 "//components/password_manager/sync/browser",
droger78da6542015-11-02 11:25:59370 "//components/profile_metrics",
abhishek.a2171c612852015-08-31 10:48:19371 "//components/proxy_config",
droger2a6ab542015-10-09 16:10:28372 "//components/resources",
vakh9d5888022015-10-29 21:04:07373 "//components/safe_browsing_db",
bauerbf0e64aa2015-06-25 15:54:07374 "//components/safe_json",
brettwa22cb3b2015-04-30 20:23:12375 "//components/sessions",
abhishek.a212849cee2015-10-20 11:27:29376 "//components/ssl_config",
[email protected]abd4b682014-07-16 20:26:30377 "//components/storage_monitor",
engedy9ae04242016-06-08 13:31:18378 "//components/subresource_filter/content/browser",
sdefresne875d0782015-09-16 12:01:28379 "//components/syncable_prefs",
[email protected]b9f4c682014-07-10 22:00:37380 "//components/translate/content/browser",
sdefresne44eb1f22015-08-06 08:51:55381 "//components/upload_list",
[email protected]fca567b2014-07-02 17:37:34382 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31383 "//components/visitedlink/browser",
384 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18385 "//components/web_cache/browser",
[email protected]a9ca8d52014-08-22 10:21:08386 "//content/app/resources",
reillygcf1af632015-11-18 16:42:58387 "//device/core",
reillyg64c8f4f2016-02-10 23:29:20388 "//device/usb/mojo",
389 "//device/usb/public/interfaces",
[email protected]55699f392014-08-20 22:16:30390 "//media",
yhiranobbea6272015-09-17 07:09:03391 "//media/midi",
cjhopman09981a92014-10-27 17:11:18392 "//mojo/common",
rockotc637caf9b2016-02-10 09:57:08393 "//mojo/edk/system",
rockot85dce0862015-11-13 01:33:59394 "//mojo/public/cpp/bindings",
395 "//mojo/public/js",
Brett Wilson83fd4242014-09-02 19:45:33396 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31397 "//net:net_with_v8",
benf709a3092016-04-12 22:38:22398 "//services/shell/public/cpp",
pilgrim4af8c212014-09-05 17:30:15399 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24400 "//storage/common",
erga3c614c92015-04-03 17:47:51401 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46402 "//third_party/WebKit/public:resources",
pmonette502a83e2016-01-08 00:21:16403 "//third_party/kasko",
[email protected]dffd8a912014-06-30 23:24:31404 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34405 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31406 "//third_party/libyuv",
[email protected]dffd8a912014-06-30 23:24:31407 "//third_party/re2",
408 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33409 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12410 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31411 "//ui/gl",
brettwca934582015-02-24 21:50:27412 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31413 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12414 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34415 "//v8",
[email protected]dffd8a912014-06-30 23:24:31416 ]
paulmeyer27b328b2015-06-17 21:26:12417
418 if (toolkit_views) {
419 deps += [ "//ui/views" ]
420 }
[email protected]dffd8a912014-06-30 23:24:31421 } else { # iOS
scottmga266f952014-12-03 20:47:10422 sources +=
423 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
424 sources +=
425 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
426 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31427 libs += [
428 "CoreTelephony.framework",
429 "CoreText.framework",
430 "MobileCoreServices.framework",
431 "QuartzCore.framework",
432 ]
scottmga266f952014-12-03 20:47:10433 ldflags += [
434 "-weak_framework",
435 "CoreImage",
436 ]
[email protected]dffd8a912014-06-30 23:24:31437 }
438
439 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10440 sources +=
441 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31442 }
mmenkede134672015-08-18 01:33:39443 if (!is_win && !is_mac && !is_ios) {
444 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ]
445 }
dgozmane5a3e252016-03-22 21:45:08446 if (!is_android && !is_ios && !is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31447 sources += [
448 "net/disk_cache_dir_policy_handler.cc",
449 "net/disk_cache_dir_policy_handler.h",
450 ]
451 }
[email protected]dffd8a912014-06-30 23:24:31452 if (is_mac) {
scottmga266f952014-12-03 20:47:10453 sources +=
454 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31455 deps += [
brettw5ff98192015-10-22 06:36:15456 "//chrome/app_shim",
457 "//chrome/browser/apps/app_shim",
[email protected]dffd8a912014-06-30 23:24:31458 ]
459 }
[email protected]dffd8a912014-06-30 23:24:31460 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46461 public_deps += [ "//chrome/browser/extensions" ]
brettw98a87012016-07-26 22:15:45462 allow_circular_includes_from += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52463 deps += [
[email protected]cc5b3be2014-08-15 23:24:52464 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30465 "//chrome/common/extensions/api",
466 "//chrome/common/extensions/api:api_registration",
rdevlin.cronin5c6849832016-07-25 18:04:45467 "//chrome/common/extensions/api:extensions_features",
lukasza8acc4eb2015-07-20 20:57:20468 "//components/drive:drive",
msarda4c408ff2015-04-22 14:27:56469 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44470 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50471 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06472 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52473 ]
[email protected]dffd8a912014-06-30 23:24:31474 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10475 ".",
476 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31477 }
478 if (enable_background) {
479 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10480 ".",
481 "//chrome")
jamesr29ea2d122014-10-23 10:30:27482 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31483 sources -= [ "background/background_mode_manager_aura.cc" ]
484 }
485 }
486 if (enable_task_manager) {
487 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10488 ".",
489 "//chrome")
nya268de1c72015-12-16 05:07:40490 if (is_chromeos) {
491 sources +=
492 rebase_path(gypi_values.chrome_browser_task_manager_chromeos_sources,
493 ".",
494 "//chrome")
495 }
afakhry174069722016-05-24 19:16:16496
497 if (is_mac && !mac_views_browser) {
498 sources +=
499 rebase_path(gypi_values.chrome_browser_old_task_manager_cocoa_sources,
500 ".",
501 "//chrome")
502 }
[email protected]dffd8a912014-06-30 23:24:31503 }
504 if (enable_spellcheck) {
505 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10506 ".",
507 "//chrome")
timvolodine677f3012016-07-25 14:00:59508 deps += [ "//components/spellcheck/common:common" ]
509
dylanking34c72442015-07-23 23:19:58510 if (!is_android) {
511 deps += [ "//third_party/hunspell" ]
512 }
[email protected]dffd8a912014-06-30 23:24:31513 }
514 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10515 sources +=
516 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
brettwf4b4a4282015-12-16 00:41:13517 deps += [ "//components/nacl/browser" ]
[email protected]dffd8a912014-06-30 23:24:31518 }
apavlove749bca2014-09-30 11:07:41519
[email protected]dffd8a912014-06-30 23:24:31520 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10521 sources +=
522 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31523 deps += [
James Robinson2ed4d692014-09-17 05:20:58524 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31525 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14526 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31527 ]
528 }
529 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10530 sources +=
stuartmorgan1b3df822014-12-08 14:36:11531 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10532 ".",
533 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31534 deps += [
[email protected]fca567b2014-07-02 17:37:34535 "//chrome/browser/safe_browsing:chunk_proto",
jialiuleed304432015-11-09 20:17:03536 "//chrome/common/safe_browsing:proto",
vakh27f7e222016-02-02 23:45:34537 "//components/safe_browsing_db:metadata_proto",
[email protected]dffd8a912014-06-30 23:24:31538 ]
539 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10540 sources +=
stuartmorgan1b3df822014-12-08 14:36:11541 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10542 ".",
543 "//chrome")
grtc1d1b752015-09-05 13:26:41544 if (is_win) {
545 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto" ]
546 }
nparker00a64f12015-10-16 17:34:30547 } else if (safe_browsing_mode == 2) {
548 sources +=
549 rebase_path(gypi_values.chrome_browser_safe_browsing_mobile_sources,
550 ".",
551 "//chrome")
vakh27f7e222016-02-02 23:45:34552 deps += [ "//components/safe_browsing_db:safe_browsing_db_mobile" ]
[email protected]dffd8a912014-06-30 23:24:31553 }
554 }
555
amistryf269d3b2015-06-09 19:18:39556 if (enable_hotwording) {
557 defines += [ "ENABLE_HOTWORDING" ]
558 }
559
[email protected]dffd8a912014-06-30 23:24:31560 if (is_linux) {
mostynbea514682015-08-18 22:08:56561 deps += [ "//device/media_transfer_protocol" ]
[email protected]dffd8a912014-06-30 23:24:31562 }
mostynbea514682015-08-18 22:08:56563
564 if (use_udev) {
565 deps += [ "//device/udev_linux" ]
566 }
567
[email protected]dffd8a912014-06-30 23:24:31568 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47569 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31570 }
571
572 if (is_chromeos) {
573 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10574 ".",
575 "//chrome")
576 deps += [ "//chrome/browser/chromeos" ]
dgozmane5a3e252016-03-22 21:45:08577 } else { # Non-ChromeOS.
578 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
579 ".",
580 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31581 }
582
mukai8c99b882014-10-15 03:07:59583 if (is_chromeos || is_ios) {
584 sources -= [
blundell296904a2015-10-13 12:30:48585 "signin/chrome_signin_status_metrics_provider_delegate.cc",
586 "signin/chrome_signin_status_metrics_provider_delegate.h",
mukai8c99b882014-10-15 03:07:59587 ]
588 }
589
sque82e4d1552016-02-26 22:47:19590 if (is_chromeos) {
591 sources += [
squeefd3f472016-06-08 20:04:53592 "metrics/leak_detector/leak_detector_controller.cc",
593 "metrics/leak_detector/leak_detector_controller.h",
sque0e57a1e2016-07-21 21:53:09594 "metrics/leak_detector/leak_detector_remote_controller.cc",
595 "metrics/leak_detector/leak_detector_remote_controller.h",
sque82e4d1552016-02-26 22:47:19596 ]
sque0e57a1e2016-07-21 21:53:09597 public_deps += [
598 "//components/metrics/leak_detector:interfaces",
599 "//components/metrics/leak_detector:leak_detector",
600 ]
sque82e4d1552016-02-26 22:47:19601 }
602
[email protected]dffd8a912014-06-30 23:24:31603 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12604 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31605 }
606 if (is_desktop_linux) {
607 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10608 ".",
609 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49610 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31611 }
dvadym34532022015-01-22 15:42:51612 if (is_desktop_linux) {
613 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
614 ".",
615 "//chrome")
616 defines += [ "USE_LIBSECRET" ]
cfroussios7267be82016-04-27 13:58:52617 deps += [ "//third_party/libsecret" ]
dvadym34532022015-01-22 15:42:51618 }
[email protected]dffd8a912014-06-30 23:24:31619 if (use_aura) {
scottmga266f952014-12-03 20:47:10620 sources +=
621 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
ben0cc0be92015-11-09 21:49:06622
623 # These files are only built in a GN build because they bring in
624 # dependencies that don't build with GYP.
625 sources += [
bencccedf12015-11-10 07:56:16626 "ui/views/frame/browser_frame_mus.cc",
627 "ui/views/frame/browser_frame_mus.h",
skyab2410c52015-12-03 03:40:56628 "ui/views/frame/browser_non_client_frame_view_mus.cc",
629 "ui/views/frame/browser_non_client_frame_view_mus.h",
ben0cc0be92015-11-09 21:49:06630 ]
[email protected]dffd8a912014-06-30 23:24:31631 deps += [
ben03b7b9d2015-11-15 12:13:09632 "//content/public/common",
ben6b0453d12016-07-02 04:27:19633 "//services/ui/public/cpp",
634 "//services/ui/public/cpp/input_devices",
[email protected]fca567b2014-07-02 17:37:34635 "//ui/aura",
636 "//ui/compositor",
rockotb9e3b772016-06-10 21:34:16637 "//ui/views/mus",
[email protected]dffd8a912014-06-30 23:24:31638 ]
ben03b7b9d2015-11-15 12:13:09639 defines += [ "MOJO_SHELL_CLIENT" ]
[email protected]dffd8a912014-06-30 23:24:31640 }
641 if (ui_compositor_image_transport) {
642 deps += [ "//ui/gl" ]
643 }
644
[email protected]855b7de2014-07-08 21:02:45645 if (use_ash) {
scottmga266f952014-12-03 20:47:10646 sources +=
647 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
brettw98a87012016-07-26 22:15:45648 deps += [ "//ash" ]
[email protected]855b7de2014-07-08 21:02:45649 }
650
[email protected]dffd8a912014-06-30 23:24:31651 if (use_x11) {
scottmga266f952014-12-03 20:47:10652 sources +=
653 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23654 } else {
655 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31656 }
Scott Grahamcae6b0e2015-12-04 03:23:29657 if (is_posix && !is_mac && !is_ios) {
[email protected]dffd8a912014-06-30 23:24:31658 sources += [
rseseka0a7a042014-09-18 23:59:20659 "//chrome/app/chrome_crash_reporter_client.cc",
660 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31661 ]
662 deps += [
sdefresne8ba0b88c2015-09-18 10:33:13663 "//components/crash/content/app",
664 "//components/crash/content/browser",
blundellf1cfb032015-11-16 18:22:30665 "//components/version_info:generate_version_info",
[email protected]dffd8a912014-06-30 23:24:31666 ]
667 }
668 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10669 sources +=
670 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59671 if (is_chromeos) {
672 sources -= [ "net/nss_context_linux.cc" ]
673 }
[email protected]dffd8a912014-06-30 23:24:31674 }
675 if (enable_notifications) {
676 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10677 ".",
678 "//chrome")
sievers2f1e8112015-12-04 18:43:56679 if (android_java_ui) {
680 sources += rebase_path(
681 gypi_values.chrome_browser_notifications_android_java_ui_sources,
682 ".",
683 "//chrome")
estade6d95d1d2015-10-02 18:55:23684 } else {
[email protected]dffd8a912014-06-30 23:24:31685 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11686 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10687 ".",
688 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31689 }
miguelg38ca936a2016-06-21 12:26:57690 if (is_mac) {
691 deps += [ "//chrome/browser/ui/cocoa/notifications:common" ]
692 }
[email protected]dffd8a912014-06-30 23:24:31693 }
694 if (enable_themes) {
scottmga266f952014-12-03 20:47:10695 sources +=
696 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31697 }
698
vitalybuka93eea402014-11-05 23:47:15699 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31700 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11701 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10702 ".",
703 "//chrome")
spang5cc72542015-08-04 19:47:11704 deps += [
brettwd649f6b2015-08-18 20:58:51705 "//components/printing/browser",
agrieved7a71c882015-11-20 19:53:28706 "//printing",
spang5cc72542015-08-04 19:47:11707 ]
708
vitalybuka36259ca2014-08-28 23:42:24709 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31710 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10711 ".",
712 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31713 }
vitalybuka93eea402014-11-05 23:47:15714 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31715 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11716 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10717 ".",
718 "//chrome")
vitalybuka93eea402014-11-05 23:47:15719 } else {
[email protected]dffd8a912014-06-30 23:24:31720 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10721 sources +=
stuartmorgan1b3df822014-12-08 14:36:11722 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10723 ".",
724 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31725 }
726 }
727 if (enable_captive_portal_detection) {
728 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10729 ".",
730 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31731 }
732 if (enable_session_service) {
733 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10734 ".",
735 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31736 }
737
thestigdc377202014-10-28 22:06:02738 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10739 sources +=
740 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02741 }
742
[email protected]dffd8a912014-06-30 23:24:31743 if (is_android || is_ios) {
744 # Mobile.
scottmga266f952014-12-03 20:47:10745 sources +=
746 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31747 } else {
748 # Non-mobile.
thestigf2cc0832016-04-12 19:30:27749 deps += [
750 "//apps",
751 "//chrome/browser/policy:path_parser",
752 "//chrome/browser/profile_resetter:profile_reset_report_proto",
753 "//components/feedback",
754 "//components/web_modal",
755 "//net:net_browser_services",
756 ]
[email protected]dffd8a912014-06-30 23:24:31757 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10758 ".",
759 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31760 }
761
mathp17e1eba2015-10-06 21:50:59762 if (!is_chrome_branded) {
fserb1c2db4c2015-07-16 17:14:49763 sources += [
764 "search/local_files_ntp_source.cc",
765 "search/local_files_ntp_source.h",
766 ]
767 }
768
[email protected]dffd8a912014-06-30 23:24:31769 if (is_android) {
scottmga266f952014-12-03 20:47:10770 sources +=
771 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
sievers2f1e8112015-12-04 18:43:56772 }
773
774 if (android_java_ui) {
775 sources += rebase_path(gypi_values.chrome_browser_android_java_ui_sources,
776 ".",
777 "//chrome")
fgorski1d4c9c92015-12-17 20:39:32778 sources += rebase_path(gypi_values.chrome_browser_offline_pages_sources,
twellingtoncaf0eb752015-06-01 16:19:50779 ".",
780 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31781 deps += [
pkotwicz127726f2015-05-29 15:20:12782 ":client_discourse_context_proto",
783 ":delta_file_proto",
James Robinson2ed4d692014-09-17 05:20:58784 ":jni_headers",
nyquist9aa0cde2016-07-15 21:20:20785 "//blimp/client/public",
sclittlec441f782015-11-12 01:12:09786 "//components/data_usage/android",
twifkak8c9f7502015-06-25 02:12:57787 "//components/precache/content",
788 "//components/precache/core",
estadee37f8222014-11-07 21:35:22789 "//components/resources:components_resources",
blundell11d93bc2015-07-31 12:33:12790 "//components/toolbar",
cjhopman09981a92014-10-27 17:11:18791 "//components/web_contents_delegate_android",
sievers2f1e8112015-12-04 18:43:56792 ]
sievers2f1e8112015-12-04 18:43:56793 }
794
795 if (is_android) {
796 deps += [
797 "//components/cdm/browser",
798 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18799 "//third_party/android_opengl/etc1",
fdegans34f31e272015-05-22 16:59:03800 "//third_party/android_tools:cpu_features",
twellington0bc61492015-01-30 20:14:13801 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31802 ]
sievers2f1e8112015-12-04 18:43:56803
[email protected]dffd8a912014-06-30 23:24:31804 deps -= [
[email protected]abd4b682014-07-16 20:26:30805 "//components/storage_monitor",
agrieved7a71c882015-11-20 19:53:28806 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31807 ]
rseseke59ea892015-03-19 22:27:44808
809 if (use_seccomp_bpf) {
810 defines += [ "USE_SECCOMP_BPF" ]
rsesek65d31352015-06-08 22:53:44811 deps += [ "//sandbox/linux:seccomp_bpf" ]
rseseke59ea892015-03-19 22:27:44812 }
[email protected]dffd8a912014-06-30 23:24:31813 }
814
815 if (is_mac) {
816 deps += [
[email protected]6b5d2f92014-07-30 00:40:03817 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03818 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31819 ]
820 libs += [
821 "Accelerate.framework",
822 "AddressBook.framework",
823 "AudioUnit.framework",
824 "DiskArbitration.framework",
825 "IOKit.framework",
826 "ImageCaptureCore.framework",
827 "OpenGL.framework",
828 "QuartzCore.framework",
829 "SecurityInterface.framework",
830 ]
831 }
832
833 if (enable_rlz) {
sdefresned967d552015-07-16 08:34:35834 deps += [ ":rlz" ]
[email protected]dffd8a912014-06-30 23:24:31835 }
836
[email protected]dffd8a912014-06-30 23:24:31837 if (is_win) {
scottmga266f952014-12-03 20:47:10838 sources +=
839 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
Brett Wilsone53895272014-09-23 23:41:46840 public_deps += [
841 "//ui/views",
842 "//ui/views/controls/webview",
843 ]
[email protected]dffd8a912014-06-30 23:24:31844 deps += [
vchigrin9593e7a2015-01-27 10:08:19845 ":chrome_process_finder",
gab7c45cfd2016-04-15 19:17:07846 "//chrome:file_pre_reader",
pmonette502a83e2016-01-08 00:21:16847 "//chrome/chrome_watcher:client",
gab7c45cfd2016-04-15 19:17:07848 "//chrome/common:metrics_constants_util_win",
mdempsky15a48be2015-10-21 23:37:53849 "//chrome/common:version_header",
ananta52c55bd2016-07-19 22:40:53850 "//chrome_elf:blacklist",
vchigrinf2b90aa2015-01-23 11:12:19851 "//chrome_elf:constants",
852 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32853 "//components/browser_watcher",
854 "//components/browser_watcher:browser_watcher_client",
fdorayc295b762016-01-19 18:49:23855 "//components/startup_metric_utils/common",
vchigrinbbc23e72015-01-21 22:49:23856 "//google_update",
[email protected]55699f392014-08-20 22:16:30857 "//third_party/iaccessible2",
858 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31859 "//third_party/wtl",
[email protected]dffd8a912014-06-30 23:24:31860 ]
mmenkede134672015-08-18 01:33:39861
862 all_dependent_configs = [ ":browser_win_linker_flags" ]
863
grt235b3f092015-05-27 21:42:48864 if (!is_chrome_branded) {
865 deps -= [ "//google_update" ]
866 sources -= [
867 "google/did_run_updater_win.cc",
868 "google/did_run_updater_win.h",
869 "google/google_update_win.cc",
870 "google/google_update_win.h",
871 ]
872 }
[email protected]dffd8a912014-06-30 23:24:31873 } else {
874 # Non-Windows.
scottmga266f952014-12-03 20:47:10875 sources +=
876 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37877 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31878 deps += [
scottmga266f952014-12-03 20:47:10879 "//ui/views",
880 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31881 ]
[email protected]dffd8a912014-06-30 23:24:31882 }
883 }
884
885 if (is_linux) {
[email protected]dffd8a912014-06-30 23:24:31886 if (use_aura) {
mbjorgea12e5a52016-05-31 22:15:17887 deps += [ "//build/linux:fontconfig" ]
888 if (use_dbus) {
889 deps += [ "//dbus" ]
890 }
[email protected]dffd8a912014-06-30 23:24:31891 }
892 if (use_x11) {
893 configs += [ "//build/config/linux:x11" ]
894 deps += [ "//ui/gfx/x" ]
895 }
896 }
897
rouslane59900a2016-02-17 19:45:43898 if (is_linux || is_win) {
899 sources += rebase_path(gypi_values.chrome_browser_non_mac_desktop_sources,
900 ".",
901 "//chrome")
902 }
903
[email protected]dffd8a912014-06-30 23:24:31904 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54905 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10906 ".",
907 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31908 }
909 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10910 sources +=
911 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
912 ".",
913 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31914 }
915 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10916 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31917 }
treib87bb89cbb2014-12-01 16:01:47918 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10919 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
920 ".",
921 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31922 }
bauerb7f3b8542015-06-29 19:56:19923 if (enable_supervised_users && !is_android && !is_ios) {
924 sources +=
925 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
926 ".",
927 "//chrome")
928 }
treib87bb89cbb2014-12-01 16:01:47929 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59930 sources += rebase_path(
scottmga266f952014-12-03 20:47:10931 gypi_values.chrome_browser_supervised_user_and_themes_sources,
932 ".",
933 "//chrome")
thestig169a6362014-11-13 20:47:59934 }
[email protected]dffd8a912014-06-30 23:24:31935 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10936 sources +=
937 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31938 }
939 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10940 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
941 ".",
942 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31943 }
944 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10945 sources +=
946 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31947 }
estadee62c2a42016-05-05 16:27:29948 if (is_android || is_ios) {
[email protected]dffd8a912014-06-30 23:24:31949 sources -= [
950 "autofill/validation_rules_storage_factory.cc",
951 "autofill/validation_rules_storage_factory.h",
952 ]
953 }
mfoltz150bb8b2015-04-09 22:30:05954 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55955 deps += [ "//chrome/browser/media/router" ]
mfoltz150bb8b2015-04-09 22:30:05956 }
xhwang5e630462015-10-30 03:18:48957
xhwangc86d76e42016-03-14 23:38:49958 if (enable_mojo_media) {
xhwangbe720032016-02-19 18:45:31959 configs += [ "//media/mojo/services:mojo_media_config" ]
xhwangc86d76e42016-03-14 23:38:49960 sources += [
961 "media/output_protection_impl.cc",
962 "media/output_protection_impl.h",
963 ]
964 deps += [ "//media/mojo/interfaces" ]
965 if (mojo_media_host == "browser") {
xhwangd3b5d3f2016-05-18 03:37:59966 deps += [ "//media/mojo/services" ]
xhwangc86d76e42016-03-14 23:38:49967 }
xhwang5e630462015-10-30 03:18:48968 }
revemanb195f41d2015-11-19 22:16:48969
970 if (enable_wayland_server) {
971 deps += [
972 "//components/exo",
973 "//components/exo/wayland",
974 ]
975 sources += [
976 "chrome_browser_main_extra_parts_exo.cc",
977 "chrome_browser_main_extra_parts_exo.h",
978 ]
979 }
[email protected]dffd8a912014-06-30 23:24:31980}
981
sievers2f1e8112015-12-04 18:43:56982if (android_java_ui) {
James Robinson2ed4d692014-09-17 05:20:58983 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
984 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10985 sources =
986 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58987 jni_package = "chrome"
988 }
pkotwicz127726f2015-05-29 15:20:12989
990 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
991 proto_library("client_discourse_context_proto") {
992 sources = [
993 "android/proto/client_discourse_context.proto",
994 ]
995 }
996
997 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
998 proto_library("delta_file_proto") {
999 sources = [
1000 "android/proto/delta_file.proto",
1001 ]
1002 }
James Robinson2ed4d692014-09-17 05:20:581003}
1004
vchigrin9593e7a2015-01-27 10:08:191005if (is_win) {
brettw77617612016-07-13 22:40:061006 static_library("chrome_process_finder") {
vchigrin9593e7a2015-01-27 10:08:191007 sources = [
pmonette23c8fb7e2016-06-27 20:45:111008 "win/chrome_process_finder.cc",
1009 "win/chrome_process_finder.h",
vchigrin9593e7a2015-01-27 10:08:191010 ]
1011 deps = [
1012 "//base",
vchigrin9593e7a2015-01-27 10:08:191013 "//chrome/common:constants",
1014 ]
1015 if (enable_configuration_policy) {
1016 deps += [ "//chrome/browser/policy:path_parser" ]
1017 }
1018 }
1019}
1020
[email protected]77ce8022014-06-16 19:29:561021# GYP version: chrome/chrome_resources.gyp:chrome_resources
1022# (generate_browser_resources action)
1023grit("resources") {
1024 source = "browser_resources.grd"
brettw06c2ba32015-11-26 09:21:251025 defines = chrome_grit_defines
[email protected]48885492014-08-13 11:22:411026 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:261027 outputs = [
1028 "grit/browser_resources.h",
1029 "browser_resources.pak",
1030 ]
[email protected]77ce8022014-06-16 19:29:561031
[email protected]77ce8022014-06-16 19:29:561032 grit_flags = [
scottmga266f952014-12-03 20:47:101033 "-E",
scottmga266f952014-12-03 20:47:101034 "additional_modules_list_file=" +
1035 rebase_path(additional_modules_list_file, root_build_dir),
1036 "-E",
calamityd59c1032015-09-22 06:35:531037 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
[email protected]77ce8022014-06-16 19:29:561038 ]
1039
1040 deps = [
[email protected]77ce8022014-06-16 19:29:561041 ":chrome_internal_resources_gen",
nparker38c5a5c2016-04-25 23:34:241042 "//chrome/browser/resources/safe_browsing:make_file_types_protobuf",
brettwde262b02015-05-27 19:41:421043
1044 # Depend only on the generated mojo bindings since we read the .mojom.js
1045 # file, rather than the whole mojo target which will link the C++ bindings.
calamityd59c1032015-09-22 06:35:531046 "//chrome/browser/ui/webui/engagement:mojo_bindings__generator",
brettwde262b02015-05-27 19:41:421047 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
dpapad59e3ad42016-02-02 21:58:061048 "//chrome/browser/ui/webui/plugins:mojo_bindings__generator",
sammcf6f4fcf2016-06-21 05:39:391049 "//url/mojo:url_mojom_gurl__generator",
vchigrin8eede942015-01-29 09:28:151050 ]
[email protected]77ce8022014-06-16 19:29:561051}
1052
[email protected]77ce8022014-06-16 19:29:561053# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:411054if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:561055 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:411056 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:101057 sources = [
1058 "internal/resources/additional_modules_list.input",
1059 ]
1060 outputs = [
1061 additional_modules_list_file,
1062 ]
engedy99d0e11b2014-09-30 13:32:411063 args = rebase_path(sources, root_build_dir) +
1064 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:561065 }
1066} else {
1067 group("chrome_internal_resources_gen") {
1068 # Empty placeholder.
1069 }
1070}
Brett Wilson052ce132014-09-12 19:46:291071
1072# In GYP this is part of test_support_common.
brettw022f8f32016-06-14 01:22:391073#
1074# Use a static library here because many test binaries depend on this but don't
1075# require many files from it. This makes linking more efficient.
1076static_library("test_support") {
Brett Wilson052ce132014-09-12 19:46:291077 testonly = true
1078
1079 # Always include this via the main test support target.
1080 visibility = [ "//chrome/test:test_support" ]
1081
1082 sources = [
1083 "browsing_data/mock_browsing_data_appcache_helper.cc",
1084 "browsing_data/mock_browsing_data_appcache_helper.h",
jsbelle1fe9692015-08-22 01:02:421085 "browsing_data/mock_browsing_data_cache_storage_helper.cc",
1086 "browsing_data/mock_browsing_data_cache_storage_helper.h",
Brett Wilson052ce132014-09-12 19:46:291087 "browsing_data/mock_browsing_data_channel_id_helper.cc",
1088 "browsing_data/mock_browsing_data_channel_id_helper.h",
1089 "browsing_data/mock_browsing_data_cookie_helper.cc",
1090 "browsing_data/mock_browsing_data_cookie_helper.h",
1091 "browsing_data/mock_browsing_data_database_helper.cc",
1092 "browsing_data/mock_browsing_data_database_helper.h",
1093 "browsing_data/mock_browsing_data_file_system_helper.cc",
1094 "browsing_data/mock_browsing_data_file_system_helper.h",
1095 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
1096 "browsing_data/mock_browsing_data_flash_lso_helper.h",
1097 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
1098 "browsing_data/mock_browsing_data_indexed_db_helper.h",
1099 "browsing_data/mock_browsing_data_local_storage_helper.cc",
1100 "browsing_data/mock_browsing_data_local_storage_helper.h",
1101 "browsing_data/mock_browsing_data_quota_helper.cc",
1102 "browsing_data/mock_browsing_data_quota_helper.h",
1103 "browsing_data/mock_browsing_data_service_worker_helper.cc",
1104 "browsing_data/mock_browsing_data_service_worker_helper.h",
juncaibadc1daa2016-07-11 20:36:541105 "chooser_controller/mock_chooser_controller.cc",
1106 "chooser_controller/mock_chooser_controller.h",
Brett Wilson052ce132014-09-12 19:46:291107 "download/download_test_file_activity_observer.cc",
1108 "download/download_test_file_activity_observer.h",
1109 "download/test_download_shelf.cc",
1110 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:291111 "media/fake_desktop_media_list.cc",
1112 "media/fake_desktop_media_list.h",
1113 "net/dns_probe_test_util.cc",
1114 "net/dns_probe_test_util.h",
1115 "net/url_request_mock_util.cc",
1116 "net/url_request_mock_util.h",
1117 "notifications/notification_test_util.cc",
1118 "notifications/notification_test_util.h",
miguelg884b3ec2016-04-26 09:51:521119 "notifications/stub_notification_platform_bridge.cc",
1120 "notifications/stub_notification_platform_bridge.h",
tsergeant58defcfb2016-07-19 23:47:281121 "permissions/mock_permission_request.cc",
1122 "permissions/mock_permission_request.h",
Brett Wilson052ce132014-09-12 19:46:291123 "profile_resetter/profile_resetter_test_base.cc",
1124 "profile_resetter/profile_resetter_test_base.h",
1125 "search_engines/template_url_service_factory_test_util.cc",
1126 "search_engines/template_url_service_factory_test_util.h",
1127 "search_engines/template_url_service_test_util.cc",
1128 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:451129 "sessions/session_restore_test_helper.cc",
1130 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291131 "sessions/session_service_test_helper.cc",
1132 "sessions/session_service_test_helper.h",
knn523bd722015-07-30 16:27:091133 "signin/fake_account_fetcher_service_builder.cc",
1134 "signin/fake_account_fetcher_service_builder.h",
zeafe5f0ffb2016-06-16 22:04:061135 "signin/fake_gaia_cookie_manager_service_builder.cc",
1136 "signin/fake_gaia_cookie_manager_service_builder.h",
Brett Wilson052ce132014-09-12 19:46:291137 "signin/fake_profile_oauth2_token_service_builder.cc",
1138 "signin/fake_profile_oauth2_token_service_builder.h",
droger4f489e62015-07-24 19:27:591139 "signin/fake_signin_manager_builder.cc",
1140 "signin/fake_signin_manager_builder.h",
Brett Wilson052ce132014-09-12 19:46:291141 "ssl/ssl_client_auth_requestor_mock.cc",
1142 "ssl/ssl_client_auth_requestor_mock.h",
maxbogued2ea9242015-10-29 01:24:521143 "sync/profile_sync_test_util.cc",
1144 "sync/profile_sync_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291145 ]
1146
brettwbc8b2a22015-07-28 18:24:421147 configs += [ "//build/config:precompiled_headers" ]
1148
Brett Wilsone53895272014-09-23 23:41:461149 public_deps = [
Brett Wilson052ce132014-09-12 19:46:291150 ":browser",
Brett Wilsone53895272014-09-23 23:41:461151 "//chrome/browser/ui:test_support",
1152 ]
1153 deps = [
agrieved7a71c882015-11-20 19:53:281154 "//chrome/app/theme:theme_resources",
Brett Wilson052ce132014-09-12 19:46:291155 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:291156 "//chrome/common",
1157 "//chrome/common/safe_browsing:proto",
vabra6fded22015-12-10 09:06:551158 "//components/browser_sync/browser:test_support",
knn062cdbb2015-06-26 18:18:421159 "//components/invalidation/impl",
1160 "//components/invalidation/impl:test_support",
Brett Wilson052ce132014-09-12 19:46:291161 "//components/password_manager/core/browser:test_support",
brettw9f7802a22016-01-30 06:40:171162 "//components/prefs:test_support",
Brett Wilson052ce132014-09-12 19:46:291163 "//components/search_engines:test_support",
engedy9ae04242016-06-08 13:31:181164 "//components/subresource_filter/core/browser:test_support",
sdefresne875d0782015-09-16 12:01:281165 "//components/syncable_prefs:test_support",
jitendra.ks94c0b962015-08-10 08:24:091166 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
Brett Wilson052ce132014-09-12 19:46:291167 "//content/test:test_support",
Brett Wilson052ce132014-09-12 19:46:291168 "//net:test_support",
1169 "//skia",
1170 "//testing/gmock",
1171 "//testing/gtest",
1172 "//ui/gfx",
1173 ]
1174
Brett Wilson052ce132014-09-12 19:46:291175 if (!is_ios) {
1176 deps += [
1177 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:291178 "//google_apis:test_support",
1179 ]
1180 }
1181
thestig354985d2015-09-28 20:55:001182 if (is_android) {
1183 sources -= [
thestig259da0b2015-10-07 18:09:081184 "download/test_download_shelf.cc",
1185 "download/test_download_shelf.h",
1186 "profile_resetter/profile_resetter_test_base.cc",
1187 "profile_resetter/profile_resetter_test_base.h",
1188 "sessions/session_restore_test_helper.cc",
1189 "sessions/session_restore_test_helper.h",
thestig354985d2015-09-28 20:55:001190 "sessions/session_service_test_helper.cc",
1191 "sessions/session_service_test_helper.h",
thestig354985d2015-09-28 20:55:001192 ]
1193 }
1194
juncaibadc1daa2016-07-11 20:36:541195 if (is_android || is_ios) {
1196 sources -= [
1197 "chooser_controller/mock_chooser_controller.cc",
1198 "chooser_controller/mock_chooser_controller.h",
tsergeant58defcfb2016-07-19 23:47:281199 "permissions/mock_permission_request.cc",
1200 "permissions/mock_permission_request.h",
juncaibadc1daa2016-07-11 20:36:541201 ]
1202 }
1203
James Robinson2ed4d692014-09-17 05:20:581204 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:381205 sources += [
1206 "extensions/extension_action_test_util.cc",
1207 "extensions/extension_action_test_util.h",
1208 ]
scottmga266f952014-12-03 20:47:101209 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:581210 }
1211
Brett Wilson052ce132014-09-12 19:46:291212 if (is_chromeos) {
1213 sources += [
1214 "chromeos/app_mode/fake_cws.cc",
1215 "chromeos/app_mode/fake_cws.h",
1216 "chromeos/file_manager/fake_disk_mount_manager.cc",
1217 "chromeos/file_manager/fake_disk_mount_manager.h",
1218 "chromeos/input_method/mock_candidate_window_controller.cc",
1219 "chromeos/input_method/mock_candidate_window_controller.h",
1220 "chromeos/input_method/mock_input_method_engine.cc",
1221 "chromeos/input_method/mock_input_method_engine.h",
1222 "chromeos/input_method/mock_input_method_manager.cc",
1223 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511224 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1225 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391226 "chromeos/login/session/user_session_manager_test_api.cc",
1227 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291228 "chromeos/login/test/js_checker.cc",
1229 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591230 "chromeos/login/test/oobe_screen_waiter.cc",
1231 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291232 "chromeos/login/ui/mock_login_display.cc",
1233 "chromeos/login/ui/mock_login_display.h",
1234 "chromeos/login/ui/mock_login_display_host.cc",
1235 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511236 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1237 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301238 "chromeos/login/users/fake_chrome_user_manager.cc",
1239 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511240 "chromeos/login/users/fake_supervised_user_manager.cc",
1241 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511242 "chromeos/login/users/mock_user_manager.cc",
1243 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291244 "chromeos/net/network_portal_detector_test_utils.cc",
1245 "chromeos/net/network_portal_detector_test_utils.h",
1246 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1247 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1248 "chromeos/policy/device_policy_builder.cc",
1249 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071250 "chromeos/policy/fake_consumer_management_service.cc",
1251 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291252 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1253 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071254 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1255 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291256 "chromeos/policy/stub_enterprise_install_attributes.cc",
1257 "chromeos/policy/stub_enterprise_install_attributes.h",
1258 "chromeos/settings/device_settings_test_helper.cc",
1259 "chromeos/settings/device_settings_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291260 ]
agrieve95ba4442016-04-25 15:47:131261 configs += [ "//build/config/linux/dbus" ]
mukai6ba73552014-10-09 19:05:171262 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291263 }
1264
1265 if (enable_configuration_policy) {
1266 sources += [
1267 "policy/test/local_policy_test_server.cc",
1268 "policy/test/local_policy_test_server.h",
1269 ]
Brett Wilsone53895272014-09-23 23:41:461270 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291271 "//components/policy:policy_component_test_support",
1272 "//components/policy:test_support",
1273 ]
Brett Wilson052ce132014-09-12 19:46:291274 }
1275
1276 if (safe_browsing_mode == 1) {
1277 sources += [
1278 "extensions/fake_safe_browsing_database_manager.cc",
1279 "extensions/fake_safe_browsing_database_manager.h",
1280 ]
1281 }
1282
1283 if (enable_extensions) {
1284 sources += [
Brett Wilson052ce132014-09-12 19:46:291285 "extensions/api/messaging/native_messaging_test_util.cc",
1286 "extensions/api/messaging/native_messaging_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291287 "extensions/mock_extension_special_storage_policy.cc",
1288 "extensions/mock_extension_special_storage_policy.h",
1289 "extensions/test_blacklist.cc",
1290 "extensions/test_blacklist.h",
1291 "extensions/test_blacklist_state_fetcher.cc",
1292 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511293 "extensions/test_extension_dir.cc",
1294 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591295 "extensions/test_extension_environment.cc",
1296 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291297 "extensions/test_extension_prefs.cc",
1298 "extensions/test_extension_prefs.h",
1299 "extensions/test_extension_service.cc",
1300 "extensions/test_extension_service.h",
1301 "extensions/test_extension_system.cc",
1302 "extensions/test_extension_system.h",
1303 "media_galleries/media_galleries_test_util.cc",
1304 "media_galleries/media_galleries_test_util.h",
1305 ]
lukasza8acc4eb2015-07-20 20:57:201306 deps += [
1307 "//components/drive:test_support",
1308 "//components/storage_monitor:test_support",
1309 ]
Brett Wilson052ce132014-09-12 19:46:291310 }
1311
1312 if (enable_mdns) {
1313 sources += [
1314 "local_discovery/test_service_discovery_client.cc",
1315 "local_discovery/test_service_discovery_client.h",
1316 ]
1317 }
1318
1319 if (enable_app_list) {
1320 sources += [
1321 "ui/app_list/test/chrome_app_list_test_support.cc",
1322 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511323 "ui/app_list/test/test_app_list_controller_delegate.cc",
1324 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291325 ]
1326 }
xhwangc3a252b2016-05-23 02:35:481327
1328 if (enable_pepper_cdms) {
1329 sources += [
1330 "media/pepper_cdm_test_helper.cc",
1331 "media/pepper_cdm_test_helper.h",
1332 ]
brettwf5431b3d2016-06-07 23:14:371333 deps += [
1334 ":pepper_cdm_test_constants",
1335 "//media:cdm_paths",
1336 ]
xhwangc3a252b2016-05-23 02:35:481337 }
Brett Wilson052ce132014-09-12 19:46:291338}
sdefresned967d552015-07-16 08:34:351339
thestig65d7c5c2015-10-06 18:13:471340# In GYP this is part of test_support_ui.
brettw77617612016-07-13 22:40:061341static_library("test_support_ui") {
thestig65d7c5c2015-10-06 18:13:471342 testonly = true
1343
1344 # Always include this via the main test support UI target.
1345 visibility = [ "//chrome/test:test_support_ui" ]
1346
1347 sources = [
1348 "password_manager/password_manager_test_base.cc",
1349 "password_manager/password_manager_test_base.h",
shadi3ca8c9d2016-01-19 18:54:391350 "signin/token_revoker_test_utils.cc",
1351 "signin/token_revoker_test_utils.h",
thestig65d7c5c2015-10-06 18:13:471352 "ui/webui/signin/login_ui_test_utils.cc",
1353 "ui/webui/signin/login_ui_test_utils.h",
1354 ]
1355
1356 configs += [ "//build/config:precompiled_headers" ]
1357
1358 deps = [
1359 "//components/metrics:test_support",
leon.han952ea3252016-04-13 02:44:561360 "//components/password_manager/content/public/interfaces",
vabr22c9e4f42015-10-20 15:34:091361 "//components/password_manager/core/browser:test_support",
thestig65d7c5c2015-10-06 18:13:471362 "//skia",
1363 "//testing/gtest",
1364 ]
1365}
1366
sdefresned967d552015-07-16 08:34:351367if (enable_rlz_support) {
brettw77617612016-07-13 22:40:061368 static_library("rlz") {
sdefresned967d552015-07-16 08:34:351369 sources =
1370 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1371 deps = [
1372 "//components/google/core/browser",
1373 "//components/omnibox/browser",
1374 "//components/rlz",
1375 "//components/search_engines",
1376 "//rlz:rlz_lib",
1377 ]
1378 }
1379}
brettwf5431b3d2016-06-07 23:14:371380
1381if (enable_pepper_cdms) {
1382 # These constants are separated so that test binaries can use them without
1383 # linking all of the test support.
brettw77617612016-07-13 22:40:061384 static_library("pepper_cdm_test_constants") {
brettwf5431b3d2016-06-07 23:14:371385 testonly = true
1386 visibility = [ "//chrome/*" ]
1387 sources = [
1388 "media/pepper_cdm_test_constants.cc",
1389 "media/pepper_cdm_test_constants.h",
1390 ]
1391 }
1392}