blob: 3b7248340efbf770c59893e97065e41a9f1d84c4 [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")
manzagopf071e882016-04-13 14:36:0011import("//third_party/kasko/kasko.gni")
pkotwicz127726f2015-05-29 15:20:1212import("//third_party/protobuf/proto_library.gni")
ochangcc11d0e2016-04-26 19:58:2613import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
scottmga266f952014-12-03 20:47:1014
James Robinson2ed4d692014-09-17 05:20:5815# //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
16# produces a conflict for the "grit" template so we have to only include one.
17if (is_android) {
18 import("//build/config/android/rules.gni")
19} else {
20 import("//tools/grit/grit_rule.gni")
21}
cmasone0a9e4ca2014-10-16 16:40:4922if (is_desktop_linux) {
23 import("//build/config/linux/pkg_config.gni")
24}
[email protected]77ce8022014-06-16 19:29:5625
amistryf269d3b2015-06-09 19:18:3926declare_args() {
mgiuca3cd6a822015-08-07 00:46:1327 # 'Ok Google' hotwording is disabled by default. Set to true to enable. (This
28 # will download a closed-source NaCl module at startup.) Chrome-branded
29 # ChromeOS builds have this enabled by default.
30 enable_hotwording = is_chrome_branded && is_chromeos
amistryf269d3b2015-06-09 19:18:3931}
32
[email protected]77ce8022014-06-16 19:29:5633additional_modules_list_file =
34 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
35
scottmga266f952014-12-03 20:47:1036gypi_values = exec_script("//build/gypi_to_gn.py",
37 [ rebase_path("../chrome_browser.gypi") ],
38 "scope",
39 [ "../chrome_browser.gypi" ])
[email protected]dffd8a912014-06-30 23:24:3140
mmenkede134672015-08-18 01:33:3941if (is_win) {
42 # This is in a separate config so the flags can be applied to dependents.
43 # ldflags in GN aren't automatically inherited.
44 config("browser_win_linker_flags") {
45 libs = [
46 "credui.lib",
jam66e4b2b2016-04-01 15:09:0947 "cryptui.lib",
48 "dwmapi.lib",
mmenkede134672015-08-18 01:33:3949 "netapi32.lib",
50 "ndfapi.lib", # Used by browser/net/net_error_diagnostics_dialog_win.h
manzagop74808fc2016-05-13 20:44:3951 "pdh.lib", # Used by browser/private_working_set_snapshot.h
mmenkede134672015-08-18 01:33:3952 ]
manzagop74808fc2016-05-13 20:44:3953 ldflags = [
54 "/DELAYLOAD:ndfapi.dll",
55 "/DELAYLOAD:pdh.dll", # The task manager is rarely used.
56 ]
mmenkede134672015-08-18 01:33:3957 }
58}
59
cmasone0a9e4ca2014-10-16 16:40:4960if (is_desktop_linux) {
brettwa68ea2b2015-02-01 02:54:0761 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
62 # will set this up.
cmasone0a9e4ca2014-10-16 16:40:4963 pkg_config("gnome_keyring") {
64 packages = [ "gnome-keyring-1" ]
brettwa68ea2b2015-02-01 02:54:0765 defines = [
66 "USE_GNOME_KEYRING",
67 "DLOPEN_GNOME_KEYRING",
68 ]
69 ignore_libs = true
70 }
71
72 # If you want to link gnome-keyring directly (use only for unit tests)
73 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
74 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
75 # are just itself and common gnome ones we link already, so we can get away
76 # with additionally just coding the library name here.
77 config("gnome_keyring_direct") {
78 libs = [ "gnome-keyring" ]
cmasone0a9e4ca2014-10-16 16:40:4979 }
80}
81
brettw44a5cf82015-04-08 19:48:2282source_set("browser") {
apavlove749bca2014-09-30 11:07:4183 configs += [
84 "//build/config/compiler:wexit_time_destructors",
brettwbc8b2a22015-07-28 18:24:4285 "//build/config:precompiled_headers",
apavlove749bca2014-09-30 11:07:4186 "//third_party/WebKit/public:debug_devtools",
87 ]
[email protected]dffd8a912014-06-30 23:24:3188 defines = []
89 sources = []
90 libs = []
91 ldflags = []
92
tfarina11b504b2016-03-02 19:49:5193 allow_circular_includes_from = [ "//chrome/browser/ui" ]
94
[email protected]dffd8a912014-06-30 23:24:3195 # iOS/non-iOS shared deps. New dependencies should generally be added in the
96 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:4697 public_deps = [
98 "//components/autofill/core/browser",
99 "//content/public/browser",
100 "//sql",
101 "//sync",
102 ]
[email protected]dffd8a912014-06-30 23:24:31103 deps = [
[email protected]dffd8a912014-06-30 23:24:31104 "//chrome:extra_resources",
105 "//chrome:resources",
106 "//chrome:strings",
[email protected]855b7de2014-07-08 21:02:45107 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:17108 "//chrome/app/theme:theme_resources",
sdefresnea213ceb2015-10-05 09:23:39109 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
[email protected]797b25042014-07-01 23:54:17110 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:30111 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:31112 "//chrome/common",
[email protected]604828c2014-07-02 20:39:12113 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:01114 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:03115 "//components/bookmarks/managed",
blundell7282b512015-11-09 07:21:11116 "//components/browser_sync/browser",
blundell373c28c2015-11-05 14:07:50117 "//components/browser_sync/common",
[email protected]b9f4c682014-07-10 22:00:37118 "//components/captive_portal",
estark334673f42015-09-08 14:51:39119 "//components/certificate_reporting",
eranm3c2d6432016-06-01 10:17:27120 "//components/certificate_transparency",
[email protected]fca567b2014-07-02 17:37:34121 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:01122 "//components/component_updater",
vabrfc325fa2015-04-10 16:24:45123 "//components/content_settings/content/common",
vasiliiac461392014-09-18 11:35:17124 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:54125 "//components/content_settings/core/common",
abhishek.a21bbf8e4a2015-10-15 21:05:56126 "//components/cookie_config",
[email protected]478ed232014-08-19 02:10:55127 "//components/crx_file",
megjablon3476e042014-10-14 19:21:59128 "//components/data_reduction_proxy/core/browser",
sclittleae932be2015-10-08 20:53:50129 "//components/data_usage/core",
amohammadkhanf76ae112015-09-14 17:34:43130 "//components/data_use_measurement/core",
reillyg4a849272015-02-20 21:38:43131 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:25132 "//components/domain_reliability",
sdefresnecbacfd72015-03-20 12:11:32133 "//components/favicon/core",
sdefresne001b10de2015-03-20 18:41:46134 "//components/favicon_base",
droger888be0b2015-10-01 14:28:52135 "//components/flags_ui",
[email protected]abd4b682014-07-16 20:26:30136 "//components/gcm_driver",
jianli2104ce612015-05-06 00:24:34137 "//components/gcm_driver/instance_id",
Brett Wilson1c693992014-08-25 19:10:01138 "//components/google/core/browser",
fsamuelaf5bf6d12015-05-28 16:29:54139 "//components/guest_view/browser",
erikchen332265b2014-11-14 19:59:52140 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25141 "//components/history/core/browser",
142 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01143 "//components/infobars/core",
knn062cdbb2015-06-26 18:18:42144 "//components/invalidation/impl",
gunsch1afc65172014-09-16 00:03:32145 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34146 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06147 "//components/metrics:profiler",
blundell218124c22015-10-15 10:36:35148 "//components/metrics:profiler_content",
blundell8e66adc2015-10-12 11:46:12149 "//components/metrics:ui",
agrieved7a71c882015-11-20 19:53:28150 "//components/metrics/proto:proto",
blundell695d61f2015-10-21 11:25:53151 "//components/metrics_services_manager",
rsleevic327b48f82015-04-30 02:03:25152 "//components/mime_util",
[email protected]fca567b2014-07-02 17:37:34153 "//components/navigation_metrics",
bnc210d6f32016-05-24 07:40:47154 "//components/network_session_configurator",
Brett Wilson1c693992014-08-25 19:10:01155 "//components/network_time",
agrieved7a71c882015-11-20 19:53:28156 "//components/ntp_snippets",
sfiera0dc4da512016-04-29 09:23:05157 "//components/ntp_tiles",
fgorskife7b92f2015-06-15 19:19:40158 "//components/offline_pages",
petewil0b4d3662016-05-02 18:44:43159 "//components/offline_pages/background:background_offliner",
blundell2102f7c2015-07-09 10:00:53160 "//components/omnibox/browser",
[email protected]fca567b2014-07-02 17:37:34161 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00162 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01163 "//components/password_manager/core/browser",
164 "//components/password_manager/core/common",
dgozmane5a3e252016-03-22 21:45:08165 "//components/policy",
[email protected]fca567b2014-07-02 17:37:34166 "//components/policy:policy_component",
dgozmane5a3e252016-03-22 21:45:08167 "//components/policy/proto",
stevenjbb237e2ae2015-07-02 22:02:11168 "//components/proxy_config",
[email protected]fca567b2014-07-02 17:37:34169 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37170 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01171 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40172 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01173 "//components/search_engines",
174 "//components/search_provider_logos",
felt20e0f2002015-07-31 15:27:36175 "//components/security_interstitials/core",
estarkd9e54fb2016-01-11 19:37:12176 "//components/security_state",
[email protected]abd4b682014-07-16 20:26:30177 "//components/signin/core/browser",
felt2493b4452015-09-17 20:33:59178 "//components/ssl_errors",
fdoray443bd112015-11-16 20:44:23179 "//components/startup_metric_utils/browser:lib",
180 "//components/startup_metric_utils/browser:message_filter_lib",
fdoray343068c42016-02-03 15:45:58181
182 # TODO(fdoray): Remove this once the PreRead field trial has expired.
183 # crbug.com/577698
184 "//components/startup_metric_utils/common",
[email protected]797b25042014-07-01 23:54:17185 "//components/strings",
mathp60143a32014-10-08 14:52:45186 "//components/suggestions",
aberentc987fed2016-03-18 18:17:47187 "//components/supervised_user_error_page",
blundellc759b682015-10-08 15:50:59188 "//components/sync_bookmarks",
Brett Wilson1c693992014-08-25 19:10:01189 "//components/sync_driver",
skym6b9887e2015-10-09 22:10:47190 "//components/sync_sessions",
zhenwecedcf22015-08-18 23:37:46191 "//components/tracing:startup_tracing",
[email protected]b9f4c682014-07-10 22:00:37192 "//components/translate/core/browser",
193 "//components/translate/core/common",
sdefresnec083d1f2015-04-17 21:12:18194 "//components/undo",
sorin39eab2f2015-01-06 01:09:08195 "//components/update_client",
rsleevi24f64dc22015-08-07 21:39:21196 "//components/url_formatter",
[email protected]fca567b2014-07-02 17:37:34197 "//components/user_prefs",
jitendra.ks94c0b962015-08-10 08:24:09198 "//components/user_prefs/tracked:user_prefs_tracked",
isherman3be67db2014-10-24 05:57:44199 "//components/variations",
200 "//components/variations/net",
blundellb50ad702015-08-27 17:08:29201 "//components/variations/service",
agrieved7a71c882015-11-20 19:53:28202 "//components/web_resource",
[email protected]bf4545f2014-07-11 19:49:46203 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56204 "//components/webdata_services",
juncaia64f769c22016-06-04 00:55:32205 "//components/zoom",
[email protected]dffd8a912014-06-30 23:24:31206 "//content/public/browser",
207 "//content/public/common",
hbos18f58912016-03-08 14:26:35208 "//content/public/common:feature_h264_with_openh264_ffmpeg",
209 "//content/public/common:features",
[email protected]604828c2014-07-02 20:39:12210 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31211 "//crypto",
davidben45eb19952016-05-05 16:30:44212 "//crypto:platform",
[email protected]604828c2014-07-02 20:39:12213 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56214 "//gpu/config",
[email protected]dffd8a912014-06-30 23:24:31215 "//skia",
216 "//sql",
217 "//sync",
[email protected]797b25042014-07-01 23:54:17218 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31219 "//third_party/icu",
ajwongf7b1cb692014-08-23 21:36:22220 "//third_party/libjingle",
agrieved7a71c882015-11-20 19:53:28221 "//third_party/libxml",
[email protected]dffd8a912014-06-30 23:24:31222 "//third_party/widevine/cdm:version_h",
223 "//third_party/zlib",
hajimehoshi1e1cc1a2016-01-14 19:09:00224 "//third_party/zlib:compression_utils",
[email protected]dffd8a912014-06-30 23:24:31225 "//third_party/zlib:minizip",
226 "//third_party/zlib:zip",
227 "//ui/base",
sdefresnec6574a552016-02-08 16:58:21228 "//ui/base:ui_data_pack",
cjhopman09981a92014-10-27 17:11:18229 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31230 "//ui/gfx",
231 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36232 "//ui/message_center",
agrieved7a71c882015-11-20 19:53:28233 "//ui/resources",
[email protected]a1d7d4f2014-07-16 21:33:36234 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31235 "//ui/strings",
[email protected]dffd8a912014-06-30 23:24:31236 ]
bencccedf12015-11-10 07:56:16237 data_deps = []
[email protected]dffd8a912014-06-30 23:24:31238
scottmga266f952014-12-03 20:47:10239 sources +=
240 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00241
[email protected]dffd8a912014-06-30 23:24:31242 if (!is_ios) {
scottmga266f952014-12-03 20:47:10243 sources +=
244 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59245 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10246 ".",
247 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59248 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10249 ".",
250 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18251 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
252 ".",
253 "//chrome")
254 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
255 ".",
256 "//chrome")
sclittlea133de02015-11-10 23:54:21257 sources += rebase_path(gypi_values.chrome_browser_data_usage_sources,
258 ".",
259 "//chrome")
benwellsedf5e082015-04-23 02:45:14260 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
261 ".",
262 "//chrome")
scottmga266f952014-12-03 20:47:10263 sources +=
264 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
265 sources +=
266 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
267 sources +=
268 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
269 sources +=
270 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
271 sources +=
272 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59273 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10274 ".",
275 "//chrome")
mlamouri4e372022015-03-29 14:51:06276 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
277 ".",
278 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59279 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10280 ".",
281 "//chrome")
282 sources +=
283 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59284 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10285 ".",
286 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59287 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10288 ".",
289 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59290 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10291 ".",
292 "//chrome")
293 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18294 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
295 sources +=
scottmga266f952014-12-03 20:47:10296 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
297 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18298 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
299 sources +=
scottmga266f952014-12-03 20:47:10300 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
sievers2f1e8112015-12-04 18:43:56301 if (android_java_ui) {
302 sources +=
303 rebase_path(gypi_values.chrome_browser_sync_android_java_ui_sources,
304 ".",
305 "//chrome")
306 sources +=
307 rebase_path(gypi_values.chrome_browser_ssl_android_java_ui_sources,
308 ".",
309 "//chrome")
310 sources += rebase_path(
311 gypi_values.chrome_browser_history_android_java_ui_sources,
312 ".",
313 "//chrome")
314 sources += rebase_path(
315 gypi_values.chrome_browser_permissions_android_java_ui_sources,
316 ".",
317 "//chrome")
318 sources += rebase_path(
319 gypi_values.chrome_browser_search_engines_android_java_ui_sources,
320 ".",
321 "//chrome")
322 if (enable_supervised_users) {
323 sources += rebase_path(
324 gypi_values.chrome_browser_supervised_user_android_java_ui_sources,
325 ".",
326 "//chrome")
327 }
328 }
scottmga266f952014-12-03 20:47:10329
[email protected]dffd8a912014-06-30 23:24:31330 deps += [
331 "//cc",
brettwca934582015-02-24 21:50:27332 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30333 "//chrome/browser/devtools",
sdefresnea213ceb2015-10-05 09:23:39334 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
brettwca934582015-02-24 21:50:27335 "//chrome/browser/resources:component_extension_resources",
tfarina04d426612015-08-18 16:42:33336 "//chrome/common/net",
brettwe26e6d02015-12-29 06:51:47337 "//chrome/installer/util:with_no_strings",
jitendra.ks4f2e9112015-08-14 11:40:26338 "//components/about_handler",
oshimaf65398422014-11-18 23:30:42339 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37340 "//components/autofill/content/browser",
lazyboy14082d22015-04-02 01:04:58341 "//components/browsing_data",
donndbda9b6f432015-12-10 20:39:05342 "//components/contextual_search:browser",
jeremyim364ac1182015-03-03 18:49:43343 "//components/data_reduction_proxy/content/browser",
amohammadkhan092adb22015-09-11 21:08:49344 "//components/data_use_measurement/content",
dgozmanec2b982a2015-04-28 10:36:39345 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46346 "//components/devtools_http_handler",
brettw15764b12015-11-30 22:11:05347 "//components/dom_distiller/content/browser",
tfarina041134472015-09-02 15:29:38348 "//components/error_page/common",
sdefresne001b10de2015-03-20 18:41:46349 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04350 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34351 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30352 "//components/navigation_interception",
drogerc690e8802015-09-21 14:29:16353 "//components/net_log",
tfarina041134472015-09-02 15:29:38354 "//components/network_hints/common",
[email protected]55699f392014-08-20 22:16:30355 "//components/password_manager/content/browser",
vabr5410d0b2015-08-07 11:02:04356 "//components/password_manager/sync/browser",
droger78da6542015-11-02 11:25:59357 "//components/profile_metrics",
abhishek.a2171c612852015-08-31 10:48:19358 "//components/proxy_config",
droger2a6ab542015-10-09 16:10:28359 "//components/resources",
vakh9d5888022015-10-29 21:04:07360 "//components/safe_browsing_db",
bauerbf0e64aa2015-06-25 15:54:07361 "//components/safe_json",
brettwa22cb3b2015-04-30 20:23:12362 "//components/sessions",
abhishek.a212849cee2015-10-20 11:27:29363 "//components/ssl_config",
[email protected]abd4b682014-07-16 20:26:30364 "//components/storage_monitor",
sdefresne875d0782015-09-16 12:01:28365 "//components/syncable_prefs",
[email protected]b9f4c682014-07-10 22:00:37366 "//components/translate/content/browser",
sdefresne44eb1f22015-08-06 08:51:55367 "//components/upload_list",
[email protected]fca567b2014-07-02 17:37:34368 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31369 "//components/visitedlink/browser",
370 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18371 "//components/web_cache/browser",
reillygcf1af632015-11-18 16:42:58372 "//components/webusb",
[email protected]a9ca8d52014-08-22 10:21:08373 "//content/app/resources",
reillygcf1af632015-11-18 16:42:58374 "//device/core",
reillyg64c8f4f2016-02-10 23:29:20375 "//device/usb/mojo",
376 "//device/usb/public/interfaces",
[email protected]55699f392014-08-20 22:16:30377 "//media",
yhiranobbea6272015-09-17 07:09:03378 "//media/midi",
cjhopman09981a92014-10-27 17:11:18379 "//mojo/common",
rockotc637caf9b2016-02-10 09:57:08380 "//mojo/edk/system",
rockot85dce0862015-11-13 01:33:59381 "//mojo/public/cpp/bindings",
382 "//mojo/public/js",
Brett Wilson83fd4242014-09-02 19:45:33383 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31384 "//net:net_with_v8",
benf709a3092016-04-12 22:38:22385 "//services/shell/public/cpp",
pilgrim4af8c212014-09-05 17:30:15386 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24387 "//storage/common",
erga3c614c92015-04-03 17:47:51388 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46389 "//third_party/WebKit/public:resources",
pmonette502a83e2016-01-08 00:21:16390 "//third_party/kasko",
[email protected]dffd8a912014-06-30 23:24:31391 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34392 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31393 "//third_party/libyuv",
[email protected]dffd8a912014-06-30 23:24:31394 "//third_party/re2",
395 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33396 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12397 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31398 "//ui/gl",
brettwca934582015-02-24 21:50:27399 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31400 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12401 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34402 "//v8",
[email protected]dffd8a912014-06-30 23:24:31403 ]
paulmeyer27b328b2015-06-17 21:26:12404
405 if (toolkit_views) {
406 deps += [ "//ui/views" ]
407 }
[email protected]dffd8a912014-06-30 23:24:31408 } else { # iOS
scottmga266f952014-12-03 20:47:10409 sources +=
410 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
411 sources +=
412 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
413 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31414 libs += [
415 "CoreTelephony.framework",
416 "CoreText.framework",
417 "MobileCoreServices.framework",
418 "QuartzCore.framework",
419 ]
scottmga266f952014-12-03 20:47:10420 ldflags += [
421 "-weak_framework",
422 "CoreImage",
423 ]
[email protected]dffd8a912014-06-30 23:24:31424 }
425
426 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10427 sources +=
428 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31429 }
mmenkede134672015-08-18 01:33:39430 if (!is_win && !is_mac && !is_ios) {
431 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ]
432 }
dgozmane5a3e252016-03-22 21:45:08433 if (!is_android && !is_ios && !is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31434 sources += [
435 "net/disk_cache_dir_policy_handler.cc",
436 "net/disk_cache_dir_policy_handler.h",
437 ]
438 }
[email protected]dffd8a912014-06-30 23:24:31439 if (is_mac) {
scottmga266f952014-12-03 20:47:10440 sources +=
441 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31442 deps += [
brettw5ff98192015-10-22 06:36:15443 "//chrome/app_shim",
444 "//chrome/browser/apps/app_shim",
[email protected]dffd8a912014-06-30 23:24:31445 ]
446 }
[email protected]dffd8a912014-06-30 23:24:31447 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46448 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52449 deps += [
[email protected]cc5b3be2014-08-15 23:24:52450 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30451 "//chrome/common/extensions/api",
452 "//chrome/common/extensions/api:api_registration",
lukasza8acc4eb2015-07-20 20:57:20453 "//components/drive:drive",
msarda4c408ff2015-04-22 14:27:56454 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44455 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50456 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06457 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52458 ]
[email protected]dffd8a912014-06-30 23:24:31459 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10460 ".",
461 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31462 }
463 if (enable_background) {
464 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10465 ".",
466 "//chrome")
jamesr29ea2d122014-10-23 10:30:27467 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31468 sources -= [ "background/background_mode_manager_aura.cc" ]
469 }
470 }
471 if (enable_task_manager) {
472 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10473 ".",
474 "//chrome")
nya268de1c72015-12-16 05:07:40475 if (is_chromeos) {
476 sources +=
477 rebase_path(gypi_values.chrome_browser_task_manager_chromeos_sources,
478 ".",
479 "//chrome")
480 }
afakhry174069722016-05-24 19:16:16481
482 if (is_mac && !mac_views_browser) {
483 sources +=
484 rebase_path(gypi_values.chrome_browser_old_task_manager_cocoa_sources,
485 ".",
486 "//chrome")
487 }
[email protected]dffd8a912014-06-30 23:24:31488 }
489 if (enable_spellcheck) {
490 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10491 ".",
492 "//chrome")
dylanking34c72442015-07-23 23:19:58493 if (!is_android) {
494 deps += [ "//third_party/hunspell" ]
495 }
[email protected]dffd8a912014-06-30 23:24:31496 }
497 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10498 sources +=
499 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
brettwf4b4a4282015-12-16 00:41:13500 deps += [ "//components/nacl/browser" ]
[email protected]dffd8a912014-06-30 23:24:31501 }
apavlove749bca2014-09-30 11:07:41502
[email protected]dffd8a912014-06-30 23:24:31503 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10504 sources +=
505 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31506 deps += [
James Robinson2ed4d692014-09-17 05:20:58507 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31508 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14509 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31510 ]
511 }
512 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10513 sources +=
stuartmorgan1b3df822014-12-08 14:36:11514 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10515 ".",
516 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31517 deps += [
[email protected]fca567b2014-07-02 17:37:34518 "//chrome/browser/safe_browsing:chunk_proto",
jialiuleed304432015-11-09 20:17:03519 "//chrome/common/safe_browsing:proto",
vakh27f7e222016-02-02 23:45:34520 "//components/safe_browsing_db:metadata_proto",
[email protected]dffd8a912014-06-30 23:24:31521 ]
522 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10523 sources +=
stuartmorgan1b3df822014-12-08 14:36:11524 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10525 ".",
526 "//chrome")
grtc1d1b752015-09-05 13:26:41527 if (is_win) {
528 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto" ]
529 }
nparker00a64f12015-10-16 17:34:30530 } else if (safe_browsing_mode == 2) {
531 sources +=
532 rebase_path(gypi_values.chrome_browser_safe_browsing_mobile_sources,
533 ".",
534 "//chrome")
vakh27f7e222016-02-02 23:45:34535 deps += [ "//components/safe_browsing_db:safe_browsing_db_mobile" ]
[email protected]dffd8a912014-06-30 23:24:31536 }
537 }
538
amistryf269d3b2015-06-09 19:18:39539 if (enable_hotwording) {
540 defines += [ "ENABLE_HOTWORDING" ]
541 }
542
[email protected]dffd8a912014-06-30 23:24:31543 if (is_linux) {
mostynbea514682015-08-18 22:08:56544 deps += [ "//device/media_transfer_protocol" ]
[email protected]dffd8a912014-06-30 23:24:31545 }
mostynbea514682015-08-18 22:08:56546
547 if (use_udev) {
548 deps += [ "//device/udev_linux" ]
549 }
550
[email protected]dffd8a912014-06-30 23:24:31551 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47552 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31553 }
554
555 if (is_chromeos) {
556 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10557 ".",
558 "//chrome")
559 deps += [ "//chrome/browser/chromeos" ]
dgozmane5a3e252016-03-22 21:45:08560 } else { # Non-ChromeOS.
561 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
562 ".",
563 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31564 }
565
mukai8c99b882014-10-15 03:07:59566 if (is_chromeos || is_ios) {
567 sources -= [
blundell296904a2015-10-13 12:30:48568 "signin/chrome_signin_status_metrics_provider_delegate.cc",
569 "signin/chrome_signin_status_metrics_provider_delegate.h",
mukai8c99b882014-10-15 03:07:59570 ]
571 }
572
sque82e4d1552016-02-26 22:47:19573 if (is_chromeos) {
574 sources += [
575 "metrics/leak_detector_controller.cc",
576 "metrics/leak_detector_controller.h",
577 ]
sque386a3c02016-06-03 23:11:04578 public_deps += [ "//components/metrics:leak_detector" ]
sque82e4d1552016-02-26 22:47:19579 }
580
[email protected]dffd8a912014-06-30 23:24:31581 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12582 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31583 }
584 if (is_desktop_linux) {
585 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10586 ".",
587 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49588 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31589 }
dvadym34532022015-01-22 15:42:51590 if (is_desktop_linux) {
591 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
592 ".",
593 "//chrome")
594 defines += [ "USE_LIBSECRET" ]
cfroussios7267be82016-04-27 13:58:52595 deps += [ "//third_party/libsecret" ]
dvadym34532022015-01-22 15:42:51596 }
[email protected]dffd8a912014-06-30 23:24:31597 if (use_aura) {
scottmga266f952014-12-03 20:47:10598 sources +=
599 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
ben0cc0be92015-11-09 21:49:06600
601 # These files are only built in a GN build because they bring in
602 # dependencies that don't build with GYP.
603 sources += [
bencccedf12015-11-10 07:56:16604 "ui/views/frame/browser_frame_mus.cc",
605 "ui/views/frame/browser_frame_mus.h",
skyab2410c52015-12-03 03:40:56606 "ui/views/frame/browser_non_client_frame_view_mus.cc",
607 "ui/views/frame/browser_non_client_frame_view_mus.h",
ben0cc0be92015-11-09 21:49:06608 ]
[email protected]dffd8a912014-06-30 23:24:31609 deps += [
skyab2410c52015-12-03 03:40:56610 "//components/mus/public/cpp",
ben03b7b9d2015-11-15 12:13:09611 "//content/public/common",
[email protected]fca567b2014-07-02 17:37:34612 "//ui/aura",
613 "//ui/compositor",
ben03b7b9d2015-11-15 12:13:09614 "//ui/views/mus:for_component",
[email protected]dffd8a912014-06-30 23:24:31615 ]
ben03b7b9d2015-11-15 12:13:09616 defines += [ "MOJO_SHELL_CLIENT" ]
sky002ba4a2016-06-03 00:56:11617 data_deps += [ "//ash/mus" ]
[email protected]dffd8a912014-06-30 23:24:31618 }
619 if (ui_compositor_image_transport) {
620 deps += [ "//ui/gl" ]
621 }
622
[email protected]855b7de2014-07-08 21:02:45623 if (use_ash) {
scottmga266f952014-12-03 20:47:10624 sources +=
625 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45626 }
627
[email protected]dffd8a912014-06-30 23:24:31628 if (use_x11) {
scottmga266f952014-12-03 20:47:10629 sources +=
630 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23631 } else {
632 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31633 }
Scott Grahamcae6b0e2015-12-04 03:23:29634 if (is_posix && !is_mac && !is_ios) {
[email protected]dffd8a912014-06-30 23:24:31635 sources += [
rseseka0a7a042014-09-18 23:59:20636 "//chrome/app/chrome_crash_reporter_client.cc",
637 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31638 ]
639 deps += [
sdefresne8ba0b88c2015-09-18 10:33:13640 "//components/crash/content/app",
641 "//components/crash/content/browser",
blundellf1cfb032015-11-16 18:22:30642 "//components/version_info:generate_version_info",
[email protected]dffd8a912014-06-30 23:24:31643 ]
644 }
manzagopf071e882016-04-13 14:36:00645 if (is_win && enable_kasko_failed_rdv_reports) {
646 sources += [
ananta0a700e22016-04-21 03:00:46647 "//chrome/app/chrome_crash_reporter_client_win.cc",
648 "//chrome/app/chrome_crash_reporter_client_win.h",
manzagopf071e882016-04-13 14:36:00649 ]
650 deps += [ "//components/crash/content/app:lib" ]
651 }
[email protected]dffd8a912014-06-30 23:24:31652 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10653 sources +=
654 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59655 if (is_chromeos) {
656 sources -= [ "net/nss_context_linux.cc" ]
657 }
[email protected]dffd8a912014-06-30 23:24:31658 }
659 if (enable_notifications) {
660 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10661 ".",
662 "//chrome")
sievers2f1e8112015-12-04 18:43:56663 if (android_java_ui) {
664 sources += rebase_path(
665 gypi_values.chrome_browser_notifications_android_java_ui_sources,
666 ".",
667 "//chrome")
estade6d95d1d2015-10-02 18:55:23668 } else {
[email protected]dffd8a912014-06-30 23:24:31669 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11670 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10671 ".",
672 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31673 }
674 }
675 if (enable_themes) {
scottmga266f952014-12-03 20:47:10676 sources +=
677 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31678 }
679
vitalybuka93eea402014-11-05 23:47:15680 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31681 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11682 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10683 ".",
684 "//chrome")
spang5cc72542015-08-04 19:47:11685 deps += [
brettwd649f6b2015-08-18 20:58:51686 "//components/printing/browser",
agrieved7a71c882015-11-20 19:53:28687 "//printing",
spang5cc72542015-08-04 19:47:11688 ]
689
vitalybuka36259ca2014-08-28 23:42:24690 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31691 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10692 ".",
693 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31694 }
vitalybuka93eea402014-11-05 23:47:15695 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31696 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11697 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10698 ".",
699 "//chrome")
vitalybuka93eea402014-11-05 23:47:15700 } else {
[email protected]dffd8a912014-06-30 23:24:31701 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10702 sources +=
stuartmorgan1b3df822014-12-08 14:36:11703 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10704 ".",
705 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31706 }
707 }
708 if (enable_captive_portal_detection) {
709 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10710 ".",
711 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31712 }
713 if (enable_session_service) {
714 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10715 ".",
716 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31717 }
718
thestigdc377202014-10-28 22:06:02719 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10720 sources +=
721 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02722 }
723
[email protected]dffd8a912014-06-30 23:24:31724 if (is_android || is_ios) {
725 # Mobile.
scottmga266f952014-12-03 20:47:10726 sources +=
727 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31728 } else {
729 # Non-mobile.
thestigf2cc0832016-04-12 19:30:27730 deps += [
731 "//apps",
732 "//chrome/browser/policy:path_parser",
733 "//chrome/browser/profile_resetter:profile_reset_report_proto",
734 "//components/feedback",
735 "//components/web_modal",
736 "//net:net_browser_services",
737 ]
[email protected]dffd8a912014-06-30 23:24:31738 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10739 ".",
740 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31741 }
742
mathp17e1eba2015-10-06 21:50:59743 if (!is_chrome_branded) {
fserb1c2db4c2015-07-16 17:14:49744 sources += [
745 "search/local_files_ntp_source.cc",
746 "search/local_files_ntp_source.h",
747 ]
748 }
749
[email protected]dffd8a912014-06-30 23:24:31750 if (is_android) {
scottmga266f952014-12-03 20:47:10751 sources +=
752 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
sievers2f1e8112015-12-04 18:43:56753 }
754
755 if (android_java_ui) {
756 sources += rebase_path(gypi_values.chrome_browser_android_java_ui_sources,
757 ".",
758 "//chrome")
fgorski1d4c9c92015-12-17 20:39:32759 sources += rebase_path(gypi_values.chrome_browser_offline_pages_sources,
twellingtoncaf0eb752015-06-01 16:19:50760 ".",
761 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31762 deps += [
pkotwicz127726f2015-05-29 15:20:12763 ":client_discourse_context_proto",
764 ":delta_file_proto",
James Robinson2ed4d692014-09-17 05:20:58765 ":jni_headers",
sclittlec441f782015-11-12 01:12:09766 "//components/data_usage/android",
twifkak8c9f7502015-06-25 02:12:57767 "//components/precache/content",
768 "//components/precache/core",
estadee37f8222014-11-07 21:35:22769 "//components/resources:components_resources",
mathiash3ecfdfa2015-04-13 15:06:07770 "//components/service_tab_launcher",
blundell11d93bc2015-07-31 12:33:12771 "//components/toolbar",
cjhopman09981a92014-10-27 17:11:18772 "//components/web_contents_delegate_android",
sievers2f1e8112015-12-04 18:43:56773 ]
sievers2f1e8112015-12-04 18:43:56774 }
775
776 if (is_android) {
777 deps += [
778 "//components/cdm/browser",
779 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18780 "//third_party/android_opengl/etc1",
fdegans34f31e272015-05-22 16:59:03781 "//third_party/android_tools:cpu_features",
twellington0bc61492015-01-30 20:14:13782 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31783 ]
sievers2f1e8112015-12-04 18:43:56784
[email protected]dffd8a912014-06-30 23:24:31785 deps -= [
[email protected]abd4b682014-07-16 20:26:30786 "//components/storage_monitor",
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
[email protected]dffd8a912014-06-30 23:24:31818 if (is_win) {
scottmga266f952014-12-03 20:47:10819 sources +=
820 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
Brett Wilsone53895272014-09-23 23:41:46821 public_deps += [
822 "//ui/views",
823 "//ui/views/controls/webview",
824 ]
[email protected]dffd8a912014-06-30 23:24:31825 deps += [
vchigrin9593e7a2015-01-27 10:08:19826 ":chrome_process_finder",
gab7c45cfd2016-04-15 19:17:07827 "//chrome:file_pre_reader",
pmonette502a83e2016-01-08 00:21:16828 "//chrome/chrome_watcher:client",
manzagopf071e882016-04-13 14:36:00829 "//chrome/chrome_watcher:kasko_util",
gab7c45cfd2016-04-15 19:17:07830 "//chrome/common:metrics_constants_util_win",
mdempsky15a48be2015-10-21 23:37:53831 "//chrome/common:version_header",
[email protected]55699f392014-08-20 22:16:30832 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19833 "//chrome_elf",
834 "//chrome_elf:constants",
835 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32836 "//components/browser_watcher",
837 "//components/browser_watcher:browser_watcher_client",
fdorayc295b762016-01-19 18:49:23838 "//components/startup_metric_utils/common",
vchigrinbbc23e72015-01-21 22:49:23839 "//google_update",
[email protected]55699f392014-08-20 22:16:30840 "//third_party/iaccessible2",
841 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31842 "//third_party/wtl",
[email protected]dffd8a912014-06-30 23:24:31843 ]
mmenkede134672015-08-18 01:33:39844
845 all_dependent_configs = [ ":browser_win_linker_flags" ]
846
grt235b3f092015-05-27 21:42:48847 if (!is_chrome_branded) {
848 deps -= [ "//google_update" ]
849 sources -= [
850 "google/did_run_updater_win.cc",
851 "google/did_run_updater_win.h",
852 "google/google_update_win.cc",
853 "google/google_update_win.h",
854 ]
855 }
[email protected]dffd8a912014-06-30 23:24:31856 } else {
857 # Non-Windows.
scottmga266f952014-12-03 20:47:10858 sources +=
859 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37860 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31861 deps += [
scottmga266f952014-12-03 20:47:10862 "//ui/views",
863 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31864 ]
[email protected]dffd8a912014-06-30 23:24:31865 }
866 }
867
868 if (is_linux) {
[email protected]dffd8a912014-06-30 23:24:31869 if (use_aura) {
mbjorgea12e5a52016-05-31 22:15:17870 deps += [ "//build/linux:fontconfig" ]
871 if (use_dbus) {
872 deps += [ "//dbus" ]
873 }
[email protected]dffd8a912014-06-30 23:24:31874 }
875 if (use_x11) {
876 configs += [ "//build/config/linux:x11" ]
877 deps += [ "//ui/gfx/x" ]
878 }
879 }
880
rouslane59900a2016-02-17 19:45:43881 if (is_linux || is_win) {
882 sources += rebase_path(gypi_values.chrome_browser_non_mac_desktop_sources,
883 ".",
884 "//chrome")
885 }
886
[email protected]dffd8a912014-06-30 23:24:31887 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54888 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10889 ".",
890 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31891 }
892 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10893 sources +=
894 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
895 ".",
896 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31897 }
898 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10899 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31900 }
treib87bb89cbb2014-12-01 16:01:47901 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10902 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
903 ".",
904 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31905 }
bauerb7f3b8542015-06-29 19:56:19906 if (enable_supervised_users && !is_android && !is_ios) {
907 sources +=
908 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
909 ".",
910 "//chrome")
911 }
treib87bb89cbb2014-12-01 16:01:47912 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59913 sources += rebase_path(
scottmga266f952014-12-03 20:47:10914 gypi_values.chrome_browser_supervised_user_and_themes_sources,
915 ".",
916 "//chrome")
thestig169a6362014-11-13 20:47:59917 }
[email protected]dffd8a912014-06-30 23:24:31918 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10919 sources +=
920 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31921 }
922 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10923 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
924 ".",
925 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31926 }
927 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10928 sources +=
929 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31930 }
estadee62c2a42016-05-05 16:27:29931 if (is_android || is_ios) {
[email protected]dffd8a912014-06-30 23:24:31932 sources -= [
933 "autofill/validation_rules_storage_factory.cc",
934 "autofill/validation_rules_storage_factory.h",
935 ]
936 }
mfoltz150bb8b2015-04-09 22:30:05937 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55938 deps += [ "//chrome/browser/media/router" ]
mfoltz150bb8b2015-04-09 22:30:05939 }
xhwang5e630462015-10-30 03:18:48940
xhwangc86d76e42016-03-14 23:38:49941 if (enable_mojo_media) {
xhwangbe720032016-02-19 18:45:31942 configs += [ "//media/mojo/services:mojo_media_config" ]
xhwangc86d76e42016-03-14 23:38:49943 sources += [
944 "media/output_protection_impl.cc",
945 "media/output_protection_impl.h",
946 ]
947 deps += [ "//media/mojo/interfaces" ]
948 if (mojo_media_host == "browser") {
xhwangd3b5d3f2016-05-18 03:37:59949 deps += [ "//media/mojo/services" ]
xhwangc86d76e42016-03-14 23:38:49950 }
xhwang5e630462015-10-30 03:18:48951 }
revemanb195f41d2015-11-19 22:16:48952
953 if (enable_wayland_server) {
954 deps += [
955 "//components/exo",
956 "//components/exo/wayland",
957 ]
958 sources += [
959 "chrome_browser_main_extra_parts_exo.cc",
960 "chrome_browser_main_extra_parts_exo.h",
961 ]
962 }
ochangcc11d0e2016-04-26 19:58:26963
964 if (enable_ipc_fuzzer) {
965 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ]
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) {
993 source_set("chrome_process_finder") {
994 sources = [
995 "chrome_process_finder_win.cc",
996 "chrome_process_finder_win.h",
997 ]
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",
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",
miguelg884b3ec2016-04-26 09:51:521100 "notifications/stub_notification_platform_bridge.cc",
1101 "notifications/stub_notification_platform_bridge.h",
Brett Wilson052ce132014-09-12 19:46:291102 "profile_resetter/profile_resetter_test_base.cc",
1103 "profile_resetter/profile_resetter_test_base.h",
1104 "search_engines/template_url_service_factory_test_util.cc",
1105 "search_engines/template_url_service_factory_test_util.h",
1106 "search_engines/template_url_service_test_util.cc",
1107 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:451108 "sessions/session_restore_test_helper.cc",
1109 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291110 "sessions/session_service_test_helper.cc",
1111 "sessions/session_service_test_helper.h",
knn523bd722015-07-30 16:27:091112 "signin/fake_account_fetcher_service_builder.cc",
1113 "signin/fake_account_fetcher_service_builder.h",
mlerman2933d012015-04-24 18:34:271114 "signin/fake_gaia_cookie_manager_service.cc",
1115 "signin/fake_gaia_cookie_manager_service.h",
Brett Wilson052ce132014-09-12 19:46:291116 "signin/fake_profile_oauth2_token_service_builder.cc",
1117 "signin/fake_profile_oauth2_token_service_builder.h",
droger4f489e62015-07-24 19:27:591118 "signin/fake_signin_manager_builder.cc",
1119 "signin/fake_signin_manager_builder.h",
Brett Wilson052ce132014-09-12 19:46:291120 "ssl/ssl_client_auth_requestor_mock.cc",
1121 "ssl/ssl_client_auth_requestor_mock.h",
maxbogued2ea9242015-10-29 01:24:521122 "sync/profile_sync_test_util.cc",
1123 "sync/profile_sync_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291124 ]
1125
brettwbc8b2a22015-07-28 18:24:421126 configs += [ "//build/config:precompiled_headers" ]
1127
Brett Wilsone53895272014-09-23 23:41:461128 public_deps = [
Brett Wilson052ce132014-09-12 19:46:291129 ":browser",
Brett Wilsone53895272014-09-23 23:41:461130 "//chrome/browser/ui:test_support",
1131 ]
1132 deps = [
agrieved7a71c882015-11-20 19:53:281133 "//chrome/app/theme:theme_resources",
Brett Wilson052ce132014-09-12 19:46:291134 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:291135 "//chrome/common",
1136 "//chrome/common/safe_browsing:proto",
vabra6fded22015-12-10 09:06:551137 "//components/browser_sync/browser:test_support",
knn062cdbb2015-06-26 18:18:421138 "//components/invalidation/impl",
1139 "//components/invalidation/impl:test_support",
Brett Wilson052ce132014-09-12 19:46:291140 "//components/password_manager/core/browser:test_support",
brettw9f7802a22016-01-30 06:40:171141 "//components/prefs:test_support",
Brett Wilson052ce132014-09-12 19:46:291142 "//components/search_engines:test_support",
sdefresne875d0782015-09-16 12:01:281143 "//components/syncable_prefs:test_support",
jitendra.ks94c0b962015-08-10 08:24:091144 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
carlosk282c4372016-02-02 14:53:491145 "//content/test:browsertest_base",
Brett Wilson052ce132014-09-12 19:46:291146 "//content/test:test_support",
Brett Wilson052ce132014-09-12 19:46:291147 "//net:test_support",
1148 "//skia",
1149 "//testing/gmock",
1150 "//testing/gtest",
1151 "//ui/gfx",
1152 ]
1153
Brett Wilson052ce132014-09-12 19:46:291154 if (!is_ios) {
1155 deps += [
1156 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:291157 "//google_apis:test_support",
1158 ]
1159 }
1160
thestig354985d2015-09-28 20:55:001161 if (is_android) {
1162 sources -= [
thestig259da0b2015-10-07 18:09:081163 "download/test_download_shelf.cc",
1164 "download/test_download_shelf.h",
1165 "profile_resetter/profile_resetter_test_base.cc",
1166 "profile_resetter/profile_resetter_test_base.h",
1167 "sessions/session_restore_test_helper.cc",
1168 "sessions/session_restore_test_helper.h",
thestig354985d2015-09-28 20:55:001169 "sessions/session_service_test_helper.cc",
1170 "sessions/session_service_test_helper.h",
thestig354985d2015-09-28 20:55:001171 ]
1172 }
1173
James Robinson2ed4d692014-09-17 05:20:581174 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:381175 sources += [
1176 "extensions/extension_action_test_util.cc",
1177 "extensions/extension_action_test_util.h",
1178 ]
scottmga266f952014-12-03 20:47:101179 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:581180 }
1181
Brett Wilson052ce132014-09-12 19:46:291182 if (is_chromeos) {
1183 sources += [
1184 "chromeos/app_mode/fake_cws.cc",
1185 "chromeos/app_mode/fake_cws.h",
1186 "chromeos/file_manager/fake_disk_mount_manager.cc",
1187 "chromeos/file_manager/fake_disk_mount_manager.h",
1188 "chromeos/input_method/mock_candidate_window_controller.cc",
1189 "chromeos/input_method/mock_candidate_window_controller.h",
1190 "chromeos/input_method/mock_input_method_engine.cc",
1191 "chromeos/input_method/mock_input_method_engine.h",
1192 "chromeos/input_method/mock_input_method_manager.cc",
1193 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511194 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1195 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391196 "chromeos/login/session/user_session_manager_test_api.cc",
1197 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291198 "chromeos/login/test/js_checker.cc",
1199 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591200 "chromeos/login/test/oobe_screen_waiter.cc",
1201 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291202 "chromeos/login/ui/mock_login_display.cc",
1203 "chromeos/login/ui/mock_login_display.h",
1204 "chromeos/login/ui/mock_login_display_host.cc",
1205 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511206 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1207 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301208 "chromeos/login/users/fake_chrome_user_manager.cc",
1209 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511210 "chromeos/login/users/fake_supervised_user_manager.cc",
1211 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511212 "chromeos/login/users/mock_user_manager.cc",
1213 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291214 "chromeos/net/network_portal_detector_test_utils.cc",
1215 "chromeos/net/network_portal_detector_test_utils.h",
1216 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1217 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1218 "chromeos/policy/device_policy_builder.cc",
1219 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071220 "chromeos/policy/fake_consumer_management_service.cc",
1221 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291222 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1223 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071224 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1225 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291226 "chromeos/policy/stub_enterprise_install_attributes.cc",
1227 "chromeos/policy/stub_enterprise_install_attributes.h",
1228 "chromeos/settings/device_settings_test_helper.cc",
1229 "chromeos/settings/device_settings_test_helper.h",
1230 "chromeos/system/fake_input_device_settings.cc",
1231 "chromeos/system/fake_input_device_settings.h",
1232 ]
agrieve95ba4442016-04-25 15:47:131233 configs += [ "//build/config/linux/dbus" ]
mukai6ba73552014-10-09 19:05:171234 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291235 }
1236
1237 if (enable_configuration_policy) {
1238 sources += [
1239 "policy/test/local_policy_test_server.cc",
1240 "policy/test/local_policy_test_server.h",
1241 ]
Brett Wilsone53895272014-09-23 23:41:461242 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291243 "//components/policy:policy_component_test_support",
1244 "//components/policy:test_support",
1245 ]
Brett Wilson052ce132014-09-12 19:46:291246 }
1247
1248 if (safe_browsing_mode == 1) {
1249 sources += [
1250 "extensions/fake_safe_browsing_database_manager.cc",
1251 "extensions/fake_safe_browsing_database_manager.h",
1252 ]
1253 }
1254
1255 if (enable_extensions) {
1256 sources += [
Brett Wilson052ce132014-09-12 19:46:291257 "extensions/api/messaging/native_messaging_test_util.cc",
1258 "extensions/api/messaging/native_messaging_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291259 "extensions/mock_extension_special_storage_policy.cc",
1260 "extensions/mock_extension_special_storage_policy.h",
1261 "extensions/test_blacklist.cc",
1262 "extensions/test_blacklist.h",
1263 "extensions/test_blacklist_state_fetcher.cc",
1264 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511265 "extensions/test_extension_dir.cc",
1266 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591267 "extensions/test_extension_environment.cc",
1268 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291269 "extensions/test_extension_prefs.cc",
1270 "extensions/test_extension_prefs.h",
1271 "extensions/test_extension_service.cc",
1272 "extensions/test_extension_service.h",
1273 "extensions/test_extension_system.cc",
1274 "extensions/test_extension_system.h",
1275 "media_galleries/media_galleries_test_util.cc",
1276 "media_galleries/media_galleries_test_util.h",
1277 ]
lukasza8acc4eb2015-07-20 20:57:201278 deps += [
1279 "//components/drive:test_support",
1280 "//components/storage_monitor:test_support",
1281 ]
Brett Wilson052ce132014-09-12 19:46:291282 }
1283
1284 if (enable_mdns) {
1285 sources += [
1286 "local_discovery/test_service_discovery_client.cc",
1287 "local_discovery/test_service_discovery_client.h",
1288 ]
1289 }
1290
1291 if (enable_app_list) {
1292 sources += [
1293 "ui/app_list/test/chrome_app_list_test_support.cc",
1294 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511295 "ui/app_list/test/test_app_list_controller_delegate.cc",
1296 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291297 ]
1298 }
xhwangc3a252b2016-05-23 02:35:481299
1300 if (enable_pepper_cdms) {
1301 sources += [
1302 "media/pepper_cdm_test_helper.cc",
1303 "media/pepper_cdm_test_helper.h",
1304 ]
brettwf5431b3d2016-06-07 23:14:371305 deps += [
1306 ":pepper_cdm_test_constants",
1307 "//media:cdm_paths",
1308 ]
xhwangc3a252b2016-05-23 02:35:481309 }
Brett Wilson052ce132014-09-12 19:46:291310}
sdefresned967d552015-07-16 08:34:351311
thestig65d7c5c2015-10-06 18:13:471312# In GYP this is part of test_support_ui.
1313source_set("test_support_ui") {
1314 testonly = true
1315
1316 # Always include this via the main test support UI target.
1317 visibility = [ "//chrome/test:test_support_ui" ]
1318
1319 sources = [
1320 "password_manager/password_manager_test_base.cc",
1321 "password_manager/password_manager_test_base.h",
shadi3ca8c9d2016-01-19 18:54:391322 "signin/token_revoker_test_utils.cc",
1323 "signin/token_revoker_test_utils.h",
thestig65d7c5c2015-10-06 18:13:471324 "ui/webui/signin/login_ui_test_utils.cc",
1325 "ui/webui/signin/login_ui_test_utils.h",
1326 ]
1327
1328 configs += [ "//build/config:precompiled_headers" ]
1329
1330 deps = [
1331 "//components/metrics:test_support",
leon.han952ea3252016-04-13 02:44:561332 "//components/password_manager/content/public/interfaces",
vabr22c9e4f42015-10-20 15:34:091333 "//components/password_manager/core/browser:test_support",
thestig65d7c5c2015-10-06 18:13:471334 "//skia",
1335 "//testing/gtest",
1336 ]
1337}
1338
sdefresned967d552015-07-16 08:34:351339if (enable_rlz_support) {
1340 source_set("rlz") {
1341 sources =
1342 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1343 deps = [
1344 "//components/google/core/browser",
1345 "//components/omnibox/browser",
1346 "//components/rlz",
1347 "//components/search_engines",
1348 "//rlz:rlz_lib",
1349 ]
1350 }
1351}
brettwf5431b3d2016-06-07 23:14:371352
1353if (enable_pepper_cdms) {
1354 # These constants are separated so that test binaries can use them without
1355 # linking all of the test support.
1356 source_set("pepper_cdm_test_constants") {
1357 testonly = true
1358 visibility = [ "//chrome/*" ]
1359 sources = [
1360 "media/pepper_cdm_test_constants.cc",
1361 "media/pepper_cdm_test_constants.h",
1362 ]
1363 }
1364}