blob: ee08123492ce27697e423d9fa1e0d65185bd06ff [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")
brettw06c2ba32015-11-26 09:21:259import("//chrome/common/features.gni")
xhwang5e630462015-10-30 03:18:4810import("//media/media_options.gni")
pkotwicz127726f2015-05-29 15:20:1211import("//third_party/protobuf/proto_library.gni")
scottmga266f952014-12-03 20:47:1012
James Robinson2ed4d692014-09-17 05:20:5813# //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
14# produces a conflict for the "grit" template so we have to only include one.
15if (is_android) {
16 import("//build/config/android/rules.gni")
17} else {
18 import("//tools/grit/grit_rule.gni")
19}
cmasone0a9e4ca2014-10-16 16:40:4920if (is_desktop_linux) {
21 import("//build/config/linux/pkg_config.gni")
22}
[email protected]77ce8022014-06-16 19:29:5623
amistryf269d3b2015-06-09 19:18:3924declare_args() {
mgiuca3cd6a822015-08-07 00:46:1325 # 'Ok Google' hotwording is disabled by default. Set to true to enable. (This
26 # will download a closed-source NaCl module at startup.) Chrome-branded
27 # ChromeOS builds have this enabled by default.
28 enable_hotwording = is_chrome_branded && is_chromeos
amistryf269d3b2015-06-09 19:18:3929}
30
[email protected]77ce8022014-06-16 19:29:5631additional_modules_list_file =
32 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
33
scottmga266f952014-12-03 20:47:1034gypi_values = exec_script("//build/gypi_to_gn.py",
35 [ rebase_path("../chrome_browser.gypi") ],
36 "scope",
37 [ "../chrome_browser.gypi" ])
[email protected]dffd8a912014-06-30 23:24:3138
mmenkede134672015-08-18 01:33:3939if (is_win) {
40 # This is in a separate config so the flags can be applied to dependents.
41 # ldflags in GN aren't automatically inherited.
42 config("browser_win_linker_flags") {
43 libs = [
44 "credui.lib",
jam66e4b2b2016-04-01 15:09:0945 "cryptui.lib",
46 "dwmapi.lib",
mmenkede134672015-08-18 01:33:3947 "netapi32.lib",
48 "ndfapi.lib", # Used by browser/net/net_error_diagnostics_dialog_win.h
manzagop74808fc2016-05-13 20:44:3949 "pdh.lib", # Used by browser/private_working_set_snapshot.h
mmenkede134672015-08-18 01:33:3950 ]
manzagop74808fc2016-05-13 20:44:3951 ldflags = [
52 "/DELAYLOAD:ndfapi.dll",
53 "/DELAYLOAD:pdh.dll", # The task manager is rarely used.
54 ]
mmenkede134672015-08-18 01:33:3955 }
56}
57
cmasone0a9e4ca2014-10-16 16:40:4958if (is_desktop_linux) {
brettwa68ea2b2015-02-01 02:54:0759 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
60 # will set this up.
cmasone0a9e4ca2014-10-16 16:40:4961 pkg_config("gnome_keyring") {
62 packages = [ "gnome-keyring-1" ]
brettwa68ea2b2015-02-01 02:54:0763 defines = [
64 "USE_GNOME_KEYRING",
65 "DLOPEN_GNOME_KEYRING",
66 ]
67 ignore_libs = true
68 }
69
70 # If you want to link gnome-keyring directly (use only for unit tests)
71 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
72 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
73 # are just itself and common gnome ones we link already, so we can get away
74 # with additionally just coding the library name here.
75 config("gnome_keyring_direct") {
76 libs = [ "gnome-keyring" ]
cmasone0a9e4ca2014-10-16 16:40:4977 }
78}
79
brettw022f8f32016-06-14 01:22:3980# Use a static library here because many test binaries depend on this but don't
81# require many files from it. This makes linking more efficient. However, on
brettwbe9cb5a2016-06-15 23:49:1882# Windows official builds the static library will be too large (> 32-bits) so
83# use source sets in that case.
84if (is_mac || (is_win && is_official_build)) {
brettw022f8f32016-06-14 01:22:3985 # TODO(brettw) bug 618797: Remove the mac condition. On Mac making this
86 # target a static_library causes a crash on startup and the browser_tests all
87 # fail. My guess is this is due to a required static initializer not being
88 # brought in.
89 chrome_browser_target_type = "source_set"
90} else {
91 chrome_browser_target_type = "static_library"
92}
93target(chrome_browser_target_type, "browser") {
apavlove749bca2014-09-30 11:07:4194 configs += [
95 "//build/config/compiler:wexit_time_destructors",
brettwbc8b2a22015-07-28 18:24:4296 "//build/config:precompiled_headers",
apavlove749bca2014-09-30 11:07:4197 "//third_party/WebKit/public:debug_devtools",
98 ]
[email protected]dffd8a912014-06-30 23:24:3199 defines = []
100 sources = []
101 libs = []
102 ldflags = []
103
tfarina11b504b2016-03-02 19:49:51104 allow_circular_includes_from = [ "//chrome/browser/ui" ]
105
[email protected]dffd8a912014-06-30 23:24:31106 # iOS/non-iOS shared deps. New dependencies should generally be added in the
107 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:46108 public_deps = [
109 "//components/autofill/core/browser",
110 "//content/public/browser",
111 "//sql",
112 "//sync",
113 ]
[email protected]dffd8a912014-06-30 23:24:31114 deps = [
[email protected]dffd8a912014-06-30 23:24:31115 "//chrome:extra_resources",
116 "//chrome:resources",
117 "//chrome:strings",
[email protected]855b7de2014-07-08 21:02:45118 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:17119 "//chrome/app/theme:theme_resources",
sdefresnea213ceb2015-10-05 09:23:39120 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
[email protected]797b25042014-07-01 23:54:17121 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:30122 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:31123 "//chrome/common",
[email protected]604828c2014-07-02 20:39:12124 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:01125 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:03126 "//components/bookmarks/managed",
blundell7282b512015-11-09 07:21:11127 "//components/browser_sync/browser",
blundell373c28c2015-11-05 14:07:50128 "//components/browser_sync/common",
[email protected]b9f4c682014-07-10 22:00:37129 "//components/captive_portal",
estark334673f42015-09-08 14:51:39130 "//components/certificate_reporting",
eranm3c2d6432016-06-01 10:17:27131 "//components/certificate_transparency",
[email protected]fca567b2014-07-02 17:37:34132 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:01133 "//components/component_updater",
vabrfc325fa2015-04-10 16:24:45134 "//components/content_settings/content/common",
vasiliiac461392014-09-18 11:35:17135 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:54136 "//components/content_settings/core/common",
abhishek.a21bbf8e4a2015-10-15 21:05:56137 "//components/cookie_config",
[email protected]478ed232014-08-19 02:10:55138 "//components/crx_file",
megjablon3476e042014-10-14 19:21:59139 "//components/data_reduction_proxy/core/browser",
sclittleae932be2015-10-08 20:53:50140 "//components/data_usage/core",
amohammadkhanf76ae112015-09-14 17:34:43141 "//components/data_use_measurement/core",
reillyg4a849272015-02-20 21:38:43142 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:25143 "//components/domain_reliability",
sdefresnecbacfd72015-03-20 12:11:32144 "//components/favicon/core",
sdefresne001b10de2015-03-20 18:41:46145 "//components/favicon_base",
droger888be0b2015-10-01 14:28:52146 "//components/flags_ui",
[email protected]abd4b682014-07-16 20:26:30147 "//components/gcm_driver",
jianli2104ce612015-05-06 00:24:34148 "//components/gcm_driver/instance_id",
Brett Wilson1c693992014-08-25 19:10:01149 "//components/google/core/browser",
fsamuelaf5bf6d12015-05-28 16:29:54150 "//components/guest_view/browser",
erikchen332265b2014-11-14 19:59:52151 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25152 "//components/history/core/browser",
153 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01154 "//components/infobars/core",
knn062cdbb2015-06-26 18:18:42155 "//components/invalidation/impl",
gunsch1afc65172014-09-16 00:03:32156 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34157 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06158 "//components/metrics:profiler",
blundell218124c22015-10-15 10:36:35159 "//components/metrics:profiler_content",
blundell8e66adc2015-10-12 11:46:12160 "//components/metrics:ui",
agrieved7a71c882015-11-20 19:53:28161 "//components/metrics/proto:proto",
blundell695d61f2015-10-21 11:25:53162 "//components/metrics_services_manager",
rsleevic327b48f82015-04-30 02:03:25163 "//components/mime_util",
[email protected]fca567b2014-07-02 17:37:34164 "//components/navigation_metrics",
bnc210d6f32016-05-24 07:40:47165 "//components/network_session_configurator",
Brett Wilson1c693992014-08-25 19:10:01166 "//components/network_time",
agrieved7a71c882015-11-20 19:53:28167 "//components/ntp_snippets",
sfiera0dc4da512016-04-29 09:23:05168 "//components/ntp_tiles",
fgorskife7b92f2015-06-15 19:19:40169 "//components/offline_pages",
petewil0b4d3662016-05-02 18:44:43170 "//components/offline_pages/background:background_offliner",
blundell2102f7c2015-07-09 10:00:53171 "//components/omnibox/browser",
[email protected]fca567b2014-07-02 17:37:34172 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00173 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01174 "//components/password_manager/core/browser",
175 "//components/password_manager/core/common",
dgozmane5a3e252016-03-22 21:45:08176 "//components/policy",
[email protected]fca567b2014-07-02 17:37:34177 "//components/policy:policy_component",
dgozmane5a3e252016-03-22 21:45:08178 "//components/policy/proto",
stevenjbb237e2ae2015-07-02 22:02:11179 "//components/proxy_config",
[email protected]fca567b2014-07-02 17:37:34180 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37181 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01182 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40183 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01184 "//components/search_engines",
185 "//components/search_provider_logos",
felt20e0f2002015-07-31 15:27:36186 "//components/security_interstitials/core",
estarkd9e54fb2016-01-11 19:37:12187 "//components/security_state",
[email protected]abd4b682014-07-16 20:26:30188 "//components/signin/core/browser",
felt2493b4452015-09-17 20:33:59189 "//components/ssl_errors",
sammc335844522016-06-09 10:15:59190 "//components/startup_metric_utils/browser:host",
fdoray443bd112015-11-16 20:44:23191 "//components/startup_metric_utils/browser:lib",
fdoray343068c42016-02-03 15:45:58192
193 # TODO(fdoray): Remove this once the PreRead field trial has expired.
194 # crbug.com/577698
195 "//components/startup_metric_utils/common",
[email protected]797b25042014-07-01 23:54:17196 "//components/strings",
engedy9ae04242016-06-08 13:31:18197 "//components/subresource_filter/core/browser",
mathp60143a32014-10-08 14:52:45198 "//components/suggestions",
aberentc987fed2016-03-18 18:17:47199 "//components/supervised_user_error_page",
blundellc759b682015-10-08 15:50:59200 "//components/sync_bookmarks",
Brett Wilson1c693992014-08-25 19:10:01201 "//components/sync_driver",
skym6b9887e2015-10-09 22:10:47202 "//components/sync_sessions",
zhenwecedcf22015-08-18 23:37:46203 "//components/tracing:startup_tracing",
[email protected]b9f4c682014-07-10 22:00:37204 "//components/translate/core/browser",
205 "//components/translate/core/common",
sdefresnec083d1f2015-04-17 21:12:18206 "//components/undo",
sorin39eab2f2015-01-06 01:09:08207 "//components/update_client",
rsleevi24f64dc22015-08-07 21:39:21208 "//components/url_formatter",
[email protected]fca567b2014-07-02 17:37:34209 "//components/user_prefs",
jitendra.ks94c0b962015-08-10 08:24:09210 "//components/user_prefs/tracked:user_prefs_tracked",
isherman3be67db2014-10-24 05:57:44211 "//components/variations",
212 "//components/variations/net",
blundellb50ad702015-08-27 17:08:29213 "//components/variations/service",
agrieved7a71c882015-11-20 19:53:28214 "//components/web_resource",
[email protected]bf4545f2014-07-11 19:49:46215 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56216 "//components/webdata_services",
juncaia64f769c22016-06-04 00:55:32217 "//components/zoom",
[email protected]dffd8a912014-06-30 23:24:31218 "//content/public/browser",
219 "//content/public/common",
hbos18f58912016-03-08 14:26:35220 "//content/public/common:feature_h264_with_openh264_ffmpeg",
221 "//content/public/common:features",
[email protected]604828c2014-07-02 20:39:12222 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31223 "//crypto",
davidben45eb19952016-05-05 16:30:44224 "//crypto:platform",
[email protected]604828c2014-07-02 20:39:12225 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56226 "//gpu/config",
[email protected]dffd8a912014-06-30 23:24:31227 "//skia",
228 "//sql",
229 "//sync",
[email protected]797b25042014-07-01 23:54:17230 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31231 "//third_party/icu",
ajwongf7b1cb692014-08-23 21:36:22232 "//third_party/libjingle",
agrieved7a71c882015-11-20 19:53:28233 "//third_party/libxml",
[email protected]dffd8a912014-06-30 23:24:31234 "//third_party/widevine/cdm:version_h",
235 "//third_party/zlib",
hajimehoshi1e1cc1a2016-01-14 19:09:00236 "//third_party/zlib:compression_utils",
[email protected]dffd8a912014-06-30 23:24:31237 "//third_party/zlib:minizip",
238 "//third_party/zlib:zip",
239 "//ui/base",
sdefresnec6574a552016-02-08 16:58:21240 "//ui/base:ui_data_pack",
cjhopman09981a92014-10-27 17:11:18241 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31242 "//ui/gfx",
243 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36244 "//ui/message_center",
agrieved7a71c882015-11-20 19:53:28245 "//ui/resources",
[email protected]a1d7d4f2014-07-16 21:33:36246 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31247 "//ui/strings",
[email protected]dffd8a912014-06-30 23:24:31248 ]
bencccedf12015-11-10 07:56:16249 data_deps = []
[email protected]dffd8a912014-06-30 23:24:31250
scottmga266f952014-12-03 20:47:10251 sources +=
252 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00253
[email protected]dffd8a912014-06-30 23:24:31254 if (!is_ios) {
scottmga266f952014-12-03 20:47:10255 sources +=
256 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59257 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10258 ".",
259 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59260 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10261 ".",
262 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18263 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
264 ".",
265 "//chrome")
266 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
267 ".",
268 "//chrome")
sclittlea133de02015-11-10 23:54:21269 sources += rebase_path(gypi_values.chrome_browser_data_usage_sources,
270 ".",
271 "//chrome")
benwellsedf5e082015-04-23 02:45:14272 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
273 ".",
274 "//chrome")
scottmga266f952014-12-03 20:47:10275 sources +=
276 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
277 sources +=
278 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
279 sources +=
280 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
281 sources +=
282 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
283 sources +=
284 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59285 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10286 ".",
287 "//chrome")
mlamouri4e372022015-03-29 14:51:06288 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
289 ".",
290 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59291 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10292 ".",
293 "//chrome")
294 sources +=
295 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59296 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10297 ".",
298 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59299 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10300 ".",
301 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59302 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10303 ".",
304 "//chrome")
305 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18306 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
307 sources +=
scottmga266f952014-12-03 20:47:10308 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
309 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18310 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
311 sources +=
scottmga266f952014-12-03 20:47:10312 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
sievers2f1e8112015-12-04 18:43:56313 if (android_java_ui) {
314 sources +=
315 rebase_path(gypi_values.chrome_browser_sync_android_java_ui_sources,
316 ".",
317 "//chrome")
318 sources +=
319 rebase_path(gypi_values.chrome_browser_ssl_android_java_ui_sources,
320 ".",
321 "//chrome")
322 sources += rebase_path(
323 gypi_values.chrome_browser_history_android_java_ui_sources,
324 ".",
325 "//chrome")
326 sources += rebase_path(
327 gypi_values.chrome_browser_permissions_android_java_ui_sources,
328 ".",
329 "//chrome")
330 sources += rebase_path(
331 gypi_values.chrome_browser_search_engines_android_java_ui_sources,
332 ".",
333 "//chrome")
334 if (enable_supervised_users) {
335 sources += rebase_path(
336 gypi_values.chrome_browser_supervised_user_android_java_ui_sources,
337 ".",
338 "//chrome")
339 }
340 }
scottmga266f952014-12-03 20:47:10341
[email protected]dffd8a912014-06-30 23:24:31342 deps += [
343 "//cc",
brettwca934582015-02-24 21:50:27344 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30345 "//chrome/browser/devtools",
sdefresnea213ceb2015-10-05 09:23:39346 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
brettwca934582015-02-24 21:50:27347 "//chrome/browser/resources:component_extension_resources",
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",
lazyboy14082d22015-04-02 01:04:58353 "//components/browsing_data",
donndbda9b6f432015-12-10 20:39:05354 "//components/contextual_search:browser",
jeremyim364ac1182015-03-03 18:49:43355 "//components/data_reduction_proxy/content/browser",
amohammadkhan092adb22015-09-11 21:08:49356 "//components/data_use_measurement/content",
dgozmanec2b982a2015-04-28 10:36:39357 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46358 "//components/devtools_http_handler",
brettw15764b12015-11-30 22:11:05359 "//components/dom_distiller/content/browser",
tfarina041134472015-09-02 15:29:38360 "//components/error_page/common",
sdefresne001b10de2015-03-20 18:41:46361 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04362 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34363 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30364 "//components/navigation_interception",
drogerc690e8802015-09-21 14:29:16365 "//components/net_log",
tfarina041134472015-09-02 15:29:38366 "//components/network_hints/common",
[email protected]55699f392014-08-20 22:16:30367 "//components/password_manager/content/browser",
vabr5410d0b2015-08-07 11:02:04368 "//components/password_manager/sync/browser",
droger78da6542015-11-02 11:25:59369 "//components/profile_metrics",
abhishek.a2171c612852015-08-31 10:48:19370 "//components/proxy_config",
droger2a6ab542015-10-09 16:10:28371 "//components/resources",
vakh9d5888022015-10-29 21:04:07372 "//components/safe_browsing_db",
bauerbf0e64aa2015-06-25 15:54:07373 "//components/safe_json",
brettwa22cb3b2015-04-30 20:23:12374 "//components/sessions",
abhishek.a212849cee2015-10-20 11:27:29375 "//components/ssl_config",
[email protected]abd4b682014-07-16 20:26:30376 "//components/storage_monitor",
engedy9ae04242016-06-08 13:31:18377 "//components/subresource_filter/content/browser",
sdefresne875d0782015-09-16 12:01:28378 "//components/syncable_prefs",
[email protected]b9f4c682014-07-10 22:00:37379 "//components/translate/content/browser",
sdefresne44eb1f22015-08-06 08:51:55380 "//components/upload_list",
[email protected]fca567b2014-07-02 17:37:34381 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31382 "//components/visitedlink/browser",
383 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18384 "//components/web_cache/browser",
reillygcf1af632015-11-18 16:42:58385 "//components/webusb",
[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" ]
[email protected]cc5b3be2014-08-15 23:24:52462 deps += [
[email protected]cc5b3be2014-08-15 23:24:52463 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30464 "//chrome/common/extensions/api",
465 "//chrome/common/extensions/api:api_registration",
lukasza8acc4eb2015-07-20 20:57:20466 "//components/drive:drive",
msarda4c408ff2015-04-22 14:27:56467 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44468 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50469 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06470 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52471 ]
[email protected]dffd8a912014-06-30 23:24:31472 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10473 ".",
474 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31475 }
476 if (enable_background) {
477 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10478 ".",
479 "//chrome")
jamesr29ea2d122014-10-23 10:30:27480 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31481 sources -= [ "background/background_mode_manager_aura.cc" ]
482 }
483 }
484 if (enable_task_manager) {
485 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10486 ".",
487 "//chrome")
nya268de1c72015-12-16 05:07:40488 if (is_chromeos) {
489 sources +=
490 rebase_path(gypi_values.chrome_browser_task_manager_chromeos_sources,
491 ".",
492 "//chrome")
493 }
afakhry174069722016-05-24 19:16:16494
495 if (is_mac && !mac_views_browser) {
496 sources +=
497 rebase_path(gypi_values.chrome_browser_old_task_manager_cocoa_sources,
498 ".",
499 "//chrome")
500 }
[email protected]dffd8a912014-06-30 23:24:31501 }
502 if (enable_spellcheck) {
503 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10504 ".",
505 "//chrome")
dylanking34c72442015-07-23 23:19:58506 if (!is_android) {
507 deps += [ "//third_party/hunspell" ]
508 }
[email protected]dffd8a912014-06-30 23:24:31509 }
510 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10511 sources +=
512 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
brettwf4b4a4282015-12-16 00:41:13513 deps += [ "//components/nacl/browser" ]
[email protected]dffd8a912014-06-30 23:24:31514 }
apavlove749bca2014-09-30 11:07:41515
[email protected]dffd8a912014-06-30 23:24:31516 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10517 sources +=
518 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31519 deps += [
James Robinson2ed4d692014-09-17 05:20:58520 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31521 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14522 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31523 ]
524 }
525 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10526 sources +=
stuartmorgan1b3df822014-12-08 14:36:11527 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10528 ".",
529 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31530 deps += [
[email protected]fca567b2014-07-02 17:37:34531 "//chrome/browser/safe_browsing:chunk_proto",
jialiuleed304432015-11-09 20:17:03532 "//chrome/common/safe_browsing:proto",
vakh27f7e222016-02-02 23:45:34533 "//components/safe_browsing_db:metadata_proto",
[email protected]dffd8a912014-06-30 23:24:31534 ]
535 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10536 sources +=
stuartmorgan1b3df822014-12-08 14:36:11537 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10538 ".",
539 "//chrome")
grtc1d1b752015-09-05 13:26:41540 if (is_win) {
541 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto" ]
542 }
nparker00a64f12015-10-16 17:34:30543 } else if (safe_browsing_mode == 2) {
544 sources +=
545 rebase_path(gypi_values.chrome_browser_safe_browsing_mobile_sources,
546 ".",
547 "//chrome")
vakh27f7e222016-02-02 23:45:34548 deps += [ "//components/safe_browsing_db:safe_browsing_db_mobile" ]
[email protected]dffd8a912014-06-30 23:24:31549 }
550 }
551
amistryf269d3b2015-06-09 19:18:39552 if (enable_hotwording) {
553 defines += [ "ENABLE_HOTWORDING" ]
554 }
555
[email protected]dffd8a912014-06-30 23:24:31556 if (is_linux) {
mostynbea514682015-08-18 22:08:56557 deps += [ "//device/media_transfer_protocol" ]
[email protected]dffd8a912014-06-30 23:24:31558 }
mostynbea514682015-08-18 22:08:56559
560 if (use_udev) {
561 deps += [ "//device/udev_linux" ]
562 }
563
[email protected]dffd8a912014-06-30 23:24:31564 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47565 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31566 }
567
568 if (is_chromeos) {
569 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10570 ".",
571 "//chrome")
572 deps += [ "//chrome/browser/chromeos" ]
dgozmane5a3e252016-03-22 21:45:08573 } else { # Non-ChromeOS.
574 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
575 ".",
576 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31577 }
578
mukai8c99b882014-10-15 03:07:59579 if (is_chromeos || is_ios) {
580 sources -= [
blundell296904a2015-10-13 12:30:48581 "signin/chrome_signin_status_metrics_provider_delegate.cc",
582 "signin/chrome_signin_status_metrics_provider_delegate.h",
mukai8c99b882014-10-15 03:07:59583 ]
584 }
585
sque82e4d1552016-02-26 22:47:19586 if (is_chromeos) {
587 sources += [
squeefd3f47e2016-06-08 20:04:53588 "metrics/leak_detector/leak_detector_controller.cc",
589 "metrics/leak_detector/leak_detector_controller.h",
sque82e4d1552016-02-26 22:47:19590 ]
sque60265ec82016-06-11 02:32:32591 public_deps += [ "//components/metrics:leak_detector" ]
sque82e4d1552016-02-26 22:47:19592 }
593
[email protected]dffd8a912014-06-30 23:24:31594 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12595 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31596 }
597 if (is_desktop_linux) {
598 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10599 ".",
600 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49601 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31602 }
dvadym34532022015-01-22 15:42:51603 if (is_desktop_linux) {
604 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
605 ".",
606 "//chrome")
607 defines += [ "USE_LIBSECRET" ]
cfroussios7267be82016-04-27 13:58:52608 deps += [ "//third_party/libsecret" ]
dvadym34532022015-01-22 15:42:51609 }
[email protected]dffd8a912014-06-30 23:24:31610 if (use_aura) {
scottmga266f952014-12-03 20:47:10611 sources +=
612 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
ben0cc0be92015-11-09 21:49:06613
614 # These files are only built in a GN build because they bring in
615 # dependencies that don't build with GYP.
616 sources += [
bencccedf12015-11-10 07:56:16617 "ui/views/frame/browser_frame_mus.cc",
618 "ui/views/frame/browser_frame_mus.h",
skyab2410c52015-12-03 03:40:56619 "ui/views/frame/browser_non_client_frame_view_mus.cc",
620 "ui/views/frame/browser_non_client_frame_view_mus.h",
ben0cc0be92015-11-09 21:49:06621 ]
[email protected]dffd8a912014-06-30 23:24:31622 deps += [
skyab2410c52015-12-03 03:40:56623 "//components/mus/public/cpp",
kylechar523bf0e2016-06-20 19:17:05624 "//components/mus/public/cpp/input_devices",
ben03b7b9d2015-11-15 12:13:09625 "//content/public/common",
[email protected]fca567b2014-07-02 17:37:34626 "//ui/aura",
627 "//ui/compositor",
rockotb9e3b772016-06-10 21:34:16628 "//ui/views/mus",
[email protected]dffd8a912014-06-30 23:24:31629 ]
ben03b7b9d2015-11-15 12:13:09630 defines += [ "MOJO_SHELL_CLIENT" ]
sky002ba4a2016-06-03 00:56:11631 data_deps += [ "//ash/mus" ]
[email protected]dffd8a912014-06-30 23:24:31632 }
633 if (ui_compositor_image_transport) {
634 deps += [ "//ui/gl" ]
635 }
636
[email protected]855b7de2014-07-08 21:02:45637 if (use_ash) {
scottmga266f952014-12-03 20:47:10638 sources +=
639 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45640 }
641
[email protected]dffd8a912014-06-30 23:24:31642 if (use_x11) {
scottmga266f952014-12-03 20:47:10643 sources +=
644 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23645 } else {
646 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31647 }
Scott Grahamcae6b0e2015-12-04 03:23:29648 if (is_posix && !is_mac && !is_ios) {
[email protected]dffd8a912014-06-30 23:24:31649 sources += [
rseseka0a7a042014-09-18 23:59:20650 "//chrome/app/chrome_crash_reporter_client.cc",
651 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31652 ]
653 deps += [
sdefresne8ba0b88c2015-09-18 10:33:13654 "//components/crash/content/app",
655 "//components/crash/content/browser",
blundellf1cfb032015-11-16 18:22:30656 "//components/version_info:generate_version_info",
[email protected]dffd8a912014-06-30 23:24:31657 ]
658 }
659 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10660 sources +=
661 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59662 if (is_chromeos) {
663 sources -= [ "net/nss_context_linux.cc" ]
664 }
[email protected]dffd8a912014-06-30 23:24:31665 }
666 if (enable_notifications) {
667 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10668 ".",
669 "//chrome")
sievers2f1e8112015-12-04 18:43:56670 if (android_java_ui) {
671 sources += rebase_path(
672 gypi_values.chrome_browser_notifications_android_java_ui_sources,
673 ".",
674 "//chrome")
estade6d95d1d2015-10-02 18:55:23675 } else {
[email protected]dffd8a912014-06-30 23:24:31676 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11677 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10678 ".",
679 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31680 }
miguelg38ca936a2016-06-21 12:26:57681 if (is_mac) {
682 deps += [ "//chrome/browser/ui/cocoa/notifications:common" ]
683 }
[email protected]dffd8a912014-06-30 23:24:31684 }
685 if (enable_themes) {
scottmga266f952014-12-03 20:47:10686 sources +=
687 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31688 }
689
vitalybuka93eea402014-11-05 23:47:15690 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31691 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11692 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10693 ".",
694 "//chrome")
spang5cc72542015-08-04 19:47:11695 deps += [
brettwd649f6b2015-08-18 20:58:51696 "//components/printing/browser",
agrieved7a71c882015-11-20 19:53:28697 "//printing",
spang5cc72542015-08-04 19:47:11698 ]
699
vitalybuka36259ca2014-08-28 23:42:24700 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31701 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10702 ".",
703 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31704 }
vitalybuka93eea402014-11-05 23:47:15705 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31706 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11707 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10708 ".",
709 "//chrome")
vitalybuka93eea402014-11-05 23:47:15710 } else {
[email protected]dffd8a912014-06-30 23:24:31711 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10712 sources +=
stuartmorgan1b3df822014-12-08 14:36:11713 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10714 ".",
715 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31716 }
717 }
718 if (enable_captive_portal_detection) {
719 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10720 ".",
721 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31722 }
723 if (enable_session_service) {
724 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10725 ".",
726 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31727 }
728
thestigdc377202014-10-28 22:06:02729 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10730 sources +=
731 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02732 }
733
[email protected]dffd8a912014-06-30 23:24:31734 if (is_android || is_ios) {
735 # Mobile.
scottmga266f952014-12-03 20:47:10736 sources +=
737 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31738 } else {
739 # Non-mobile.
thestigf2cc0832016-04-12 19:30:27740 deps += [
741 "//apps",
742 "//chrome/browser/policy:path_parser",
743 "//chrome/browser/profile_resetter:profile_reset_report_proto",
744 "//components/feedback",
745 "//components/web_modal",
746 "//net:net_browser_services",
747 ]
[email protected]dffd8a912014-06-30 23:24:31748 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10749 ".",
750 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31751 }
752
mathp17e1eba2015-10-06 21:50:59753 if (!is_chrome_branded) {
fserb1c2db4c2015-07-16 17:14:49754 sources += [
755 "search/local_files_ntp_source.cc",
756 "search/local_files_ntp_source.h",
757 ]
758 }
759
[email protected]dffd8a912014-06-30 23:24:31760 if (is_android) {
scottmga266f952014-12-03 20:47:10761 sources +=
762 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
sievers2f1e8112015-12-04 18:43:56763 }
764
765 if (android_java_ui) {
766 sources += rebase_path(gypi_values.chrome_browser_android_java_ui_sources,
767 ".",
768 "//chrome")
fgorski1d4c9c92015-12-17 20:39:32769 sources += rebase_path(gypi_values.chrome_browser_offline_pages_sources,
twellingtoncaf0eb752015-06-01 16:19:50770 ".",
771 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31772 deps += [
pkotwicz127726f2015-05-29 15:20:12773 ":client_discourse_context_proto",
774 ":delta_file_proto",
James Robinson2ed4d692014-09-17 05:20:58775 ":jni_headers",
sclittlec441f782015-11-12 01:12:09776 "//components/data_usage/android",
twifkak8c9f7502015-06-25 02:12:57777 "//components/precache/content",
778 "//components/precache/core",
estadee37f8222014-11-07 21:35:22779 "//components/resources:components_resources",
mathiash3ecfdfa2015-04-13 15:06:07780 "//components/service_tab_launcher",
blundell11d93bc2015-07-31 12:33:12781 "//components/toolbar",
cjhopman09981a92014-10-27 17:11:18782 "//components/web_contents_delegate_android",
sievers2f1e8112015-12-04 18:43:56783 ]
sievers2f1e8112015-12-04 18:43:56784 }
785
786 if (is_android) {
787 deps += [
788 "//components/cdm/browser",
789 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18790 "//third_party/android_opengl/etc1",
fdegans34f31e272015-05-22 16:59:03791 "//third_party/android_tools:cpu_features",
twellington0bc61492015-01-30 20:14:13792 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31793 ]
sievers2f1e8112015-12-04 18:43:56794
[email protected]dffd8a912014-06-30 23:24:31795 deps -= [
[email protected]abd4b682014-07-16 20:26:30796 "//components/storage_monitor",
agrieved7a71c882015-11-20 19:53:28797 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31798 ]
rseseke59ea892015-03-19 22:27:44799
800 if (use_seccomp_bpf) {
801 defines += [ "USE_SECCOMP_BPF" ]
rsesek65d31352015-06-08 22:53:44802 deps += [ "//sandbox/linux:seccomp_bpf" ]
rseseke59ea892015-03-19 22:27:44803 }
[email protected]dffd8a912014-06-30 23:24:31804 }
805
806 if (is_mac) {
807 deps += [
[email protected]6b5d2f92014-07-30 00:40:03808 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03809 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31810 ]
811 libs += [
812 "Accelerate.framework",
813 "AddressBook.framework",
814 "AudioUnit.framework",
815 "DiskArbitration.framework",
816 "IOKit.framework",
817 "ImageCaptureCore.framework",
818 "OpenGL.framework",
819 "QuartzCore.framework",
820 "SecurityInterface.framework",
821 ]
822 }
823
824 if (enable_rlz) {
sdefresned967d552015-07-16 08:34:35825 deps += [ ":rlz" ]
[email protected]dffd8a912014-06-30 23:24:31826 }
827
[email protected]dffd8a912014-06-30 23:24:31828 if (is_win) {
scottmga266f952014-12-03 20:47:10829 sources +=
830 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
Brett Wilsone53895272014-09-23 23:41:46831 public_deps += [
832 "//ui/views",
833 "//ui/views/controls/webview",
834 ]
[email protected]dffd8a912014-06-30 23:24:31835 deps += [
vchigrin9593e7a2015-01-27 10:08:19836 ":chrome_process_finder",
gab7c45cfd2016-04-15 19:17:07837 "//chrome:file_pre_reader",
pmonette502a83e2016-01-08 00:21:16838 "//chrome/chrome_watcher:client",
gab7c45cfd2016-04-15 19:17:07839 "//chrome/common:metrics_constants_util_win",
mdempsky15a48be2015-10-21 23:37:53840 "//chrome/common:version_header",
[email protected]55699f392014-08-20 22:16:30841 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19842 "//chrome_elf",
843 "//chrome_elf:constants",
844 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32845 "//components/browser_watcher",
846 "//components/browser_watcher:browser_watcher_client",
fdorayc295b762016-01-19 18:49:23847 "//components/startup_metric_utils/common",
vchigrinbbc23e72015-01-21 22:49:23848 "//google_update",
[email protected]55699f392014-08-20 22:16:30849 "//third_party/iaccessible2",
850 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31851 "//third_party/wtl",
[email protected]dffd8a912014-06-30 23:24:31852 ]
mmenkede134672015-08-18 01:33:39853
854 all_dependent_configs = [ ":browser_win_linker_flags" ]
855
grt235b3f092015-05-27 21:42:48856 if (!is_chrome_branded) {
857 deps -= [ "//google_update" ]
858 sources -= [
859 "google/did_run_updater_win.cc",
860 "google/did_run_updater_win.h",
861 "google/google_update_win.cc",
862 "google/google_update_win.h",
863 ]
864 }
[email protected]dffd8a912014-06-30 23:24:31865 } else {
866 # Non-Windows.
scottmga266f952014-12-03 20:47:10867 sources +=
868 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37869 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31870 deps += [
scottmga266f952014-12-03 20:47:10871 "//ui/views",
872 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31873 ]
[email protected]dffd8a912014-06-30 23:24:31874 }
875 }
876
877 if (is_linux) {
[email protected]dffd8a912014-06-30 23:24:31878 if (use_aura) {
mbjorgea12e5a52016-05-31 22:15:17879 deps += [ "//build/linux:fontconfig" ]
880 if (use_dbus) {
881 deps += [ "//dbus" ]
882 }
[email protected]dffd8a912014-06-30 23:24:31883 }
884 if (use_x11) {
885 configs += [ "//build/config/linux:x11" ]
886 deps += [ "//ui/gfx/x" ]
887 }
888 }
889
rouslane59900a2016-02-17 19:45:43890 if (is_linux || is_win) {
891 sources += rebase_path(gypi_values.chrome_browser_non_mac_desktop_sources,
892 ".",
893 "//chrome")
894 }
895
[email protected]dffd8a912014-06-30 23:24:31896 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54897 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10898 ".",
899 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31900 }
901 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10902 sources +=
903 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
904 ".",
905 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31906 }
907 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10908 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31909 }
treib87bb89cbb2014-12-01 16:01:47910 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10911 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
912 ".",
913 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31914 }
bauerb7f3b8542015-06-29 19:56:19915 if (enable_supervised_users && !is_android && !is_ios) {
916 sources +=
917 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
918 ".",
919 "//chrome")
920 }
treib87bb89cbb2014-12-01 16:01:47921 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59922 sources += rebase_path(
scottmga266f952014-12-03 20:47:10923 gypi_values.chrome_browser_supervised_user_and_themes_sources,
924 ".",
925 "//chrome")
thestig169a6362014-11-13 20:47:59926 }
[email protected]dffd8a912014-06-30 23:24:31927 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10928 sources +=
929 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31930 }
931 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10932 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
933 ".",
934 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31935 }
936 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10937 sources +=
938 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31939 }
estadee62c2a42016-05-05 16:27:29940 if (is_android || is_ios) {
[email protected]dffd8a912014-06-30 23:24:31941 sources -= [
942 "autofill/validation_rules_storage_factory.cc",
943 "autofill/validation_rules_storage_factory.h",
944 ]
945 }
mfoltz150bb8b2015-04-09 22:30:05946 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55947 deps += [ "//chrome/browser/media/router" ]
mfoltz150bb8b2015-04-09 22:30:05948 }
xhwang5e630462015-10-30 03:18:48949
xhwangc86d76e42016-03-14 23:38:49950 if (enable_mojo_media) {
xhwangbe720032016-02-19 18:45:31951 configs += [ "//media/mojo/services:mojo_media_config" ]
xhwangc86d76e42016-03-14 23:38:49952 sources += [
953 "media/output_protection_impl.cc",
954 "media/output_protection_impl.h",
955 ]
956 deps += [ "//media/mojo/interfaces" ]
957 if (mojo_media_host == "browser") {
xhwangd3b5d3f2016-05-18 03:37:59958 deps += [ "//media/mojo/services" ]
xhwangc86d76e42016-03-14 23:38:49959 }
xhwang5e630462015-10-30 03:18:48960 }
revemanb195f41d2015-11-19 22:16:48961
962 if (enable_wayland_server) {
963 deps += [
964 "//components/exo",
965 "//components/exo/wayland",
966 ]
967 sources += [
968 "chrome_browser_main_extra_parts_exo.cc",
969 "chrome_browser_main_extra_parts_exo.h",
970 ]
971 }
[email protected]dffd8a912014-06-30 23:24:31972}
973
sievers2f1e8112015-12-04 18:43:56974if (android_java_ui) {
James Robinson2ed4d692014-09-17 05:20:58975 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
976 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10977 sources =
978 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58979 jni_package = "chrome"
980 }
pkotwicz127726f2015-05-29 15:20:12981
982 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
983 proto_library("client_discourse_context_proto") {
984 sources = [
985 "android/proto/client_discourse_context.proto",
986 ]
987 }
988
989 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
990 proto_library("delta_file_proto") {
991 sources = [
992 "android/proto/delta_file.proto",
993 ]
994 }
James Robinson2ed4d692014-09-17 05:20:58995}
996
vchigrin9593e7a2015-01-27 10:08:19997if (is_win) {
998 source_set("chrome_process_finder") {
999 sources = [
pmonette23c8fb7e2016-06-27 20:45:111000 "win/chrome_process_finder.cc",
1001 "win/chrome_process_finder.h",
vchigrin9593e7a2015-01-27 10:08:191002 ]
1003 deps = [
1004 "//base",
vchigrin9593e7a2015-01-27 10:08:191005 "//chrome/common:constants",
1006 ]
1007 if (enable_configuration_policy) {
1008 deps += [ "//chrome/browser/policy:path_parser" ]
1009 }
1010 }
1011}
1012
[email protected]77ce8022014-06-16 19:29:561013# GYP version: chrome/chrome_resources.gyp:chrome_resources
1014# (generate_browser_resources action)
1015grit("resources") {
1016 source = "browser_resources.grd"
brettw06c2ba32015-11-26 09:21:251017 defines = chrome_grit_defines
[email protected]48885492014-08-13 11:22:411018 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:261019 outputs = [
1020 "grit/browser_resources.h",
1021 "browser_resources.pak",
1022 ]
[email protected]77ce8022014-06-16 19:29:561023
[email protected]77ce8022014-06-16 19:29:561024 grit_flags = [
scottmga266f952014-12-03 20:47:101025 "-E",
scottmga266f952014-12-03 20:47:101026 "additional_modules_list_file=" +
1027 rebase_path(additional_modules_list_file, root_build_dir),
1028 "-E",
calamityd59c1032015-09-22 06:35:531029 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
[email protected]77ce8022014-06-16 19:29:561030 ]
1031
1032 deps = [
[email protected]77ce8022014-06-16 19:29:561033 ":chrome_internal_resources_gen",
nparker38c5a5c2016-04-25 23:34:241034 "//chrome/browser/resources/safe_browsing:make_file_types_protobuf",
brettwde262b02015-05-27 19:41:421035
1036 # Depend only on the generated mojo bindings since we read the .mojom.js
1037 # file, rather than the whole mojo target which will link the C++ bindings.
calamityd59c1032015-09-22 06:35:531038 "//chrome/browser/ui/webui/engagement:mojo_bindings__generator",
brettwde262b02015-05-27 19:41:421039 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
dpapad59e3ad42016-02-02 21:58:061040 "//chrome/browser/ui/webui/plugins:mojo_bindings__generator",
sammcf6f4fcf2016-06-21 05:39:391041 "//url/mojo:url_mojom_gurl__generator",
vchigrin8eede942015-01-29 09:28:151042 ]
[email protected]77ce8022014-06-16 19:29:561043}
1044
[email protected]77ce8022014-06-16 19:29:561045# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:411046if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:561047 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:411048 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:101049 sources = [
1050 "internal/resources/additional_modules_list.input",
1051 ]
1052 outputs = [
1053 additional_modules_list_file,
1054 ]
engedy99d0e11b2014-09-30 13:32:411055 args = rebase_path(sources, root_build_dir) +
1056 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:561057 }
1058} else {
1059 group("chrome_internal_resources_gen") {
1060 # Empty placeholder.
1061 }
1062}
Brett Wilson052ce132014-09-12 19:46:291063
1064# In GYP this is part of test_support_common.
brettw022f8f32016-06-14 01:22:391065#
1066# Use a static library here because many test binaries depend on this but don't
1067# require many files from it. This makes linking more efficient.
1068static_library("test_support") {
Brett Wilson052ce132014-09-12 19:46:291069 testonly = true
1070
1071 # Always include this via the main test support target.
1072 visibility = [ "//chrome/test:test_support" ]
1073
1074 sources = [
1075 "browsing_data/mock_browsing_data_appcache_helper.cc",
1076 "browsing_data/mock_browsing_data_appcache_helper.h",
jsbelle1fe9692015-08-22 01:02:421077 "browsing_data/mock_browsing_data_cache_storage_helper.cc",
1078 "browsing_data/mock_browsing_data_cache_storage_helper.h",
Brett Wilson052ce132014-09-12 19:46:291079 "browsing_data/mock_browsing_data_channel_id_helper.cc",
1080 "browsing_data/mock_browsing_data_channel_id_helper.h",
1081 "browsing_data/mock_browsing_data_cookie_helper.cc",
1082 "browsing_data/mock_browsing_data_cookie_helper.h",
1083 "browsing_data/mock_browsing_data_database_helper.cc",
1084 "browsing_data/mock_browsing_data_database_helper.h",
1085 "browsing_data/mock_browsing_data_file_system_helper.cc",
1086 "browsing_data/mock_browsing_data_file_system_helper.h",
1087 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
1088 "browsing_data/mock_browsing_data_flash_lso_helper.h",
1089 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
1090 "browsing_data/mock_browsing_data_indexed_db_helper.h",
1091 "browsing_data/mock_browsing_data_local_storage_helper.cc",
1092 "browsing_data/mock_browsing_data_local_storage_helper.h",
1093 "browsing_data/mock_browsing_data_quota_helper.cc",
1094 "browsing_data/mock_browsing_data_quota_helper.h",
1095 "browsing_data/mock_browsing_data_service_worker_helper.cc",
1096 "browsing_data/mock_browsing_data_service_worker_helper.h",
1097 "download/download_test_file_activity_observer.cc",
1098 "download/download_test_file_activity_observer.h",
1099 "download/test_download_shelf.cc",
1100 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:291101 "media/fake_desktop_media_list.cc",
1102 "media/fake_desktop_media_list.h",
1103 "net/dns_probe_test_util.cc",
1104 "net/dns_probe_test_util.h",
1105 "net/url_request_mock_util.cc",
1106 "net/url_request_mock_util.h",
1107 "notifications/notification_test_util.cc",
1108 "notifications/notification_test_util.h",
miguelg884b3ec2016-04-26 09:51:521109 "notifications/stub_notification_platform_bridge.cc",
1110 "notifications/stub_notification_platform_bridge.h",
Brett Wilson052ce132014-09-12 19:46:291111 "profile_resetter/profile_resetter_test_base.cc",
1112 "profile_resetter/profile_resetter_test_base.h",
1113 "search_engines/template_url_service_factory_test_util.cc",
1114 "search_engines/template_url_service_factory_test_util.h",
1115 "search_engines/template_url_service_test_util.cc",
1116 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:451117 "sessions/session_restore_test_helper.cc",
1118 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291119 "sessions/session_service_test_helper.cc",
1120 "sessions/session_service_test_helper.h",
knn523bd722015-07-30 16:27:091121 "signin/fake_account_fetcher_service_builder.cc",
1122 "signin/fake_account_fetcher_service_builder.h",
zeafe5f0ffb2016-06-16 22:04:061123 "signin/fake_gaia_cookie_manager_service_builder.cc",
1124 "signin/fake_gaia_cookie_manager_service_builder.h",
Brett Wilson052ce132014-09-12 19:46:291125 "signin/fake_profile_oauth2_token_service_builder.cc",
1126 "signin/fake_profile_oauth2_token_service_builder.h",
droger4f489e62015-07-24 19:27:591127 "signin/fake_signin_manager_builder.cc",
1128 "signin/fake_signin_manager_builder.h",
Brett Wilson052ce132014-09-12 19:46:291129 "ssl/ssl_client_auth_requestor_mock.cc",
1130 "ssl/ssl_client_auth_requestor_mock.h",
maxbogued2ea9242015-10-29 01:24:521131 "sync/profile_sync_test_util.cc",
1132 "sync/profile_sync_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291133 ]
1134
brettwbc8b2a22015-07-28 18:24:421135 configs += [ "//build/config:precompiled_headers" ]
1136
Brett Wilsone53895272014-09-23 23:41:461137 public_deps = [
Brett Wilson052ce132014-09-12 19:46:291138 ":browser",
Brett Wilsone53895272014-09-23 23:41:461139 "//chrome/browser/ui:test_support",
1140 ]
1141 deps = [
agrieved7a71c882015-11-20 19:53:281142 "//chrome/app/theme:theme_resources",
Brett Wilson052ce132014-09-12 19:46:291143 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:291144 "//chrome/common",
1145 "//chrome/common/safe_browsing:proto",
vabra6fded22015-12-10 09:06:551146 "//components/browser_sync/browser:test_support",
knn062cdbb2015-06-26 18:18:421147 "//components/invalidation/impl",
1148 "//components/invalidation/impl:test_support",
Brett Wilson052ce132014-09-12 19:46:291149 "//components/password_manager/core/browser:test_support",
brettw9f7802a22016-01-30 06:40:171150 "//components/prefs:test_support",
Brett Wilson052ce132014-09-12 19:46:291151 "//components/search_engines:test_support",
engedy9ae04242016-06-08 13:31:181152 "//components/subresource_filter/core/browser:test_support",
sdefresne875d0782015-09-16 12:01:281153 "//components/syncable_prefs:test_support",
jitendra.ks94c0b962015-08-10 08:24:091154 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
carlosk282c4372016-02-02 14:53:491155 "//content/test:browsertest_base",
Brett Wilson052ce132014-09-12 19:46:291156 "//content/test:test_support",
Brett Wilson052ce132014-09-12 19:46:291157 "//net:test_support",
1158 "//skia",
1159 "//testing/gmock",
1160 "//testing/gtest",
1161 "//ui/gfx",
1162 ]
1163
Brett Wilson052ce132014-09-12 19:46:291164 if (!is_ios) {
1165 deps += [
1166 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:291167 "//google_apis:test_support",
1168 ]
1169 }
1170
thestig354985d2015-09-28 20:55:001171 if (is_android) {
1172 sources -= [
thestig259da0b2015-10-07 18:09:081173 "download/test_download_shelf.cc",
1174 "download/test_download_shelf.h",
1175 "profile_resetter/profile_resetter_test_base.cc",
1176 "profile_resetter/profile_resetter_test_base.h",
1177 "sessions/session_restore_test_helper.cc",
1178 "sessions/session_restore_test_helper.h",
thestig354985d2015-09-28 20:55:001179 "sessions/session_service_test_helper.cc",
1180 "sessions/session_service_test_helper.h",
thestig354985d2015-09-28 20:55:001181 ]
1182 }
1183
James Robinson2ed4d692014-09-17 05:20:581184 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:381185 sources += [
1186 "extensions/extension_action_test_util.cc",
1187 "extensions/extension_action_test_util.h",
1188 ]
scottmga266f952014-12-03 20:47:101189 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:581190 }
1191
Brett Wilson052ce132014-09-12 19:46:291192 if (is_chromeos) {
1193 sources += [
1194 "chromeos/app_mode/fake_cws.cc",
1195 "chromeos/app_mode/fake_cws.h",
1196 "chromeos/file_manager/fake_disk_mount_manager.cc",
1197 "chromeos/file_manager/fake_disk_mount_manager.h",
1198 "chromeos/input_method/mock_candidate_window_controller.cc",
1199 "chromeos/input_method/mock_candidate_window_controller.h",
1200 "chromeos/input_method/mock_input_method_engine.cc",
1201 "chromeos/input_method/mock_input_method_engine.h",
1202 "chromeos/input_method/mock_input_method_manager.cc",
1203 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511204 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1205 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391206 "chromeos/login/session/user_session_manager_test_api.cc",
1207 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291208 "chromeos/login/test/js_checker.cc",
1209 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591210 "chromeos/login/test/oobe_screen_waiter.cc",
1211 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291212 "chromeos/login/ui/mock_login_display.cc",
1213 "chromeos/login/ui/mock_login_display.h",
1214 "chromeos/login/ui/mock_login_display_host.cc",
1215 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511216 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1217 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301218 "chromeos/login/users/fake_chrome_user_manager.cc",
1219 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511220 "chromeos/login/users/fake_supervised_user_manager.cc",
1221 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511222 "chromeos/login/users/mock_user_manager.cc",
1223 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291224 "chromeos/net/network_portal_detector_test_utils.cc",
1225 "chromeos/net/network_portal_detector_test_utils.h",
1226 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1227 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1228 "chromeos/policy/device_policy_builder.cc",
1229 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071230 "chromeos/policy/fake_consumer_management_service.cc",
1231 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291232 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1233 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071234 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1235 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291236 "chromeos/policy/stub_enterprise_install_attributes.cc",
1237 "chromeos/policy/stub_enterprise_install_attributes.h",
1238 "chromeos/settings/device_settings_test_helper.cc",
1239 "chromeos/settings/device_settings_test_helper.h",
1240 "chromeos/system/fake_input_device_settings.cc",
1241 "chromeos/system/fake_input_device_settings.h",
1242 ]
agrieve95ba4442016-04-25 15:47:131243 configs += [ "//build/config/linux/dbus" ]
mukai6ba73552014-10-09 19:05:171244 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291245 }
1246
1247 if (enable_configuration_policy) {
1248 sources += [
1249 "policy/test/local_policy_test_server.cc",
1250 "policy/test/local_policy_test_server.h",
1251 ]
Brett Wilsone53895272014-09-23 23:41:461252 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291253 "//components/policy:policy_component_test_support",
1254 "//components/policy:test_support",
1255 ]
Brett Wilson052ce132014-09-12 19:46:291256 }
1257
1258 if (safe_browsing_mode == 1) {
1259 sources += [
1260 "extensions/fake_safe_browsing_database_manager.cc",
1261 "extensions/fake_safe_browsing_database_manager.h",
1262 ]
1263 }
1264
1265 if (enable_extensions) {
1266 sources += [
Brett Wilson052ce132014-09-12 19:46:291267 "extensions/api/messaging/native_messaging_test_util.cc",
1268 "extensions/api/messaging/native_messaging_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291269 "extensions/mock_extension_special_storage_policy.cc",
1270 "extensions/mock_extension_special_storage_policy.h",
1271 "extensions/test_blacklist.cc",
1272 "extensions/test_blacklist.h",
1273 "extensions/test_blacklist_state_fetcher.cc",
1274 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511275 "extensions/test_extension_dir.cc",
1276 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591277 "extensions/test_extension_environment.cc",
1278 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291279 "extensions/test_extension_prefs.cc",
1280 "extensions/test_extension_prefs.h",
1281 "extensions/test_extension_service.cc",
1282 "extensions/test_extension_service.h",
1283 "extensions/test_extension_system.cc",
1284 "extensions/test_extension_system.h",
1285 "media_galleries/media_galleries_test_util.cc",
1286 "media_galleries/media_galleries_test_util.h",
1287 ]
lukasza8acc4eb2015-07-20 20:57:201288 deps += [
1289 "//components/drive:test_support",
1290 "//components/storage_monitor:test_support",
1291 ]
Brett Wilson052ce132014-09-12 19:46:291292 }
1293
1294 if (enable_mdns) {
1295 sources += [
1296 "local_discovery/test_service_discovery_client.cc",
1297 "local_discovery/test_service_discovery_client.h",
1298 ]
1299 }
1300
1301 if (enable_app_list) {
1302 sources += [
1303 "ui/app_list/test/chrome_app_list_test_support.cc",
1304 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511305 "ui/app_list/test/test_app_list_controller_delegate.cc",
1306 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291307 ]
1308 }
xhwangc3a252b2016-05-23 02:35:481309
1310 if (enable_pepper_cdms) {
1311 sources += [
1312 "media/pepper_cdm_test_helper.cc",
1313 "media/pepper_cdm_test_helper.h",
1314 ]
brettwf5431b3d2016-06-07 23:14:371315 deps += [
1316 ":pepper_cdm_test_constants",
1317 "//media:cdm_paths",
1318 ]
xhwangc3a252b2016-05-23 02:35:481319 }
Brett Wilson052ce132014-09-12 19:46:291320}
sdefresned967d552015-07-16 08:34:351321
thestig65d7c5c2015-10-06 18:13:471322# In GYP this is part of test_support_ui.
1323source_set("test_support_ui") {
1324 testonly = true
1325
1326 # Always include this via the main test support UI target.
1327 visibility = [ "//chrome/test:test_support_ui" ]
1328
1329 sources = [
1330 "password_manager/password_manager_test_base.cc",
1331 "password_manager/password_manager_test_base.h",
shadi3ca8c9d2016-01-19 18:54:391332 "signin/token_revoker_test_utils.cc",
1333 "signin/token_revoker_test_utils.h",
thestig65d7c5c2015-10-06 18:13:471334 "ui/webui/signin/login_ui_test_utils.cc",
1335 "ui/webui/signin/login_ui_test_utils.h",
1336 ]
1337
1338 configs += [ "//build/config:precompiled_headers" ]
1339
1340 deps = [
1341 "//components/metrics:test_support",
leon.han952ea3252016-04-13 02:44:561342 "//components/password_manager/content/public/interfaces",
vabr22c9e4f42015-10-20 15:34:091343 "//components/password_manager/core/browser:test_support",
thestig65d7c5c2015-10-06 18:13:471344 "//skia",
1345 "//testing/gtest",
1346 ]
1347}
1348
sdefresned967d552015-07-16 08:34:351349if (enable_rlz_support) {
1350 source_set("rlz") {
1351 sources =
1352 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1353 deps = [
1354 "//components/google/core/browser",
1355 "//components/omnibox/browser",
1356 "//components/rlz",
1357 "//components/search_engines",
1358 "//rlz:rlz_lib",
1359 ]
1360 }
1361}
brettwf5431b3d2016-06-07 23:14:371362
1363if (enable_pepper_cdms) {
1364 # These constants are separated so that test binaries can use them without
1365 # linking all of the test support.
1366 source_set("pepper_cdm_test_constants") {
1367 testonly = true
1368 visibility = [ "//chrome/*" ]
1369 sources = [
1370 "media/pepper_cdm_test_constants.cc",
1371 "media/pepper_cdm_test_constants.h",
1372 ]
1373 }
1374}