blob: cf783f572117f77fef0bce4db7f6bcbcccfb0e87 [file] [log] [blame]
[email protected]77ce8022014-06-16 19:29:561# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
brettw2b2364b2015-05-01 22:36:235import("//build/config/chrome_build.gni")
[email protected]dffd8a912014-06-30 23:24:316import("//build/config/crypto.gni")
7import("//build/config/features.gni")
8import("//build/config/ui.gni")
brettwf760b442016-06-29 18:57:289import("//build/split_static_library.gni")
brettw06c2ba32015-11-26 09:21:2510import("//chrome/common/features.gni")
raphael.kubo.da.costac4e3e52dff2016-08-16 15:26:4811import("//components/os_crypt/features.gni")
xhwang5e630462015-10-30 03:18:4812import("//media/media_options.gni")
pkotwicz127726f2015-05-29 15:20:1213import("//third_party/protobuf/proto_library.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}
[email protected]77ce8022014-06-16 19:29:5622
[email protected]77ce8022014-06-16 19:29:5623additional_modules_list_file =
24 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
25
scottmga266f952014-12-03 20:47:1026gypi_values = exec_script("//build/gypi_to_gn.py",
27 [ rebase_path("../chrome_browser.gypi") ],
28 "scope",
29 [ "../chrome_browser.gypi" ])
[email protected]dffd8a912014-06-30 23:24:3130
mmenkede134672015-08-18 01:33:3931if (is_win) {
32 # This is in a separate config so the flags can be applied to dependents.
33 # ldflags in GN aren't automatically inherited.
34 config("browser_win_linker_flags") {
35 libs = [
36 "credui.lib",
jam66e4b2b2016-04-01 15:09:0937 "cryptui.lib",
38 "dwmapi.lib",
mmenkede134672015-08-18 01:33:3939 "netapi32.lib",
40 "ndfapi.lib", # Used by browser/net/net_error_diagnostics_dialog_win.h
manzagop74808fc2016-05-13 20:44:3941 "pdh.lib", # Used by browser/private_working_set_snapshot.h
mmenkede134672015-08-18 01:33:3942 ]
manzagop74808fc2016-05-13 20:44:3943 ldflags = [
44 "/DELAYLOAD:ndfapi.dll",
45 "/DELAYLOAD:pdh.dll", # The task manager is rarely used.
46 ]
mmenkede134672015-08-18 01:33:3947 }
48}
49
brettw022f8f32016-06-14 01:22:3950# Use a static library here because many test binaries depend on this but don't
brettwf760b442016-06-29 18:57:2851# require many files from it. This makes linking more efficient.
52split_static_library("browser") {
53 # Split into multiple static libraries on Windows official builds, where we
54 # run into a 2GB max size limit.
55 if (is_win && is_official_build) {
56 split_count = 5
57 } else {
58 split_count = 1
59 }
60
apavlove749bca2014-09-30 11:07:4161 configs += [
62 "//build/config/compiler:wexit_time_destructors",
brettwbc8b2a22015-07-28 18:24:4263 "//build/config:precompiled_headers",
apavlove749bca2014-09-30 11:07:4164 "//third_party/WebKit/public:debug_devtools",
65 ]
[email protected]dffd8a912014-06-30 23:24:3166 defines = []
67 sources = []
68 libs = []
69 ldflags = []
70
tfarina11b504b2016-03-02 19:49:5171 allow_circular_includes_from = [ "//chrome/browser/ui" ]
72
[email protected]dffd8a912014-06-30 23:24:3173 # iOS/non-iOS shared deps. New dependencies should generally be added in the
74 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:4675 public_deps = [
brettw08fe0e952016-08-26 21:53:3976 "//chrome/common",
Brett Wilsone53895272014-09-23 23:41:4677 "//components/autofill/core/browser",
Max Boguefef332d2016-07-28 22:09:0978 "//components/sync",
Brett Wilsone53895272014-09-23 23:41:4679 "//content/public/browser",
80 "//sql",
Brett Wilsone53895272014-09-23 23:41:4681 ]
[email protected]dffd8a912014-06-30 23:24:3182 deps = [
[email protected]dffd8a912014-06-30 23:24:3183 "//chrome:extra_resources",
84 "//chrome:resources",
85 "//chrome:strings",
[email protected]855b7de2014-07-08 21:02:4586 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:1787 "//chrome/app/theme:theme_resources",
harkness883658b2016-07-18 11:37:5388 "//chrome/browser/budget_service:budget_proto",
sdefresnea213ceb2015-10-05 09:23:3989 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
[email protected]797b25042014-07-01 23:54:1790 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:3091 "//chrome/browser/ui",
[email protected]604828c2014-07-02 20:39:1292 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:0193 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:0394 "//components/bookmarks/managed",
blundell7282b512015-11-09 07:21:1195 "//components/browser_sync/browser",
blundell373c28c2015-11-05 14:07:5096 "//components/browser_sync/common",
[email protected]b9f4c682014-07-10 22:00:3797 "//components/captive_portal",
estark334673f42015-09-08 14:51:3998 "//components/certificate_reporting",
eranm3c2d6432016-06-01 10:17:2799 "//components/certificate_transparency",
[email protected]fca567b2014-07-02 17:37:34100 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:01101 "//components/component_updater",
vabrfc325fa2015-04-10 16:24:45102 "//components/content_settings/content/common",
vasiliiac461392014-09-18 11:35:17103 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:54104 "//components/content_settings/core/common",
abhishek.a21bbf8e4a2015-10-15 21:05:56105 "//components/cookie_config",
[email protected]478ed232014-08-19 02:10:55106 "//components/crx_file",
megjablon3476e042014-10-14 19:21:59107 "//components/data_reduction_proxy/core/browser",
sclittleae932be2015-10-08 20:53:50108 "//components/data_usage/core",
amohammadkhanf76ae112015-09-14 17:34:43109 "//components/data_use_measurement/core",
reillyg4a849272015-02-20 21:38:43110 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:25111 "//components/domain_reliability",
sdefresnecbacfd72015-03-20 12:11:32112 "//components/favicon/core",
sdefresne001b10de2015-03-20 18:41:46113 "//components/favicon_base",
droger888be0b2015-10-01 14:28:52114 "//components/flags_ui",
[email protected]abd4b682014-07-16 20:26:30115 "//components/gcm_driver",
Brett Wilson1c693992014-08-25 19:10:01116 "//components/google/core/browser",
fsamuelaf5bf6d12015-05-28 16:29:54117 "//components/guest_view/browser",
erikchen332265b2014-11-14 19:59:52118 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25119 "//components/history/core/browser",
120 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01121 "//components/infobars/core",
knn062cdbb2015-06-26 18:18:42122 "//components/invalidation/impl",
gunsch1afc65172014-09-16 00:03:32123 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34124 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06125 "//components/metrics:profiler",
blundell218124c22015-10-15 10:36:35126 "//components/metrics:profiler_content",
blundell8e66adc2015-10-12 11:46:12127 "//components/metrics:ui",
agrieved7a71c882015-11-20 19:53:28128 "//components/metrics/proto:proto",
blundell695d61f2015-10-21 11:25:53129 "//components/metrics_services_manager",
rsleevic327b48f82015-04-30 02:03:25130 "//components/mime_util",
[email protected]fca567b2014-07-02 17:37:34131 "//components/navigation_metrics",
bnc210d6f32016-05-24 07:40:47132 "//components/network_session_configurator",
Brett Wilson1c693992014-08-25 19:10:01133 "//components/network_time",
agrieved7a71c882015-11-20 19:53:28134 "//components/ntp_snippets",
sfiera0dc4da512016-04-29 09:23:05135 "//components/ntp_tiles",
fgorskife7b92f2015-06-15 19:19:40136 "//components/offline_pages",
petewil0b4d3662016-05-02 18:44:43137 "//components/offline_pages/background:background_offliner",
fgorskie2cd4cb2016-08-01 16:50:53138 "//components/offline_pages/downloads:offline_pages_ui_adapter",
blundell2102f7c2015-07-09 10:00:53139 "//components/omnibox/browser",
[email protected]fca567b2014-07-02 17:37:34140 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00141 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01142 "//components/password_manager/core/browser",
143 "//components/password_manager/core/common",
brettw083632b2016-08-25 20:24:46144 "//components/policy:generated",
145 "//components/policy/core/browser",
dgozmane5a3e252016-03-22 21:45:08146 "//components/policy/proto",
stevenjbb237e2ae2015-07-02 22:02:11147 "//components/proxy_config",
[email protected]fca567b2014-07-02 17:37:34148 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37149 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01150 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40151 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01152 "//components/search_engines",
153 "//components/search_provider_logos",
felt20e0f2002015-07-31 15:27:36154 "//components/security_interstitials/core",
estarkd9e54fb2016-01-11 19:37:12155 "//components/security_state",
[email protected]abd4b682014-07-16 20:26:30156 "//components/signin/core/browser",
felt2493b4452015-09-17 20:33:59157 "//components/ssl_errors",
sammc335844522016-06-09 10:15:59158 "//components/startup_metric_utils/browser:host",
fdoray443bd112015-11-16 20:44:23159 "//components/startup_metric_utils/browser:lib",
fdoray343068c42016-02-03 15:45:58160
161 # TODO(fdoray): Remove this once the PreRead field trial has expired.
162 # crbug.com/577698
163 "//components/startup_metric_utils/common",
[email protected]797b25042014-07-01 23:54:17164 "//components/strings",
engedy9ae04242016-06-08 13:31:18165 "//components/subresource_filter/core/browser",
mathp60143a32014-10-08 14:52:45166 "//components/suggestions",
aberentc987fed2016-03-18 18:17:47167 "//components/supervised_user_error_page",
Max Boguefef332d2016-07-28 22:09:09168 "//components/sync",
blundellc759b682015-10-08 15:50:59169 "//components/sync_bookmarks",
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",
sdefresnec083d1f2015-04-17 21:12:18174 "//components/undo",
sorin39eab2f2015-01-06 01:09:08175 "//components/update_client",
rsleevi24f64dc22015-08-07 21:39:21176 "//components/url_formatter",
[email protected]fca567b2014-07-02 17:37:34177 "//components/user_prefs",
jitendra.ks94c0b962015-08-10 08:24:09178 "//components/user_prefs/tracked:user_prefs_tracked",
isherman3be67db2014-10-24 05:57:44179 "//components/variations",
180 "//components/variations/net",
blundellb50ad702015-08-27 17:08:29181 "//components/variations/service",
agrieved7a71c882015-11-20 19:53:28182 "//components/web_resource",
[email protected]bf4545f2014-07-11 19:49:46183 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56184 "//components/webdata_services",
juncaia64f769c22016-06-04 00:55:32185 "//components/zoom",
[email protected]dffd8a912014-06-30 23:24:31186 "//content/public/browser",
187 "//content/public/common",
hbos18f58912016-03-08 14:26:35188 "//content/public/common:feature_h264_with_openh264_ffmpeg",
189 "//content/public/common:features",
[email protected]604828c2014-07-02 20:39:12190 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31191 "//crypto",
davidben45eb19952016-05-05 16:30:44192 "//crypto:platform",
[email protected]604828c2014-07-02 20:39:12193 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56194 "//gpu/config",
[email protected]dffd8a912014-06-30 23:24:31195 "//skia",
196 "//sql",
[email protected]797b25042014-07-01 23:54:17197 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31198 "//third_party/icu",
ajwongf7b1cb692014-08-23 21:36:22199 "//third_party/libjingle",
agrieved7a71c882015-11-20 19:53:28200 "//third_party/libxml",
[email protected]dffd8a912014-06-30 23:24:31201 "//third_party/widevine/cdm:version_h",
202 "//third_party/zlib",
hajimehoshi1e1cc1a2016-01-14 19:09:00203 "//third_party/zlib:compression_utils",
[email protected]dffd8a912014-06-30 23:24:31204 "//third_party/zlib:minizip",
205 "//third_party/zlib:zip",
206 "//ui/base",
sdefresnec6574a552016-02-08 16:58:21207 "//ui/base:ui_data_pack",
cjhopman09981a92014-10-27 17:11:18208 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31209 "//ui/gfx",
210 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36211 "//ui/message_center",
agrieved7a71c882015-11-20 19:53:28212 "//ui/resources",
[email protected]a1d7d4f2014-07-16 21:33:36213 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31214 "//ui/strings",
[email protected]dffd8a912014-06-30 23:24:31215 ]
bencccedf12015-11-10 07:56:16216 data_deps = []
[email protected]dffd8a912014-06-30 23:24:31217
scottmga266f952014-12-03 20:47:10218 sources +=
219 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00220
qiangchen5a11f96c2016-08-11 00:25:14221 if (is_chromeos && use_cras) {
222 defines += [ "USE_CRAS" ]
223 }
224
[email protected]dffd8a912014-06-30 23:24:31225 if (!is_ios) {
scottmga266f952014-12-03 20:47:10226 sources +=
227 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59228 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10229 ".",
230 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59231 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10232 ".",
233 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18234 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
235 ".",
236 "//chrome")
237 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
238 ".",
239 "//chrome")
sclittlea133de02015-11-10 23:54:21240 sources += rebase_path(gypi_values.chrome_browser_data_usage_sources,
241 ".",
242 "//chrome")
benwellsedf5e082015-04-23 02:45:14243 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
244 ".",
245 "//chrome")
scottmga266f952014-12-03 20:47:10246 sources +=
247 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
248 sources +=
249 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
250 sources +=
251 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
252 sources +=
253 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
254 sources +=
255 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59256 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10257 ".",
258 "//chrome")
mlamouri4e372022015-03-29 14:51:06259 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
260 ".",
261 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59262 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10263 ".",
264 "//chrome")
265 sources +=
266 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59267 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10268 ".",
269 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59270 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10271 ".",
272 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59273 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10274 ".",
275 "//chrome")
276 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18277 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
278 sources +=
scottmga266f952014-12-03 20:47:10279 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
280 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18281 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
282 sources +=
scottmga266f952014-12-03 20:47:10283 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
sievers2f1e8112015-12-04 18:43:56284 if (android_java_ui) {
285 sources +=
286 rebase_path(gypi_values.chrome_browser_sync_android_java_ui_sources,
287 ".",
288 "//chrome")
289 sources +=
290 rebase_path(gypi_values.chrome_browser_ssl_android_java_ui_sources,
291 ".",
292 "//chrome")
293 sources += rebase_path(
294 gypi_values.chrome_browser_history_android_java_ui_sources,
295 ".",
296 "//chrome")
297 sources += rebase_path(
298 gypi_values.chrome_browser_permissions_android_java_ui_sources,
299 ".",
300 "//chrome")
301 sources += rebase_path(
302 gypi_values.chrome_browser_search_engines_android_java_ui_sources,
303 ".",
304 "//chrome")
305 if (enable_supervised_users) {
306 sources += rebase_path(
307 gypi_values.chrome_browser_supervised_user_android_java_ui_sources,
308 ".",
309 "//chrome")
310 }
311 }
scottmga266f952014-12-03 20:47:10312
[email protected]dffd8a912014-06-30 23:24:31313 deps += [
lizeb60cd6e82016-08-23 12:04:26314 ":resource_prefetch_predictor_proto",
[email protected]dffd8a912014-06-30 23:24:31315 "//cc",
brettwca934582015-02-24 21:50:27316 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30317 "//chrome/browser/devtools",
sdefresnea213ceb2015-10-05 09:23:39318 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
brettwca934582015-02-24 21:50:27319 "//chrome/browser/resources:component_extension_resources",
tfarina04d426612015-08-18 16:42:33320 "//chrome/common/net",
brettwe26e6d02015-12-29 06:51:47321 "//chrome/installer/util:with_no_strings",
jitendra.ks4f2e9112015-08-14 11:40:26322 "//components/about_handler",
oshimaf65398422014-11-18 23:30:42323 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37324 "//components/autofill/content/browser",
ioanapb9419262016-07-20 08:24:47325 "//components/browsing_data/content",
326 "//components/browsing_data/core",
donndbda9b6f432015-12-10 20:39:05327 "//components/contextual_search:browser",
jeremyim364ac1182015-03-03 18:49:43328 "//components/data_reduction_proxy/content/browser",
amohammadkhan092adb22015-09-11 21:08:49329 "//components/data_use_measurement/content",
dgozmanec2b982a2015-04-28 10:36:39330 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46331 "//components/devtools_http_handler",
brettw15764b12015-11-30 22:11:05332 "//components/dom_distiller/content/browser",
tfarina041134472015-09-02 15:29:38333 "//components/error_page/common",
sdefresne001b10de2015-03-20 18:41:46334 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04335 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34336 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30337 "//components/navigation_interception",
drogerc690e8802015-09-21 14:29:16338 "//components/net_log",
tfarina041134472015-09-02 15:29:38339 "//components/network_hints/common",
[email protected]55699f392014-08-20 22:16:30340 "//components/password_manager/content/browser",
vabr5410d0b2015-08-07 11:02:04341 "//components/password_manager/sync/browser",
ryansturm9d5928c2016-07-28 23:53:50342 "//components/previews",
droger78da6542015-11-02 11:25:59343 "//components/profile_metrics",
abhishek.a2171c612852015-08-31 10:48:19344 "//components/proxy_config",
droger2a6ab542015-10-09 16:10:28345 "//components/resources",
vakh9d5888022015-10-29 21:04:07346 "//components/safe_browsing_db",
bauerbf0e64aa2015-06-25 15:54:07347 "//components/safe_json",
brettwa22cb3b2015-04-30 20:23:12348 "//components/sessions",
abhishek.a212849cee2015-10-20 11:27:29349 "//components/ssl_config",
[email protected]abd4b682014-07-16 20:26:30350 "//components/storage_monitor",
engedy9ae04242016-06-08 13:31:18351 "//components/subresource_filter/content/browser",
sdefresne875d0782015-09-16 12:01:28352 "//components/syncable_prefs",
[email protected]b9f4c682014-07-10 22:00:37353 "//components/translate/content/browser",
sdefresne44eb1f22015-08-06 08:51:55354 "//components/upload_list",
[email protected]fca567b2014-07-02 17:37:34355 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31356 "//components/visitedlink/browser",
357 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18358 "//components/web_cache/browser",
[email protected]a9ca8d52014-08-22 10:21:08359 "//content/app/resources",
reillygcf1af632015-11-18 16:42:58360 "//device/core",
reillyg64c8f4f2016-02-10 23:29:20361 "//device/usb/mojo",
362 "//device/usb/public/interfaces",
[email protected]55699f392014-08-20 22:16:30363 "//media",
yhiranobbea6272015-09-17 07:09:03364 "//media/midi",
cjhopman09981a92014-10-27 17:11:18365 "//mojo/common",
rockotc637caf9b2016-02-10 09:57:08366 "//mojo/edk/system",
rockot85dce0862015-11-13 01:33:59367 "//mojo/public/cpp/bindings",
368 "//mojo/public/js",
Brett Wilson83fd4242014-09-02 19:45:33369 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31370 "//net:net_with_v8",
benf709a3092016-04-12 22:38:22371 "//services/shell/public/cpp",
pilgrim4af8c212014-09-05 17:30:15372 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24373 "//storage/common",
erga3c614c92015-04-03 17:47:51374 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46375 "//third_party/WebKit/public:resources",
pmonette502a83e2016-01-08 00:21:16376 "//third_party/kasko",
[email protected]dffd8a912014-06-30 23:24:31377 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34378 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31379 "//third_party/libyuv",
[email protected]dffd8a912014-06-30 23:24:31380 "//third_party/re2",
381 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33382 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12383 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31384 "//ui/gl",
brettwca934582015-02-24 21:50:27385 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31386 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12387 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34388 "//v8",
[email protected]dffd8a912014-06-30 23:24:31389 ]
paulmeyer27b328b2015-06-17 21:26:12390
391 if (toolkit_views) {
392 deps += [ "//ui/views" ]
393 }
[email protected]dffd8a912014-06-30 23:24:31394 } else { # iOS
scottmga266f952014-12-03 20:47:10395 sources +=
396 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
397 sources +=
398 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
399 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31400 libs += [
401 "CoreTelephony.framework",
402 "CoreText.framework",
403 "MobileCoreServices.framework",
404 "QuartzCore.framework",
405 ]
scottmga266f952014-12-03 20:47:10406 ldflags += [
407 "-weak_framework",
408 "CoreImage",
409 ]
[email protected]dffd8a912014-06-30 23:24:31410 }
411
412 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10413 sources +=
414 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31415 }
mmenkede134672015-08-18 01:33:39416 if (!is_win && !is_mac && !is_ios) {
417 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ]
418 }
dgozmane5a3e252016-03-22 21:45:08419 if (!is_android && !is_ios && !is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31420 sources += [
421 "net/disk_cache_dir_policy_handler.cc",
422 "net/disk_cache_dir_policy_handler.h",
423 ]
424 }
[email protected]dffd8a912014-06-30 23:24:31425 if (is_mac) {
scottmga266f952014-12-03 20:47:10426 sources +=
427 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31428 deps += [
brettw5ff98192015-10-22 06:36:15429 "//chrome/app_shim",
430 "//chrome/browser/apps/app_shim",
[email protected]dffd8a912014-06-30 23:24:31431 ]
432 }
[email protected]dffd8a912014-06-30 23:24:31433 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46434 public_deps += [ "//chrome/browser/extensions" ]
brettw98a87012016-07-26 22:15:45435 allow_circular_includes_from += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52436 deps += [
[email protected]cc5b3be2014-08-15 23:24:52437 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30438 "//chrome/common/extensions/api",
439 "//chrome/common/extensions/api:api_registration",
rdevlin.cronin5c6849832016-07-25 18:04:45440 "//chrome/common/extensions/api:extensions_features",
brettw08fe0e952016-08-26 21:53:39441 "//components/drive",
msarda4c408ff2015-04-22 14:27:56442 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44443 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50444 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06445 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52446 ]
[email protected]dffd8a912014-06-30 23:24:31447 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10448 ".",
449 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31450 }
451 if (enable_background) {
452 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10453 ".",
454 "//chrome")
jamesr29ea2d122014-10-23 10:30:27455 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31456 sources -= [ "background/background_mode_manager_aura.cc" ]
457 }
458 }
459 if (enable_task_manager) {
460 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10461 ".",
462 "//chrome")
nya268de1c72015-12-16 05:07:40463 if (is_chromeos) {
464 sources +=
465 rebase_path(gypi_values.chrome_browser_task_manager_chromeos_sources,
466 ".",
467 "//chrome")
468 }
[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")
timvolodine0eec9ec2016-08-17 16:18:48474 deps += [
475 "//components/spellcheck/browser",
476 "//components/spellcheck/common:common",
477 ]
timvolodine677f3012016-07-25 14:00:59478
dylanking34c72442015-07-23 23:19:58479 if (!is_android) {
480 deps += [ "//third_party/hunspell" ]
481 }
[email protected]dffd8a912014-06-30 23:24:31482 }
483 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10484 sources +=
485 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
brettwf4b4a4282015-12-16 00:41:13486 deps += [ "//components/nacl/browser" ]
[email protected]dffd8a912014-06-30 23:24:31487 }
apavlove749bca2014-09-30 11:07:41488
[email protected]dffd8a912014-06-30 23:24:31489 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10490 sources +=
491 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31492 deps += [
James Robinson2ed4d692014-09-17 05:20:58493 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31494 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14495 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31496 ]
497 }
498 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10499 sources +=
stuartmorgan1b3df822014-12-08 14:36:11500 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10501 ".",
502 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31503 deps += [
[email protected]fca567b2014-07-02 17:37:34504 "//chrome/browser/safe_browsing:chunk_proto",
jialiuleed304432015-11-09 20:17:03505 "//chrome/common/safe_browsing:proto",
vakh27f7e222016-02-02 23:45:34506 "//components/safe_browsing_db:metadata_proto",
[email protected]dffd8a912014-06-30 23:24:31507 ]
508 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10509 sources +=
stuartmorgan1b3df822014-12-08 14:36:11510 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10511 ".",
512 "//chrome")
grtc1d1b752015-09-05 13:26:41513 if (is_win) {
514 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto" ]
515 }
nparker00a64f12015-10-16 17:34:30516 } else if (safe_browsing_mode == 2) {
517 sources +=
518 rebase_path(gypi_values.chrome_browser_safe_browsing_mobile_sources,
519 ".",
520 "//chrome")
vakh27f7e222016-02-02 23:45:34521 deps += [ "//components/safe_browsing_db:safe_browsing_db_mobile" ]
[email protected]dffd8a912014-06-30 23:24:31522 }
523 }
524
amistryf269d3b2015-06-09 19:18:39525 if (enable_hotwording) {
526 defines += [ "ENABLE_HOTWORDING" ]
527 }
528
[email protected]dffd8a912014-06-30 23:24:31529 if (is_linux) {
mostynbea514682015-08-18 22:08:56530 deps += [ "//device/media_transfer_protocol" ]
[email protected]dffd8a912014-06-30 23:24:31531 }
mostynbea514682015-08-18 22:08:56532
533 if (use_udev) {
534 deps += [ "//device/udev_linux" ]
535 }
536
[email protected]dffd8a912014-06-30 23:24:31537 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47538 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31539 }
540
541 if (is_chromeos) {
542 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10543 ".",
544 "//chrome")
545 deps += [ "//chrome/browser/chromeos" ]
dgozmane5a3e252016-03-22 21:45:08546 } else { # Non-ChromeOS.
547 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
548 ".",
549 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31550 }
551
mukai8c99b882014-10-15 03:07:59552 if (is_chromeos || is_ios) {
553 sources -= [
blundell296904a2015-10-13 12:30:48554 "signin/chrome_signin_status_metrics_provider_delegate.cc",
555 "signin/chrome_signin_status_metrics_provider_delegate.h",
mukai8c99b882014-10-15 03:07:59556 ]
557 }
558
sque82e4d1552016-02-26 22:47:19559 if (is_chromeos) {
560 sources += [
squeefd3f472016-06-08 20:04:53561 "metrics/leak_detector/leak_detector_controller.cc",
562 "metrics/leak_detector/leak_detector_controller.h",
sque0e57a1e2016-07-21 21:53:09563 "metrics/leak_detector/leak_detector_remote_controller.cc",
564 "metrics/leak_detector/leak_detector_remote_controller.h",
sque82e4d1552016-02-26 22:47:19565 ]
sque0e57a1e2016-07-21 21:53:09566 public_deps += [
567 "//components/metrics/leak_detector:interfaces",
568 "//components/metrics/leak_detector:leak_detector",
569 ]
sque82e4d1552016-02-26 22:47:19570 }
571
[email protected]dffd8a912014-06-30 23:24:31572 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12573 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31574 }
raphael.kubo.da.costac4e3e52dff2016-08-16 15:26:48575 if (use_gnome_keyring) {
[email protected]dffd8a912014-06-30 23:24:31576 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10577 ".",
578 "//chrome")
cfroussios0bf3d10c2016-08-05 17:15:54579 configs += [ "//components/os_crypt:gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31580 }
dvadym34532022015-01-22 15:42:51581 if (is_desktop_linux) {
582 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
583 ".",
584 "//chrome")
585 defines += [ "USE_LIBSECRET" ]
cfroussios7267be82016-04-27 13:58:52586 deps += [ "//third_party/libsecret" ]
dvadym34532022015-01-22 15:42:51587 }
[email protected]dffd8a912014-06-30 23:24:31588 if (use_aura) {
scottmga266f952014-12-03 20:47:10589 sources +=
590 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
ben0cc0be92015-11-09 21:49:06591
592 # These files are only built in a GN build because they bring in
593 # dependencies that don't build with GYP.
594 sources += [
bencccedf12015-11-10 07:56:16595 "ui/views/frame/browser_frame_mus.cc",
596 "ui/views/frame/browser_frame_mus.h",
skyab2410c52015-12-03 03:40:56597 "ui/views/frame/browser_non_client_frame_view_mus.cc",
598 "ui/views/frame/browser_non_client_frame_view_mus.h",
ben0cc0be92015-11-09 21:49:06599 ]
[email protected]dffd8a912014-06-30 23:24:31600 deps += [
ben03b7b9d2015-11-15 12:13:09601 "//content/public/common",
ben6b0453d12016-07-02 04:27:19602 "//services/ui/public/cpp",
603 "//services/ui/public/cpp/input_devices",
[email protected]fca567b2014-07-02 17:37:34604 "//ui/aura",
605 "//ui/compositor",
rockotb9e3b772016-06-10 21:34:16606 "//ui/views/mus",
[email protected]dffd8a912014-06-30 23:24:31607 ]
608 }
609 if (ui_compositor_image_transport) {
610 deps += [ "//ui/gl" ]
611 }
612
[email protected]855b7de2014-07-08 21:02:45613 if (use_ash) {
scottmga266f952014-12-03 20:47:10614 sources +=
615 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
brettw98a87012016-07-26 22:15:45616 deps += [ "//ash" ]
[email protected]855b7de2014-07-08 21:02:45617 }
618
[email protected]dffd8a912014-06-30 23:24:31619 if (use_x11) {
scottmga266f952014-12-03 20:47:10620 sources +=
621 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23622 } else {
623 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31624 }
brettw08fe0e952016-08-26 21:53:39625 if (use_aura && !use_ozone && is_desktop_linux) {
626 deps += [ "//chrome/browser/ui/libgtk2ui" ]
627 allow_circular_includes_from += [ "//chrome/browser/ui/libgtk2ui" ]
628 }
Scott Grahamcae6b0e2015-12-04 03:23:29629 if (is_posix && !is_mac && !is_ios) {
[email protected]dffd8a912014-06-30 23:24:31630 sources += [
rseseka0a7a042014-09-18 23:59:20631 "//chrome/app/chrome_crash_reporter_client.cc",
632 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31633 ]
634 deps += [
sdefresne8ba0b88c2015-09-18 10:33:13635 "//components/crash/content/app",
636 "//components/crash/content/browser",
blundellf1cfb032015-11-16 18:22:30637 "//components/version_info:generate_version_info",
[email protected]dffd8a912014-06-30 23:24:31638 ]
639 }
640 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10641 sources +=
642 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59643 if (is_chromeos) {
644 sources -= [ "net/nss_context_linux.cc" ]
645 }
[email protected]dffd8a912014-06-30 23:24:31646 }
647 if (enable_notifications) {
648 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10649 ".",
650 "//chrome")
sievers2f1e8112015-12-04 18:43:56651 if (android_java_ui) {
652 sources += rebase_path(
653 gypi_values.chrome_browser_notifications_android_java_ui_sources,
654 ".",
655 "//chrome")
estade6d95d1d2015-10-02 18:55:23656 } else {
[email protected]dffd8a912014-06-30 23:24:31657 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11658 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10659 ".",
660 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31661 }
miguelg38ca936a2016-06-21 12:26:57662 if (is_mac) {
663 deps += [ "//chrome/browser/ui/cocoa/notifications:common" ]
664 }
[email protected]dffd8a912014-06-30 23:24:31665 }
666 if (enable_themes) {
scottmga266f952014-12-03 20:47:10667 sources +=
668 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31669 }
670
vitalybuka93eea402014-11-05 23:47:15671 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31672 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11673 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10674 ".",
675 "//chrome")
spang5cc72542015-08-04 19:47:11676 deps += [
brettwd649f6b2015-08-18 20:58:51677 "//components/printing/browser",
agrieved7a71c882015-11-20 19:53:28678 "//printing",
spang5cc72542015-08-04 19:47:11679 ]
680
vitalybuka36259ca2014-08-28 23:42:24681 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31682 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10683 ".",
684 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31685 }
vitalybuka93eea402014-11-05 23:47:15686 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31687 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11688 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10689 ".",
690 "//chrome")
vitalybuka93eea402014-11-05 23:47:15691 } else {
[email protected]dffd8a912014-06-30 23:24:31692 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10693 sources +=
stuartmorgan1b3df822014-12-08 14:36:11694 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10695 ".",
696 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31697 }
698 }
699 if (enable_captive_portal_detection) {
700 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10701 ".",
702 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31703 }
704 if (enable_session_service) {
705 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10706 ".",
707 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31708 }
709
thestigdc377202014-10-28 22:06:02710 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10711 sources +=
712 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02713 }
714
[email protected]dffd8a912014-06-30 23:24:31715 if (is_android || is_ios) {
716 # Mobile.
scottmga266f952014-12-03 20:47:10717 sources +=
718 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31719 } else {
720 # Non-mobile.
thestigf2cc0832016-04-12 19:30:27721 deps += [
722 "//apps",
723 "//chrome/browser/policy:path_parser",
724 "//chrome/browser/profile_resetter:profile_reset_report_proto",
725 "//components/feedback",
726 "//components/web_modal",
727 "//net:net_browser_services",
728 ]
[email protected]dffd8a912014-06-30 23:24:31729 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10730 ".",
731 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31732 }
733
mathp17e1eba2015-10-06 21:50:59734 if (!is_chrome_branded) {
fserb1c2db4c2015-07-16 17:14:49735 sources += [
736 "search/local_files_ntp_source.cc",
737 "search/local_files_ntp_source.h",
738 ]
739 }
740
[email protected]dffd8a912014-06-30 23:24:31741 if (is_android) {
scottmga266f952014-12-03 20:47:10742 sources +=
743 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
sievers2f1e8112015-12-04 18:43:56744 }
745
746 if (android_java_ui) {
747 sources += rebase_path(gypi_values.chrome_browser_android_java_ui_sources,
748 ".",
749 "//chrome")
fgorski1d4c9c92015-12-17 20:39:32750 sources += rebase_path(gypi_values.chrome_browser_offline_pages_sources,
twellingtoncaf0eb752015-06-01 16:19:50751 ".",
752 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31753 deps += [
pkotwicz127726f2015-05-29 15:20:12754 ":client_discourse_context_proto",
755 ":delta_file_proto",
James Robinson2ed4d692014-09-17 05:20:58756 ":jni_headers",
nyquist9aa0cde2016-07-15 21:20:20757 "//blimp/client/public",
pkotwicz879b1ed2016-08-06 00:48:22758 "//chrome/browser/android/webapk:proto",
sclittlec441f782015-11-12 01:12:09759 "//components/data_usage/android",
twifkak8c9f7502015-06-25 02:12:57760 "//components/precache/content",
761 "//components/precache/core",
estadee37f8222014-11-07 21:35:22762 "//components/resources:components_resources",
blundell11d93bc2015-07-31 12:33:12763 "//components/toolbar",
cjhopman09981a92014-10-27 17:11:18764 "//components/web_contents_delegate_android",
pkotwicz879b1ed2016-08-06 00:48:22765 "//third_party/smhasher:murmurhash2",
sievers2f1e8112015-12-04 18:43:56766 ]
sievers2f1e8112015-12-04 18:43:56767 }
768
769 if (is_android) {
770 deps += [
771 "//components/cdm/browser",
772 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18773 "//third_party/android_opengl/etc1",
fdegans34f31e272015-05-22 16:59:03774 "//third_party/android_tools:cpu_features",
twellington0bc61492015-01-30 20:14:13775 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31776 ]
sievers2f1e8112015-12-04 18:43:56777
[email protected]dffd8a912014-06-30 23:24:31778 deps -= [
[email protected]abd4b682014-07-16 20:26:30779 "//components/storage_monitor",
agrieved7a71c882015-11-20 19:53:28780 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31781 ]
rseseke59ea892015-03-19 22:27:44782
783 if (use_seccomp_bpf) {
784 defines += [ "USE_SECCOMP_BPF" ]
rsesek65d31352015-06-08 22:53:44785 deps += [ "//sandbox/linux:seccomp_bpf" ]
rseseke59ea892015-03-19 22:27:44786 }
[email protected]dffd8a912014-06-30 23:24:31787 }
788
789 if (is_mac) {
790 deps += [
[email protected]6b5d2f92014-07-30 00:40:03791 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03792 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31793 ]
794 libs += [
795 "Accelerate.framework",
796 "AddressBook.framework",
797 "AudioUnit.framework",
798 "DiskArbitration.framework",
799 "IOKit.framework",
800 "ImageCaptureCore.framework",
801 "OpenGL.framework",
802 "QuartzCore.framework",
803 "SecurityInterface.framework",
804 ]
805 }
806
807 if (enable_rlz) {
sdefresned967d552015-07-16 08:34:35808 deps += [ ":rlz" ]
[email protected]dffd8a912014-06-30 23:24:31809 }
810
[email protected]dffd8a912014-06-30 23:24:31811 if (is_win) {
scottmga266f952014-12-03 20:47:10812 sources +=
813 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
Brett Wilsone53895272014-09-23 23:41:46814 public_deps += [
815 "//ui/views",
816 "//ui/views/controls/webview",
817 ]
[email protected]dffd8a912014-06-30 23:24:31818 deps += [
vchigrin9593e7a2015-01-27 10:08:19819 ":chrome_process_finder",
gab7c45cfd2016-04-15 19:17:07820 "//chrome:file_pre_reader",
pmonette502a83e2016-01-08 00:21:16821 "//chrome/chrome_watcher:client",
gab7c45cfd2016-04-15 19:17:07822 "//chrome/common:metrics_constants_util_win",
mdempsky15a48be2015-10-21 23:37:53823 "//chrome/common:version_header",
ananta52c55bd2016-07-19 22:40:53824 "//chrome_elf:blacklist",
vchigrinf2b90aa2015-01-23 11:12:19825 "//chrome_elf:constants",
826 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32827 "//components/browser_watcher",
828 "//components/browser_watcher:browser_watcher_client",
fdorayc295b762016-01-19 18:49:23829 "//components/startup_metric_utils/common",
vchigrinbbc23e72015-01-21 22:49:23830 "//google_update",
[email protected]55699f392014-08-20 22:16:30831 "//third_party/iaccessible2",
832 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31833 "//third_party/wtl",
[email protected]dffd8a912014-06-30 23:24:31834 ]
mmenkede134672015-08-18 01:33:39835
836 all_dependent_configs = [ ":browser_win_linker_flags" ]
837
grt235b3f092015-05-27 21:42:48838 if (!is_chrome_branded) {
839 deps -= [ "//google_update" ]
840 sources -= [
841 "google/did_run_updater_win.cc",
842 "google/did_run_updater_win.h",
843 "google/google_update_win.cc",
844 "google/google_update_win.h",
845 ]
846 }
[email protected]dffd8a912014-06-30 23:24:31847 } else {
848 # Non-Windows.
scottmga266f952014-12-03 20:47:10849 sources +=
850 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37851 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31852 deps += [
scottmga266f952014-12-03 20:47:10853 "//ui/views",
854 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31855 ]
[email protected]dffd8a912014-06-30 23:24:31856 }
857 }
858
859 if (is_linux) {
[email protected]dffd8a912014-06-30 23:24:31860 if (use_aura) {
mbjorgea12e5a52016-05-31 22:15:17861 deps += [ "//build/linux:fontconfig" ]
862 if (use_dbus) {
863 deps += [ "//dbus" ]
864 }
[email protected]dffd8a912014-06-30 23:24:31865 }
866 if (use_x11) {
867 configs += [ "//build/config/linux:x11" ]
868 deps += [ "//ui/gfx/x" ]
869 }
870 }
871
rouslane59900a2016-02-17 19:45:43872 if (is_linux || is_win) {
873 sources += rebase_path(gypi_values.chrome_browser_non_mac_desktop_sources,
874 ".",
875 "//chrome")
876 }
877
[email protected]dffd8a912014-06-30 23:24:31878 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54879 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10880 ".",
881 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31882 }
883 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10884 sources +=
885 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
886 ".",
887 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31888 }
889 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10890 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31891 }
treib87bb89cbb2014-12-01 16:01:47892 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10893 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
894 ".",
895 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31896 }
bauerb7f3b8542015-06-29 19:56:19897 if (enable_supervised_users && !is_android && !is_ios) {
898 sources +=
899 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
900 ".",
901 "//chrome")
902 }
treib87bb89cbb2014-12-01 16:01:47903 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59904 sources += rebase_path(
scottmga266f952014-12-03 20:47:10905 gypi_values.chrome_browser_supervised_user_and_themes_sources,
906 ".",
907 "//chrome")
thestig169a6362014-11-13 20:47:59908 }
[email protected]dffd8a912014-06-30 23:24:31909 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10910 sources +=
911 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31912 }
913 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10914 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
915 ".",
916 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31917 }
918 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10919 sources +=
920 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31921 }
estadee62c2a42016-05-05 16:27:29922 if (is_android || is_ios) {
[email protected]dffd8a912014-06-30 23:24:31923 sources -= [
924 "autofill/validation_rules_storage_factory.cc",
925 "autofill/validation_rules_storage_factory.h",
926 ]
927 }
mfoltz150bb8b2015-04-09 22:30:05928 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55929 deps += [ "//chrome/browser/media/router" ]
mfoltz150bb8b2015-04-09 22:30:05930 }
xhwang5e630462015-10-30 03:18:48931
xhwangc86d76e42016-03-14 23:38:49932 if (enable_mojo_media) {
xhwangbe720032016-02-19 18:45:31933 configs += [ "//media/mojo/services:mojo_media_config" ]
xhwangc86d76e42016-03-14 23:38:49934 sources += [
935 "media/output_protection_impl.cc",
936 "media/output_protection_impl.h",
937 ]
938 deps += [ "//media/mojo/interfaces" ]
939 if (mojo_media_host == "browser") {
xhwangd3b5d3f2016-05-18 03:37:59940 deps += [ "//media/mojo/services" ]
xhwangc86d76e42016-03-14 23:38:49941 }
xhwang5e630462015-10-30 03:18:48942 }
revemanb195f41d2015-11-19 22:16:48943
944 if (enable_wayland_server) {
945 deps += [
946 "//components/exo",
947 "//components/exo/wayland",
948 ]
949 sources += [
950 "chrome_browser_main_extra_parts_exo.cc",
951 "chrome_browser_main_extra_parts_exo.h",
952 ]
953 }
[email protected]dffd8a912014-06-30 23:24:31954}
955
sievers2f1e8112015-12-04 18:43:56956if (android_java_ui) {
James Robinson2ed4d692014-09-17 05:20:58957 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
958 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10959 sources =
960 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58961 jni_package = "chrome"
962 }
pkotwicz127726f2015-05-29 15:20:12963
964 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
965 proto_library("client_discourse_context_proto") {
966 sources = [
967 "android/proto/client_discourse_context.proto",
968 ]
969 }
970
971 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
972 proto_library("delta_file_proto") {
973 sources = [
974 "android/proto/delta_file.proto",
975 ]
976 }
James Robinson2ed4d692014-09-17 05:20:58977}
978
vchigrin9593e7a2015-01-27 10:08:19979if (is_win) {
brettw77617612016-07-13 22:40:06980 static_library("chrome_process_finder") {
vchigrin9593e7a2015-01-27 10:08:19981 sources = [
pmonette23c8fb7e2016-06-27 20:45:11982 "win/chrome_process_finder.cc",
983 "win/chrome_process_finder.h",
vchigrin9593e7a2015-01-27 10:08:19984 ]
985 deps = [
986 "//base",
vchigrin9593e7a2015-01-27 10:08:19987 "//chrome/common:constants",
988 ]
989 if (enable_configuration_policy) {
990 deps += [ "//chrome/browser/policy:path_parser" ]
991 }
992 }
993}
994
lizeb60cd6e82016-08-23 12:04:26995if (!is_ios) {
996 proto_library("resource_prefetch_predictor_proto") {
997 sources = [
998 "predictors/resource_prefetch_predictor.proto",
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",
nparker38c5a5c2016-04-25 23:34:241024 "//chrome/browser/resources/safe_browsing:make_file_types_protobuf",
brettwde262b02015-05-27 19:41:421025
1026 # Depend only on the generated mojo bindings since we read the .mojom.js
1027 # file, rather than the whole mojo target which will link the C++ bindings.
calamityd59c1032015-09-22 06:35:531028 "//chrome/browser/ui/webui/engagement:mojo_bindings__generator",
brettwde262b02015-05-27 19:41:421029 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
dpapad59e3ad42016-02-02 21:58:061030 "//chrome/browser/ui/webui/plugins:mojo_bindings__generator",
reillyg3903a692016-08-10 18:34:161031 "//chrome/browser/ui/webui/usb_internals:mojo_bindings__generator",
sammcf6f4fcf2016-06-21 05:39:391032 "//url/mojo:url_mojom_gurl__generator",
reillyg3903a692016-08-10 18:34:161033 "//url/mojo:url_mojom_origin__generator",
vchigrin8eede942015-01-29 09:28:151034 ]
[email protected]77ce8022014-06-16 19:29:561035}
1036
[email protected]77ce8022014-06-16 19:29:561037# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:411038if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:561039 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:411040 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:101041 sources = [
1042 "internal/resources/additional_modules_list.input",
1043 ]
1044 outputs = [
1045 additional_modules_list_file,
1046 ]
engedy99d0e11b2014-09-30 13:32:411047 args = rebase_path(sources, root_build_dir) +
1048 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:561049 }
1050} else {
1051 group("chrome_internal_resources_gen") {
1052 # Empty placeholder.
1053 }
1054}
Brett Wilson052ce132014-09-12 19:46:291055
1056# In GYP this is part of test_support_common.
brettw022f8f32016-06-14 01:22:391057#
1058# Use a static library here because many test binaries depend on this but don't
1059# require many files from it. This makes linking more efficient.
1060static_library("test_support") {
Brett Wilson052ce132014-09-12 19:46:291061 testonly = true
1062
1063 # Always include this via the main test support target.
1064 visibility = [ "//chrome/test:test_support" ]
1065
1066 sources = [
1067 "browsing_data/mock_browsing_data_appcache_helper.cc",
1068 "browsing_data/mock_browsing_data_appcache_helper.h",
jsbelle1fe9692015-08-22 01:02:421069 "browsing_data/mock_browsing_data_cache_storage_helper.cc",
1070 "browsing_data/mock_browsing_data_cache_storage_helper.h",
Brett Wilson052ce132014-09-12 19:46:291071 "browsing_data/mock_browsing_data_channel_id_helper.cc",
1072 "browsing_data/mock_browsing_data_channel_id_helper.h",
1073 "browsing_data/mock_browsing_data_cookie_helper.cc",
1074 "browsing_data/mock_browsing_data_cookie_helper.h",
1075 "browsing_data/mock_browsing_data_database_helper.cc",
1076 "browsing_data/mock_browsing_data_database_helper.h",
1077 "browsing_data/mock_browsing_data_file_system_helper.cc",
1078 "browsing_data/mock_browsing_data_file_system_helper.h",
1079 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
1080 "browsing_data/mock_browsing_data_flash_lso_helper.h",
1081 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
1082 "browsing_data/mock_browsing_data_indexed_db_helper.h",
1083 "browsing_data/mock_browsing_data_local_storage_helper.cc",
1084 "browsing_data/mock_browsing_data_local_storage_helper.h",
1085 "browsing_data/mock_browsing_data_quota_helper.cc",
1086 "browsing_data/mock_browsing_data_quota_helper.h",
1087 "browsing_data/mock_browsing_data_service_worker_helper.cc",
1088 "browsing_data/mock_browsing_data_service_worker_helper.h",
juncaibadc1daa2016-07-11 20:36:541089 "chooser_controller/mock_chooser_controller.cc",
1090 "chooser_controller/mock_chooser_controller.h",
Brett Wilson052ce132014-09-12 19:46:291091 "download/download_test_file_activity_observer.cc",
1092 "download/download_test_file_activity_observer.h",
1093 "download/test_download_shelf.cc",
1094 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:291095 "media/fake_desktop_media_list.cc",
1096 "media/fake_desktop_media_list.h",
1097 "net/dns_probe_test_util.cc",
1098 "net/dns_probe_test_util.h",
1099 "net/url_request_mock_util.cc",
1100 "net/url_request_mock_util.h",
1101 "notifications/notification_test_util.cc",
1102 "notifications/notification_test_util.h",
miguelg884b3ec2016-04-26 09:51:521103 "notifications/stub_notification_platform_bridge.cc",
1104 "notifications/stub_notification_platform_bridge.h",
tsergeant58defcfb2016-07-19 23:47:281105 "permissions/mock_permission_request.cc",
1106 "permissions/mock_permission_request.h",
Brett Wilson052ce132014-09-12 19:46:291107 "profile_resetter/profile_resetter_test_base.cc",
1108 "profile_resetter/profile_resetter_test_base.h",
1109 "search_engines/template_url_service_factory_test_util.cc",
1110 "search_engines/template_url_service_factory_test_util.h",
1111 "search_engines/template_url_service_test_util.cc",
1112 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:451113 "sessions/session_restore_test_helper.cc",
1114 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291115 "sessions/session_service_test_helper.cc",
1116 "sessions/session_service_test_helper.h",
knn523bd722015-07-30 16:27:091117 "signin/fake_account_fetcher_service_builder.cc",
1118 "signin/fake_account_fetcher_service_builder.h",
zeafe5f0ffb2016-06-16 22:04:061119 "signin/fake_gaia_cookie_manager_service_builder.cc",
1120 "signin/fake_gaia_cookie_manager_service_builder.h",
Brett Wilson052ce132014-09-12 19:46:291121 "signin/fake_profile_oauth2_token_service_builder.cc",
1122 "signin/fake_profile_oauth2_token_service_builder.h",
droger4f489e62015-07-24 19:27:591123 "signin/fake_signin_manager_builder.cc",
1124 "signin/fake_signin_manager_builder.h",
Brett Wilson052ce132014-09-12 19:46:291125 "ssl/ssl_client_auth_requestor_mock.cc",
1126 "ssl/ssl_client_auth_requestor_mock.h",
maxbogued2ea9242015-10-29 01:24:521127 "sync/profile_sync_test_util.cc",
1128 "sync/profile_sync_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291129 ]
1130
brettwbc8b2a22015-07-28 18:24:421131 configs += [ "//build/config:precompiled_headers" ]
1132
Brett Wilsone53895272014-09-23 23:41:461133 public_deps = [
Brett Wilson052ce132014-09-12 19:46:291134 ":browser",
Brett Wilsone53895272014-09-23 23:41:461135 "//chrome/browser/ui:test_support",
1136 ]
1137 deps = [
agrieved7a71c882015-11-20 19:53:281138 "//chrome/app/theme:theme_resources",
Brett Wilson052ce132014-09-12 19:46:291139 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:291140 "//chrome/common",
1141 "//chrome/common/safe_browsing:proto",
vabra6fded22015-12-10 09:06:551142 "//components/browser_sync/browser:test_support",
knn062cdbb2015-06-26 18:18:421143 "//components/invalidation/impl",
1144 "//components/invalidation/impl:test_support",
Brett Wilson052ce132014-09-12 19:46:291145 "//components/password_manager/core/browser:test_support",
brettw9f7802a22016-01-30 06:40:171146 "//components/prefs:test_support",
Brett Wilson052ce132014-09-12 19:46:291147 "//components/search_engines:test_support",
engedy9ae04242016-06-08 13:31:181148 "//components/subresource_filter/core/browser:test_support",
pkalinnikovf7d7ff472016-07-27 11:53:591149 "//components/subresource_filter/core/common:test_support",
sdefresne875d0782015-09-16 12:01:281150 "//components/syncable_prefs:test_support",
jitendra.ks94c0b962015-08-10 08:24:091151 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
Brett Wilson052ce132014-09-12 19:46:291152 "//content/test:test_support",
Brett Wilson052ce132014-09-12 19:46:291153 "//net:test_support",
1154 "//skia",
1155 "//testing/gmock",
1156 "//testing/gtest",
1157 "//ui/gfx",
1158 ]
1159
Brett Wilson052ce132014-09-12 19:46:291160 if (!is_ios) {
1161 deps += [
1162 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:291163 "//google_apis:test_support",
1164 ]
1165 }
1166
thestig354985d2015-09-28 20:55:001167 if (is_android) {
1168 sources -= [
thestig259da0b2015-10-07 18:09:081169 "download/test_download_shelf.cc",
1170 "download/test_download_shelf.h",
1171 "profile_resetter/profile_resetter_test_base.cc",
1172 "profile_resetter/profile_resetter_test_base.h",
1173 "sessions/session_restore_test_helper.cc",
1174 "sessions/session_restore_test_helper.h",
thestig354985d2015-09-28 20:55:001175 "sessions/session_service_test_helper.cc",
1176 "sessions/session_service_test_helper.h",
thestig354985d2015-09-28 20:55:001177 ]
1178 }
1179
juncaibadc1daa2016-07-11 20:36:541180 if (is_android || is_ios) {
1181 sources -= [
1182 "chooser_controller/mock_chooser_controller.cc",
1183 "chooser_controller/mock_chooser_controller.h",
tsergeant58defcfb2016-07-19 23:47:281184 "permissions/mock_permission_request.cc",
1185 "permissions/mock_permission_request.h",
juncaibadc1daa2016-07-11 20:36:541186 ]
1187 }
1188
James Robinson2ed4d692014-09-17 05:20:581189 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:381190 sources += [
1191 "extensions/extension_action_test_util.cc",
1192 "extensions/extension_action_test_util.h",
1193 ]
scottmga266f952014-12-03 20:47:101194 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:581195 }
1196
Brett Wilson052ce132014-09-12 19:46:291197 if (is_chromeos) {
1198 sources += [
1199 "chromeos/app_mode/fake_cws.cc",
1200 "chromeos/app_mode/fake_cws.h",
1201 "chromeos/file_manager/fake_disk_mount_manager.cc",
1202 "chromeos/file_manager/fake_disk_mount_manager.h",
1203 "chromeos/input_method/mock_candidate_window_controller.cc",
1204 "chromeos/input_method/mock_candidate_window_controller.h",
1205 "chromeos/input_method/mock_input_method_engine.cc",
1206 "chromeos/input_method/mock_input_method_engine.h",
1207 "chromeos/input_method/mock_input_method_manager.cc",
1208 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511209 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1210 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391211 "chromeos/login/session/user_session_manager_test_api.cc",
1212 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291213 "chromeos/login/test/js_checker.cc",
1214 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591215 "chromeos/login/test/oobe_screen_waiter.cc",
1216 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291217 "chromeos/login/ui/mock_login_display.cc",
1218 "chromeos/login/ui/mock_login_display.h",
1219 "chromeos/login/ui/mock_login_display_host.cc",
1220 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511221 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1222 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301223 "chromeos/login/users/fake_chrome_user_manager.cc",
1224 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511225 "chromeos/login/users/fake_supervised_user_manager.cc",
1226 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511227 "chromeos/login/users/mock_user_manager.cc",
1228 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291229 "chromeos/net/network_portal_detector_test_utils.cc",
1230 "chromeos/net/network_portal_detector_test_utils.h",
1231 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1232 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1233 "chromeos/policy/device_policy_builder.cc",
1234 "chromeos/policy/device_policy_builder.h",
1235 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1236 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071237 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1238 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291239 "chromeos/policy/stub_enterprise_install_attributes.cc",
1240 "chromeos/policy/stub_enterprise_install_attributes.h",
1241 "chromeos/settings/device_settings_test_helper.cc",
1242 "chromeos/settings/device_settings_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291243 ]
agrieve95ba4442016-04-25 15:47:131244 configs += [ "//build/config/linux/dbus" ]
mukai6ba73552014-10-09 19:05:171245 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291246 }
1247
1248 if (enable_configuration_policy) {
1249 sources += [
1250 "policy/test/local_policy_test_server.cc",
1251 "policy/test/local_policy_test_server.h",
1252 ]
brettw083632b2016-08-25 20:24:461253 public_deps += [ "//components/policy/core/browser:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291254 }
1255
1256 if (safe_browsing_mode == 1) {
1257 sources += [
1258 "extensions/fake_safe_browsing_database_manager.cc",
1259 "extensions/fake_safe_browsing_database_manager.h",
1260 ]
1261 }
1262
1263 if (enable_extensions) {
1264 sources += [
Brett Wilson052ce132014-09-12 19:46:291265 "extensions/api/messaging/native_messaging_test_util.cc",
1266 "extensions/api/messaging/native_messaging_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291267 "extensions/mock_extension_special_storage_policy.cc",
1268 "extensions/mock_extension_special_storage_policy.h",
1269 "extensions/test_blacklist.cc",
1270 "extensions/test_blacklist.h",
1271 "extensions/test_blacklist_state_fetcher.cc",
1272 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511273 "extensions/test_extension_dir.cc",
1274 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591275 "extensions/test_extension_environment.cc",
1276 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291277 "extensions/test_extension_prefs.cc",
1278 "extensions/test_extension_prefs.h",
1279 "extensions/test_extension_service.cc",
1280 "extensions/test_extension_service.h",
1281 "extensions/test_extension_system.cc",
1282 "extensions/test_extension_system.h",
1283 "media_galleries/media_galleries_test_util.cc",
1284 "media_galleries/media_galleries_test_util.h",
1285 ]
lukasza8acc4eb2015-07-20 20:57:201286 deps += [
1287 "//components/drive:test_support",
1288 "//components/storage_monitor:test_support",
1289 ]
Brett Wilson052ce132014-09-12 19:46:291290 }
1291
1292 if (enable_mdns) {
1293 sources += [
1294 "local_discovery/test_service_discovery_client.cc",
1295 "local_discovery/test_service_discovery_client.h",
1296 ]
1297 }
1298
1299 if (enable_app_list) {
1300 sources += [
1301 "ui/app_list/test/chrome_app_list_test_support.cc",
1302 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511303 "ui/app_list/test/test_app_list_controller_delegate.cc",
1304 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291305 ]
1306 }
xhwangc3a252b2016-05-23 02:35:481307
1308 if (enable_pepper_cdms) {
1309 sources += [
1310 "media/pepper_cdm_test_helper.cc",
1311 "media/pepper_cdm_test_helper.h",
1312 ]
brettwf5431b3d2016-06-07 23:14:371313 deps += [
1314 ":pepper_cdm_test_constants",
1315 "//media:cdm_paths",
1316 ]
xhwangc3a252b2016-05-23 02:35:481317 }
Brett Wilson052ce132014-09-12 19:46:291318}
sdefresned967d552015-07-16 08:34:351319
thestig65d7c5c2015-10-06 18:13:471320# In GYP this is part of test_support_ui.
brettw77617612016-07-13 22:40:061321static_library("test_support_ui") {
thestig65d7c5c2015-10-06 18:13:471322 testonly = true
1323
1324 # Always include this via the main test support UI target.
1325 visibility = [ "//chrome/test:test_support_ui" ]
1326
1327 sources = [
1328 "password_manager/password_manager_test_base.cc",
1329 "password_manager/password_manager_test_base.h",
shadi3ca8c9d2016-01-19 18:54:391330 "signin/token_revoker_test_utils.cc",
1331 "signin/token_revoker_test_utils.h",
thestig65d7c5c2015-10-06 18:13:471332 "ui/webui/signin/login_ui_test_utils.cc",
1333 "ui/webui/signin/login_ui_test_utils.h",
1334 ]
1335
1336 configs += [ "//build/config:precompiled_headers" ]
1337
1338 deps = [
1339 "//components/metrics:test_support",
leon.han952ea3252016-04-13 02:44:561340 "//components/password_manager/content/public/interfaces",
vabr22c9e4f42015-10-20 15:34:091341 "//components/password_manager/core/browser:test_support",
leon.han3134fc62016-08-10 07:25:581342 "//components/translate/content/common",
thestig65d7c5c2015-10-06 18:13:471343 "//skia",
1344 "//testing/gtest",
1345 ]
1346}
1347
sdefresned967d552015-07-16 08:34:351348if (enable_rlz_support) {
brettw77617612016-07-13 22:40:061349 static_library("rlz") {
sdefresned967d552015-07-16 08:34:351350 sources =
1351 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1352 deps = [
1353 "//components/google/core/browser",
1354 "//components/omnibox/browser",
1355 "//components/rlz",
1356 "//components/search_engines",
1357 "//rlz:rlz_lib",
1358 ]
1359 }
1360}
brettwf5431b3d2016-06-07 23:14:371361
1362if (enable_pepper_cdms) {
1363 # These constants are separated so that test binaries can use them without
1364 # linking all of the test support.
brettw77617612016-07-13 22:40:061365 static_library("pepper_cdm_test_constants") {
brettwf5431b3d2016-06-07 23:14:371366 testonly = true
1367 visibility = [ "//chrome/*" ]
1368 sources = [
1369 "media/pepper_cdm_test_constants.cc",
1370 "media/pepper_cdm_test_constants.h",
1371 ]
1372 }
1373}