blob: 4ff216cc5ce5e52bd37808d874791e7924441771 [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",
45 "netapi32.lib",
46 "ndfapi.lib", # Used by browser/net/net_error_diagnostics_dialog_win.h
47 ]
48 ldflags = [ "/DELAYLOAD:ndfapi.dll" ]
49 }
50}
51
cmasone0a9e4ca2014-10-16 16:40:4952if (is_desktop_linux) {
brettwa68ea2b2015-02-01 02:54:0753 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
54 # will set this up.
cmasone0a9e4ca2014-10-16 16:40:4955 pkg_config("gnome_keyring") {
56 packages = [ "gnome-keyring-1" ]
brettwa68ea2b2015-02-01 02:54:0757 defines = [
58 "USE_GNOME_KEYRING",
59 "DLOPEN_GNOME_KEYRING",
60 ]
61 ignore_libs = true
62 }
63
64 # If you want to link gnome-keyring directly (use only for unit tests)
65 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
66 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
67 # are just itself and common gnome ones we link already, so we can get away
68 # with additionally just coding the library name here.
69 config("gnome_keyring_direct") {
70 libs = [ "gnome-keyring" ]
cmasone0a9e4ca2014-10-16 16:40:4971 }
72}
73
brettw44a5cf82015-04-08 19:48:2274source_set("browser") {
apavlove749bca2014-09-30 11:07:4175 configs += [
76 "//build/config/compiler:wexit_time_destructors",
brettwbc8b2a22015-07-28 18:24:4277 "//build/config:precompiled_headers",
apavlove749bca2014-09-30 11:07:4178 "//third_party/WebKit/public:debug_devtools",
79 ]
[email protected]dffd8a912014-06-30 23:24:3180 defines = []
81 sources = []
82 libs = []
83 ldflags = []
84
85 # iOS/non-iOS shared deps. New dependencies should generally be added in the
86 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:4687 public_deps = [
88 "//components/autofill/core/browser",
89 "//content/public/browser",
90 "//sql",
91 "//sync",
92 ]
[email protected]dffd8a912014-06-30 23:24:3193 deps = [
[email protected]dffd8a912014-06-30 23:24:3194 "//chrome:extra_resources",
95 "//chrome:resources",
96 "//chrome:strings",
[email protected]855b7de2014-07-08 21:02:4597 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:1798 "//chrome/app/theme:theme_resources",
sdefresnea213ceb2015-10-05 09:23:3999 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
[email protected]797b25042014-07-01 23:54:17100 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:30101 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:31102 "//chrome/common",
[email protected]604828c2014-07-02 20:39:12103 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:01104 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:03105 "//components/bookmarks/managed",
blundell7282b512015-11-09 07:21:11106 "//components/browser_sync/browser",
blundell373c28c2015-11-05 14:07:50107 "//components/browser_sync/common",
[email protected]b9f4c682014-07-10 22:00:37108 "//components/captive_portal",
estark334673f42015-09-08 14:51:39109 "//components/certificate_reporting",
[email protected]fca567b2014-07-02 17:37:34110 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:01111 "//components/component_updater",
blundell64fedf12015-08-25 12:22:27112 "//components/compression",
vabrfc325fa2015-04-10 16:24:45113 "//components/content_settings/content/common",
vasiliiac461392014-09-18 11:35:17114 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:54115 "//components/content_settings/core/common",
abhishek.a21bbf8e4a2015-10-15 21:05:56116 "//components/cookie_config",
[email protected]478ed232014-08-19 02:10:55117 "//components/crx_file",
megjablon3476e042014-10-14 19:21:59118 "//components/data_reduction_proxy/core/browser",
sclittleae932be2015-10-08 20:53:50119 "//components/data_usage/core",
amohammadkhanf76ae112015-09-14 17:34:43120 "//components/data_use_measurement/core",
reillyg4a849272015-02-20 21:38:43121 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:25122 "//components/domain_reliability",
noyaudaaac3a2014-10-08 11:11:11123 "//components/enhanced_bookmarks",
sdefresnecbacfd72015-03-20 12:11:32124 "//components/favicon/core",
sdefresne001b10de2015-03-20 18:41:46125 "//components/favicon_base",
droger888be0b2015-10-01 14:28:52126 "//components/flags_ui",
[email protected]abd4b682014-07-16 20:26:30127 "//components/gcm_driver",
jianli2104ce612015-05-06 00:24:34128 "//components/gcm_driver/instance_id",
Brett Wilson1c693992014-08-25 19:10:01129 "//components/google/core/browser",
fsamuelaf5bf6d12015-05-28 16:29:54130 "//components/guest_view/browser",
erikchen332265b2014-11-14 19:59:52131 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25132 "//components/history/core/browser",
133 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01134 "//components/infobars/core",
knn062cdbb2015-06-26 18:18:42135 "//components/invalidation/impl",
gunsch1afc65172014-09-16 00:03:32136 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34137 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06138 "//components/metrics:profiler",
blundell218124c22015-10-15 10:36:35139 "//components/metrics:profiler_content",
blundell8e66adc2015-10-12 11:46:12140 "//components/metrics:ui",
agrieved7a71c882015-11-20 19:53:28141 "//components/metrics/proto:proto",
blundell695d61f2015-10-21 11:25:53142 "//components/metrics_services_manager",
rsleevic327b48f82015-04-30 02:03:25143 "//components/mime_util",
[email protected]fca567b2014-07-02 17:37:34144 "//components/navigation_metrics",
Brett Wilson1c693992014-08-25 19:10:01145 "//components/network_time",
agrieved7a71c882015-11-20 19:53:28146 "//components/ntp_snippets",
fgorskife7b92f2015-06-15 19:19:40147 "//components/offline_pages",
blundell2102f7c2015-07-09 10:00:53148 "//components/omnibox/browser",
[email protected]fca567b2014-07-02 17:37:34149 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00150 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01151 "//components/password_manager/core/browser",
152 "//components/password_manager/core/common",
[email protected]fca567b2014-07-02 17:37:34153 "//components/policy:policy_component",
stevenjbb237e2ae2015-07-02 22:02:11154 "//components/proxy_config",
[email protected]fca567b2014-07-02 17:37:34155 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37156 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01157 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40158 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01159 "//components/search_engines",
160 "//components/search_provider_logos",
felt20e0f2002015-07-31 15:27:36161 "//components/security_interstitials/core",
[email protected]abd4b682014-07-16 20:26:30162 "//components/signin/core/browser",
felt2493b4452015-09-17 20:33:59163 "//components/ssl_errors",
fdoray443bd112015-11-16 20:44:23164 "//components/startup_metric_utils/browser:lib",
165 "//components/startup_metric_utils/browser:message_filter_lib",
[email protected]797b25042014-07-01 23:54:17166 "//components/strings",
mathp60143a32014-10-08 14:52:45167 "//components/suggestions",
blundellc759b682015-10-08 15:50:59168 "//components/sync_bookmarks",
Brett Wilson1c693992014-08-25 19:10:01169 "//components/sync_driver",
skym6b9887e2015-10-09 22:10:47170 "//components/sync_sessions",
zhenwecedcf22015-08-18 23:37:46171 "//components/tracing:startup_tracing",
[email protected]b9f4c682014-07-10 22:00:37172 "//components/translate/core/browser",
173 "//components/translate/core/common",
brettw0741cb1c2015-08-21 22:06:00174 "//components/ui/zoom",
sdefresnec083d1f2015-04-17 21:12:18175 "//components/undo",
sorin39eab2f2015-01-06 01:09:08176 "//components/update_client",
rsleevi24f64dc22015-08-07 21:39:21177 "//components/url_formatter",
[email protected]fca567b2014-07-02 17:37:34178 "//components/user_prefs",
jitendra.ks94c0b962015-08-10 08:24:09179 "//components/user_prefs/tracked:user_prefs_tracked",
isherman3be67db2014-10-24 05:57:44180 "//components/variations",
181 "//components/variations/net",
blundellb50ad702015-08-27 17:08:29182 "//components/variations/service",
agrieved7a71c882015-11-20 19:53:28183 "//components/web_resource",
[email protected]bf4545f2014-07-11 19:49:46184 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56185 "//components/webdata_services",
[email protected]dffd8a912014-06-30 23:24:31186 "//content/public/browser",
187 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12188 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31189 "//crypto",
[email protected]604828c2014-07-02 20:39:12190 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56191 "//gpu/config",
[email protected]dffd8a912014-06-30 23:24:31192 "//skia",
193 "//sql",
194 "//sync",
[email protected]797b25042014-07-01 23:54:17195 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31196 "//third_party/icu",
ajwongf7b1cb692014-08-23 21:36:22197 "//third_party/libjingle",
agrieved7a71c882015-11-20 19:53:28198 "//third_party/libxml",
[email protected]dffd8a912014-06-30 23:24:31199 "//third_party/widevine/cdm:version_h",
200 "//third_party/zlib",
201 "//third_party/zlib:minizip",
202 "//third_party/zlib:zip",
203 "//ui/base",
cjhopman09981a92014-10-27 17:11:18204 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31205 "//ui/gfx",
206 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36207 "//ui/message_center",
agrieved7a71c882015-11-20 19:53:28208 "//ui/resources",
[email protected]a1d7d4f2014-07-16 21:33:36209 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31210 "//ui/strings",
[email protected]dffd8a912014-06-30 23:24:31211 ]
bencccedf12015-11-10 07:56:16212 data_deps = []
[email protected]dffd8a912014-06-30 23:24:31213
scottmga266f952014-12-03 20:47:10214 sources +=
215 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00216
[email protected]dffd8a912014-06-30 23:24:31217 if (!is_ios) {
scottmga266f952014-12-03 20:47:10218 sources +=
219 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59220 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10221 ".",
222 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59223 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10224 ".",
225 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18226 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
227 ".",
228 "//chrome")
229 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
230 ".",
231 "//chrome")
sclittlea133de02015-11-10 23:54:21232 sources += rebase_path(gypi_values.chrome_browser_data_usage_sources,
233 ".",
234 "//chrome")
benwellsedf5e082015-04-23 02:45:14235 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
236 ".",
237 "//chrome")
scottmga266f952014-12-03 20:47:10238 sources +=
239 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
240 sources +=
241 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
242 sources +=
243 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
244 sources +=
245 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
246 sources +=
247 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59248 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10249 ".",
250 "//chrome")
mlamouri4e372022015-03-29 14:51:06251 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
252 ".",
253 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59254 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10255 ".",
256 "//chrome")
257 sources +=
258 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59259 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10260 ".",
261 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59262 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10263 ".",
264 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59265 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10266 ".",
267 "//chrome")
268 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18269 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
270 sources +=
scottmga266f952014-12-03 20:47:10271 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
272 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18273 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
274 sources +=
scottmga266f952014-12-03 20:47:10275 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59276 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10277 ".",
278 "//chrome")
sievers2f1e8112015-12-04 18:43:56279 if (android_java_ui) {
280 sources +=
281 rebase_path(gypi_values.chrome_browser_sync_android_java_ui_sources,
282 ".",
283 "//chrome")
284 sources +=
285 rebase_path(gypi_values.chrome_browser_ssl_android_java_ui_sources,
286 ".",
287 "//chrome")
288 sources += rebase_path(
289 gypi_values.chrome_browser_history_android_java_ui_sources,
290 ".",
291 "//chrome")
292 sources += rebase_path(
293 gypi_values.chrome_browser_permissions_android_java_ui_sources,
294 ".",
295 "//chrome")
296 sources += rebase_path(
297 gypi_values.chrome_browser_search_engines_android_java_ui_sources,
298 ".",
299 "//chrome")
300 if (enable_supervised_users) {
301 sources += rebase_path(
302 gypi_values.chrome_browser_supervised_user_android_java_ui_sources,
303 ".",
304 "//chrome")
305 }
306 }
scottmga266f952014-12-03 20:47:10307
[email protected]dffd8a912014-06-30 23:24:31308 deps += [
Brett Wilson1c693992014-08-25 19:10:01309 "//apps",
[email protected]dffd8a912014-06-30 23:24:31310 "//cc",
brettwca934582015-02-24 21:50:27311 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30312 "//chrome/browser/devtools",
sdefresnea213ceb2015-10-05 09:23:39313 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
brettwca934582015-02-24 21:50:27314 "//chrome/browser/resources:component_extension_resources",
tfarina04d426612015-08-18 16:42:33315 "//chrome/common/net",
[email protected]55699f392014-08-20 22:16:30316 "//chrome/installer/util",
jitendra.ks4f2e9112015-08-14 11:40:26317 "//components/about_handler",
oshimaf65398422014-11-18 23:30:42318 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37319 "//components/autofill/content/browser",
lazyboy14082d22015-04-02 01:04:58320 "//components/browsing_data",
donndbda9b6f432015-12-10 20:39:05321 "//components/contextual_search:browser",
jeremyim364ac1182015-03-03 18:49:43322 "//components/data_reduction_proxy/content/browser",
amohammadkhan092adb22015-09-11 21:08:49323 "//components/data_use_measurement/content",
dgozmanec2b982a2015-04-28 10:36:39324 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46325 "//components/devtools_http_handler",
brettw15764b12015-11-30 22:11:05326 "//components/dom_distiller/content/browser",
tfarina041134472015-09-02 15:29:38327 "//components/error_page/common",
sdefresne001b10de2015-03-20 18:41:46328 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04329 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34330 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30331 "//components/navigation_interception",
drogerc690e8802015-09-21 14:29:16332 "//components/net_log",
tfarina041134472015-09-02 15:29:38333 "//components/network_hints/common",
[email protected]55699f392014-08-20 22:16:30334 "//components/password_manager/content/browser",
vabr5410d0b2015-08-07 11:02:04335 "//components/password_manager/sync/browser",
droger78da6542015-11-02 11:25:59336 "//components/profile_metrics",
abhishek.a2171c612852015-08-31 10:48:19337 "//components/proxy_config",
droger2a6ab542015-10-09 16:10:28338 "//components/resources",
vakh9d5888022015-10-29 21:04:07339 "//components/safe_browsing_db",
bauerbf0e64aa2015-06-25 15:54:07340 "//components/safe_json",
brettwa22cb3b2015-04-30 20:23:12341 "//components/sessions",
abhishek.a212849cee2015-10-20 11:27:29342 "//components/ssl_config",
[email protected]abd4b682014-07-16 20:26:30343 "//components/storage_monitor",
sdefresne875d0782015-09-16 12:01:28344 "//components/syncable_prefs",
[email protected]b9f4c682014-07-10 22:00:37345 "//components/translate/content/browser",
sdefresne44eb1f22015-08-06 08:51:55346 "//components/upload_list",
[email protected]fca567b2014-07-02 17:37:34347 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31348 "//components/visitedlink/browser",
349 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18350 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37351 "//components/web_modal",
reillygcf1af632015-11-18 16:42:58352 "//components/webusb",
[email protected]a9ca8d52014-08-22 10:21:08353 "//content/app/resources",
reillygcf1af632015-11-18 16:42:58354 "//device/core",
355 "//device/devices_app/public/cpp",
356 "//device/devices_app/public/cpp:factory",
finnur61535c702015-10-05 11:10:02357 "//device/devices_app/usb/public/interfaces",
reillygcf1af632015-11-18 16:42:58358 "//device/usb",
[email protected]55699f392014-08-20 22:16:30359 "//media",
yhiranobbea6272015-09-17 07:09:03360 "//media/midi",
rockot50dc5692015-07-08 01:57:26361 "//mojo/application/public/cpp",
cjhopman09981a92014-10-27 17:11:18362 "//mojo/common",
[email protected]604828c2014-07-02 20:39:12363 "//mojo/environment:chromium",
rockot85dce0862015-11-13 01:33:59364 "//mojo/public/cpp/bindings",
365 "//mojo/public/js",
Brett Wilson83fd4242014-09-02 19:45:33366 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31367 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15368 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24369 "//storage/common",
erga3c614c92015-04-03 17:47:51370 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46371 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31372 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34373 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31374 "//third_party/libyuv",
blundell70fb547672015-01-19 17:18:33375 "//third_party/mojo/src/mojo/edk/system",
[email protected]dffd8a912014-06-30 23:24:31376 "//third_party/re2",
377 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33378 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12379 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31380 "//ui/gl",
brettwca934582015-02-24 21:50:27381 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31382 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12383 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34384 "//v8",
[email protected]dffd8a912014-06-30 23:24:31385 ]
paulmeyer27b328b2015-06-17 21:26:12386
387 if (toolkit_views) {
388 deps += [ "//ui/views" ]
389 }
[email protected]dffd8a912014-06-30 23:24:31390 } else { # iOS
scottmga266f952014-12-03 20:47:10391 sources +=
392 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
393 sources +=
394 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
395 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31396 libs += [
397 "CoreTelephony.framework",
398 "CoreText.framework",
399 "MobileCoreServices.framework",
400 "QuartzCore.framework",
401 ]
scottmga266f952014-12-03 20:47:10402 ldflags += [
403 "-weak_framework",
404 "CoreImage",
405 ]
[email protected]dffd8a912014-06-30 23:24:31406 }
407
408 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10409 sources +=
410 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31411 }
mmenkede134672015-08-18 01:33:39412 if (!is_win && !is_mac && !is_ios) {
413 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ]
414 }
[email protected]dffd8a912014-06-30 23:24:31415 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
416 sources += [
417 "net/disk_cache_dir_policy_handler.cc",
418 "net/disk_cache_dir_policy_handler.h",
419 ]
420 }
421 if (!is_android && !is_ios && enable_configuration_policy) {
422 sources += [
423 "download/download_dir_policy_handler.cc",
424 "download/download_dir_policy_handler.h",
425 ]
426 }
427 if (is_mac) {
scottmga266f952014-12-03 20:47:10428 sources +=
429 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31430 deps += [
brettw5ff98192015-10-22 06:36:15431 "//chrome/app_shim",
432 "//chrome/browser/apps/app_shim",
[email protected]dffd8a912014-06-30 23:24:31433 ]
434 }
ki.stfu5e669f02015-09-17 07:15:19435 if (is_mac || is_android) {
436 sources += rebase_path(
437 gypi_values.chrome_browser_password_manager_mac_android_sources,
438 ".",
439 "//chrome")
440 }
[email protected]dffd8a912014-06-30 23:24:31441 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46442 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52443 deps += [
[email protected]cc5b3be2014-08-15 23:24:52444 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30445 "//chrome/common/extensions/api",
446 "//chrome/common/extensions/api:api_registration",
lukasza8acc4eb2015-07-20 20:57:20447 "//components/drive:drive",
msarda4c408ff2015-04-22 14:27:56448 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44449 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50450 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06451 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52452 ]
[email protected]dffd8a912014-06-30 23:24:31453 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10454 ".",
455 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31456 }
457 if (enable_background) {
458 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10459 ".",
460 "//chrome")
jamesr29ea2d122014-10-23 10:30:27461 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31462 sources -= [ "background/background_mode_manager_aura.cc" ]
463 }
464 }
465 if (enable_task_manager) {
466 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10467 ".",
468 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31469 }
470 if (enable_spellcheck) {
471 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10472 ".",
473 "//chrome")
dylanking34c72442015-07-23 23:19:58474 if (!is_android) {
475 deps += [ "//third_party/hunspell" ]
476 }
[email protected]dffd8a912014-06-30 23:24:31477 }
478 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10479 sources +=
480 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
dpranke6065cf72015-02-26 03:30:58481 deps += [ "//components/nacl:nacl_browser" ]
[email protected]dffd8a912014-06-30 23:24:31482 }
apavlove749bca2014-09-30 11:07:41483
[email protected]dffd8a912014-06-30 23:24:31484 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10485 sources +=
486 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
487 ".",
488 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31489 deps += [
[email protected]604828c2014-07-02 20:39:12490 "//components/policy",
[email protected]797b25042014-07-01 23:54:17491 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31492 ]
493 if (!is_ios) {
scottmga266f952014-12-03 20:47:10494 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
495 ".",
496 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31497 }
498 if (!is_chromeos) {
499 sources += rebase_path(
scottmga266f952014-12-03 20:47:10500 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
501 ".",
502 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31503 }
504 if (is_win || is_mac || is_desktop_linux) {
505 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10506 ".",
507 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31508 }
cjhopman09981a92014-10-27 17:11:18509 if (is_android || is_ios) {
510 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10511 ".",
512 "//chrome")
cjhopman09981a92014-10-27 17:11:18513 } else {
amistry6e1ed1b2015-03-12 05:24:01514 deps += [
515 "//chrome/browser/policy:path_parser",
516 "//net:net_browser_services",
517 ]
[email protected]dffd8a912014-06-30 23:24:31518 }
519 } else {
520 # Configuration policy disabled.
521 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10522 ".",
523 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31524 }
525
526 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10527 sources +=
528 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31529 deps += [
James Robinson2ed4d692014-09-17 05:20:58530 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31531 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14532 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31533 ]
534 }
535 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10536 sources +=
stuartmorgan1b3df822014-12-08 14:36:11537 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10538 ".",
539 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31540 deps += [
[email protected]fca567b2014-07-02 17:37:34541 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45542 "//chrome/browser/safe_browsing:metadata_proto",
jialiuleed304432015-11-09 20:17:03543 "//chrome/common/safe_browsing:proto",
[email protected]dffd8a912014-06-30 23:24:31544 ]
545 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10546 sources +=
stuartmorgan1b3df822014-12-08 14:36:11547 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10548 ".",
549 "//chrome")
scottmga266f952014-12-03 20:47:10550 deps += [ "//chrome/common/safe_browsing:proto" ]
grtc1d1b752015-09-05 13:26:41551 if (is_win) {
552 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto" ]
553 }
nparker00a64f12015-10-16 17:34:30554 } else if (safe_browsing_mode == 2) {
555 sources +=
556 rebase_path(gypi_values.chrome_browser_safe_browsing_mobile_sources,
557 ".",
558 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31559 }
560 }
561
amistryf269d3b2015-06-09 19:18:39562 if (enable_hotwording) {
563 defines += [ "ENABLE_HOTWORDING" ]
564 }
565
[email protected]dffd8a912014-06-30 23:24:31566 if (is_linux) {
mostynbea514682015-08-18 22:08:56567 deps += [ "//device/media_transfer_protocol" ]
[email protected]dffd8a912014-06-30 23:24:31568 }
mostynbea514682015-08-18 22:08:56569
570 if (use_udev) {
571 deps += [ "//device/udev_linux" ]
572 }
573
[email protected]dffd8a912014-06-30 23:24:31574 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47575 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31576 }
577
578 if (is_chromeos) {
579 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10580 ".",
581 "//chrome")
582 deps += [ "//chrome/browser/chromeos" ]
[email protected]dffd8a912014-06-30 23:24:31583 }
584
mukai8c99b882014-10-15 03:07:59585 if (is_chromeos || is_ios) {
586 sources -= [
blundell296904a2015-10-13 12:30:48587 "signin/chrome_signin_status_metrics_provider_delegate.cc",
588 "signin/chrome_signin_status_metrics_provider_delegate.h",
mukai8c99b882014-10-15 03:07:59589 ]
590 }
591
[email protected]dffd8a912014-06-30 23:24:31592 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12593 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31594 }
595 if (is_desktop_linux) {
596 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10597 ".",
598 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49599 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31600 }
dvadym34532022015-01-22 15:42:51601 if (is_desktop_linux) {
602 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
603 ".",
604 "//chrome")
605 defines += [ "USE_LIBSECRET" ]
606 }
[email protected]dffd8a912014-06-30 23:24:31607 if (use_aura) {
scottmga266f952014-12-03 20:47:10608 sources +=
609 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
ben0cc0be92015-11-09 21:49:06610
611 # These files are only built in a GN build because they bring in
612 # dependencies that don't build with GYP.
613 sources += [
bencccedf12015-11-10 07:56:16614 "ui/views/frame/browser_frame_mus.cc",
615 "ui/views/frame/browser_frame_mus.h",
skyab2410c52015-12-03 03:40:56616 "ui/views/frame/browser_non_client_frame_view_mus.cc",
617 "ui/views/frame/browser_non_client_frame_view_mus.h",
ben0cc0be92015-11-09 21:49:06618 ]
[email protected]dffd8a912014-06-30 23:24:31619 deps += [
skyab2410c52015-12-03 03:40:56620 "//components/mus/public/cpp",
ben03b7b9d2015-11-15 12:13:09621 "//content/public/common",
ben0cc0be92015-11-09 21:49:06622 "//mojo/runner/child:lib",
[email protected]fca567b2014-07-02 17:37:34623 "//ui/aura",
624 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12625 "//ui/keyboard",
ben974286a2015-10-10 00:45:12626 "//ui/keyboard:keyboard_with_content",
ben03b7b9d2015-11-15 12:13:09627 "//ui/views/mus:for_component",
[email protected]dffd8a912014-06-30 23:24:31628 ]
ben03b7b9d2015-11-15 12:13:09629 defines += [ "MOJO_SHELL_CLIENT" ]
skyef819da2015-11-26 02:39:58630 data_deps += [ "//mash/wm" ]
[email protected]dffd8a912014-06-30 23:24:31631 }
632 if (ui_compositor_image_transport) {
633 deps += [ "//ui/gl" ]
634 }
635
[email protected]855b7de2014-07-08 21:02:45636 if (use_ash) {
scottmga266f952014-12-03 20:47:10637 sources +=
638 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45639 }
640
[email protected]dffd8a912014-06-30 23:24:31641 if (use_x11) {
scottmga266f952014-12-03 20:47:10642 sources +=
643 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23644 } else {
645 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31646 }
Scott Grahamcae6b0e2015-12-04 03:23:29647 if (is_posix && !is_mac && !is_ios) {
[email protected]dffd8a912014-06-30 23:24:31648 sources += [
rseseka0a7a042014-09-18 23:59:20649 "//chrome/app/chrome_crash_reporter_client.cc",
650 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31651 ]
652 deps += [
sdefresne8ba0b88c2015-09-18 10:33:13653 "//components/crash/content/app",
654 "//components/crash/content/browser",
blundellf1cfb032015-11-16 18:22:30655 "//components/version_info:generate_version_info",
[email protected]dffd8a912014-06-30 23:24:31656 ]
657 }
658 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10659 sources +=
660 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59661 if (is_chromeos) {
662 sources -= [ "net/nss_context_linux.cc" ]
663 }
[email protected]dffd8a912014-06-30 23:24:31664 }
665 if (enable_notifications) {
666 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10667 ".",
668 "//chrome")
sievers2f1e8112015-12-04 18:43:56669 if (android_java_ui) {
670 sources += rebase_path(
671 gypi_values.chrome_browser_notifications_android_java_ui_sources,
672 ".",
673 "//chrome")
estade6d95d1d2015-10-02 18:55:23674 } else {
[email protected]dffd8a912014-06-30 23:24:31675 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11676 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10677 ".",
678 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31679 }
680 }
681 if (enable_themes) {
scottmga266f952014-12-03 20:47:10682 sources +=
683 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31684 }
685
vitalybuka93eea402014-11-05 23:47:15686 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31687 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11688 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10689 ".",
690 "//chrome")
spang5cc72542015-08-04 19:47:11691 deps += [
brettwd649f6b2015-08-18 20:58:51692 "//components/printing/browser",
agrieved7a71c882015-11-20 19:53:28693 "//printing",
spang5cc72542015-08-04 19:47:11694 ]
695
vitalybuka36259ca2014-08-28 23:42:24696 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31697 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10698 ".",
699 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31700 }
vitalybuka93eea402014-11-05 23:47:15701 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31702 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11703 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10704 ".",
705 "//chrome")
vitalybuka93eea402014-11-05 23:47:15706 } else {
[email protected]dffd8a912014-06-30 23:24:31707 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10708 sources +=
stuartmorgan1b3df822014-12-08 14:36:11709 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10710 ".",
711 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31712 }
713 }
714 if (enable_captive_portal_detection) {
715 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10716 ".",
717 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31718 }
719 if (enable_session_service) {
720 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10721 ".",
722 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31723 }
724
thestigdc377202014-10-28 22:06:02725 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10726 sources +=
727 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02728 }
729
[email protected]dffd8a912014-06-30 23:24:31730 if (is_android || is_ios) {
731 # Mobile.
scottmga266f952014-12-03 20:47:10732 sources +=
733 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31734 } else {
735 # Non-mobile.
736 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10737 ".",
738 "//chrome")
reillygcf1af632015-11-18 16:42:58739 deps += [ "//components/feedback" ]
[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")
twellingtoncaf0eb752015-06-01 16:19:50758 sources += rebase_path(gypi_values.chrome_browser_bookmark_android_sources,
759 ".",
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",
cjhopman09981a92014-10-27 17:11:18766 "//components/enhanced_bookmarks",
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 ]
774
775 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
776 }
777
778 if (is_android) {
779 deps += [
780 "//components/cdm/browser",
781 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18782 "//third_party/android_opengl/etc1",
fdegans34f31e272015-05-22 16:59:03783 "//third_party/android_tools:cpu_features",
twellington0bc61492015-01-30 20:14:13784 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31785 ]
sievers2f1e8112015-12-04 18:43:56786
[email protected]dffd8a912014-06-30 23:24:31787 deps -= [
[email protected]abd4b682014-07-16 20:26:30788 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30789 "//components/web_modal",
agrieved7a71c882015-11-20 19:53:28790 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31791 ]
rseseke59ea892015-03-19 22:27:44792
793 if (use_seccomp_bpf) {
794 defines += [ "USE_SECCOMP_BPF" ]
rsesek65d31352015-06-08 22:53:44795 deps += [ "//sandbox/linux:seccomp_bpf" ]
rseseke59ea892015-03-19 22:27:44796 }
[email protected]dffd8a912014-06-30 23:24:31797 }
798
799 if (is_mac) {
800 deps += [
[email protected]6b5d2f92014-07-30 00:40:03801 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03802 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31803 ]
804 libs += [
805 "Accelerate.framework",
806 "AddressBook.framework",
807 "AudioUnit.framework",
808 "DiskArbitration.framework",
809 "IOKit.framework",
810 "ImageCaptureCore.framework",
811 "OpenGL.framework",
812 "QuartzCore.framework",
813 "SecurityInterface.framework",
814 ]
815 }
816
817 if (enable_rlz) {
sdefresned967d552015-07-16 08:34:35818 deps += [ ":rlz" ]
[email protected]dffd8a912014-06-30 23:24:31819 }
820
821 # TODO(GYP)
822 # Temporary fix to break the browser target into smaller chunks so it
823 # will link with goma builds.
824 #["OS=="win" and chromium_win_pch==0", {
825 # "msvs_shard": 4,
826 #}],
827
828 if (is_win) {
scottmga266f952014-12-03 20:47:10829 sources +=
830 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
Brett Wilsone53895272014-09-23 23:41:46831 public_deps += [
832 "//ui/views",
833 "//ui/views/controls/webview",
834 ]
[email protected]dffd8a912014-06-30 23:24:31835 deps += [
vchigrin9593e7a2015-01-27 10:08:19836 ":chrome_process_finder",
mdempsky15a48be2015-10-21 23:37:53837 "//chrome/common:version_header",
[email protected]55699f392014-08-20 22:16:30838 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19839 "//chrome_elf",
840 "//chrome_elf:constants",
841 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32842 "//components/browser_watcher",
843 "//components/browser_watcher:browser_watcher_client",
vchigrinbbc23e72015-01-21 22:49:23844 "//google_update",
[email protected]55699f392014-08-20 22:16:30845 "//third_party/iaccessible2",
846 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31847 "//third_party/wtl",
vchigrin88ed6f42015-01-17 11:56:42848 "//ui/metro_viewer",
849 "//win8:metro_viewer",
[email protected]dffd8a912014-06-30 23:24:31850 ]
mmenkede134672015-08-18 01:33:39851
852 all_dependent_configs = [ ":browser_win_linker_flags" ]
853
grt235b3f092015-05-27 21:42:48854 if (!is_chrome_branded) {
855 deps -= [ "//google_update" ]
856 sources -= [
857 "google/did_run_updater_win.cc",
858 "google/did_run_updater_win.h",
859 "google/google_update_win.cc",
860 "google/google_update_win.h",
861 ]
862 }
[email protected]dffd8a912014-06-30 23:24:31863 } else {
864 # Non-Windows.
scottmga266f952014-12-03 20:47:10865 sources +=
866 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37867 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31868 deps += [
scottmga266f952014-12-03 20:47:10869 "//ui/views",
870 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31871 ]
[email protected]dffd8a912014-06-30 23:24:31872 }
873 }
874
875 if (is_linux) {
[email protected]dffd8a912014-06-30 23:24:31876 if (use_aura) {
slan17e5ce7f2015-09-25 00:04:45877 configs += [ "//build/config/linux:dbus" ]
878 deps += [
879 "//build/linux:fontconfig",
880 "//dbus",
[email protected]dffd8a912014-06-30 23:24:31881 ]
[email protected]dffd8a912014-06-30 23:24:31882 }
883 if (use_x11) {
884 configs += [ "//build/config/linux:x11" ]
885 deps += [ "//ui/gfx/x" ]
886 }
887 }
888
889 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54890 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10891 ".",
892 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31893 }
894 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10895 sources +=
896 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
897 ".",
898 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31899 }
900 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10901 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31902 }
treib87bb89cbb2014-12-01 16:01:47903 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10904 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
905 ".",
906 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31907 }
bauerb7f3b8542015-06-29 19:56:19908 if (enable_supervised_users && !is_android && !is_ios) {
909 sources +=
910 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
911 ".",
912 "//chrome")
913 }
treib87bb89cbb2014-12-01 16:01:47914 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59915 sources += rebase_path(
scottmga266f952014-12-03 20:47:10916 gypi_values.chrome_browser_supervised_user_and_themes_sources,
917 ".",
918 "//chrome")
thestig169a6362014-11-13 20:47:59919 }
[email protected]dffd8a912014-06-30 23:24:31920 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10921 sources +=
922 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31923 }
924 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10925 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
926 ".",
927 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31928 }
929 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10930 sources +=
931 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31932 }
933 if (!enable_autofill_dialog || is_android || is_ios) {
934 sources -= [
935 "autofill/validation_rules_storage_factory.cc",
936 "autofill/validation_rules_storage_factory.h",
937 ]
938 }
mfoltz150bb8b2015-04-09 22:30:05939 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55940 deps += [ "//chrome/browser/media/router" ]
mfoltz150bb8b2015-04-09 22:30:05941 }
xhwang5e630462015-10-30 03:18:48942
943 if (enable_mojo_media != "none") {
944 configs += [ "//media/mojo/services:enable_mojo_media_config" ]
945 }
946
947 if (enable_mojo_media == "utility") {
948 deps += [ "//media/mojo/services:application" ]
949 }
revemanb195f41d2015-11-19 22:16:48950
951 if (enable_wayland_server) {
952 deps += [
953 "//components/exo",
954 "//components/exo/wayland",
955 ]
956 sources += [
957 "chrome_browser_main_extra_parts_exo.cc",
958 "chrome_browser_main_extra_parts_exo.h",
959 ]
960 }
[email protected]dffd8a912014-06-30 23:24:31961}
962
sievers2f1e8112015-12-04 18:43:56963if (android_java_ui) {
James Robinson2ed4d692014-09-17 05:20:58964 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
965 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10966 sources =
967 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58968 jni_package = "chrome"
969 }
pkotwicz127726f2015-05-29 15:20:12970
971 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
972 proto_library("client_discourse_context_proto") {
973 sources = [
974 "android/proto/client_discourse_context.proto",
975 ]
976 }
977
978 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
979 proto_library("delta_file_proto") {
980 sources = [
981 "android/proto/delta_file.proto",
982 ]
983 }
James Robinson2ed4d692014-09-17 05:20:58984}
985
vchigrin9593e7a2015-01-27 10:08:19986if (is_win) {
987 source_set("chrome_process_finder") {
988 sources = [
989 "chrome_process_finder_win.cc",
990 "chrome_process_finder_win.h",
991 ]
992 deps = [
993 "//base",
994 "//chrome/browser/metro_utils",
995 "//chrome/common:constants",
996 ]
997 if (enable_configuration_policy) {
998 deps += [ "//chrome/browser/policy:path_parser" ]
999 }
1000 }
1001}
1002
[email protected]77ce8022014-06-16 19:29:561003# GYP version: chrome/chrome_resources.gyp:chrome_resources
1004# (generate_browser_resources action)
1005grit("resources") {
1006 source = "browser_resources.grd"
brettw06c2ba32015-11-26 09:21:251007 defines = chrome_grit_defines
[email protected]48885492014-08-13 11:22:411008 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:261009 outputs = [
1010 "grit/browser_resources.h",
1011 "browser_resources.pak",
1012 ]
[email protected]77ce8022014-06-16 19:29:561013
[email protected]77ce8022014-06-16 19:29:561014 grit_flags = [
scottmga266f952014-12-03 20:47:101015 "-E",
scottmga266f952014-12-03 20:47:101016 "additional_modules_list_file=" +
1017 rebase_path(additional_modules_list_file, root_build_dir),
1018 "-E",
calamityd59c1032015-09-22 06:35:531019 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
[email protected]77ce8022014-06-16 19:29:561020 ]
1021
1022 deps = [
[email protected]77ce8022014-06-16 19:29:561023 ":chrome_internal_resources_gen",
brettwde262b02015-05-27 19:41:421024
1025 # Depend only on the generated mojo bindings since we read the .mojom.js
1026 # file, rather than the whole mojo target which will link the C++ bindings.
calamityd59c1032015-09-22 06:35:531027 "//chrome/browser/ui/webui/engagement:mojo_bindings__generator",
brettwde262b02015-05-27 19:41:421028 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
vchigrin8eede942015-01-29 09:28:151029 ]
[email protected]77ce8022014-06-16 19:29:561030}
1031
[email protected]77ce8022014-06-16 19:29:561032# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:411033if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:561034 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:411035 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:101036 sources = [
1037 "internal/resources/additional_modules_list.input",
1038 ]
1039 outputs = [
1040 additional_modules_list_file,
1041 ]
engedy99d0e11b2014-09-30 13:32:411042 args = rebase_path(sources, root_build_dir) +
1043 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:561044 }
1045} else {
1046 group("chrome_internal_resources_gen") {
1047 # Empty placeholder.
1048 }
1049}
Brett Wilson052ce132014-09-12 19:46:291050
1051# In GYP this is part of test_support_common.
1052source_set("test_support") {
1053 testonly = true
1054
1055 # Always include this via the main test support target.
1056 visibility = [ "//chrome/test:test_support" ]
1057
1058 sources = [
1059 "browsing_data/mock_browsing_data_appcache_helper.cc",
1060 "browsing_data/mock_browsing_data_appcache_helper.h",
jsbelle1fe9692015-08-22 01:02:421061 "browsing_data/mock_browsing_data_cache_storage_helper.cc",
1062 "browsing_data/mock_browsing_data_cache_storage_helper.h",
Brett Wilson052ce132014-09-12 19:46:291063 "browsing_data/mock_browsing_data_channel_id_helper.cc",
1064 "browsing_data/mock_browsing_data_channel_id_helper.h",
1065 "browsing_data/mock_browsing_data_cookie_helper.cc",
1066 "browsing_data/mock_browsing_data_cookie_helper.h",
1067 "browsing_data/mock_browsing_data_database_helper.cc",
1068 "browsing_data/mock_browsing_data_database_helper.h",
1069 "browsing_data/mock_browsing_data_file_system_helper.cc",
1070 "browsing_data/mock_browsing_data_file_system_helper.h",
1071 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
1072 "browsing_data/mock_browsing_data_flash_lso_helper.h",
1073 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
1074 "browsing_data/mock_browsing_data_indexed_db_helper.h",
1075 "browsing_data/mock_browsing_data_local_storage_helper.cc",
1076 "browsing_data/mock_browsing_data_local_storage_helper.h",
1077 "browsing_data/mock_browsing_data_quota_helper.cc",
1078 "browsing_data/mock_browsing_data_quota_helper.h",
1079 "browsing_data/mock_browsing_data_service_worker_helper.cc",
1080 "browsing_data/mock_browsing_data_service_worker_helper.h",
1081 "download/download_test_file_activity_observer.cc",
1082 "download/download_test_file_activity_observer.h",
1083 "download/test_download_shelf.cc",
1084 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:291085 "invalidation/fake_invalidation_service.cc",
1086 "invalidation/fake_invalidation_service.h",
1087 "media/fake_desktop_media_list.cc",
1088 "media/fake_desktop_media_list.h",
1089 "net/dns_probe_test_util.cc",
1090 "net/dns_probe_test_util.h",
1091 "net/url_request_mock_util.cc",
1092 "net/url_request_mock_util.h",
1093 "notifications/notification_test_util.cc",
1094 "notifications/notification_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291095 "profile_resetter/profile_resetter_test_base.cc",
1096 "profile_resetter/profile_resetter_test_base.h",
1097 "search_engines/template_url_service_factory_test_util.cc",
1098 "search_engines/template_url_service_factory_test_util.h",
1099 "search_engines/template_url_service_test_util.cc",
1100 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:451101 "sessions/session_restore_test_helper.cc",
1102 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291103 "sessions/session_service_test_helper.cc",
1104 "sessions/session_service_test_helper.h",
knn523bd722015-07-30 16:27:091105 "signin/fake_account_fetcher_service_builder.cc",
1106 "signin/fake_account_fetcher_service_builder.h",
mlerman2933d012015-04-24 18:34:271107 "signin/fake_gaia_cookie_manager_service.cc",
1108 "signin/fake_gaia_cookie_manager_service.h",
Brett Wilson052ce132014-09-12 19:46:291109 "signin/fake_profile_oauth2_token_service_builder.cc",
1110 "signin/fake_profile_oauth2_token_service_builder.h",
droger4f489e62015-07-24 19:27:591111 "signin/fake_signin_manager_builder.cc",
1112 "signin/fake_signin_manager_builder.h",
Brett Wilson052ce132014-09-12 19:46:291113 "ssl/ssl_client_auth_requestor_mock.cc",
1114 "ssl/ssl_client_auth_requestor_mock.h",
maxbogued2ea9242015-10-29 01:24:521115 "sync/profile_sync_test_util.cc",
1116 "sync/profile_sync_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291117 ]
1118
brettwbc8b2a22015-07-28 18:24:421119 configs += [ "//build/config:precompiled_headers" ]
1120
Brett Wilsone53895272014-09-23 23:41:461121 public_deps = [
Brett Wilson052ce132014-09-12 19:46:291122 ":browser",
Brett Wilsone53895272014-09-23 23:41:461123 "//chrome/browser/ui:test_support",
1124 ]
1125 deps = [
Brett Wilson052ce132014-09-12 19:46:291126 "//base:prefs_test_support",
agrieved7a71c882015-11-20 19:53:281127 "//chrome/app/theme:theme_resources",
Brett Wilson052ce132014-09-12 19:46:291128 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:291129 "//chrome/common",
1130 "//chrome/common/safe_browsing:proto",
vabra6fded22015-12-10 09:06:551131 "//components/browser_sync/browser:test_support",
knn062cdbb2015-06-26 18:18:421132 "//components/invalidation/impl",
1133 "//components/invalidation/impl:test_support",
Brett Wilson052ce132014-09-12 19:46:291134 "//components/password_manager/core/browser:test_support",
1135 "//components/search_engines:test_support",
sdefresne875d0782015-09-16 12:01:281136 "//components/syncable_prefs:test_support",
jitendra.ks94c0b962015-08-10 08:24:091137 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
Brett Wilson052ce132014-09-12 19:46:291138 "//content/test:test_support",
Brett Wilson052ce132014-09-12 19:46:291139 "//net:test_support",
1140 "//skia",
1141 "//testing/gmock",
1142 "//testing/gtest",
1143 "//ui/gfx",
1144 ]
1145
Brett Wilson052ce132014-09-12 19:46:291146 if (!is_ios) {
1147 deps += [
1148 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:291149 "//google_apis:test_support",
1150 ]
1151 }
1152
thestig354985d2015-09-28 20:55:001153 if (is_android) {
1154 sources -= [
thestig259da0b2015-10-07 18:09:081155 "download/test_download_shelf.cc",
1156 "download/test_download_shelf.h",
1157 "profile_resetter/profile_resetter_test_base.cc",
1158 "profile_resetter/profile_resetter_test_base.h",
1159 "sessions/session_restore_test_helper.cc",
1160 "sessions/session_restore_test_helper.h",
thestig354985d2015-09-28 20:55:001161 "sessions/session_service_test_helper.cc",
1162 "sessions/session_service_test_helper.h",
thestig354985d2015-09-28 20:55:001163 ]
1164 }
1165
James Robinson2ed4d692014-09-17 05:20:581166 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:381167 sources += [
1168 "extensions/extension_action_test_util.cc",
1169 "extensions/extension_action_test_util.h",
1170 ]
scottmga266f952014-12-03 20:47:101171 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:581172 }
1173
Brett Wilson052ce132014-09-12 19:46:291174 if (is_chromeos) {
1175 sources += [
1176 "chromeos/app_mode/fake_cws.cc",
1177 "chromeos/app_mode/fake_cws.h",
1178 "chromeos/file_manager/fake_disk_mount_manager.cc",
1179 "chromeos/file_manager/fake_disk_mount_manager.h",
1180 "chromeos/input_method/mock_candidate_window_controller.cc",
1181 "chromeos/input_method/mock_candidate_window_controller.h",
1182 "chromeos/input_method/mock_input_method_engine.cc",
1183 "chromeos/input_method/mock_input_method_engine.h",
1184 "chromeos/input_method/mock_input_method_manager.cc",
1185 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511186 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1187 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391188 "chromeos/login/session/user_session_manager_test_api.cc",
1189 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291190 "chromeos/login/test/js_checker.cc",
1191 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591192 "chromeos/login/test/oobe_screen_waiter.cc",
1193 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291194 "chromeos/login/ui/mock_login_display.cc",
1195 "chromeos/login/ui/mock_login_display.h",
1196 "chromeos/login/ui/mock_login_display_host.cc",
1197 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511198 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1199 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301200 "chromeos/login/users/fake_chrome_user_manager.cc",
1201 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511202 "chromeos/login/users/fake_supervised_user_manager.cc",
1203 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511204 "chromeos/login/users/mock_user_manager.cc",
1205 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291206 "chromeos/net/network_portal_detector_test_utils.cc",
1207 "chromeos/net/network_portal_detector_test_utils.h",
1208 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1209 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1210 "chromeos/policy/device_policy_builder.cc",
1211 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071212 "chromeos/policy/fake_consumer_management_service.cc",
1213 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291214 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1215 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071216 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1217 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291218 "chromeos/policy/stub_enterprise_install_attributes.cc",
1219 "chromeos/policy/stub_enterprise_install_attributes.h",
1220 "chromeos/settings/device_settings_test_helper.cc",
1221 "chromeos/settings/device_settings_test_helper.h",
1222 "chromeos/system/fake_input_device_settings.cc",
1223 "chromeos/system/fake_input_device_settings.h",
1224 ]
1225 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:171226 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291227 }
1228
1229 if (enable_configuration_policy) {
1230 sources += [
1231 "policy/test/local_policy_test_server.cc",
1232 "policy/test/local_policy_test_server.h",
1233 ]
Brett Wilsone53895272014-09-23 23:41:461234 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291235 "//components/policy:policy_component_test_support",
1236 "//components/policy:test_support",
1237 ]
Brett Wilson052ce132014-09-12 19:46:291238 }
1239
1240 if (safe_browsing_mode == 1) {
1241 sources += [
1242 "extensions/fake_safe_browsing_database_manager.cc",
1243 "extensions/fake_safe_browsing_database_manager.h",
1244 ]
1245 }
1246
1247 if (enable_extensions) {
1248 sources += [
Brett Wilson052ce132014-09-12 19:46:291249 "extensions/api/messaging/native_messaging_test_util.cc",
1250 "extensions/api/messaging/native_messaging_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291251 "extensions/mock_extension_special_storage_policy.cc",
1252 "extensions/mock_extension_special_storage_policy.h",
1253 "extensions/test_blacklist.cc",
1254 "extensions/test_blacklist.h",
1255 "extensions/test_blacklist_state_fetcher.cc",
1256 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511257 "extensions/test_extension_dir.cc",
1258 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591259 "extensions/test_extension_environment.cc",
1260 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291261 "extensions/test_extension_prefs.cc",
1262 "extensions/test_extension_prefs.h",
1263 "extensions/test_extension_service.cc",
1264 "extensions/test_extension_service.h",
1265 "extensions/test_extension_system.cc",
1266 "extensions/test_extension_system.h",
1267 "media_galleries/media_galleries_test_util.cc",
1268 "media_galleries/media_galleries_test_util.h",
1269 ]
lukasza8acc4eb2015-07-20 20:57:201270 deps += [
1271 "//components/drive:test_support",
1272 "//components/storage_monitor:test_support",
1273 ]
Brett Wilson052ce132014-09-12 19:46:291274 }
1275
1276 if (enable_mdns) {
1277 sources += [
1278 "local_discovery/test_service_discovery_client.cc",
1279 "local_discovery/test_service_discovery_client.h",
1280 ]
1281 }
1282
1283 if (enable_app_list) {
1284 sources += [
1285 "ui/app_list/test/chrome_app_list_test_support.cc",
1286 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511287 "ui/app_list/test/test_app_list_controller_delegate.cc",
1288 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291289 ]
1290 }
Brett Wilson052ce132014-09-12 19:46:291291}
sdefresned967d552015-07-16 08:34:351292
thestig65d7c5c2015-10-06 18:13:471293# In GYP this is part of test_support_ui.
1294source_set("test_support_ui") {
1295 testonly = true
1296
1297 # Always include this via the main test support UI target.
1298 visibility = [ "//chrome/test:test_support_ui" ]
1299
1300 sources = [
1301 "password_manager/password_manager_test_base.cc",
1302 "password_manager/password_manager_test_base.h",
1303 "ui/webui/signin/login_ui_test_utils.cc",
1304 "ui/webui/signin/login_ui_test_utils.h",
1305 ]
1306
1307 configs += [ "//build/config:precompiled_headers" ]
1308
1309 deps = [
1310 "//components/metrics:test_support",
vabr22c9e4f42015-10-20 15:34:091311 "//components/password_manager/core/browser:test_support",
thestig65d7c5c2015-10-06 18:13:471312 "//skia",
1313 "//testing/gtest",
1314 ]
1315}
1316
sdefresned967d552015-07-16 08:34:351317if (enable_rlz_support) {
1318 source_set("rlz") {
1319 sources =
1320 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1321 deps = [
1322 "//components/google/core/browser",
1323 "//components/omnibox/browser",
1324 "//components/rlz",
1325 "//components/search_engines",
1326 "//rlz:rlz_lib",
1327 ]
1328 }
1329}