blob: 61d2c53a90773a8aae03f165fa045ce57267420f [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",
sdefresnea213ceb2015-10-05 09:23:39118 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
[email protected]797b25042014-07-01 23:54:17119 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:30120 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:31121 "//chrome/common",
[email protected]604828c2014-07-02 20:39:12122 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:01123 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:03124 "//components/bookmarks/managed",
blundell7282b512015-11-09 07:21:11125 "//components/browser_sync/browser",
blundell373c28c2015-11-05 14:07:50126 "//components/browser_sync/common",
[email protected]b9f4c682014-07-10 22:00:37127 "//components/captive_portal",
estark334673f42015-09-08 14:51:39128 "//components/certificate_reporting",
eranm3c2d6432016-06-01 10:17:27129 "//components/certificate_transparency",
[email protected]fca567b2014-07-02 17:37:34130 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:01131 "//components/component_updater",
vabrfc325fa2015-04-10 16:24:45132 "//components/content_settings/content/common",
vasiliiac461392014-09-18 11:35:17133 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:54134 "//components/content_settings/core/common",
abhishek.a21bbf8e4a2015-10-15 21:05:56135 "//components/cookie_config",
[email protected]478ed232014-08-19 02:10:55136 "//components/crx_file",
megjablon3476e042014-10-14 19:21:59137 "//components/data_reduction_proxy/core/browser",
sclittleae932be2015-10-08 20:53:50138 "//components/data_usage/core",
amohammadkhanf76ae112015-09-14 17:34:43139 "//components/data_use_measurement/core",
reillyg4a849272015-02-20 21:38:43140 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:25141 "//components/domain_reliability",
sdefresnecbacfd72015-03-20 12:11:32142 "//components/favicon/core",
sdefresne001b10de2015-03-20 18:41:46143 "//components/favicon_base",
droger888be0b2015-10-01 14:28:52144 "//components/flags_ui",
[email protected]abd4b682014-07-16 20:26:30145 "//components/gcm_driver",
jianli2104ce612015-05-06 00:24:34146 "//components/gcm_driver/instance_id",
Brett Wilson1c693992014-08-25 19:10:01147 "//components/google/core/browser",
fsamuelaf5bf6d12015-05-28 16:29:54148 "//components/guest_view/browser",
erikchen332265b2014-11-14 19:59:52149 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25150 "//components/history/core/browser",
151 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01152 "//components/infobars/core",
knn062cdbb2015-06-26 18:18:42153 "//components/invalidation/impl",
gunsch1afc65172014-09-16 00:03:32154 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34155 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06156 "//components/metrics:profiler",
blundell218124c22015-10-15 10:36:35157 "//components/metrics:profiler_content",
blundell8e66adc2015-10-12 11:46:12158 "//components/metrics:ui",
agrieved7a71c882015-11-20 19:53:28159 "//components/metrics/proto:proto",
blundell695d61f2015-10-21 11:25:53160 "//components/metrics_services_manager",
rsleevic327b48f82015-04-30 02:03:25161 "//components/mime_util",
[email protected]fca567b2014-07-02 17:37:34162 "//components/navigation_metrics",
bnc210d6f32016-05-24 07:40:47163 "//components/network_session_configurator",
Brett Wilson1c693992014-08-25 19:10:01164 "//components/network_time",
agrieved7a71c882015-11-20 19:53:28165 "//components/ntp_snippets",
sfiera0dc4da512016-04-29 09:23:05166 "//components/ntp_tiles",
fgorskife7b92f2015-06-15 19:19:40167 "//components/offline_pages",
petewil0b4d3662016-05-02 18:44:43168 "//components/offline_pages/background:background_offliner",
blundell2102f7c2015-07-09 10:00:53169 "//components/omnibox/browser",
[email protected]fca567b2014-07-02 17:37:34170 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00171 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01172 "//components/password_manager/core/browser",
173 "//components/password_manager/core/common",
dgozmane5a3e252016-03-22 21:45:08174 "//components/policy",
[email protected]fca567b2014-07-02 17:37:34175 "//components/policy:policy_component",
dgozmane5a3e252016-03-22 21:45:08176 "//components/policy/proto",
stevenjbb237e2ae2015-07-02 22:02:11177 "//components/proxy_config",
[email protected]fca567b2014-07-02 17:37:34178 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37179 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01180 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40181 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01182 "//components/search_engines",
183 "//components/search_provider_logos",
felt20e0f2002015-07-31 15:27:36184 "//components/security_interstitials/core",
estarkd9e54fb2016-01-11 19:37:12185 "//components/security_state",
[email protected]abd4b682014-07-16 20:26:30186 "//components/signin/core/browser",
felt2493b4452015-09-17 20:33:59187 "//components/ssl_errors",
sammc335844522016-06-09 10:15:59188 "//components/startup_metric_utils/browser:host",
fdoray443bd112015-11-16 20:44:23189 "//components/startup_metric_utils/browser:lib",
fdoray343068c42016-02-03 15:45:58190
191 # TODO(fdoray): Remove this once the PreRead field trial has expired.
192 # crbug.com/577698
193 "//components/startup_metric_utils/common",
[email protected]797b25042014-07-01 23:54:17194 "//components/strings",
engedy9ae04242016-06-08 13:31:18195 "//components/subresource_filter/core/browser",
mathp60143a32014-10-08 14:52:45196 "//components/suggestions",
aberentc987fed2016-03-18 18:17:47197 "//components/supervised_user_error_page",
blundellc759b682015-10-08 15:50:59198 "//components/sync_bookmarks",
Brett Wilson1c693992014-08-25 19:10:01199 "//components/sync_driver",
skym6b9887e2015-10-09 22:10:47200 "//components/sync_sessions",
zhenwecedcf22015-08-18 23:37:46201 "//components/tracing:startup_tracing",
[email protected]b9f4c682014-07-10 22:00:37202 "//components/translate/core/browser",
203 "//components/translate/core/common",
sdefresnec083d1f2015-04-17 21:12:18204 "//components/undo",
sorin39eab2f2015-01-06 01:09:08205 "//components/update_client",
rsleevi24f64dc22015-08-07 21:39:21206 "//components/url_formatter",
[email protected]fca567b2014-07-02 17:37:34207 "//components/user_prefs",
jitendra.ks94c0b962015-08-10 08:24:09208 "//components/user_prefs/tracked:user_prefs_tracked",
isherman3be67db2014-10-24 05:57:44209 "//components/variations",
210 "//components/variations/net",
blundellb50ad702015-08-27 17:08:29211 "//components/variations/service",
agrieved7a71c882015-11-20 19:53:28212 "//components/web_resource",
[email protected]bf4545f2014-07-11 19:49:46213 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56214 "//components/webdata_services",
juncaia64f769c22016-06-04 00:55:32215 "//components/zoom",
[email protected]dffd8a912014-06-30 23:24:31216 "//content/public/browser",
217 "//content/public/common",
hbos18f58912016-03-08 14:26:35218 "//content/public/common:feature_h264_with_openh264_ffmpeg",
219 "//content/public/common:features",
[email protected]604828c2014-07-02 20:39:12220 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31221 "//crypto",
davidben45eb19952016-05-05 16:30:44222 "//crypto:platform",
[email protected]604828c2014-07-02 20:39:12223 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56224 "//gpu/config",
[email protected]dffd8a912014-06-30 23:24:31225 "//skia",
226 "//sql",
227 "//sync",
[email protected]797b25042014-07-01 23:54:17228 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31229 "//third_party/icu",
ajwongf7b1cb692014-08-23 21:36:22230 "//third_party/libjingle",
agrieved7a71c882015-11-20 19:53:28231 "//third_party/libxml",
[email protected]dffd8a912014-06-30 23:24:31232 "//third_party/widevine/cdm:version_h",
233 "//third_party/zlib",
hajimehoshi1e1cc1a2016-01-14 19:09:00234 "//third_party/zlib:compression_utils",
[email protected]dffd8a912014-06-30 23:24:31235 "//third_party/zlib:minizip",
236 "//third_party/zlib:zip",
237 "//ui/base",
sdefresnec6574a552016-02-08 16:58:21238 "//ui/base:ui_data_pack",
cjhopman09981a92014-10-27 17:11:18239 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31240 "//ui/gfx",
241 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36242 "//ui/message_center",
agrieved7a71c882015-11-20 19:53:28243 "//ui/resources",
[email protected]a1d7d4f2014-07-16 21:33:36244 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31245 "//ui/strings",
[email protected]dffd8a912014-06-30 23:24:31246 ]
bencccedf12015-11-10 07:56:16247 data_deps = []
[email protected]dffd8a912014-06-30 23:24:31248
scottmga266f952014-12-03 20:47:10249 sources +=
250 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00251
[email protected]dffd8a912014-06-30 23:24:31252 if (!is_ios) {
scottmga266f952014-12-03 20:47:10253 sources +=
254 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59255 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10256 ".",
257 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59258 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10259 ".",
260 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18261 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
262 ".",
263 "//chrome")
264 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
265 ".",
266 "//chrome")
sclittlea133de02015-11-10 23:54:21267 sources += rebase_path(gypi_values.chrome_browser_data_usage_sources,
268 ".",
269 "//chrome")
benwellsedf5e082015-04-23 02:45:14270 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
271 ".",
272 "//chrome")
scottmga266f952014-12-03 20:47:10273 sources +=
274 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
275 sources +=
276 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
277 sources +=
278 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
279 sources +=
280 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
281 sources +=
282 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59283 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10284 ".",
285 "//chrome")
mlamouri4e372022015-03-29 14:51:06286 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
287 ".",
288 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59289 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10290 ".",
291 "//chrome")
292 sources +=
293 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59294 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10295 ".",
296 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59297 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10298 ".",
299 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59300 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10301 ".",
302 "//chrome")
303 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18304 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
305 sources +=
scottmga266f952014-12-03 20:47:10306 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
307 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18308 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
309 sources +=
scottmga266f952014-12-03 20:47:10310 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
sievers2f1e8112015-12-04 18:43:56311 if (android_java_ui) {
312 sources +=
313 rebase_path(gypi_values.chrome_browser_sync_android_java_ui_sources,
314 ".",
315 "//chrome")
316 sources +=
317 rebase_path(gypi_values.chrome_browser_ssl_android_java_ui_sources,
318 ".",
319 "//chrome")
320 sources += rebase_path(
321 gypi_values.chrome_browser_history_android_java_ui_sources,
322 ".",
323 "//chrome")
324 sources += rebase_path(
325 gypi_values.chrome_browser_permissions_android_java_ui_sources,
326 ".",
327 "//chrome")
328 sources += rebase_path(
329 gypi_values.chrome_browser_search_engines_android_java_ui_sources,
330 ".",
331 "//chrome")
332 if (enable_supervised_users) {
333 sources += rebase_path(
334 gypi_values.chrome_browser_supervised_user_android_java_ui_sources,
335 ".",
336 "//chrome")
337 }
338 }
scottmga266f952014-12-03 20:47:10339
[email protected]dffd8a912014-06-30 23:24:31340 deps += [
341 "//cc",
brettwca934582015-02-24 21:50:27342 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30343 "//chrome/browser/devtools",
sdefresnea213ceb2015-10-05 09:23:39344 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
brettwca934582015-02-24 21:50:27345 "//chrome/browser/resources:component_extension_resources",
tfarina04d426612015-08-18 16:42:33346 "//chrome/common/net",
brettwe26e6d02015-12-29 06:51:47347 "//chrome/installer/util:with_no_strings",
jitendra.ks4f2e9112015-08-14 11:40:26348 "//components/about_handler",
oshimaf65398422014-11-18 23:30:42349 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37350 "//components/autofill/content/browser",
lazyboy14082d22015-04-02 01:04:58351 "//components/browsing_data",
donndbda9b6f432015-12-10 20:39:05352 "//components/contextual_search:browser",
jeremyim364ac1182015-03-03 18:49:43353 "//components/data_reduction_proxy/content/browser",
amohammadkhan092adb22015-09-11 21:08:49354 "//components/data_use_measurement/content",
dgozmanec2b982a2015-04-28 10:36:39355 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46356 "//components/devtools_http_handler",
brettw15764b12015-11-30 22:11:05357 "//components/dom_distiller/content/browser",
tfarina041134472015-09-02 15:29:38358 "//components/error_page/common",
sdefresne001b10de2015-03-20 18:41:46359 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04360 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34361 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30362 "//components/navigation_interception",
drogerc690e8802015-09-21 14:29:16363 "//components/net_log",
tfarina041134472015-09-02 15:29:38364 "//components/network_hints/common",
[email protected]55699f392014-08-20 22:16:30365 "//components/password_manager/content/browser",
vabr5410d0b2015-08-07 11:02:04366 "//components/password_manager/sync/browser",
droger78da6542015-11-02 11:25:59367 "//components/profile_metrics",
abhishek.a2171c612852015-08-31 10:48:19368 "//components/proxy_config",
droger2a6ab542015-10-09 16:10:28369 "//components/resources",
vakh9d5888022015-10-29 21:04:07370 "//components/safe_browsing_db",
bauerbf0e64aa2015-06-25 15:54:07371 "//components/safe_json",
brettwa22cb3b2015-04-30 20:23:12372 "//components/sessions",
abhishek.a212849cee2015-10-20 11:27:29373 "//components/ssl_config",
[email protected]abd4b682014-07-16 20:26:30374 "//components/storage_monitor",
engedy9ae04242016-06-08 13:31:18375 "//components/subresource_filter/content/browser",
sdefresne875d0782015-09-16 12:01:28376 "//components/syncable_prefs",
[email protected]b9f4c682014-07-10 22:00:37377 "//components/translate/content/browser",
sdefresne44eb1f22015-08-06 08:51:55378 "//components/upload_list",
[email protected]fca567b2014-07-02 17:37:34379 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31380 "//components/visitedlink/browser",
381 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18382 "//components/web_cache/browser",
reillygcf1af632015-11-18 16:42:58383 "//components/webusb",
[email protected]a9ca8d52014-08-22 10:21:08384 "//content/app/resources",
reillygcf1af632015-11-18 16:42:58385 "//device/core",
reillyg64c8f4f2016-02-10 23:29:20386 "//device/usb/mojo",
387 "//device/usb/public/interfaces",
[email protected]55699f392014-08-20 22:16:30388 "//media",
yhiranobbea6272015-09-17 07:09:03389 "//media/midi",
cjhopman09981a92014-10-27 17:11:18390 "//mojo/common",
rockotc637caf9b2016-02-10 09:57:08391 "//mojo/edk/system",
rockot85dce0862015-11-13 01:33:59392 "//mojo/public/cpp/bindings",
393 "//mojo/public/js",
Brett Wilson83fd4242014-09-02 19:45:33394 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31395 "//net:net_with_v8",
benf709a3092016-04-12 22:38:22396 "//services/shell/public/cpp",
pilgrim4af8c212014-09-05 17:30:15397 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24398 "//storage/common",
erga3c614c92015-04-03 17:47:51399 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46400 "//third_party/WebKit/public:resources",
pmonette502a83e2016-01-08 00:21:16401 "//third_party/kasko",
[email protected]dffd8a912014-06-30 23:24:31402 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34403 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31404 "//third_party/libyuv",
[email protected]dffd8a912014-06-30 23:24:31405 "//third_party/re2",
406 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33407 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12408 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31409 "//ui/gl",
brettwca934582015-02-24 21:50:27410 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31411 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12412 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34413 "//v8",
[email protected]dffd8a912014-06-30 23:24:31414 ]
paulmeyer27b328b2015-06-17 21:26:12415
416 if (toolkit_views) {
417 deps += [ "//ui/views" ]
418 }
[email protected]dffd8a912014-06-30 23:24:31419 } else { # iOS
scottmga266f952014-12-03 20:47:10420 sources +=
421 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
422 sources +=
423 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
424 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31425 libs += [
426 "CoreTelephony.framework",
427 "CoreText.framework",
428 "MobileCoreServices.framework",
429 "QuartzCore.framework",
430 ]
scottmga266f952014-12-03 20:47:10431 ldflags += [
432 "-weak_framework",
433 "CoreImage",
434 ]
[email protected]dffd8a912014-06-30 23:24:31435 }
436
437 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10438 sources +=
439 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31440 }
mmenkede134672015-08-18 01:33:39441 if (!is_win && !is_mac && !is_ios) {
442 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ]
443 }
dgozmane5a3e252016-03-22 21:45:08444 if (!is_android && !is_ios && !is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31445 sources += [
446 "net/disk_cache_dir_policy_handler.cc",
447 "net/disk_cache_dir_policy_handler.h",
448 ]
449 }
[email protected]dffd8a912014-06-30 23:24:31450 if (is_mac) {
scottmga266f952014-12-03 20:47:10451 sources +=
452 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31453 deps += [
brettw5ff98192015-10-22 06:36:15454 "//chrome/app_shim",
455 "//chrome/browser/apps/app_shim",
[email protected]dffd8a912014-06-30 23:24:31456 ]
457 }
[email protected]dffd8a912014-06-30 23:24:31458 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46459 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52460 deps += [
[email protected]cc5b3be2014-08-15 23:24:52461 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30462 "//chrome/common/extensions/api",
463 "//chrome/common/extensions/api:api_registration",
lukasza8acc4eb2015-07-20 20:57:20464 "//components/drive:drive",
msarda4c408ff2015-04-22 14:27:56465 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44466 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50467 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06468 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52469 ]
[email protected]dffd8a912014-06-30 23:24:31470 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10471 ".",
472 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31473 }
474 if (enable_background) {
475 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10476 ".",
477 "//chrome")
jamesr29ea2d122014-10-23 10:30:27478 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31479 sources -= [ "background/background_mode_manager_aura.cc" ]
480 }
481 }
482 if (enable_task_manager) {
483 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10484 ".",
485 "//chrome")
nya268de1c72015-12-16 05:07:40486 if (is_chromeos) {
487 sources +=
488 rebase_path(gypi_values.chrome_browser_task_manager_chromeos_sources,
489 ".",
490 "//chrome")
491 }
afakhry174069722016-05-24 19:16:16492
493 if (is_mac && !mac_views_browser) {
494 sources +=
495 rebase_path(gypi_values.chrome_browser_old_task_manager_cocoa_sources,
496 ".",
497 "//chrome")
498 }
[email protected]dffd8a912014-06-30 23:24:31499 }
500 if (enable_spellcheck) {
501 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10502 ".",
503 "//chrome")
dylanking34c72442015-07-23 23:19:58504 if (!is_android) {
505 deps += [ "//third_party/hunspell" ]
506 }
[email protected]dffd8a912014-06-30 23:24:31507 }
508 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10509 sources +=
510 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
brettwf4b4a4282015-12-16 00:41:13511 deps += [ "//components/nacl/browser" ]
[email protected]dffd8a912014-06-30 23:24:31512 }
apavlove749bca2014-09-30 11:07:41513
[email protected]dffd8a912014-06-30 23:24:31514 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10515 sources +=
516 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31517 deps += [
James Robinson2ed4d692014-09-17 05:20:58518 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31519 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14520 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31521 ]
522 }
523 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10524 sources +=
stuartmorgan1b3df822014-12-08 14:36:11525 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10526 ".",
527 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31528 deps += [
[email protected]fca567b2014-07-02 17:37:34529 "//chrome/browser/safe_browsing:chunk_proto",
jialiuleed304432015-11-09 20:17:03530 "//chrome/common/safe_browsing:proto",
vakh27f7e222016-02-02 23:45:34531 "//components/safe_browsing_db:metadata_proto",
[email protected]dffd8a912014-06-30 23:24:31532 ]
533 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10534 sources +=
stuartmorgan1b3df822014-12-08 14:36:11535 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10536 ".",
537 "//chrome")
grtc1d1b752015-09-05 13:26:41538 if (is_win) {
539 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto" ]
540 }
nparker00a64f12015-10-16 17:34:30541 } else if (safe_browsing_mode == 2) {
542 sources +=
543 rebase_path(gypi_values.chrome_browser_safe_browsing_mobile_sources,
544 ".",
545 "//chrome")
vakh27f7e222016-02-02 23:45:34546 deps += [ "//components/safe_browsing_db:safe_browsing_db_mobile" ]
[email protected]dffd8a912014-06-30 23:24:31547 }
548 }
549
amistryf269d3b2015-06-09 19:18:39550 if (enable_hotwording) {
551 defines += [ "ENABLE_HOTWORDING" ]
552 }
553
[email protected]dffd8a912014-06-30 23:24:31554 if (is_linux) {
mostynbea514682015-08-18 22:08:56555 deps += [ "//device/media_transfer_protocol" ]
[email protected]dffd8a912014-06-30 23:24:31556 }
mostynbea514682015-08-18 22:08:56557
558 if (use_udev) {
559 deps += [ "//device/udev_linux" ]
560 }
561
[email protected]dffd8a912014-06-30 23:24:31562 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47563 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31564 }
565
566 if (is_chromeos) {
567 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10568 ".",
569 "//chrome")
570 deps += [ "//chrome/browser/chromeos" ]
dgozmane5a3e252016-03-22 21:45:08571 } else { # Non-ChromeOS.
572 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
573 ".",
574 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31575 }
576
mukai8c99b882014-10-15 03:07:59577 if (is_chromeos || is_ios) {
578 sources -= [
blundell296904a2015-10-13 12:30:48579 "signin/chrome_signin_status_metrics_provider_delegate.cc",
580 "signin/chrome_signin_status_metrics_provider_delegate.h",
mukai8c99b882014-10-15 03:07:59581 ]
582 }
583
sque82e4d1552016-02-26 22:47:19584 if (is_chromeos) {
585 sources += [
squeefd3f47e2016-06-08 20:04:53586 "metrics/leak_detector/leak_detector_controller.cc",
587 "metrics/leak_detector/leak_detector_controller.h",
sque82e4d1552016-02-26 22:47:19588 ]
sque60265ec82016-06-11 02:32:32589 public_deps += [ "//components/metrics:leak_detector" ]
sque82e4d1552016-02-26 22:47:19590 }
591
[email protected]dffd8a912014-06-30 23:24:31592 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12593 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31594 }
595 if (is_desktop_linux) {
596 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10597 ".",
598 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49599 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31600 }
dvadym34532022015-01-22 15:42:51601 if (is_desktop_linux) {
602 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
603 ".",
604 "//chrome")
605 defines += [ "USE_LIBSECRET" ]
cfroussios7267be82016-04-27 13:58:52606 deps += [ "//third_party/libsecret" ]
dvadym34532022015-01-22 15:42:51607 }
[email protected]dffd8a912014-06-30 23:24:31608 if (use_aura) {
scottmga266f952014-12-03 20:47:10609 sources +=
610 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
ben0cc0be92015-11-09 21:49:06611
612 # These files are only built in a GN build because they bring in
613 # dependencies that don't build with GYP.
614 sources += [
bencccedf12015-11-10 07:56:16615 "ui/views/frame/browser_frame_mus.cc",
616 "ui/views/frame/browser_frame_mus.h",
skyab2410c52015-12-03 03:40:56617 "ui/views/frame/browser_non_client_frame_view_mus.cc",
618 "ui/views/frame/browser_non_client_frame_view_mus.h",
ben0cc0be92015-11-09 21:49:06619 ]
[email protected]dffd8a912014-06-30 23:24:31620 deps += [
ben03b7b9d2015-11-15 12:13:09621 "//content/public/common",
ben6b0453d12016-07-02 04:27:19622 "//services/ui/public/cpp",
623 "//services/ui/public/cpp/input_devices",
[email protected]fca567b2014-07-02 17:37:34624 "//ui/aura",
625 "//ui/compositor",
rockotb9e3b772016-06-10 21:34:16626 "//ui/views/mus",
[email protected]dffd8a912014-06-30 23:24:31627 ]
ben03b7b9d2015-11-15 12:13:09628 defines += [ "MOJO_SHELL_CLIENT" ]
[email protected]dffd8a912014-06-30 23:24:31629 }
630 if (ui_compositor_image_transport) {
631 deps += [ "//ui/gl" ]
632 }
633
[email protected]855b7de2014-07-08 21:02:45634 if (use_ash) {
scottmga266f952014-12-03 20:47:10635 sources +=
636 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45637 }
638
[email protected]dffd8a912014-06-30 23:24:31639 if (use_x11) {
scottmga266f952014-12-03 20:47:10640 sources +=
641 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23642 } else {
643 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31644 }
Scott Grahamcae6b0e2015-12-04 03:23:29645 if (is_posix && !is_mac && !is_ios) {
[email protected]dffd8a912014-06-30 23:24:31646 sources += [
rseseka0a7a042014-09-18 23:59:20647 "//chrome/app/chrome_crash_reporter_client.cc",
648 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31649 ]
650 deps += [
sdefresne8ba0b88c2015-09-18 10:33:13651 "//components/crash/content/app",
652 "//components/crash/content/browser",
blundellf1cfb032015-11-16 18:22:30653 "//components/version_info:generate_version_info",
[email protected]dffd8a912014-06-30 23:24:31654 ]
655 }
656 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10657 sources +=
658 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59659 if (is_chromeos) {
660 sources -= [ "net/nss_context_linux.cc" ]
661 }
[email protected]dffd8a912014-06-30 23:24:31662 }
663 if (enable_notifications) {
664 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10665 ".",
666 "//chrome")
sievers2f1e8112015-12-04 18:43:56667 if (android_java_ui) {
668 sources += rebase_path(
669 gypi_values.chrome_browser_notifications_android_java_ui_sources,
670 ".",
671 "//chrome")
estade6d95d1d2015-10-02 18:55:23672 } else {
[email protected]dffd8a912014-06-30 23:24:31673 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11674 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10675 ".",
676 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31677 }
miguelg38ca936a2016-06-21 12:26:57678 if (is_mac) {
679 deps += [ "//chrome/browser/ui/cocoa/notifications:common" ]
680 }
[email protected]dffd8a912014-06-30 23:24:31681 }
682 if (enable_themes) {
scottmga266f952014-12-03 20:47:10683 sources +=
684 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31685 }
686
vitalybuka93eea402014-11-05 23:47:15687 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31688 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11689 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10690 ".",
691 "//chrome")
spang5cc72542015-08-04 19:47:11692 deps += [
brettwd649f6b2015-08-18 20:58:51693 "//components/printing/browser",
agrieved7a71c882015-11-20 19:53:28694 "//printing",
spang5cc72542015-08-04 19:47:11695 ]
696
vitalybuka36259ca2014-08-28 23:42:24697 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31698 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10699 ".",
700 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31701 }
vitalybuka93eea402014-11-05 23:47:15702 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31703 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11704 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10705 ".",
706 "//chrome")
vitalybuka93eea402014-11-05 23:47:15707 } else {
[email protected]dffd8a912014-06-30 23:24:31708 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10709 sources +=
stuartmorgan1b3df822014-12-08 14:36:11710 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10711 ".",
712 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31713 }
714 }
715 if (enable_captive_portal_detection) {
716 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10717 ".",
718 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31719 }
720 if (enable_session_service) {
721 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10722 ".",
723 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31724 }
725
thestigdc377202014-10-28 22:06:02726 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10727 sources +=
728 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02729 }
730
[email protected]dffd8a912014-06-30 23:24:31731 if (is_android || is_ios) {
732 # Mobile.
scottmga266f952014-12-03 20:47:10733 sources +=
734 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31735 } else {
736 # Non-mobile.
thestigf2cc0832016-04-12 19:30:27737 deps += [
738 "//apps",
739 "//chrome/browser/policy:path_parser",
740 "//chrome/browser/profile_resetter:profile_reset_report_proto",
741 "//components/feedback",
742 "//components/web_modal",
743 "//net:net_browser_services",
744 ]
[email protected]dffd8a912014-06-30 23:24:31745 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10746 ".",
747 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31748 }
749
mathp17e1eba2015-10-06 21:50:59750 if (!is_chrome_branded) {
fserb1c2db4c2015-07-16 17:14:49751 sources += [
752 "search/local_files_ntp_source.cc",
753 "search/local_files_ntp_source.h",
754 ]
755 }
756
[email protected]dffd8a912014-06-30 23:24:31757 if (is_android) {
scottmga266f952014-12-03 20:47:10758 sources +=
759 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
sievers2f1e8112015-12-04 18:43:56760 }
761
762 if (android_java_ui) {
763 sources += rebase_path(gypi_values.chrome_browser_android_java_ui_sources,
764 ".",
765 "//chrome")
fgorski1d4c9c92015-12-17 20:39:32766 sources += rebase_path(gypi_values.chrome_browser_offline_pages_sources,
twellingtoncaf0eb752015-06-01 16:19:50767 ".",
768 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31769 deps += [
pkotwicz127726f2015-05-29 15:20:12770 ":client_discourse_context_proto",
771 ":delta_file_proto",
James Robinson2ed4d692014-09-17 05:20:58772 ":jni_headers",
sclittlec441f782015-11-12 01:12:09773 "//components/data_usage/android",
twifkak8c9f7502015-06-25 02:12:57774 "//components/precache/content",
775 "//components/precache/core",
estadee37f8222014-11-07 21:35:22776 "//components/resources:components_resources",
blundell11d93bc2015-07-31 12:33:12777 "//components/toolbar",
cjhopman09981a92014-10-27 17:11:18778 "//components/web_contents_delegate_android",
sievers2f1e8112015-12-04 18:43:56779 ]
sievers2f1e8112015-12-04 18:43:56780 }
781
782 if (is_android) {
783 deps += [
784 "//components/cdm/browser",
785 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18786 "//third_party/android_opengl/etc1",
fdegans34f31e272015-05-22 16:59:03787 "//third_party/android_tools:cpu_features",
twellington0bc61492015-01-30 20:14:13788 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31789 ]
sievers2f1e8112015-12-04 18:43:56790
[email protected]dffd8a912014-06-30 23:24:31791 deps -= [
[email protected]abd4b682014-07-16 20:26:30792 "//components/storage_monitor",
agrieved7a71c882015-11-20 19:53:28793 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31794 ]
rseseke59ea892015-03-19 22:27:44795
796 if (use_seccomp_bpf) {
797 defines += [ "USE_SECCOMP_BPF" ]
rsesek65d31352015-06-08 22:53:44798 deps += [ "//sandbox/linux:seccomp_bpf" ]
rseseke59ea892015-03-19 22:27:44799 }
[email protected]dffd8a912014-06-30 23:24:31800 }
801
802 if (is_mac) {
803 deps += [
[email protected]6b5d2f92014-07-30 00:40:03804 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03805 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31806 ]
807 libs += [
808 "Accelerate.framework",
809 "AddressBook.framework",
810 "AudioUnit.framework",
811 "DiskArbitration.framework",
812 "IOKit.framework",
813 "ImageCaptureCore.framework",
814 "OpenGL.framework",
815 "QuartzCore.framework",
816 "SecurityInterface.framework",
817 ]
818 }
819
820 if (enable_rlz) {
sdefresned967d552015-07-16 08:34:35821 deps += [ ":rlz" ]
[email protected]dffd8a912014-06-30 23:24:31822 }
823
[email protected]dffd8a912014-06-30 23:24:31824 if (is_win) {
scottmga266f952014-12-03 20:47:10825 sources +=
826 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
Brett Wilsone53895272014-09-23 23:41:46827 public_deps += [
828 "//ui/views",
829 "//ui/views/controls/webview",
830 ]
[email protected]dffd8a912014-06-30 23:24:31831 deps += [
vchigrin9593e7a2015-01-27 10:08:19832 ":chrome_process_finder",
gab7c45cfd2016-04-15 19:17:07833 "//chrome:file_pre_reader",
pmonette502a83e2016-01-08 00:21:16834 "//chrome/chrome_watcher:client",
gab7c45cfd2016-04-15 19:17:07835 "//chrome/common:metrics_constants_util_win",
mdempsky15a48be2015-10-21 23:37:53836 "//chrome/common:version_header",
ksakamoto362deb32016-07-04 08:32:10837 "//chrome_elf",
vchigrinf2b90aa2015-01-23 11:12:19838 "//chrome_elf:constants",
839 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32840 "//components/browser_watcher",
841 "//components/browser_watcher:browser_watcher_client",
fdorayc295b762016-01-19 18:49:23842 "//components/startup_metric_utils/common",
vchigrinbbc23e72015-01-21 22:49:23843 "//google_update",
[email protected]55699f392014-08-20 22:16:30844 "//third_party/iaccessible2",
845 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31846 "//third_party/wtl",
[email protected]dffd8a912014-06-30 23:24:31847 ]
mmenkede134672015-08-18 01:33:39848
849 all_dependent_configs = [ ":browser_win_linker_flags" ]
850
grt235b3f092015-05-27 21:42:48851 if (!is_chrome_branded) {
852 deps -= [ "//google_update" ]
853 sources -= [
854 "google/did_run_updater_win.cc",
855 "google/did_run_updater_win.h",
856 "google/google_update_win.cc",
857 "google/google_update_win.h",
858 ]
859 }
[email protected]dffd8a912014-06-30 23:24:31860 } else {
861 # Non-Windows.
scottmga266f952014-12-03 20:47:10862 sources +=
863 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37864 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31865 deps += [
scottmga266f952014-12-03 20:47:10866 "//ui/views",
867 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31868 ]
[email protected]dffd8a912014-06-30 23:24:31869 }
870 }
871
872 if (is_linux) {
[email protected]dffd8a912014-06-30 23:24:31873 if (use_aura) {
mbjorgea12e5a52016-05-31 22:15:17874 deps += [ "//build/linux:fontconfig" ]
875 if (use_dbus) {
876 deps += [ "//dbus" ]
877 }
[email protected]dffd8a912014-06-30 23:24:31878 }
879 if (use_x11) {
880 configs += [ "//build/config/linux:x11" ]
881 deps += [ "//ui/gfx/x" ]
882 }
883 }
884
rouslane59900a2016-02-17 19:45:43885 if (is_linux || is_win) {
886 sources += rebase_path(gypi_values.chrome_browser_non_mac_desktop_sources,
887 ".",
888 "//chrome")
889 }
890
[email protected]dffd8a912014-06-30 23:24:31891 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54892 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10893 ".",
894 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31895 }
896 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10897 sources +=
898 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
899 ".",
900 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31901 }
902 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10903 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31904 }
treib87bb89cbb2014-12-01 16:01:47905 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10906 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
907 ".",
908 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31909 }
bauerb7f3b8542015-06-29 19:56:19910 if (enable_supervised_users && !is_android && !is_ios) {
911 sources +=
912 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
913 ".",
914 "//chrome")
915 }
treib87bb89cbb2014-12-01 16:01:47916 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59917 sources += rebase_path(
scottmga266f952014-12-03 20:47:10918 gypi_values.chrome_browser_supervised_user_and_themes_sources,
919 ".",
920 "//chrome")
thestig169a6362014-11-13 20:47:59921 }
[email protected]dffd8a912014-06-30 23:24:31922 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10923 sources +=
924 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31925 }
926 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10927 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
928 ".",
929 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31930 }
931 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10932 sources +=
933 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31934 }
estadee62c2a42016-05-05 16:27:29935 if (is_android || is_ios) {
[email protected]dffd8a912014-06-30 23:24:31936 sources -= [
937 "autofill/validation_rules_storage_factory.cc",
938 "autofill/validation_rules_storage_factory.h",
939 ]
940 }
mfoltz150bb8b2015-04-09 22:30:05941 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55942 deps += [ "//chrome/browser/media/router" ]
mfoltz150bb8b2015-04-09 22:30:05943 }
xhwang5e630462015-10-30 03:18:48944
xhwangc86d76e42016-03-14 23:38:49945 if (enable_mojo_media) {
xhwangbe720032016-02-19 18:45:31946 configs += [ "//media/mojo/services:mojo_media_config" ]
xhwangc86d76e42016-03-14 23:38:49947 sources += [
948 "media/output_protection_impl.cc",
949 "media/output_protection_impl.h",
950 ]
951 deps += [ "//media/mojo/interfaces" ]
952 if (mojo_media_host == "browser") {
xhwangd3b5d3f2016-05-18 03:37:59953 deps += [ "//media/mojo/services" ]
xhwangc86d76e42016-03-14 23:38:49954 }
xhwang5e630462015-10-30 03:18:48955 }
revemanb195f41d2015-11-19 22:16:48956
957 if (enable_wayland_server) {
958 deps += [
959 "//components/exo",
960 "//components/exo/wayland",
961 ]
962 sources += [
963 "chrome_browser_main_extra_parts_exo.cc",
964 "chrome_browser_main_extra_parts_exo.h",
965 ]
966 }
[email protected]dffd8a912014-06-30 23:24:31967}
968
sievers2f1e8112015-12-04 18:43:56969if (android_java_ui) {
James Robinson2ed4d692014-09-17 05:20:58970 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
971 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10972 sources =
973 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58974 jni_package = "chrome"
975 }
pkotwicz127726f2015-05-29 15:20:12976
977 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
978 proto_library("client_discourse_context_proto") {
979 sources = [
980 "android/proto/client_discourse_context.proto",
981 ]
982 }
983
984 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
985 proto_library("delta_file_proto") {
986 sources = [
987 "android/proto/delta_file.proto",
988 ]
989 }
James Robinson2ed4d692014-09-17 05:20:58990}
991
vchigrin9593e7a2015-01-27 10:08:19992if (is_win) {
brettw77617612016-07-13 22:40:06993 static_library("chrome_process_finder") {
vchigrin9593e7a2015-01-27 10:08:19994 sources = [
pmonette23c8fb7e2016-06-27 20:45:11995 "win/chrome_process_finder.cc",
996 "win/chrome_process_finder.h",
vchigrin9593e7a2015-01-27 10:08:19997 ]
998 deps = [
999 "//base",
vchigrin9593e7a2015-01-27 10:08:191000 "//chrome/common:constants",
1001 ]
1002 if (enable_configuration_policy) {
1003 deps += [ "//chrome/browser/policy:path_parser" ]
1004 }
1005 }
1006}
1007
[email protected]77ce8022014-06-16 19:29:561008# GYP version: chrome/chrome_resources.gyp:chrome_resources
1009# (generate_browser_resources action)
1010grit("resources") {
1011 source = "browser_resources.grd"
brettw06c2ba32015-11-26 09:21:251012 defines = chrome_grit_defines
[email protected]48885492014-08-13 11:22:411013 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:261014 outputs = [
1015 "grit/browser_resources.h",
1016 "browser_resources.pak",
1017 ]
[email protected]77ce8022014-06-16 19:29:561018
[email protected]77ce8022014-06-16 19:29:561019 grit_flags = [
scottmga266f952014-12-03 20:47:101020 "-E",
scottmga266f952014-12-03 20:47:101021 "additional_modules_list_file=" +
1022 rebase_path(additional_modules_list_file, root_build_dir),
1023 "-E",
calamityd59c1032015-09-22 06:35:531024 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
[email protected]77ce8022014-06-16 19:29:561025 ]
1026
1027 deps = [
[email protected]77ce8022014-06-16 19:29:561028 ":chrome_internal_resources_gen",
nparker38c5a5c2016-04-25 23:34:241029 "//chrome/browser/resources/safe_browsing:make_file_types_protobuf",
brettwde262b02015-05-27 19:41:421030
1031 # Depend only on the generated mojo bindings since we read the .mojom.js
1032 # file, rather than the whole mojo target which will link the C++ bindings.
calamityd59c1032015-09-22 06:35:531033 "//chrome/browser/ui/webui/engagement:mojo_bindings__generator",
brettwde262b02015-05-27 19:41:421034 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
dpapad59e3ad42016-02-02 21:58:061035 "//chrome/browser/ui/webui/plugins:mojo_bindings__generator",
sammcf6f4fcf2016-06-21 05:39:391036 "//url/mojo:url_mojom_gurl__generator",
vchigrin8eede942015-01-29 09:28:151037 ]
[email protected]77ce8022014-06-16 19:29:561038}
1039
[email protected]77ce8022014-06-16 19:29:561040# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:411041if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:561042 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:411043 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:101044 sources = [
1045 "internal/resources/additional_modules_list.input",
1046 ]
1047 outputs = [
1048 additional_modules_list_file,
1049 ]
engedy99d0e11b2014-09-30 13:32:411050 args = rebase_path(sources, root_build_dir) +
1051 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:561052 }
1053} else {
1054 group("chrome_internal_resources_gen") {
1055 # Empty placeholder.
1056 }
1057}
Brett Wilson052ce132014-09-12 19:46:291058
1059# In GYP this is part of test_support_common.
brettw022f8f32016-06-14 01:22:391060#
1061# Use a static library here because many test binaries depend on this but don't
1062# require many files from it. This makes linking more efficient.
1063static_library("test_support") {
Brett Wilson052ce132014-09-12 19:46:291064 testonly = true
1065
1066 # Always include this via the main test support target.
1067 visibility = [ "//chrome/test:test_support" ]
1068
1069 sources = [
1070 "browsing_data/mock_browsing_data_appcache_helper.cc",
1071 "browsing_data/mock_browsing_data_appcache_helper.h",
jsbelle1fe9692015-08-22 01:02:421072 "browsing_data/mock_browsing_data_cache_storage_helper.cc",
1073 "browsing_data/mock_browsing_data_cache_storage_helper.h",
Brett Wilson052ce132014-09-12 19:46:291074 "browsing_data/mock_browsing_data_channel_id_helper.cc",
1075 "browsing_data/mock_browsing_data_channel_id_helper.h",
1076 "browsing_data/mock_browsing_data_cookie_helper.cc",
1077 "browsing_data/mock_browsing_data_cookie_helper.h",
1078 "browsing_data/mock_browsing_data_database_helper.cc",
1079 "browsing_data/mock_browsing_data_database_helper.h",
1080 "browsing_data/mock_browsing_data_file_system_helper.cc",
1081 "browsing_data/mock_browsing_data_file_system_helper.h",
1082 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
1083 "browsing_data/mock_browsing_data_flash_lso_helper.h",
1084 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
1085 "browsing_data/mock_browsing_data_indexed_db_helper.h",
1086 "browsing_data/mock_browsing_data_local_storage_helper.cc",
1087 "browsing_data/mock_browsing_data_local_storage_helper.h",
1088 "browsing_data/mock_browsing_data_quota_helper.cc",
1089 "browsing_data/mock_browsing_data_quota_helper.h",
1090 "browsing_data/mock_browsing_data_service_worker_helper.cc",
1091 "browsing_data/mock_browsing_data_service_worker_helper.h",
juncaibadc1daa2016-07-11 20:36:541092 "chooser_controller/mock_chooser_controller.cc",
1093 "chooser_controller/mock_chooser_controller.h",
Brett Wilson052ce132014-09-12 19:46:291094 "download/download_test_file_activity_observer.cc",
1095 "download/download_test_file_activity_observer.h",
1096 "download/test_download_shelf.cc",
1097 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:291098 "media/fake_desktop_media_list.cc",
1099 "media/fake_desktop_media_list.h",
1100 "net/dns_probe_test_util.cc",
1101 "net/dns_probe_test_util.h",
1102 "net/url_request_mock_util.cc",
1103 "net/url_request_mock_util.h",
1104 "notifications/notification_test_util.cc",
1105 "notifications/notification_test_util.h",
miguelg884b3ec2016-04-26 09:51:521106 "notifications/stub_notification_platform_bridge.cc",
1107 "notifications/stub_notification_platform_bridge.h",
Brett Wilson052ce132014-09-12 19:46:291108 "profile_resetter/profile_resetter_test_base.cc",
1109 "profile_resetter/profile_resetter_test_base.h",
1110 "search_engines/template_url_service_factory_test_util.cc",
1111 "search_engines/template_url_service_factory_test_util.h",
1112 "search_engines/template_url_service_test_util.cc",
1113 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:451114 "sessions/session_restore_test_helper.cc",
1115 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291116 "sessions/session_service_test_helper.cc",
1117 "sessions/session_service_test_helper.h",
knn523bd722015-07-30 16:27:091118 "signin/fake_account_fetcher_service_builder.cc",
1119 "signin/fake_account_fetcher_service_builder.h",
zeafe5f0ffb2016-06-16 22:04:061120 "signin/fake_gaia_cookie_manager_service_builder.cc",
1121 "signin/fake_gaia_cookie_manager_service_builder.h",
Brett Wilson052ce132014-09-12 19:46:291122 "signin/fake_profile_oauth2_token_service_builder.cc",
1123 "signin/fake_profile_oauth2_token_service_builder.h",
droger4f489e62015-07-24 19:27:591124 "signin/fake_signin_manager_builder.cc",
1125 "signin/fake_signin_manager_builder.h",
Brett Wilson052ce132014-09-12 19:46:291126 "ssl/ssl_client_auth_requestor_mock.cc",
1127 "ssl/ssl_client_auth_requestor_mock.h",
maxbogued2ea9242015-10-29 01:24:521128 "sync/profile_sync_test_util.cc",
1129 "sync/profile_sync_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291130 ]
1131
brettwbc8b2a22015-07-28 18:24:421132 configs += [ "//build/config:precompiled_headers" ]
1133
Brett Wilsone53895272014-09-23 23:41:461134 public_deps = [
Brett Wilson052ce132014-09-12 19:46:291135 ":browser",
Brett Wilsone53895272014-09-23 23:41:461136 "//chrome/browser/ui:test_support",
1137 ]
1138 deps = [
agrieved7a71c882015-11-20 19:53:281139 "//chrome/app/theme:theme_resources",
Brett Wilson052ce132014-09-12 19:46:291140 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:291141 "//chrome/common",
1142 "//chrome/common/safe_browsing:proto",
vabra6fded22015-12-10 09:06:551143 "//components/browser_sync/browser:test_support",
knn062cdbb2015-06-26 18:18:421144 "//components/invalidation/impl",
1145 "//components/invalidation/impl:test_support",
Brett Wilson052ce132014-09-12 19:46:291146 "//components/password_manager/core/browser:test_support",
brettw9f7802a22016-01-30 06:40:171147 "//components/prefs:test_support",
Brett Wilson052ce132014-09-12 19:46:291148 "//components/search_engines:test_support",
engedy9ae04242016-06-08 13:31:181149 "//components/subresource_filter/core/browser:test_support",
sdefresne875d0782015-09-16 12:01:281150 "//components/syncable_prefs:test_support",
jitendra.ks94c0b962015-08-10 08:24:091151 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
carlosk282c4372016-02-02 14:53:491152 "//content/test:browsertest_base",
Brett Wilson052ce132014-09-12 19:46:291153 "//content/test:test_support",
Brett Wilson052ce132014-09-12 19:46:291154 "//net:test_support",
1155 "//skia",
1156 "//testing/gmock",
1157 "//testing/gtest",
1158 "//ui/gfx",
1159 ]
1160
Brett Wilson052ce132014-09-12 19:46:291161 if (!is_ios) {
1162 deps += [
1163 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:291164 "//google_apis:test_support",
1165 ]
1166 }
1167
thestig354985d2015-09-28 20:55:001168 if (is_android) {
1169 sources -= [
thestig259da0b2015-10-07 18:09:081170 "download/test_download_shelf.cc",
1171 "download/test_download_shelf.h",
1172 "profile_resetter/profile_resetter_test_base.cc",
1173 "profile_resetter/profile_resetter_test_base.h",
1174 "sessions/session_restore_test_helper.cc",
1175 "sessions/session_restore_test_helper.h",
thestig354985d2015-09-28 20:55:001176 "sessions/session_service_test_helper.cc",
1177 "sessions/session_service_test_helper.h",
thestig354985d2015-09-28 20:55:001178 ]
1179 }
1180
juncaibadc1daa2016-07-11 20:36:541181 if (is_android || is_ios) {
1182 sources -= [
1183 "chooser_controller/mock_chooser_controller.cc",
1184 "chooser_controller/mock_chooser_controller.h",
1185 ]
1186 }
1187
James Robinson2ed4d692014-09-17 05:20:581188 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:381189 sources += [
1190 "extensions/extension_action_test_util.cc",
1191 "extensions/extension_action_test_util.h",
1192 ]
scottmga266f952014-12-03 20:47:101193 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:581194 }
1195
Brett Wilson052ce132014-09-12 19:46:291196 if (is_chromeos) {
1197 sources += [
1198 "chromeos/app_mode/fake_cws.cc",
1199 "chromeos/app_mode/fake_cws.h",
1200 "chromeos/file_manager/fake_disk_mount_manager.cc",
1201 "chromeos/file_manager/fake_disk_mount_manager.h",
1202 "chromeos/input_method/mock_candidate_window_controller.cc",
1203 "chromeos/input_method/mock_candidate_window_controller.h",
1204 "chromeos/input_method/mock_input_method_engine.cc",
1205 "chromeos/input_method/mock_input_method_engine.h",
1206 "chromeos/input_method/mock_input_method_manager.cc",
1207 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511208 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1209 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391210 "chromeos/login/session/user_session_manager_test_api.cc",
1211 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291212 "chromeos/login/test/js_checker.cc",
1213 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591214 "chromeos/login/test/oobe_screen_waiter.cc",
1215 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291216 "chromeos/login/ui/mock_login_display.cc",
1217 "chromeos/login/ui/mock_login_display.h",
1218 "chromeos/login/ui/mock_login_display_host.cc",
1219 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511220 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1221 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301222 "chromeos/login/users/fake_chrome_user_manager.cc",
1223 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511224 "chromeos/login/users/fake_supervised_user_manager.cc",
1225 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511226 "chromeos/login/users/mock_user_manager.cc",
1227 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291228 "chromeos/net/network_portal_detector_test_utils.cc",
1229 "chromeos/net/network_portal_detector_test_utils.h",
1230 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1231 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1232 "chromeos/policy/device_policy_builder.cc",
1233 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071234 "chromeos/policy/fake_consumer_management_service.cc",
1235 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291236 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1237 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071238 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1239 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291240 "chromeos/policy/stub_enterprise_install_attributes.cc",
1241 "chromeos/policy/stub_enterprise_install_attributes.h",
1242 "chromeos/settings/device_settings_test_helper.cc",
1243 "chromeos/settings/device_settings_test_helper.h",
1244 "chromeos/system/fake_input_device_settings.cc",
1245 "chromeos/system/fake_input_device_settings.h",
1246 ]
agrieve95ba4442016-04-25 15:47:131247 configs += [ "//build/config/linux/dbus" ]
mukai6ba73552014-10-09 19:05:171248 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291249 }
1250
1251 if (enable_configuration_policy) {
1252 sources += [
1253 "policy/test/local_policy_test_server.cc",
1254 "policy/test/local_policy_test_server.h",
1255 ]
Brett Wilsone53895272014-09-23 23:41:461256 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291257 "//components/policy:policy_component_test_support",
1258 "//components/policy:test_support",
1259 ]
Brett Wilson052ce132014-09-12 19:46:291260 }
1261
1262 if (safe_browsing_mode == 1) {
1263 sources += [
1264 "extensions/fake_safe_browsing_database_manager.cc",
1265 "extensions/fake_safe_browsing_database_manager.h",
1266 ]
1267 }
1268
1269 if (enable_extensions) {
1270 sources += [
Brett Wilson052ce132014-09-12 19:46:291271 "extensions/api/messaging/native_messaging_test_util.cc",
1272 "extensions/api/messaging/native_messaging_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291273 "extensions/mock_extension_special_storage_policy.cc",
1274 "extensions/mock_extension_special_storage_policy.h",
1275 "extensions/test_blacklist.cc",
1276 "extensions/test_blacklist.h",
1277 "extensions/test_blacklist_state_fetcher.cc",
1278 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511279 "extensions/test_extension_dir.cc",
1280 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591281 "extensions/test_extension_environment.cc",
1282 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291283 "extensions/test_extension_prefs.cc",
1284 "extensions/test_extension_prefs.h",
1285 "extensions/test_extension_service.cc",
1286 "extensions/test_extension_service.h",
1287 "extensions/test_extension_system.cc",
1288 "extensions/test_extension_system.h",
1289 "media_galleries/media_galleries_test_util.cc",
1290 "media_galleries/media_galleries_test_util.h",
1291 ]
lukasza8acc4eb2015-07-20 20:57:201292 deps += [
1293 "//components/drive:test_support",
1294 "//components/storage_monitor:test_support",
1295 ]
Brett Wilson052ce132014-09-12 19:46:291296 }
1297
1298 if (enable_mdns) {
1299 sources += [
1300 "local_discovery/test_service_discovery_client.cc",
1301 "local_discovery/test_service_discovery_client.h",
1302 ]
1303 }
1304
1305 if (enable_app_list) {
1306 sources += [
1307 "ui/app_list/test/chrome_app_list_test_support.cc",
1308 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511309 "ui/app_list/test/test_app_list_controller_delegate.cc",
1310 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291311 ]
1312 }
xhwangc3a252b2016-05-23 02:35:481313
1314 if (enable_pepper_cdms) {
1315 sources += [
1316 "media/pepper_cdm_test_helper.cc",
1317 "media/pepper_cdm_test_helper.h",
1318 ]
brettwf5431b3d2016-06-07 23:14:371319 deps += [
1320 ":pepper_cdm_test_constants",
1321 "//media:cdm_paths",
1322 ]
xhwangc3a252b2016-05-23 02:35:481323 }
Brett Wilson052ce132014-09-12 19:46:291324}
sdefresned967d552015-07-16 08:34:351325
thestig65d7c5c2015-10-06 18:13:471326# In GYP this is part of test_support_ui.
brettw77617612016-07-13 22:40:061327static_library("test_support_ui") {
thestig65d7c5c2015-10-06 18:13:471328 testonly = true
1329
1330 # Always include this via the main test support UI target.
1331 visibility = [ "//chrome/test:test_support_ui" ]
1332
1333 sources = [
1334 "password_manager/password_manager_test_base.cc",
1335 "password_manager/password_manager_test_base.h",
shadi3ca8c9d2016-01-19 18:54:391336 "signin/token_revoker_test_utils.cc",
1337 "signin/token_revoker_test_utils.h",
thestig65d7c5c2015-10-06 18:13:471338 "ui/webui/signin/login_ui_test_utils.cc",
1339 "ui/webui/signin/login_ui_test_utils.h",
1340 ]
1341
1342 configs += [ "//build/config:precompiled_headers" ]
1343
1344 deps = [
1345 "//components/metrics:test_support",
leon.han952ea3252016-04-13 02:44:561346 "//components/password_manager/content/public/interfaces",
vabr22c9e4f42015-10-20 15:34:091347 "//components/password_manager/core/browser:test_support",
thestig65d7c5c2015-10-06 18:13:471348 "//skia",
1349 "//testing/gtest",
1350 ]
1351}
1352
sdefresned967d552015-07-16 08:34:351353if (enable_rlz_support) {
brettw77617612016-07-13 22:40:061354 static_library("rlz") {
sdefresned967d552015-07-16 08:34:351355 sources =
1356 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1357 deps = [
1358 "//components/google/core/browser",
1359 "//components/omnibox/browser",
1360 "//components/rlz",
1361 "//components/search_engines",
1362 "//rlz:rlz_lib",
1363 ]
1364 }
1365}
brettwf5431b3d2016-06-07 23:14:371366
1367if (enable_pepper_cdms) {
1368 # These constants are separated so that test binaries can use them without
1369 # linking all of the test support.
brettw77617612016-07-13 22:40:061370 static_library("pepper_cdm_test_constants") {
brettwf5431b3d2016-06-07 23:14:371371 testonly = true
1372 visibility = [ "//chrome/*" ]
1373 sources = [
1374 "media/pepper_cdm_test_constants.cc",
1375 "media/pepper_cdm_test_constants.h",
1376 ]
1377 }
1378}