blob: 5da4cfe2d961b1f07af6d34d9335d1f9c3cedd4d [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
jam66e4b2b2016-04-01 15:09:0949 "pdh.lib",
mmenkede134672015-08-18 01:33:3950 ]
51 ldflags = [ "/DELAYLOAD:ndfapi.dll" ]
52 }
53}
54
cmasone0a9e4ca2014-10-16 16:40:4955if (is_desktop_linux) {
brettwa68ea2b2015-02-01 02:54:0756 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
57 # will set this up.
cmasone0a9e4ca2014-10-16 16:40:4958 pkg_config("gnome_keyring") {
59 packages = [ "gnome-keyring-1" ]
brettwa68ea2b2015-02-01 02:54:0760 defines = [
61 "USE_GNOME_KEYRING",
62 "DLOPEN_GNOME_KEYRING",
63 ]
64 ignore_libs = true
65 }
66
67 # If you want to link gnome-keyring directly (use only for unit tests)
68 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
69 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
70 # are just itself and common gnome ones we link already, so we can get away
71 # with additionally just coding the library name here.
72 config("gnome_keyring_direct") {
73 libs = [ "gnome-keyring" ]
cmasone0a9e4ca2014-10-16 16:40:4974 }
75}
76
brettw44a5cf82015-04-08 19:48:2277source_set("browser") {
apavlove749bca2014-09-30 11:07:4178 configs += [
79 "//build/config/compiler:wexit_time_destructors",
brettwbc8b2a22015-07-28 18:24:4280 "//build/config:precompiled_headers",
apavlove749bca2014-09-30 11:07:4181 "//third_party/WebKit/public:debug_devtools",
82 ]
[email protected]dffd8a912014-06-30 23:24:3183 defines = []
84 sources = []
85 libs = []
86 ldflags = []
87
tfarina11b504b2016-03-02 19:49:5188 allow_circular_includes_from = [ "//chrome/browser/ui" ]
89
[email protected]dffd8a912014-06-30 23:24:3190 # iOS/non-iOS shared deps. New dependencies should generally be added in the
91 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:4692 public_deps = [
93 "//components/autofill/core/browser",
94 "//content/public/browser",
95 "//sql",
96 "//sync",
97 ]
[email protected]dffd8a912014-06-30 23:24:3198 deps = [
[email protected]dffd8a912014-06-30 23:24:3199 "//chrome:extra_resources",
100 "//chrome:resources",
101 "//chrome:strings",
[email protected]855b7de2014-07-08 21:02:45102 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:17103 "//chrome/app/theme:theme_resources",
sdefresnea213ceb2015-10-05 09:23:39104 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
[email protected]797b25042014-07-01 23:54:17105 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:30106 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:31107 "//chrome/common",
[email protected]604828c2014-07-02 20:39:12108 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:01109 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:03110 "//components/bookmarks/managed",
blundell7282b512015-11-09 07:21:11111 "//components/browser_sync/browser",
blundell373c28c2015-11-05 14:07:50112 "//components/browser_sync/common",
[email protected]b9f4c682014-07-10 22:00:37113 "//components/captive_portal",
estark334673f42015-09-08 14:51:39114 "//components/certificate_reporting",
[email protected]fca567b2014-07-02 17:37:34115 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:01116 "//components/component_updater",
vabrfc325fa2015-04-10 16:24:45117 "//components/content_settings/content/common",
vasiliiac461392014-09-18 11:35:17118 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:54119 "//components/content_settings/core/common",
abhishek.a21bbf8e4a2015-10-15 21:05:56120 "//components/cookie_config",
[email protected]478ed232014-08-19 02:10:55121 "//components/crx_file",
megjablon3476e042014-10-14 19:21:59122 "//components/data_reduction_proxy/core/browser",
sclittleae932be2015-10-08 20:53:50123 "//components/data_usage/core",
amohammadkhanf76ae112015-09-14 17:34:43124 "//components/data_use_measurement/core",
reillyg4a849272015-02-20 21:38:43125 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:25126 "//components/domain_reliability",
sdefresnecbacfd72015-03-20 12:11:32127 "//components/favicon/core",
sdefresne001b10de2015-03-20 18:41:46128 "//components/favicon_base",
droger888be0b2015-10-01 14:28:52129 "//components/flags_ui",
[email protected]abd4b682014-07-16 20:26:30130 "//components/gcm_driver",
jianli2104ce612015-05-06 00:24:34131 "//components/gcm_driver/instance_id",
Brett Wilson1c693992014-08-25 19:10:01132 "//components/google/core/browser",
fsamuelaf5bf6d12015-05-28 16:29:54133 "//components/guest_view/browser",
erikchen332265b2014-11-14 19:59:52134 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25135 "//components/history/core/browser",
136 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01137 "//components/infobars/core",
knn062cdbb2015-06-26 18:18:42138 "//components/invalidation/impl",
gunsch1afc65172014-09-16 00:03:32139 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34140 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06141 "//components/metrics:profiler",
blundell218124c22015-10-15 10:36:35142 "//components/metrics:profiler_content",
blundell8e66adc2015-10-12 11:46:12143 "//components/metrics:ui",
agrieved7a71c882015-11-20 19:53:28144 "//components/metrics/proto:proto",
blundell695d61f2015-10-21 11:25:53145 "//components/metrics_services_manager",
rsleevic327b48f82015-04-30 02:03:25146 "//components/mime_util",
[email protected]fca567b2014-07-02 17:37:34147 "//components/navigation_metrics",
Brett Wilson1c693992014-08-25 19:10:01148 "//components/network_time",
agrieved7a71c882015-11-20 19:53:28149 "//components/ntp_snippets",
fgorskife7b92f2015-06-15 19:19:40150 "//components/offline_pages",
blundell2102f7c2015-07-09 10:00:53151 "//components/omnibox/browser",
[email protected]fca567b2014-07-02 17:37:34152 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00153 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01154 "//components/password_manager/core/browser",
155 "//components/password_manager/core/common",
dgozmane5a3e252016-03-22 21:45:08156 "//components/policy",
[email protected]fca567b2014-07-02 17:37:34157 "//components/policy:policy_component",
dgozmane5a3e252016-03-22 21:45:08158 "//components/policy/proto",
stevenjbb237e2ae2015-07-02 22:02:11159 "//components/proxy_config",
[email protected]fca567b2014-07-02 17:37:34160 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37161 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01162 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40163 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01164 "//components/search_engines",
165 "//components/search_provider_logos",
felt20e0f2002015-07-31 15:27:36166 "//components/security_interstitials/core",
estarkd9e54fb2016-01-11 19:37:12167 "//components/security_state",
[email protected]abd4b682014-07-16 20:26:30168 "//components/signin/core/browser",
felt2493b4452015-09-17 20:33:59169 "//components/ssl_errors",
fdoray443bd112015-11-16 20:44:23170 "//components/startup_metric_utils/browser:lib",
171 "//components/startup_metric_utils/browser:message_filter_lib",
fdoray343068c42016-02-03 15:45:58172
173 # TODO(fdoray): Remove this once the PreRead field trial has expired.
174 # crbug.com/577698
175 "//components/startup_metric_utils/common",
[email protected]797b25042014-07-01 23:54:17176 "//components/strings",
mathp60143a32014-10-08 14:52:45177 "//components/suggestions",
aberentc987fed2016-03-18 18:17:47178 "//components/supervised_user_error_page",
blundellc759b682015-10-08 15:50:59179 "//components/sync_bookmarks",
Brett Wilson1c693992014-08-25 19:10:01180 "//components/sync_driver",
skym6b9887e2015-10-09 22:10:47181 "//components/sync_sessions",
zhenwecedcf22015-08-18 23:37:46182 "//components/tracing:startup_tracing",
[email protected]b9f4c682014-07-10 22:00:37183 "//components/translate/core/browser",
184 "//components/translate/core/common",
brettw0741cb1c2015-08-21 22:06:00185 "//components/ui/zoom",
sdefresnec083d1f2015-04-17 21:12:18186 "//components/undo",
sorin39eab2f2015-01-06 01:09:08187 "//components/update_client",
rsleevi24f64dc22015-08-07 21:39:21188 "//components/url_formatter",
[email protected]fca567b2014-07-02 17:37:34189 "//components/user_prefs",
jitendra.ks94c0b962015-08-10 08:24:09190 "//components/user_prefs/tracked:user_prefs_tracked",
isherman3be67db2014-10-24 05:57:44191 "//components/variations",
192 "//components/variations/net",
blundellb50ad702015-08-27 17:08:29193 "//components/variations/service",
agrieved7a71c882015-11-20 19:53:28194 "//components/web_resource",
[email protected]bf4545f2014-07-11 19:49:46195 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56196 "//components/webdata_services",
[email protected]dffd8a912014-06-30 23:24:31197 "//content/public/browser",
198 "//content/public/common",
hbos18f58912016-03-08 14:26:35199 "//content/public/common:feature_h264_with_openh264_ffmpeg",
200 "//content/public/common:features",
[email protected]604828c2014-07-02 20:39:12201 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31202 "//crypto",
[email protected]604828c2014-07-02 20:39:12203 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56204 "//gpu/config",
[email protected]dffd8a912014-06-30 23:24:31205 "//skia",
206 "//sql",
207 "//sync",
[email protected]797b25042014-07-01 23:54:17208 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31209 "//third_party/icu",
ajwongf7b1cb692014-08-23 21:36:22210 "//third_party/libjingle",
agrieved7a71c882015-11-20 19:53:28211 "//third_party/libxml",
[email protected]dffd8a912014-06-30 23:24:31212 "//third_party/widevine/cdm:version_h",
213 "//third_party/zlib",
hajimehoshi1e1cc1a2016-01-14 19:09:00214 "//third_party/zlib:compression_utils",
[email protected]dffd8a912014-06-30 23:24:31215 "//third_party/zlib:minizip",
216 "//third_party/zlib:zip",
217 "//ui/base",
sdefresnec6574a552016-02-08 16:58:21218 "//ui/base:ui_data_pack",
cjhopman09981a92014-10-27 17:11:18219 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31220 "//ui/gfx",
221 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36222 "//ui/message_center",
agrieved7a71c882015-11-20 19:53:28223 "//ui/resources",
[email protected]a1d7d4f2014-07-16 21:33:36224 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31225 "//ui/strings",
[email protected]dffd8a912014-06-30 23:24:31226 ]
bencccedf12015-11-10 07:56:16227 data_deps = []
[email protected]dffd8a912014-06-30 23:24:31228
scottmga266f952014-12-03 20:47:10229 sources +=
230 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00231
[email protected]dffd8a912014-06-30 23:24:31232 if (!is_ios) {
scottmga266f952014-12-03 20:47:10233 sources +=
234 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59235 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10236 ".",
237 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59238 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10239 ".",
240 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18241 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
242 ".",
243 "//chrome")
244 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
245 ".",
246 "//chrome")
sclittlea133de02015-11-10 23:54:21247 sources += rebase_path(gypi_values.chrome_browser_data_usage_sources,
248 ".",
249 "//chrome")
benwellsedf5e082015-04-23 02:45:14250 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
251 ".",
252 "//chrome")
scottmga266f952014-12-03 20:47:10253 sources +=
254 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
255 sources +=
256 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
257 sources +=
258 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
259 sources +=
260 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
261 sources +=
262 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59263 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10264 ".",
265 "//chrome")
mlamouri4e372022015-03-29 14:51:06266 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
267 ".",
268 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59269 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10270 ".",
271 "//chrome")
272 sources +=
273 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59274 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10275 ".",
276 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59277 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10278 ".",
279 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59280 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10281 ".",
282 "//chrome")
283 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18284 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
285 sources +=
scottmga266f952014-12-03 20:47:10286 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
287 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18288 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
289 sources +=
scottmga266f952014-12-03 20:47:10290 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59291 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10292 ".",
293 "//chrome")
sievers2f1e8112015-12-04 18:43:56294 if (android_java_ui) {
295 sources +=
296 rebase_path(gypi_values.chrome_browser_sync_android_java_ui_sources,
297 ".",
298 "//chrome")
299 sources +=
300 rebase_path(gypi_values.chrome_browser_ssl_android_java_ui_sources,
301 ".",
302 "//chrome")
303 sources += rebase_path(
304 gypi_values.chrome_browser_history_android_java_ui_sources,
305 ".",
306 "//chrome")
307 sources += rebase_path(
308 gypi_values.chrome_browser_permissions_android_java_ui_sources,
309 ".",
310 "//chrome")
311 sources += rebase_path(
312 gypi_values.chrome_browser_search_engines_android_java_ui_sources,
313 ".",
314 "//chrome")
315 if (enable_supervised_users) {
316 sources += rebase_path(
317 gypi_values.chrome_browser_supervised_user_android_java_ui_sources,
318 ".",
319 "//chrome")
320 }
321 }
scottmga266f952014-12-03 20:47:10322
[email protected]dffd8a912014-06-30 23:24:31323 deps += [
Brett Wilson1c693992014-08-25 19:10:01324 "//apps",
[email protected]dffd8a912014-06-30 23:24:31325 "//cc",
brettwca934582015-02-24 21:50:27326 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30327 "//chrome/browser/devtools",
sdefresnea213ceb2015-10-05 09:23:39328 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
brettwca934582015-02-24 21:50:27329 "//chrome/browser/resources:component_extension_resources",
tfarina04d426612015-08-18 16:42:33330 "//chrome/common/net",
brettwe26e6d02015-12-29 06:51:47331 "//chrome/installer/util:with_no_strings",
jitendra.ks4f2e9112015-08-14 11:40:26332 "//components/about_handler",
oshimaf65398422014-11-18 23:30:42333 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37334 "//components/autofill/content/browser",
lazyboy14082d22015-04-02 01:04:58335 "//components/browsing_data",
donndbda9b6f432015-12-10 20:39:05336 "//components/contextual_search:browser",
jeremyim364ac1182015-03-03 18:49:43337 "//components/data_reduction_proxy/content/browser",
amohammadkhan092adb22015-09-11 21:08:49338 "//components/data_use_measurement/content",
dgozmanec2b982a2015-04-28 10:36:39339 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46340 "//components/devtools_http_handler",
brettw15764b12015-11-30 22:11:05341 "//components/dom_distiller/content/browser",
tfarina041134472015-09-02 15:29:38342 "//components/error_page/common",
sdefresne001b10de2015-03-20 18:41:46343 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04344 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34345 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30346 "//components/navigation_interception",
drogerc690e8802015-09-21 14:29:16347 "//components/net_log",
tfarina041134472015-09-02 15:29:38348 "//components/network_hints/common",
[email protected]55699f392014-08-20 22:16:30349 "//components/password_manager/content/browser",
vabr5410d0b2015-08-07 11:02:04350 "//components/password_manager/sync/browser",
droger78da6542015-11-02 11:25:59351 "//components/profile_metrics",
abhishek.a2171c612852015-08-31 10:48:19352 "//components/proxy_config",
droger2a6ab542015-10-09 16:10:28353 "//components/resources",
vakh9d5888022015-10-29 21:04:07354 "//components/safe_browsing_db",
bauerbf0e64aa2015-06-25 15:54:07355 "//components/safe_json",
brettwa22cb3b2015-04-30 20:23:12356 "//components/sessions",
abhishek.a212849cee2015-10-20 11:27:29357 "//components/ssl_config",
[email protected]abd4b682014-07-16 20:26:30358 "//components/storage_monitor",
sdefresne875d0782015-09-16 12:01:28359 "//components/syncable_prefs",
[email protected]b9f4c682014-07-10 22:00:37360 "//components/translate/content/browser",
sdefresne44eb1f22015-08-06 08:51:55361 "//components/upload_list",
[email protected]fca567b2014-07-02 17:37:34362 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31363 "//components/visitedlink/browser",
364 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18365 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37366 "//components/web_modal",
reillygcf1af632015-11-18 16:42:58367 "//components/webusb",
[email protected]a9ca8d52014-08-22 10:21:08368 "//content/app/resources",
reillygcf1af632015-11-18 16:42:58369 "//device/core",
reillyg64c8f4f2016-02-10 23:29:20370 "//device/usb/mojo",
371 "//device/usb/public/interfaces",
[email protected]55699f392014-08-20 22:16:30372 "//media",
yhiranobbea6272015-09-17 07:09:03373 "//media/midi",
cjhopman09981a92014-10-27 17:11:18374 "//mojo/common",
rockotc637caf9b2016-02-10 09:57:08375 "//mojo/edk/system",
rockot85dce0862015-11-13 01:33:59376 "//mojo/public/cpp/bindings",
377 "//mojo/public/js",
ben273c1e32016-01-12 02:44:08378 "//mojo/shell/public/cpp",
Brett Wilson83fd4242014-09-02 19:45:33379 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31380 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15381 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24382 "//storage/common",
erga3c614c92015-04-03 17:47:51383 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46384 "//third_party/WebKit/public:resources",
pmonette502a83e2016-01-08 00:21:16385 "//third_party/kasko",
[email protected]dffd8a912014-06-30 23:24:31386 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34387 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31388 "//third_party/libyuv",
[email protected]dffd8a912014-06-30 23:24:31389 "//third_party/re2",
390 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33391 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12392 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31393 "//ui/gl",
brettwca934582015-02-24 21:50:27394 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31395 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12396 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34397 "//v8",
[email protected]dffd8a912014-06-30 23:24:31398 ]
paulmeyer27b328b2015-06-17 21:26:12399
400 if (toolkit_views) {
401 deps += [ "//ui/views" ]
402 }
[email protected]dffd8a912014-06-30 23:24:31403 } else { # iOS
scottmga266f952014-12-03 20:47:10404 sources +=
405 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
406 sources +=
407 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
408 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31409 libs += [
410 "CoreTelephony.framework",
411 "CoreText.framework",
412 "MobileCoreServices.framework",
413 "QuartzCore.framework",
414 ]
scottmga266f952014-12-03 20:47:10415 ldflags += [
416 "-weak_framework",
417 "CoreImage",
418 ]
[email protected]dffd8a912014-06-30 23:24:31419 }
420
421 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10422 sources +=
423 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31424 }
mmenkede134672015-08-18 01:33:39425 if (!is_win && !is_mac && !is_ios) {
426 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ]
427 }
dgozmane5a3e252016-03-22 21:45:08428 if (!is_android && !is_ios && !is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31429 sources += [
430 "net/disk_cache_dir_policy_handler.cc",
431 "net/disk_cache_dir_policy_handler.h",
432 ]
433 }
dgozmane5a3e252016-03-22 21:45:08434 if (!is_android && !is_ios) {
[email protected]dffd8a912014-06-30 23:24:31435 sources += [
436 "download/download_dir_policy_handler.cc",
437 "download/download_dir_policy_handler.h",
438 ]
dgozmane5a3e252016-03-22 21:45:08439 deps += [
440 "//chrome/browser/policy:path_parser",
441 "//net:net_browser_services",
442 ]
[email protected]dffd8a912014-06-30 23:24:31443 }
444 if (is_mac) {
scottmga266f952014-12-03 20:47:10445 sources +=
446 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31447 deps += [
brettw5ff98192015-10-22 06:36:15448 "//chrome/app_shim",
449 "//chrome/browser/apps/app_shim",
[email protected]dffd8a912014-06-30 23:24:31450 ]
451 }
fdoray015d4422016-02-05 19:09:16452 if (is_win) {
453 deps += [ "//chrome:file_pre_reader" ]
454 }
ki.stfu5e669f02015-09-17 07:15:19455 if (is_mac || is_android) {
456 sources += rebase_path(
457 gypi_values.chrome_browser_password_manager_mac_android_sources,
458 ".",
459 "//chrome")
460 }
[email protected]dffd8a912014-06-30 23:24:31461 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46462 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52463 deps += [
[email protected]cc5b3be2014-08-15 23:24:52464 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30465 "//chrome/common/extensions/api",
466 "//chrome/common/extensions/api:api_registration",
lukasza8acc4eb2015-07-20 20:57:20467 "//components/drive:drive",
msarda4c408ff2015-04-22 14:27:56468 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44469 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50470 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06471 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52472 ]
[email protected]dffd8a912014-06-30 23:24:31473 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10474 ".",
475 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31476 }
477 if (enable_background) {
478 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10479 ".",
480 "//chrome")
jamesr29ea2d122014-10-23 10:30:27481 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31482 sources -= [ "background/background_mode_manager_aura.cc" ]
483 }
484 }
485 if (enable_task_manager) {
486 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10487 ".",
488 "//chrome")
nya268de1c72015-12-16 05:07:40489 if (is_chromeos) {
490 sources +=
491 rebase_path(gypi_values.chrome_browser_task_manager_chromeos_sources,
492 ".",
493 "//chrome")
494 }
[email protected]dffd8a912014-06-30 23:24:31495 }
496 if (enable_spellcheck) {
497 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10498 ".",
499 "//chrome")
dylanking34c72442015-07-23 23:19:58500 if (!is_android) {
501 deps += [ "//third_party/hunspell" ]
502 }
[email protected]dffd8a912014-06-30 23:24:31503 }
504 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10505 sources +=
506 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
brettwf4b4a4282015-12-16 00:41:13507 deps += [ "//components/nacl/browser" ]
[email protected]dffd8a912014-06-30 23:24:31508 }
apavlove749bca2014-09-30 11:07:41509
[email protected]dffd8a912014-06-30 23:24:31510 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10511 sources +=
512 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31513 deps += [
James Robinson2ed4d692014-09-17 05:20:58514 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31515 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14516 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31517 ]
518 }
519 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10520 sources +=
stuartmorgan1b3df822014-12-08 14:36:11521 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10522 ".",
523 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31524 deps += [
[email protected]fca567b2014-07-02 17:37:34525 "//chrome/browser/safe_browsing:chunk_proto",
jialiuleed304432015-11-09 20:17:03526 "//chrome/common/safe_browsing:proto",
vakh27f7e222016-02-02 23:45:34527 "//components/safe_browsing_db:metadata_proto",
[email protected]dffd8a912014-06-30 23:24:31528 ]
529 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10530 sources +=
stuartmorgan1b3df822014-12-08 14:36:11531 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10532 ".",
533 "//chrome")
scottmga266f952014-12-03 20:47:10534 deps += [ "//chrome/common/safe_browsing:proto" ]
grtc1d1b752015-09-05 13:26:41535 if (is_win) {
536 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto" ]
537 }
nparker00a64f12015-10-16 17:34:30538 } else if (safe_browsing_mode == 2) {
539 sources +=
540 rebase_path(gypi_values.chrome_browser_safe_browsing_mobile_sources,
541 ".",
542 "//chrome")
vakh27f7e222016-02-02 23:45:34543 deps += [ "//components/safe_browsing_db:safe_browsing_db_mobile" ]
[email protected]dffd8a912014-06-30 23:24:31544 }
545 }
546
amistryf269d3b2015-06-09 19:18:39547 if (enable_hotwording) {
548 defines += [ "ENABLE_HOTWORDING" ]
549 }
550
[email protected]dffd8a912014-06-30 23:24:31551 if (is_linux) {
mostynbea514682015-08-18 22:08:56552 deps += [ "//device/media_transfer_protocol" ]
[email protected]dffd8a912014-06-30 23:24:31553 }
mostynbea514682015-08-18 22:08:56554
555 if (use_udev) {
556 deps += [ "//device/udev_linux" ]
557 }
558
[email protected]dffd8a912014-06-30 23:24:31559 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47560 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31561 }
562
563 if (is_chromeos) {
564 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10565 ".",
566 "//chrome")
567 deps += [ "//chrome/browser/chromeos" ]
dgozmane5a3e252016-03-22 21:45:08568 } else { # Non-ChromeOS.
569 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
570 ".",
571 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31572 }
573
mukai8c99b882014-10-15 03:07:59574 if (is_chromeos || is_ios) {
575 sources -= [
blundell296904a2015-10-13 12:30:48576 "signin/chrome_signin_status_metrics_provider_delegate.cc",
577 "signin/chrome_signin_status_metrics_provider_delegate.h",
mukai8c99b882014-10-15 03:07:59578 ]
579 }
580
sque82e4d1552016-02-26 22:47:19581 if (is_chromeos) {
582 sources += [
583 "metrics/leak_detector_controller.cc",
584 "metrics/leak_detector_controller.h",
585 ]
586 deps += [ "//components/metrics:leak_detector" ]
587 }
588
[email protected]dffd8a912014-06-30 23:24:31589 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12590 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31591 }
592 if (is_desktop_linux) {
593 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10594 ".",
595 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49596 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31597 }
dvadym34532022015-01-22 15:42:51598 if (is_desktop_linux) {
599 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
600 ".",
601 "//chrome")
602 defines += [ "USE_LIBSECRET" ]
603 }
[email protected]dffd8a912014-06-30 23:24:31604 if (use_aura) {
scottmga266f952014-12-03 20:47:10605 sources +=
606 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
ben0cc0be92015-11-09 21:49:06607
608 # These files are only built in a GN build because they bring in
609 # dependencies that don't build with GYP.
610 sources += [
bencccedf12015-11-10 07:56:16611 "ui/views/frame/browser_frame_mus.cc",
612 "ui/views/frame/browser_frame_mus.h",
skyab2410c52015-12-03 03:40:56613 "ui/views/frame/browser_non_client_frame_view_mus.cc",
614 "ui/views/frame/browser_non_client_frame_view_mus.h",
ben0cc0be92015-11-09 21:49:06615 ]
[email protected]dffd8a912014-06-30 23:24:31616 deps += [
skyab2410c52015-12-03 03:40:56617 "//components/mus/public/cpp",
ben03b7b9d2015-11-15 12:13:09618 "//content/public/common",
rockotd5669c5c2016-03-14 23:38:28619 "//mojo/shell/runner/common",
[email protected]fca567b2014-07-02 17:37:34620 "//ui/aura",
621 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12622 "//ui/keyboard",
ben974286a2015-10-10 00:45:12623 "//ui/keyboard:keyboard_with_content",
ben03b7b9d2015-11-15 12:13:09624 "//ui/views/mus:for_component",
[email protected]dffd8a912014-06-30 23:24:31625 ]
ben03b7b9d2015-11-15 12:13:09626 defines += [ "MOJO_SHELL_CLIENT" ]
skyef819da2015-11-26 02:39:58627 data_deps += [ "//mash/wm" ]
[email protected]dffd8a912014-06-30 23:24:31628 }
629 if (ui_compositor_image_transport) {
630 deps += [ "//ui/gl" ]
631 }
632
[email protected]855b7de2014-07-08 21:02:45633 if (use_ash) {
scottmga266f952014-12-03 20:47:10634 sources +=
635 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45636 }
637
[email protected]dffd8a912014-06-30 23:24:31638 if (use_x11) {
scottmga266f952014-12-03 20:47:10639 sources +=
640 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23641 } else {
642 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31643 }
Scott Grahamcae6b0e2015-12-04 03:23:29644 if (is_posix && !is_mac && !is_ios) {
[email protected]dffd8a912014-06-30 23:24:31645 sources += [
rseseka0a7a042014-09-18 23:59:20646 "//chrome/app/chrome_crash_reporter_client.cc",
647 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31648 ]
649 deps += [
sdefresne8ba0b88c2015-09-18 10:33:13650 "//components/crash/content/app",
651 "//components/crash/content/browser",
blundellf1cfb032015-11-16 18:22:30652 "//components/version_info:generate_version_info",
[email protected]dffd8a912014-06-30 23:24:31653 ]
654 }
655 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10656 sources +=
657 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59658 if (is_chromeos) {
659 sources -= [ "net/nss_context_linux.cc" ]
660 }
[email protected]dffd8a912014-06-30 23:24:31661 }
662 if (enable_notifications) {
663 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10664 ".",
665 "//chrome")
sievers2f1e8112015-12-04 18:43:56666 if (android_java_ui) {
667 sources += rebase_path(
668 gypi_values.chrome_browser_notifications_android_java_ui_sources,
669 ".",
670 "//chrome")
estade6d95d1d2015-10-02 18:55:23671 } else {
[email protected]dffd8a912014-06-30 23:24:31672 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11673 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10674 ".",
675 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31676 }
677 }
678 if (enable_themes) {
scottmga266f952014-12-03 20:47:10679 sources +=
680 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31681 }
682
vitalybuka93eea402014-11-05 23:47:15683 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31684 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11685 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10686 ".",
687 "//chrome")
spang5cc72542015-08-04 19:47:11688 deps += [
brettwd649f6b2015-08-18 20:58:51689 "//components/printing/browser",
agrieved7a71c882015-11-20 19:53:28690 "//printing",
spang5cc72542015-08-04 19:47:11691 ]
692
vitalybuka36259ca2014-08-28 23:42:24693 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31694 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10695 ".",
696 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31697 }
vitalybuka93eea402014-11-05 23:47:15698 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31699 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11700 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10701 ".",
702 "//chrome")
vitalybuka93eea402014-11-05 23:47:15703 } else {
[email protected]dffd8a912014-06-30 23:24:31704 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10705 sources +=
stuartmorgan1b3df822014-12-08 14:36:11706 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10707 ".",
708 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31709 }
710 }
711 if (enable_captive_portal_detection) {
712 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10713 ".",
714 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31715 }
716 if (enable_session_service) {
717 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10718 ".",
719 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31720 }
721
thestigdc377202014-10-28 22:06:02722 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10723 sources +=
724 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02725 }
726
[email protected]dffd8a912014-06-30 23:24:31727 if (is_android || is_ios) {
728 # Mobile.
scottmga266f952014-12-03 20:47:10729 sources +=
730 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31731 } else {
732 # Non-mobile.
733 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10734 ".",
735 "//chrome")
battreec964982015-12-15 14:04:58736 deps += [
737 "//chrome/browser/profile_resetter:profile_reset_report_proto",
738 "//components/feedback",
739 ]
[email protected]dffd8a912014-06-30 23:24:31740 }
741
mathp17e1eba2015-10-06 21:50:59742 if (!is_chrome_branded) {
fserb1c2db4c2015-07-16 17:14:49743 sources += [
744 "search/local_files_ntp_source.cc",
745 "search/local_files_ntp_source.h",
746 ]
747 }
748
[email protected]dffd8a912014-06-30 23:24:31749 if (is_android) {
scottmga266f952014-12-03 20:47:10750 sources +=
751 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
sievers2f1e8112015-12-04 18:43:56752 }
753
754 if (android_java_ui) {
755 sources += rebase_path(gypi_values.chrome_browser_android_java_ui_sources,
756 ".",
757 "//chrome")
fgorski1d4c9c92015-12-17 20:39:32758 sources += rebase_path(gypi_values.chrome_browser_offline_pages_sources,
twellingtoncaf0eb752015-06-01 16:19:50759 ".",
760 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31761 deps += [
pkotwicz127726f2015-05-29 15:20:12762 ":client_discourse_context_proto",
763 ":delta_file_proto",
James Robinson2ed4d692014-09-17 05:20:58764 ":jni_headers",
sclittlec441f782015-11-12 01:12:09765 "//components/data_usage/android",
twifkak8c9f7502015-06-25 02:12:57766 "//components/precache/content",
767 "//components/precache/core",
estadee37f8222014-11-07 21:35:22768 "//components/resources:components_resources",
mathiash3ecfdfa2015-04-13 15:06:07769 "//components/service_tab_launcher",
blundell11d93bc2015-07-31 12:33:12770 "//components/toolbar",
cjhopman09981a92014-10-27 17:11:18771 "//components/web_contents_delegate_android",
sievers2f1e8112015-12-04 18:43:56772 ]
sievers2f1e8112015-12-04 18:43:56773 }
774
775 if (is_android) {
776 deps += [
777 "//components/cdm/browser",
778 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18779 "//third_party/android_opengl/etc1",
fdegans34f31e272015-05-22 16:59:03780 "//third_party/android_tools:cpu_features",
twellington0bc61492015-01-30 20:14:13781 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31782 ]
sievers2f1e8112015-12-04 18:43:56783
[email protected]dffd8a912014-06-30 23:24:31784 deps -= [
[email protected]abd4b682014-07-16 20:26:30785 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30786 "//components/web_modal",
agrieved7a71c882015-11-20 19:53:28787 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31788 ]
rseseke59ea892015-03-19 22:27:44789
790 if (use_seccomp_bpf) {
791 defines += [ "USE_SECCOMP_BPF" ]
rsesek65d31352015-06-08 22:53:44792 deps += [ "//sandbox/linux:seccomp_bpf" ]
rseseke59ea892015-03-19 22:27:44793 }
[email protected]dffd8a912014-06-30 23:24:31794 }
795
796 if (is_mac) {
797 deps += [
[email protected]6b5d2f92014-07-30 00:40:03798 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03799 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31800 ]
801 libs += [
802 "Accelerate.framework",
803 "AddressBook.framework",
804 "AudioUnit.framework",
805 "DiskArbitration.framework",
806 "IOKit.framework",
807 "ImageCaptureCore.framework",
808 "OpenGL.framework",
809 "QuartzCore.framework",
810 "SecurityInterface.framework",
811 ]
812 }
813
814 if (enable_rlz) {
sdefresned967d552015-07-16 08:34:35815 deps += [ ":rlz" ]
[email protected]dffd8a912014-06-30 23:24:31816 }
817
818 # TODO(GYP)
819 # Temporary fix to break the browser target into smaller chunks so it
820 # will link with goma builds.
821 #["OS=="win" and chromium_win_pch==0", {
822 # "msvs_shard": 4,
823 #}],
824
825 if (is_win) {
scottmga266f952014-12-03 20:47:10826 sources +=
827 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
Brett Wilsone53895272014-09-23 23:41:46828 public_deps += [
829 "//ui/views",
830 "//ui/views/controls/webview",
831 ]
[email protected]dffd8a912014-06-30 23:24:31832 deps += [
vchigrin9593e7a2015-01-27 10:08:19833 ":chrome_process_finder",
pmonette502a83e2016-01-08 00:21:16834 "//chrome/chrome_watcher:client",
mdempsky15a48be2015-10-21 23:37:53835 "//chrome/common:version_header",
[email protected]55699f392014-08-20 22:16:30836 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19837 "//chrome_elf",
838 "//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) {
slan17e5ce7f2015-09-25 00:04:45874 configs += [ "//build/config/linux:dbus" ]
875 deps += [
876 "//build/linux:fontconfig",
877 "//dbus",
[email protected]dffd8a912014-06-30 23:24:31878 ]
[email protected]dffd8a912014-06-30 23:24:31879 }
880 if (use_x11) {
881 configs += [ "//build/config/linux:x11" ]
882 deps += [ "//ui/gfx/x" ]
883 }
884 }
885
rouslane59900a2016-02-17 19:45:43886 if (is_linux || is_win) {
887 sources += rebase_path(gypi_values.chrome_browser_non_mac_desktop_sources,
888 ".",
889 "//chrome")
890 }
891
[email protected]dffd8a912014-06-30 23:24:31892 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54893 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10894 ".",
895 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31896 }
897 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10898 sources +=
899 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
900 ".",
901 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31902 }
903 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10904 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31905 }
treib87bb89cbb2014-12-01 16:01:47906 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10907 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
908 ".",
909 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31910 }
bauerb7f3b8542015-06-29 19:56:19911 if (enable_supervised_users && !is_android && !is_ios) {
912 sources +=
913 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
914 ".",
915 "//chrome")
916 }
treib87bb89cbb2014-12-01 16:01:47917 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59918 sources += rebase_path(
scottmga266f952014-12-03 20:47:10919 gypi_values.chrome_browser_supervised_user_and_themes_sources,
920 ".",
921 "//chrome")
thestig169a6362014-11-13 20:47:59922 }
[email protected]dffd8a912014-06-30 23:24:31923 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10924 sources +=
925 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31926 }
927 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10928 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
929 ".",
930 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31931 }
932 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10933 sources +=
934 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31935 }
936 if (!enable_autofill_dialog || is_android || is_ios) {
937 sources -= [
938 "autofill/validation_rules_storage_factory.cc",
939 "autofill/validation_rules_storage_factory.h",
940 ]
941 }
mfoltz150bb8b2015-04-09 22:30:05942 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55943 deps += [ "//chrome/browser/media/router" ]
mfoltz150bb8b2015-04-09 22:30:05944 }
xhwang5e630462015-10-30 03:18:48945
xhwangc86d76e42016-03-14 23:38:49946 if (enable_mojo_media) {
xhwangbe720032016-02-19 18:45:31947 configs += [ "//media/mojo/services:mojo_media_config" ]
xhwangc86d76e42016-03-14 23:38:49948 sources += [
949 "media/output_protection_impl.cc",
950 "media/output_protection_impl.h",
951 ]
952 deps += [ "//media/mojo/interfaces" ]
953 if (mojo_media_host == "browser") {
954 deps += [ "//media/mojo/services:application_factory" ]
955 }
xhwang5e630462015-10-30 03:18:48956 }
revemanb195f41d2015-11-19 22:16:48957
958 if (enable_wayland_server) {
959 deps += [
960 "//components/exo",
961 "//components/exo/wayland",
962 ]
963 sources += [
964 "chrome_browser_main_extra_parts_exo.cc",
965 "chrome_browser_main_extra_parts_exo.h",
966 ]
967 }
[email protected]dffd8a912014-06-30 23:24:31968}
969
sievers2f1e8112015-12-04 18:43:56970if (android_java_ui) {
James Robinson2ed4d692014-09-17 05:20:58971 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
972 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10973 sources =
974 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58975 jni_package = "chrome"
976 }
pkotwicz127726f2015-05-29 15:20:12977
978 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
979 proto_library("client_discourse_context_proto") {
980 sources = [
981 "android/proto/client_discourse_context.proto",
982 ]
983 }
984
985 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
986 proto_library("delta_file_proto") {
987 sources = [
988 "android/proto/delta_file.proto",
989 ]
990 }
James Robinson2ed4d692014-09-17 05:20:58991}
992
vchigrin9593e7a2015-01-27 10:08:19993if (is_win) {
994 source_set("chrome_process_finder") {
995 sources = [
996 "chrome_process_finder_win.cc",
997 "chrome_process_finder_win.h",
998 ]
999 deps = [
1000 "//base",
vchigrin9593e7a2015-01-27 10:08:191001 "//chrome/common:constants",
1002 ]
1003 if (enable_configuration_policy) {
1004 deps += [ "//chrome/browser/policy:path_parser" ]
1005 }
1006 }
1007}
1008
[email protected]77ce8022014-06-16 19:29:561009# GYP version: chrome/chrome_resources.gyp:chrome_resources
1010# (generate_browser_resources action)
1011grit("resources") {
1012 source = "browser_resources.grd"
brettw06c2ba32015-11-26 09:21:251013 defines = chrome_grit_defines
[email protected]48885492014-08-13 11:22:411014 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:261015 outputs = [
1016 "grit/browser_resources.h",
1017 "browser_resources.pak",
1018 ]
[email protected]77ce8022014-06-16 19:29:561019
[email protected]77ce8022014-06-16 19:29:561020 grit_flags = [
scottmga266f952014-12-03 20:47:101021 "-E",
scottmga266f952014-12-03 20:47:101022 "additional_modules_list_file=" +
1023 rebase_path(additional_modules_list_file, root_build_dir),
1024 "-E",
calamityd59c1032015-09-22 06:35:531025 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
[email protected]77ce8022014-06-16 19:29:561026 ]
1027
1028 deps = [
[email protected]77ce8022014-06-16 19:29:561029 ":chrome_internal_resources_gen",
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",
vchigrin8eede942015-01-29 09:28:151036 ]
[email protected]77ce8022014-06-16 19:29:561037}
1038
[email protected]77ce8022014-06-16 19:29:561039# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:411040if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:561041 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:411042 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:101043 sources = [
1044 "internal/resources/additional_modules_list.input",
1045 ]
1046 outputs = [
1047 additional_modules_list_file,
1048 ]
engedy99d0e11b2014-09-30 13:32:411049 args = rebase_path(sources, root_build_dir) +
1050 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:561051 }
1052} else {
1053 group("chrome_internal_resources_gen") {
1054 # Empty placeholder.
1055 }
1056}
Brett Wilson052ce132014-09-12 19:46:291057
1058# In GYP this is part of test_support_common.
1059source_set("test_support") {
1060 testonly = true
1061
1062 # Always include this via the main test support target.
1063 visibility = [ "//chrome/test:test_support" ]
1064
1065 sources = [
1066 "browsing_data/mock_browsing_data_appcache_helper.cc",
1067 "browsing_data/mock_browsing_data_appcache_helper.h",
jsbelle1fe9692015-08-22 01:02:421068 "browsing_data/mock_browsing_data_cache_storage_helper.cc",
1069 "browsing_data/mock_browsing_data_cache_storage_helper.h",
Brett Wilson052ce132014-09-12 19:46:291070 "browsing_data/mock_browsing_data_channel_id_helper.cc",
1071 "browsing_data/mock_browsing_data_channel_id_helper.h",
1072 "browsing_data/mock_browsing_data_cookie_helper.cc",
1073 "browsing_data/mock_browsing_data_cookie_helper.h",
1074 "browsing_data/mock_browsing_data_database_helper.cc",
1075 "browsing_data/mock_browsing_data_database_helper.h",
1076 "browsing_data/mock_browsing_data_file_system_helper.cc",
1077 "browsing_data/mock_browsing_data_file_system_helper.h",
1078 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
1079 "browsing_data/mock_browsing_data_flash_lso_helper.h",
1080 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
1081 "browsing_data/mock_browsing_data_indexed_db_helper.h",
1082 "browsing_data/mock_browsing_data_local_storage_helper.cc",
1083 "browsing_data/mock_browsing_data_local_storage_helper.h",
1084 "browsing_data/mock_browsing_data_quota_helper.cc",
1085 "browsing_data/mock_browsing_data_quota_helper.h",
1086 "browsing_data/mock_browsing_data_service_worker_helper.cc",
1087 "browsing_data/mock_browsing_data_service_worker_helper.h",
1088 "download/download_test_file_activity_observer.cc",
1089 "download/download_test_file_activity_observer.h",
1090 "download/test_download_shelf.cc",
1091 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:291092 "media/fake_desktop_media_list.cc",
1093 "media/fake_desktop_media_list.h",
1094 "net/dns_probe_test_util.cc",
1095 "net/dns_probe_test_util.h",
1096 "net/url_request_mock_util.cc",
1097 "net/url_request_mock_util.h",
1098 "notifications/notification_test_util.cc",
1099 "notifications/notification_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291100 "profile_resetter/profile_resetter_test_base.cc",
1101 "profile_resetter/profile_resetter_test_base.h",
1102 "search_engines/template_url_service_factory_test_util.cc",
1103 "search_engines/template_url_service_factory_test_util.h",
1104 "search_engines/template_url_service_test_util.cc",
1105 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:451106 "sessions/session_restore_test_helper.cc",
1107 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291108 "sessions/session_service_test_helper.cc",
1109 "sessions/session_service_test_helper.h",
knn523bd722015-07-30 16:27:091110 "signin/fake_account_fetcher_service_builder.cc",
1111 "signin/fake_account_fetcher_service_builder.h",
mlerman2933d012015-04-24 18:34:271112 "signin/fake_gaia_cookie_manager_service.cc",
1113 "signin/fake_gaia_cookie_manager_service.h",
Brett Wilson052ce132014-09-12 19:46:291114 "signin/fake_profile_oauth2_token_service_builder.cc",
1115 "signin/fake_profile_oauth2_token_service_builder.h",
droger4f489e62015-07-24 19:27:591116 "signin/fake_signin_manager_builder.cc",
1117 "signin/fake_signin_manager_builder.h",
Brett Wilson052ce132014-09-12 19:46:291118 "ssl/ssl_client_auth_requestor_mock.cc",
1119 "ssl/ssl_client_auth_requestor_mock.h",
maxbogued2ea9242015-10-29 01:24:521120 "sync/profile_sync_test_util.cc",
1121 "sync/profile_sync_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291122 ]
1123
brettwbc8b2a22015-07-28 18:24:421124 configs += [ "//build/config:precompiled_headers" ]
1125
Brett Wilsone53895272014-09-23 23:41:461126 public_deps = [
Brett Wilson052ce132014-09-12 19:46:291127 ":browser",
Brett Wilsone53895272014-09-23 23:41:461128 "//chrome/browser/ui:test_support",
1129 ]
1130 deps = [
agrieved7a71c882015-11-20 19:53:281131 "//chrome/app/theme:theme_resources",
Brett Wilson052ce132014-09-12 19:46:291132 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:291133 "//chrome/common",
1134 "//chrome/common/safe_browsing:proto",
vabra6fded22015-12-10 09:06:551135 "//components/browser_sync/browser:test_support",
knn062cdbb2015-06-26 18:18:421136 "//components/invalidation/impl",
1137 "//components/invalidation/impl:test_support",
Brett Wilson052ce132014-09-12 19:46:291138 "//components/password_manager/core/browser:test_support",
brettw9f7802a22016-01-30 06:40:171139 "//components/prefs:test_support",
Brett Wilson052ce132014-09-12 19:46:291140 "//components/search_engines:test_support",
sdefresne875d0782015-09-16 12:01:281141 "//components/syncable_prefs:test_support",
jitendra.ks94c0b962015-08-10 08:24:091142 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
carlosk282c4372016-02-02 14:53:491143 "//content/test:browsertest_base",
Brett Wilson052ce132014-09-12 19:46:291144 "//content/test:test_support",
Brett Wilson052ce132014-09-12 19:46:291145 "//net:test_support",
1146 "//skia",
1147 "//testing/gmock",
1148 "//testing/gtest",
1149 "//ui/gfx",
1150 ]
1151
Brett Wilson052ce132014-09-12 19:46:291152 if (!is_ios) {
1153 deps += [
1154 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:291155 "//google_apis:test_support",
1156 ]
1157 }
1158
thestig354985d2015-09-28 20:55:001159 if (is_android) {
1160 sources -= [
thestig259da0b2015-10-07 18:09:081161 "download/test_download_shelf.cc",
1162 "download/test_download_shelf.h",
1163 "profile_resetter/profile_resetter_test_base.cc",
1164 "profile_resetter/profile_resetter_test_base.h",
1165 "sessions/session_restore_test_helper.cc",
1166 "sessions/session_restore_test_helper.h",
thestig354985d2015-09-28 20:55:001167 "sessions/session_service_test_helper.cc",
1168 "sessions/session_service_test_helper.h",
thestig354985d2015-09-28 20:55:001169 ]
1170 }
1171
James Robinson2ed4d692014-09-17 05:20:581172 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:381173 sources += [
1174 "extensions/extension_action_test_util.cc",
1175 "extensions/extension_action_test_util.h",
1176 ]
scottmga266f952014-12-03 20:47:101177 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:581178 }
1179
Brett Wilson052ce132014-09-12 19:46:291180 if (is_chromeos) {
1181 sources += [
1182 "chromeos/app_mode/fake_cws.cc",
1183 "chromeos/app_mode/fake_cws.h",
1184 "chromeos/file_manager/fake_disk_mount_manager.cc",
1185 "chromeos/file_manager/fake_disk_mount_manager.h",
1186 "chromeos/input_method/mock_candidate_window_controller.cc",
1187 "chromeos/input_method/mock_candidate_window_controller.h",
1188 "chromeos/input_method/mock_input_method_engine.cc",
1189 "chromeos/input_method/mock_input_method_engine.h",
1190 "chromeos/input_method/mock_input_method_manager.cc",
1191 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511192 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1193 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391194 "chromeos/login/session/user_session_manager_test_api.cc",
1195 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291196 "chromeos/login/test/js_checker.cc",
1197 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591198 "chromeos/login/test/oobe_screen_waiter.cc",
1199 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291200 "chromeos/login/ui/mock_login_display.cc",
1201 "chromeos/login/ui/mock_login_display.h",
1202 "chromeos/login/ui/mock_login_display_host.cc",
1203 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511204 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1205 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301206 "chromeos/login/users/fake_chrome_user_manager.cc",
1207 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511208 "chromeos/login/users/fake_supervised_user_manager.cc",
1209 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511210 "chromeos/login/users/mock_user_manager.cc",
1211 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291212 "chromeos/net/network_portal_detector_test_utils.cc",
1213 "chromeos/net/network_portal_detector_test_utils.h",
1214 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1215 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1216 "chromeos/policy/device_policy_builder.cc",
1217 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071218 "chromeos/policy/fake_consumer_management_service.cc",
1219 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291220 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1221 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071222 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1223 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291224 "chromeos/policy/stub_enterprise_install_attributes.cc",
1225 "chromeos/policy/stub_enterprise_install_attributes.h",
1226 "chromeos/settings/device_settings_test_helper.cc",
1227 "chromeos/settings/device_settings_test_helper.h",
1228 "chromeos/system/fake_input_device_settings.cc",
1229 "chromeos/system/fake_input_device_settings.h",
1230 ]
1231 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:171232 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291233 }
1234
1235 if (enable_configuration_policy) {
1236 sources += [
1237 "policy/test/local_policy_test_server.cc",
1238 "policy/test/local_policy_test_server.h",
1239 ]
Brett Wilsone53895272014-09-23 23:41:461240 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291241 "//components/policy:policy_component_test_support",
1242 "//components/policy:test_support",
1243 ]
Brett Wilson052ce132014-09-12 19:46:291244 }
1245
1246 if (safe_browsing_mode == 1) {
1247 sources += [
1248 "extensions/fake_safe_browsing_database_manager.cc",
1249 "extensions/fake_safe_browsing_database_manager.h",
1250 ]
1251 }
1252
1253 if (enable_extensions) {
1254 sources += [
Brett Wilson052ce132014-09-12 19:46:291255 "extensions/api/messaging/native_messaging_test_util.cc",
1256 "extensions/api/messaging/native_messaging_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291257 "extensions/mock_extension_special_storage_policy.cc",
1258 "extensions/mock_extension_special_storage_policy.h",
1259 "extensions/test_blacklist.cc",
1260 "extensions/test_blacklist.h",
1261 "extensions/test_blacklist_state_fetcher.cc",
1262 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511263 "extensions/test_extension_dir.cc",
1264 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591265 "extensions/test_extension_environment.cc",
1266 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291267 "extensions/test_extension_prefs.cc",
1268 "extensions/test_extension_prefs.h",
1269 "extensions/test_extension_service.cc",
1270 "extensions/test_extension_service.h",
1271 "extensions/test_extension_system.cc",
1272 "extensions/test_extension_system.h",
1273 "media_galleries/media_galleries_test_util.cc",
1274 "media_galleries/media_galleries_test_util.h",
1275 ]
lukasza8acc4eb2015-07-20 20:57:201276 deps += [
1277 "//components/drive:test_support",
1278 "//components/storage_monitor:test_support",
1279 ]
Brett Wilson052ce132014-09-12 19:46:291280 }
1281
1282 if (enable_mdns) {
1283 sources += [
1284 "local_discovery/test_service_discovery_client.cc",
1285 "local_discovery/test_service_discovery_client.h",
1286 ]
1287 }
1288
1289 if (enable_app_list) {
1290 sources += [
1291 "ui/app_list/test/chrome_app_list_test_support.cc",
1292 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511293 "ui/app_list/test/test_app_list_controller_delegate.cc",
1294 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291295 ]
1296 }
Brett Wilson052ce132014-09-12 19:46:291297}
sdefresned967d552015-07-16 08:34:351298
thestig65d7c5c2015-10-06 18:13:471299# In GYP this is part of test_support_ui.
1300source_set("test_support_ui") {
1301 testonly = true
1302
1303 # Always include this via the main test support UI target.
1304 visibility = [ "//chrome/test:test_support_ui" ]
1305
1306 sources = [
1307 "password_manager/password_manager_test_base.cc",
1308 "password_manager/password_manager_test_base.h",
shadi3ca8c9d2016-01-19 18:54:391309 "signin/token_revoker_test_utils.cc",
1310 "signin/token_revoker_test_utils.h",
thestig65d7c5c2015-10-06 18:13:471311 "ui/webui/signin/login_ui_test_utils.cc",
1312 "ui/webui/signin/login_ui_test_utils.h",
1313 ]
1314
1315 configs += [ "//build/config:precompiled_headers" ]
1316
1317 deps = [
1318 "//components/metrics:test_support",
vabr22c9e4f42015-10-20 15:34:091319 "//components/password_manager/core/browser:test_support",
thestig65d7c5c2015-10-06 18:13:471320 "//skia",
1321 "//testing/gtest",
1322 ]
1323}
1324
sdefresned967d552015-07-16 08:34:351325if (enable_rlz_support) {
1326 source_set("rlz") {
1327 sources =
1328 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1329 deps = [
1330 "//components/google/core/browser",
1331 "//components/omnibox/browser",
1332 "//components/rlz",
1333 "//components/search_engines",
1334 "//rlz:rlz_lib",
1335 ]
1336 }
1337}