blob: 3aaab5fe02ed2ba71b0914ebd470541c415dcf3f [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
tfarina11b504b2016-03-02 19:49:5185 allow_circular_includes_from = [ "//chrome/browser/ui" ]
86
[email protected]dffd8a912014-06-30 23:24:3187 # iOS/non-iOS shared deps. New dependencies should generally be added in the
88 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:4689 public_deps = [
90 "//components/autofill/core/browser",
91 "//content/public/browser",
92 "//sql",
93 "//sync",
94 ]
[email protected]dffd8a912014-06-30 23:24:3195 deps = [
[email protected]dffd8a912014-06-30 23:24:3196 "//chrome:extra_resources",
97 "//chrome:resources",
98 "//chrome:strings",
[email protected]855b7de2014-07-08 21:02:4599 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:17100 "//chrome/app/theme:theme_resources",
sdefresnea213ceb2015-10-05 09:23:39101 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
[email protected]797b25042014-07-01 23:54:17102 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:30103 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:31104 "//chrome/common",
[email protected]604828c2014-07-02 20:39:12105 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:01106 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:03107 "//components/bookmarks/managed",
blundell7282b512015-11-09 07:21:11108 "//components/browser_sync/browser",
blundell373c28c2015-11-05 14:07:50109 "//components/browser_sync/common",
[email protected]b9f4c682014-07-10 22:00:37110 "//components/captive_portal",
estark334673f42015-09-08 14:51:39111 "//components/certificate_reporting",
[email protected]fca567b2014-07-02 17:37:34112 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:01113 "//components/component_updater",
vabrfc325fa2015-04-10 16:24:45114 "//components/content_settings/content/common",
vasiliiac461392014-09-18 11:35:17115 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:54116 "//components/content_settings/core/common",
abhishek.a21bbf8e4a2015-10-15 21:05:56117 "//components/cookie_config",
[email protected]478ed232014-08-19 02:10:55118 "//components/crx_file",
megjablon3476e042014-10-14 19:21:59119 "//components/data_reduction_proxy/core/browser",
sclittleae932be2015-10-08 20:53:50120 "//components/data_usage/core",
amohammadkhanf76ae112015-09-14 17:34:43121 "//components/data_use_measurement/core",
reillyg4a849272015-02-20 21:38:43122 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:25123 "//components/domain_reliability",
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",
estarkd9e54fb2016-01-11 19:37:12162 "//components/security_state",
[email protected]abd4b682014-07-16 20:26:30163 "//components/signin/core/browser",
felt2493b4452015-09-17 20:33:59164 "//components/ssl_errors",
fdoray443bd112015-11-16 20:44:23165 "//components/startup_metric_utils/browser:lib",
166 "//components/startup_metric_utils/browser:message_filter_lib",
fdoray343068c42016-02-03 15:45:58167
168 # TODO(fdoray): Remove this once the PreRead field trial has expired.
169 # crbug.com/577698
170 "//components/startup_metric_utils/common",
[email protected]797b25042014-07-01 23:54:17171 "//components/strings",
mathp60143a32014-10-08 14:52:45172 "//components/suggestions",
blundellc759b682015-10-08 15:50:59173 "//components/sync_bookmarks",
Brett Wilson1c693992014-08-25 19:10:01174 "//components/sync_driver",
skym6b9887e2015-10-09 22:10:47175 "//components/sync_sessions",
zhenwecedcf22015-08-18 23:37:46176 "//components/tracing:startup_tracing",
[email protected]b9f4c682014-07-10 22:00:37177 "//components/translate/core/browser",
178 "//components/translate/core/common",
brettw0741cb1c2015-08-21 22:06:00179 "//components/ui/zoom",
sdefresnec083d1f2015-04-17 21:12:18180 "//components/undo",
sorin39eab2f2015-01-06 01:09:08181 "//components/update_client",
rsleevi24f64dc22015-08-07 21:39:21182 "//components/url_formatter",
[email protected]fca567b2014-07-02 17:37:34183 "//components/user_prefs",
jitendra.ks94c0b962015-08-10 08:24:09184 "//components/user_prefs/tracked:user_prefs_tracked",
isherman3be67db2014-10-24 05:57:44185 "//components/variations",
186 "//components/variations/net",
blundellb50ad702015-08-27 17:08:29187 "//components/variations/service",
agrieved7a71c882015-11-20 19:53:28188 "//components/web_resource",
[email protected]bf4545f2014-07-11 19:49:46189 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56190 "//components/webdata_services",
[email protected]dffd8a912014-06-30 23:24:31191 "//content/public/browser",
192 "//content/public/common",
hbos18f58912016-03-08 14:26:35193 "//content/public/common:feature_h264_with_openh264_ffmpeg",
194 "//content/public/common:features",
[email protected]604828c2014-07-02 20:39:12195 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31196 "//crypto",
[email protected]604828c2014-07-02 20:39:12197 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56198 "//gpu/config",
[email protected]dffd8a912014-06-30 23:24:31199 "//skia",
200 "//sql",
201 "//sync",
[email protected]797b25042014-07-01 23:54:17202 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31203 "//third_party/icu",
ajwongf7b1cb692014-08-23 21:36:22204 "//third_party/libjingle",
agrieved7a71c882015-11-20 19:53:28205 "//third_party/libxml",
[email protected]dffd8a912014-06-30 23:24:31206 "//third_party/widevine/cdm:version_h",
207 "//third_party/zlib",
hajimehoshi1e1cc1a2016-01-14 19:09:00208 "//third_party/zlib:compression_utils",
[email protected]dffd8a912014-06-30 23:24:31209 "//third_party/zlib:minizip",
210 "//third_party/zlib:zip",
211 "//ui/base",
sdefresnec6574a552016-02-08 16:58:21212 "//ui/base:ui_data_pack",
cjhopman09981a92014-10-27 17:11:18213 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31214 "//ui/gfx",
215 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36216 "//ui/message_center",
agrieved7a71c882015-11-20 19:53:28217 "//ui/resources",
[email protected]a1d7d4f2014-07-16 21:33:36218 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31219 "//ui/strings",
[email protected]dffd8a912014-06-30 23:24:31220 ]
bencccedf12015-11-10 07:56:16221 data_deps = []
[email protected]dffd8a912014-06-30 23:24:31222
scottmga266f952014-12-03 20:47:10223 sources +=
224 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00225
[email protected]dffd8a912014-06-30 23:24:31226 if (!is_ios) {
scottmga266f952014-12-03 20:47:10227 sources +=
228 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59229 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10230 ".",
231 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59232 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10233 ".",
234 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18235 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
236 ".",
237 "//chrome")
238 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
239 ".",
240 "//chrome")
sclittlea133de02015-11-10 23:54:21241 sources += rebase_path(gypi_values.chrome_browser_data_usage_sources,
242 ".",
243 "//chrome")
benwellsedf5e082015-04-23 02:45:14244 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
245 ".",
246 "//chrome")
scottmga266f952014-12-03 20:47:10247 sources +=
248 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
249 sources +=
250 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
251 sources +=
252 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
253 sources +=
254 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
255 sources +=
256 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59257 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10258 ".",
259 "//chrome")
mlamouri4e372022015-03-29 14:51:06260 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
261 ".",
262 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59263 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10264 ".",
265 "//chrome")
266 sources +=
267 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59268 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10269 ".",
270 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59271 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10272 ".",
273 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59274 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10275 ".",
276 "//chrome")
277 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18278 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
279 sources +=
scottmga266f952014-12-03 20:47:10280 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
281 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18282 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
283 sources +=
scottmga266f952014-12-03 20:47:10284 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59285 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10286 ".",
287 "//chrome")
sievers2f1e8112015-12-04 18:43:56288 if (android_java_ui) {
289 sources +=
290 rebase_path(gypi_values.chrome_browser_sync_android_java_ui_sources,
291 ".",
292 "//chrome")
293 sources +=
294 rebase_path(gypi_values.chrome_browser_ssl_android_java_ui_sources,
295 ".",
296 "//chrome")
297 sources += rebase_path(
298 gypi_values.chrome_browser_history_android_java_ui_sources,
299 ".",
300 "//chrome")
301 sources += rebase_path(
302 gypi_values.chrome_browser_permissions_android_java_ui_sources,
303 ".",
304 "//chrome")
305 sources += rebase_path(
306 gypi_values.chrome_browser_search_engines_android_java_ui_sources,
307 ".",
308 "//chrome")
309 if (enable_supervised_users) {
310 sources += rebase_path(
311 gypi_values.chrome_browser_supervised_user_android_java_ui_sources,
312 ".",
313 "//chrome")
314 }
315 }
scottmga266f952014-12-03 20:47:10316
[email protected]dffd8a912014-06-30 23:24:31317 deps += [
Brett Wilson1c693992014-08-25 19:10:01318 "//apps",
[email protected]dffd8a912014-06-30 23:24:31319 "//cc",
brettwca934582015-02-24 21:50:27320 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30321 "//chrome/browser/devtools",
sdefresnea213ceb2015-10-05 09:23:39322 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
brettwca934582015-02-24 21:50:27323 "//chrome/browser/resources:component_extension_resources",
tfarina04d426612015-08-18 16:42:33324 "//chrome/common/net",
brettwe26e6d02015-12-29 06:51:47325 "//chrome/installer/util:with_no_strings",
jitendra.ks4f2e9112015-08-14 11:40:26326 "//components/about_handler",
oshimaf65398422014-11-18 23:30:42327 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37328 "//components/autofill/content/browser",
lazyboy14082d22015-04-02 01:04:58329 "//components/browsing_data",
donndbda9b6f432015-12-10 20:39:05330 "//components/contextual_search:browser",
jeremyim364ac1182015-03-03 18:49:43331 "//components/data_reduction_proxy/content/browser",
amohammadkhan092adb22015-09-11 21:08:49332 "//components/data_use_measurement/content",
dgozmanec2b982a2015-04-28 10:36:39333 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46334 "//components/devtools_http_handler",
brettw15764b12015-11-30 22:11:05335 "//components/dom_distiller/content/browser",
tfarina041134472015-09-02 15:29:38336 "//components/error_page/common",
sdefresne001b10de2015-03-20 18:41:46337 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04338 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34339 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30340 "//components/navigation_interception",
drogerc690e8802015-09-21 14:29:16341 "//components/net_log",
tfarina041134472015-09-02 15:29:38342 "//components/network_hints/common",
[email protected]55699f392014-08-20 22:16:30343 "//components/password_manager/content/browser",
vabr5410d0b2015-08-07 11:02:04344 "//components/password_manager/sync/browser",
droger78da6542015-11-02 11:25:59345 "//components/profile_metrics",
abhishek.a2171c612852015-08-31 10:48:19346 "//components/proxy_config",
droger2a6ab542015-10-09 16:10:28347 "//components/resources",
vakh9d5888022015-10-29 21:04:07348 "//components/safe_browsing_db",
bauerbf0e64aa2015-06-25 15:54:07349 "//components/safe_json",
brettwa22cb3b2015-04-30 20:23:12350 "//components/sessions",
abhishek.a212849cee2015-10-20 11:27:29351 "//components/ssl_config",
[email protected]abd4b682014-07-16 20:26:30352 "//components/storage_monitor",
sdefresne875d0782015-09-16 12:01:28353 "//components/syncable_prefs",
[email protected]b9f4c682014-07-10 22:00:37354 "//components/translate/content/browser",
sdefresne44eb1f22015-08-06 08:51:55355 "//components/upload_list",
[email protected]fca567b2014-07-02 17:37:34356 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31357 "//components/visitedlink/browser",
358 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18359 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37360 "//components/web_modal",
reillygcf1af632015-11-18 16:42:58361 "//components/webusb",
[email protected]a9ca8d52014-08-22 10:21:08362 "//content/app/resources",
reillygcf1af632015-11-18 16:42:58363 "//device/core",
reillyg64c8f4f2016-02-10 23:29:20364 "//device/usb/mojo",
365 "//device/usb/public/interfaces",
[email protected]55699f392014-08-20 22:16:30366 "//media",
yhiranobbea6272015-09-17 07:09:03367 "//media/midi",
cjhopman09981a92014-10-27 17:11:18368 "//mojo/common",
rockotc637caf9b2016-02-10 09:57:08369 "//mojo/edk/system",
[email protected]604828c2014-07-02 20:39:12370 "//mojo/environment:chromium",
rockot85dce0862015-11-13 01:33:59371 "//mojo/public/cpp/bindings",
372 "//mojo/public/js",
ben273c1e32016-01-12 02:44:08373 "//mojo/shell/public/cpp",
Brett Wilson83fd4242014-09-02 19:45:33374 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31375 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15376 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24377 "//storage/common",
erga3c614c92015-04-03 17:47:51378 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46379 "//third_party/WebKit/public:resources",
pmonette502a83e2016-01-08 00:21:16380 "//third_party/kasko",
[email protected]dffd8a912014-06-30 23:24:31381 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34382 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31383 "//third_party/libyuv",
[email protected]dffd8a912014-06-30 23:24:31384 "//third_party/re2",
385 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33386 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12387 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31388 "//ui/gl",
brettwca934582015-02-24 21:50:27389 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31390 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12391 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34392 "//v8",
[email protected]dffd8a912014-06-30 23:24:31393 ]
paulmeyer27b328b2015-06-17 21:26:12394
395 if (toolkit_views) {
396 deps += [ "//ui/views" ]
397 }
[email protected]dffd8a912014-06-30 23:24:31398 } else { # iOS
scottmga266f952014-12-03 20:47:10399 sources +=
400 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
401 sources +=
402 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
403 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31404 libs += [
405 "CoreTelephony.framework",
406 "CoreText.framework",
407 "MobileCoreServices.framework",
408 "QuartzCore.framework",
409 ]
scottmga266f952014-12-03 20:47:10410 ldflags += [
411 "-weak_framework",
412 "CoreImage",
413 ]
[email protected]dffd8a912014-06-30 23:24:31414 }
415
416 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10417 sources +=
418 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31419 }
mmenkede134672015-08-18 01:33:39420 if (!is_win && !is_mac && !is_ios) {
421 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ]
422 }
[email protected]dffd8a912014-06-30 23:24:31423 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
424 sources += [
425 "net/disk_cache_dir_policy_handler.cc",
426 "net/disk_cache_dir_policy_handler.h",
427 ]
428 }
429 if (!is_android && !is_ios && enable_configuration_policy) {
430 sources += [
431 "download/download_dir_policy_handler.cc",
432 "download/download_dir_policy_handler.h",
433 ]
434 }
435 if (is_mac) {
scottmga266f952014-12-03 20:47:10436 sources +=
437 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31438 deps += [
brettw5ff98192015-10-22 06:36:15439 "//chrome/app_shim",
440 "//chrome/browser/apps/app_shim",
[email protected]dffd8a912014-06-30 23:24:31441 ]
442 }
fdoray015d4422016-02-05 19:09:16443 if (is_win) {
444 deps += [ "//chrome:file_pre_reader" ]
445 }
ki.stfu5e669f02015-09-17 07:15:19446 if (is_mac || is_android) {
447 sources += rebase_path(
448 gypi_values.chrome_browser_password_manager_mac_android_sources,
449 ".",
450 "//chrome")
451 }
[email protected]dffd8a912014-06-30 23:24:31452 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46453 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52454 deps += [
[email protected]cc5b3be2014-08-15 23:24:52455 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30456 "//chrome/common/extensions/api",
457 "//chrome/common/extensions/api:api_registration",
lukasza8acc4eb2015-07-20 20:57:20458 "//components/drive:drive",
msarda4c408ff2015-04-22 14:27:56459 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44460 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50461 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06462 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52463 ]
[email protected]dffd8a912014-06-30 23:24:31464 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10465 ".",
466 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31467 }
468 if (enable_background) {
469 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10470 ".",
471 "//chrome")
jamesr29ea2d122014-10-23 10:30:27472 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31473 sources -= [ "background/background_mode_manager_aura.cc" ]
474 }
475 }
476 if (enable_task_manager) {
477 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10478 ".",
479 "//chrome")
nya268de1c72015-12-16 05:07:40480 if (is_chromeos) {
481 sources +=
482 rebase_path(gypi_values.chrome_browser_task_manager_chromeos_sources,
483 ".",
484 "//chrome")
485 }
[email protected]dffd8a912014-06-30 23:24:31486 }
487 if (enable_spellcheck) {
488 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10489 ".",
490 "//chrome")
dylanking34c72442015-07-23 23:19:58491 if (!is_android) {
492 deps += [ "//third_party/hunspell" ]
493 }
[email protected]dffd8a912014-06-30 23:24:31494 }
495 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10496 sources +=
497 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
brettwf4b4a4282015-12-16 00:41:13498 deps += [ "//components/nacl/browser" ]
[email protected]dffd8a912014-06-30 23:24:31499 }
apavlove749bca2014-09-30 11:07:41500
[email protected]dffd8a912014-06-30 23:24:31501 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10502 sources +=
503 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
504 ".",
505 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31506 deps += [
[email protected]604828c2014-07-02 20:39:12507 "//components/policy",
[email protected]797b25042014-07-01 23:54:17508 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31509 ]
510 if (!is_ios) {
scottmga266f952014-12-03 20:47:10511 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
512 ".",
513 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31514 }
515 if (!is_chromeos) {
516 sources += rebase_path(
scottmga266f952014-12-03 20:47:10517 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
518 ".",
519 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31520 }
521 if (is_win || is_mac || is_desktop_linux) {
522 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10523 ".",
524 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31525 }
cjhopman09981a92014-10-27 17:11:18526 if (is_android || is_ios) {
527 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10528 ".",
529 "//chrome")
cjhopman09981a92014-10-27 17:11:18530 } else {
amistry6e1ed1b2015-03-12 05:24:01531 deps += [
532 "//chrome/browser/policy:path_parser",
533 "//net:net_browser_services",
534 ]
[email protected]dffd8a912014-06-30 23:24:31535 }
536 } else {
537 # Configuration policy disabled.
538 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10539 ".",
540 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31541 }
542
543 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10544 sources +=
545 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31546 deps += [
James Robinson2ed4d692014-09-17 05:20:58547 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31548 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14549 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31550 ]
551 }
552 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10553 sources +=
stuartmorgan1b3df822014-12-08 14:36:11554 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10555 ".",
556 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31557 deps += [
[email protected]fca567b2014-07-02 17:37:34558 "//chrome/browser/safe_browsing:chunk_proto",
jialiuleed304432015-11-09 20:17:03559 "//chrome/common/safe_browsing:proto",
vakh27f7e222016-02-02 23:45:34560 "//components/safe_browsing_db:metadata_proto",
[email protected]dffd8a912014-06-30 23:24:31561 ]
562 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10563 sources +=
stuartmorgan1b3df822014-12-08 14:36:11564 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10565 ".",
566 "//chrome")
scottmga266f952014-12-03 20:47:10567 deps += [ "//chrome/common/safe_browsing:proto" ]
grtc1d1b752015-09-05 13:26:41568 if (is_win) {
569 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto" ]
570 }
nparker00a64f12015-10-16 17:34:30571 } else if (safe_browsing_mode == 2) {
572 sources +=
573 rebase_path(gypi_values.chrome_browser_safe_browsing_mobile_sources,
574 ".",
575 "//chrome")
vakh27f7e222016-02-02 23:45:34576 deps += [ "//components/safe_browsing_db:safe_browsing_db_mobile" ]
[email protected]dffd8a912014-06-30 23:24:31577 }
578 }
579
amistryf269d3b2015-06-09 19:18:39580 if (enable_hotwording) {
581 defines += [ "ENABLE_HOTWORDING" ]
582 }
583
[email protected]dffd8a912014-06-30 23:24:31584 if (is_linux) {
mostynbea514682015-08-18 22:08:56585 deps += [ "//device/media_transfer_protocol" ]
[email protected]dffd8a912014-06-30 23:24:31586 }
mostynbea514682015-08-18 22:08:56587
588 if (use_udev) {
589 deps += [ "//device/udev_linux" ]
590 }
591
[email protected]dffd8a912014-06-30 23:24:31592 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47593 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31594 }
595
596 if (is_chromeos) {
597 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10598 ".",
599 "//chrome")
600 deps += [ "//chrome/browser/chromeos" ]
[email protected]dffd8a912014-06-30 23:24:31601 }
602
mukai8c99b882014-10-15 03:07:59603 if (is_chromeos || is_ios) {
604 sources -= [
blundell296904a2015-10-13 12:30:48605 "signin/chrome_signin_status_metrics_provider_delegate.cc",
606 "signin/chrome_signin_status_metrics_provider_delegate.h",
mukai8c99b882014-10-15 03:07:59607 ]
608 }
609
sque82e4d1552016-02-26 22:47:19610 if (is_chromeos) {
611 sources += [
612 "metrics/leak_detector_controller.cc",
613 "metrics/leak_detector_controller.h",
614 ]
615 deps += [ "//components/metrics:leak_detector" ]
616 }
617
[email protected]dffd8a912014-06-30 23:24:31618 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12619 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31620 }
621 if (is_desktop_linux) {
622 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10623 ".",
624 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49625 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31626 }
dvadym34532022015-01-22 15:42:51627 if (is_desktop_linux) {
628 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
629 ".",
630 "//chrome")
631 defines += [ "USE_LIBSECRET" ]
632 }
[email protected]dffd8a912014-06-30 23:24:31633 if (use_aura) {
scottmga266f952014-12-03 20:47:10634 sources +=
635 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
ben0cc0be92015-11-09 21:49:06636
637 # These files are only built in a GN build because they bring in
638 # dependencies that don't build with GYP.
639 sources += [
bencccedf12015-11-10 07:56:16640 "ui/views/frame/browser_frame_mus.cc",
641 "ui/views/frame/browser_frame_mus.h",
skyab2410c52015-12-03 03:40:56642 "ui/views/frame/browser_non_client_frame_view_mus.cc",
643 "ui/views/frame/browser_non_client_frame_view_mus.h",
ben0cc0be92015-11-09 21:49:06644 ]
[email protected]dffd8a912014-06-30 23:24:31645 deps += [
skyab2410c52015-12-03 03:40:56646 "//components/mus/public/cpp",
ben03b7b9d2015-11-15 12:13:09647 "//content/public/common",
benaf49d312016-01-23 00:55:46648 "//mojo/shell/runner/child:lib",
[email protected]fca567b2014-07-02 17:37:34649 "//ui/aura",
650 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12651 "//ui/keyboard",
ben974286a2015-10-10 00:45:12652 "//ui/keyboard:keyboard_with_content",
ben03b7b9d2015-11-15 12:13:09653 "//ui/views/mus:for_component",
[email protected]dffd8a912014-06-30 23:24:31654 ]
ben03b7b9d2015-11-15 12:13:09655 defines += [ "MOJO_SHELL_CLIENT" ]
skyef819da2015-11-26 02:39:58656 data_deps += [ "//mash/wm" ]
[email protected]dffd8a912014-06-30 23:24:31657 }
658 if (ui_compositor_image_transport) {
659 deps += [ "//ui/gl" ]
660 }
661
[email protected]855b7de2014-07-08 21:02:45662 if (use_ash) {
scottmga266f952014-12-03 20:47:10663 sources +=
664 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45665 }
666
[email protected]dffd8a912014-06-30 23:24:31667 if (use_x11) {
scottmga266f952014-12-03 20:47:10668 sources +=
669 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23670 } else {
671 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31672 }
Scott Grahamcae6b0e2015-12-04 03:23:29673 if (is_posix && !is_mac && !is_ios) {
[email protected]dffd8a912014-06-30 23:24:31674 sources += [
rseseka0a7a042014-09-18 23:59:20675 "//chrome/app/chrome_crash_reporter_client.cc",
676 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31677 ]
678 deps += [
sdefresne8ba0b88c2015-09-18 10:33:13679 "//components/crash/content/app",
680 "//components/crash/content/browser",
blundellf1cfb032015-11-16 18:22:30681 "//components/version_info:generate_version_info",
[email protected]dffd8a912014-06-30 23:24:31682 ]
683 }
684 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10685 sources +=
686 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59687 if (is_chromeos) {
688 sources -= [ "net/nss_context_linux.cc" ]
689 }
[email protected]dffd8a912014-06-30 23:24:31690 }
691 if (enable_notifications) {
692 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10693 ".",
694 "//chrome")
sievers2f1e8112015-12-04 18:43:56695 if (android_java_ui) {
696 sources += rebase_path(
697 gypi_values.chrome_browser_notifications_android_java_ui_sources,
698 ".",
699 "//chrome")
estade6d95d1d2015-10-02 18:55:23700 } else {
[email protected]dffd8a912014-06-30 23:24:31701 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11702 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10703 ".",
704 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31705 }
706 }
707 if (enable_themes) {
scottmga266f952014-12-03 20:47:10708 sources +=
709 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31710 }
711
vitalybuka93eea402014-11-05 23:47:15712 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31713 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11714 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10715 ".",
716 "//chrome")
spang5cc72542015-08-04 19:47:11717 deps += [
brettwd649f6b2015-08-18 20:58:51718 "//components/printing/browser",
agrieved7a71c882015-11-20 19:53:28719 "//printing",
spang5cc72542015-08-04 19:47:11720 ]
721
vitalybuka36259ca2014-08-28 23:42:24722 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31723 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10724 ".",
725 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31726 }
vitalybuka93eea402014-11-05 23:47:15727 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31728 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11729 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10730 ".",
731 "//chrome")
vitalybuka93eea402014-11-05 23:47:15732 } else {
[email protected]dffd8a912014-06-30 23:24:31733 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10734 sources +=
stuartmorgan1b3df822014-12-08 14:36:11735 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10736 ".",
737 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31738 }
739 }
740 if (enable_captive_portal_detection) {
741 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10742 ".",
743 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31744 }
745 if (enable_session_service) {
746 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10747 ".",
748 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31749 }
750
thestigdc377202014-10-28 22:06:02751 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10752 sources +=
753 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02754 }
755
[email protected]dffd8a912014-06-30 23:24:31756 if (is_android || is_ios) {
757 # Mobile.
scottmga266f952014-12-03 20:47:10758 sources +=
759 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31760 } else {
761 # Non-mobile.
762 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10763 ".",
764 "//chrome")
battreec964982015-12-15 14:04:58765 deps += [
766 "//chrome/browser/profile_resetter:profile_reset_report_proto",
767 "//components/feedback",
768 ]
[email protected]dffd8a912014-06-30 23:24:31769 }
770
mathp17e1eba2015-10-06 21:50:59771 if (!is_chrome_branded) {
fserb1c2db4c2015-07-16 17:14:49772 sources += [
773 "search/local_files_ntp_source.cc",
774 "search/local_files_ntp_source.h",
775 ]
776 }
777
[email protected]dffd8a912014-06-30 23:24:31778 if (is_android) {
scottmga266f952014-12-03 20:47:10779 sources +=
780 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
sievers2f1e8112015-12-04 18:43:56781 }
782
783 if (android_java_ui) {
784 sources += rebase_path(gypi_values.chrome_browser_android_java_ui_sources,
785 ".",
786 "//chrome")
fgorski1d4c9c92015-12-17 20:39:32787 sources += rebase_path(gypi_values.chrome_browser_offline_pages_sources,
twellingtoncaf0eb752015-06-01 16:19:50788 ".",
789 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31790 deps += [
pkotwicz127726f2015-05-29 15:20:12791 ":client_discourse_context_proto",
792 ":delta_file_proto",
James Robinson2ed4d692014-09-17 05:20:58793 ":jni_headers",
sclittlec441f782015-11-12 01:12:09794 "//components/data_usage/android",
twifkak8c9f7502015-06-25 02:12:57795 "//components/precache/content",
796 "//components/precache/core",
estadee37f8222014-11-07 21:35:22797 "//components/resources:components_resources",
mathiash3ecfdfa2015-04-13 15:06:07798 "//components/service_tab_launcher",
blundell11d93bc2015-07-31 12:33:12799 "//components/toolbar",
cjhopman09981a92014-10-27 17:11:18800 "//components/web_contents_delegate_android",
sievers2f1e8112015-12-04 18:43:56801 ]
sievers2f1e8112015-12-04 18:43:56802 }
803
804 if (is_android) {
805 deps += [
806 "//components/cdm/browser",
807 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18808 "//third_party/android_opengl/etc1",
fdegans34f31e272015-05-22 16:59:03809 "//third_party/android_tools:cpu_features",
twellington0bc61492015-01-30 20:14:13810 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31811 ]
sievers2f1e8112015-12-04 18:43:56812
[email protected]dffd8a912014-06-30 23:24:31813 deps -= [
[email protected]abd4b682014-07-16 20:26:30814 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30815 "//components/web_modal",
agrieved7a71c882015-11-20 19:53:28816 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31817 ]
rseseke59ea892015-03-19 22:27:44818
819 if (use_seccomp_bpf) {
820 defines += [ "USE_SECCOMP_BPF" ]
rsesek65d31352015-06-08 22:53:44821 deps += [ "//sandbox/linux:seccomp_bpf" ]
rseseke59ea892015-03-19 22:27:44822 }
[email protected]dffd8a912014-06-30 23:24:31823 }
824
825 if (is_mac) {
826 deps += [
[email protected]6b5d2f92014-07-30 00:40:03827 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03828 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31829 ]
830 libs += [
831 "Accelerate.framework",
832 "AddressBook.framework",
833 "AudioUnit.framework",
834 "DiskArbitration.framework",
835 "IOKit.framework",
836 "ImageCaptureCore.framework",
837 "OpenGL.framework",
838 "QuartzCore.framework",
839 "SecurityInterface.framework",
840 ]
841 }
842
843 if (enable_rlz) {
sdefresned967d552015-07-16 08:34:35844 deps += [ ":rlz" ]
[email protected]dffd8a912014-06-30 23:24:31845 }
846
847 # TODO(GYP)
848 # Temporary fix to break the browser target into smaller chunks so it
849 # will link with goma builds.
850 #["OS=="win" and chromium_win_pch==0", {
851 # "msvs_shard": 4,
852 #}],
853
854 if (is_win) {
scottmga266f952014-12-03 20:47:10855 sources +=
856 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
Brett Wilsone53895272014-09-23 23:41:46857 public_deps += [
858 "//ui/views",
859 "//ui/views/controls/webview",
860 ]
[email protected]dffd8a912014-06-30 23:24:31861 deps += [
vchigrin9593e7a2015-01-27 10:08:19862 ":chrome_process_finder",
pmonette502a83e2016-01-08 00:21:16863 "//chrome/chrome_watcher:client",
mdempsky15a48be2015-10-21 23:37:53864 "//chrome/common:version_header",
[email protected]55699f392014-08-20 22:16:30865 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19866 "//chrome_elf",
867 "//chrome_elf:constants",
868 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32869 "//components/browser_watcher",
870 "//components/browser_watcher:browser_watcher_client",
fdorayc295b762016-01-19 18:49:23871 "//components/startup_metric_utils/common",
vchigrinbbc23e72015-01-21 22:49:23872 "//google_update",
[email protected]55699f392014-08-20 22:16:30873 "//third_party/iaccessible2",
874 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31875 "//third_party/wtl",
vchigrin88ed6f42015-01-17 11:56:42876 "//ui/metro_viewer",
[email protected]dffd8a912014-06-30 23:24:31877 ]
mmenkede134672015-08-18 01:33:39878
879 all_dependent_configs = [ ":browser_win_linker_flags" ]
880
grt235b3f092015-05-27 21:42:48881 if (!is_chrome_branded) {
882 deps -= [ "//google_update" ]
883 sources -= [
884 "google/did_run_updater_win.cc",
885 "google/did_run_updater_win.h",
886 "google/google_update_win.cc",
887 "google/google_update_win.h",
888 ]
889 }
[email protected]dffd8a912014-06-30 23:24:31890 } else {
891 # Non-Windows.
scottmga266f952014-12-03 20:47:10892 sources +=
893 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37894 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31895 deps += [
scottmga266f952014-12-03 20:47:10896 "//ui/views",
897 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31898 ]
[email protected]dffd8a912014-06-30 23:24:31899 }
900 }
901
902 if (is_linux) {
[email protected]dffd8a912014-06-30 23:24:31903 if (use_aura) {
slan17e5ce7f2015-09-25 00:04:45904 configs += [ "//build/config/linux:dbus" ]
905 deps += [
906 "//build/linux:fontconfig",
907 "//dbus",
[email protected]dffd8a912014-06-30 23:24:31908 ]
[email protected]dffd8a912014-06-30 23:24:31909 }
910 if (use_x11) {
911 configs += [ "//build/config/linux:x11" ]
912 deps += [ "//ui/gfx/x" ]
913 }
914 }
915
rouslane59900a2016-02-17 19:45:43916 if (is_linux || is_win) {
917 sources += rebase_path(gypi_values.chrome_browser_non_mac_desktop_sources,
918 ".",
919 "//chrome")
920 }
921
[email protected]dffd8a912014-06-30 23:24:31922 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54923 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10924 ".",
925 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31926 }
927 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10928 sources +=
929 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
930 ".",
931 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31932 }
933 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10934 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31935 }
treib87bb89cbb2014-12-01 16:01:47936 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10937 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
938 ".",
939 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31940 }
bauerb7f3b8542015-06-29 19:56:19941 if (enable_supervised_users && !is_android && !is_ios) {
942 sources +=
943 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
944 ".",
945 "//chrome")
946 }
treib87bb89cbb2014-12-01 16:01:47947 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59948 sources += rebase_path(
scottmga266f952014-12-03 20:47:10949 gypi_values.chrome_browser_supervised_user_and_themes_sources,
950 ".",
951 "//chrome")
thestig169a6362014-11-13 20:47:59952 }
[email protected]dffd8a912014-06-30 23:24:31953 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10954 sources +=
955 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31956 }
957 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10958 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
959 ".",
960 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31961 }
962 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10963 sources +=
964 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31965 }
966 if (!enable_autofill_dialog || is_android || is_ios) {
967 sources -= [
968 "autofill/validation_rules_storage_factory.cc",
969 "autofill/validation_rules_storage_factory.h",
970 ]
971 }
mfoltz150bb8b2015-04-09 22:30:05972 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55973 deps += [ "//chrome/browser/media/router" ]
mfoltz150bb8b2015-04-09 22:30:05974 }
xhwang5e630462015-10-30 03:18:48975
xhwangbe720032016-02-19 18:45:31976 if (mojo_media_host == "browser") {
xhwang755165d2016-02-18 17:29:58977 deps += [ "//media/mojo/services:application_factory" ]
xhwangbe720032016-02-19 18:45:31978 } else if (enable_mojo_media) {
979 configs += [ "//media/mojo/services:mojo_media_config" ]
xhwang5e630462015-10-30 03:18:48980 }
revemanb195f41d2015-11-19 22:16:48981
982 if (enable_wayland_server) {
983 deps += [
984 "//components/exo",
985 "//components/exo/wayland",
986 ]
987 sources += [
988 "chrome_browser_main_extra_parts_exo.cc",
989 "chrome_browser_main_extra_parts_exo.h",
990 ]
991 }
[email protected]dffd8a912014-06-30 23:24:31992}
993
sievers2f1e8112015-12-04 18:43:56994if (android_java_ui) {
James Robinson2ed4d692014-09-17 05:20:58995 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
996 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10997 sources =
998 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58999 jni_package = "chrome"
1000 }
pkotwicz127726f2015-05-29 15:20:121001
1002 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
1003 proto_library("client_discourse_context_proto") {
1004 sources = [
1005 "android/proto/client_discourse_context.proto",
1006 ]
1007 }
1008
1009 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
1010 proto_library("delta_file_proto") {
1011 sources = [
1012 "android/proto/delta_file.proto",
1013 ]
1014 }
James Robinson2ed4d692014-09-17 05:20:581015}
1016
vchigrin9593e7a2015-01-27 10:08:191017if (is_win) {
1018 source_set("chrome_process_finder") {
1019 sources = [
1020 "chrome_process_finder_win.cc",
1021 "chrome_process_finder_win.h",
1022 ]
1023 deps = [
1024 "//base",
vchigrin9593e7a2015-01-27 10:08:191025 "//chrome/common:constants",
1026 ]
1027 if (enable_configuration_policy) {
1028 deps += [ "//chrome/browser/policy:path_parser" ]
1029 }
1030 }
1031}
1032
[email protected]77ce8022014-06-16 19:29:561033# GYP version: chrome/chrome_resources.gyp:chrome_resources
1034# (generate_browser_resources action)
1035grit("resources") {
1036 source = "browser_resources.grd"
brettw06c2ba32015-11-26 09:21:251037 defines = chrome_grit_defines
[email protected]48885492014-08-13 11:22:411038 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:261039 outputs = [
1040 "grit/browser_resources.h",
1041 "browser_resources.pak",
1042 ]
[email protected]77ce8022014-06-16 19:29:561043
[email protected]77ce8022014-06-16 19:29:561044 grit_flags = [
scottmga266f952014-12-03 20:47:101045 "-E",
scottmga266f952014-12-03 20:47:101046 "additional_modules_list_file=" +
1047 rebase_path(additional_modules_list_file, root_build_dir),
1048 "-E",
calamityd59c1032015-09-22 06:35:531049 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
[email protected]77ce8022014-06-16 19:29:561050 ]
1051
1052 deps = [
[email protected]77ce8022014-06-16 19:29:561053 ":chrome_internal_resources_gen",
brettwde262b02015-05-27 19:41:421054
1055 # Depend only on the generated mojo bindings since we read the .mojom.js
1056 # file, rather than the whole mojo target which will link the C++ bindings.
calamityd59c1032015-09-22 06:35:531057 "//chrome/browser/ui/webui/engagement:mojo_bindings__generator",
brettwde262b02015-05-27 19:41:421058 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
dpapad59e3ad42016-02-02 21:58:061059 "//chrome/browser/ui/webui/plugins:mojo_bindings__generator",
vchigrin8eede942015-01-29 09:28:151060 ]
[email protected]77ce8022014-06-16 19:29:561061}
1062
[email protected]77ce8022014-06-16 19:29:561063# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:411064if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:561065 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:411066 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:101067 sources = [
1068 "internal/resources/additional_modules_list.input",
1069 ]
1070 outputs = [
1071 additional_modules_list_file,
1072 ]
engedy99d0e11b2014-09-30 13:32:411073 args = rebase_path(sources, root_build_dir) +
1074 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:561075 }
1076} else {
1077 group("chrome_internal_resources_gen") {
1078 # Empty placeholder.
1079 }
1080}
Brett Wilson052ce132014-09-12 19:46:291081
1082# In GYP this is part of test_support_common.
1083source_set("test_support") {
1084 testonly = true
1085
1086 # Always include this via the main test support target.
1087 visibility = [ "//chrome/test:test_support" ]
1088
1089 sources = [
1090 "browsing_data/mock_browsing_data_appcache_helper.cc",
1091 "browsing_data/mock_browsing_data_appcache_helper.h",
jsbelle1fe9692015-08-22 01:02:421092 "browsing_data/mock_browsing_data_cache_storage_helper.cc",
1093 "browsing_data/mock_browsing_data_cache_storage_helper.h",
Brett Wilson052ce132014-09-12 19:46:291094 "browsing_data/mock_browsing_data_channel_id_helper.cc",
1095 "browsing_data/mock_browsing_data_channel_id_helper.h",
1096 "browsing_data/mock_browsing_data_cookie_helper.cc",
1097 "browsing_data/mock_browsing_data_cookie_helper.h",
1098 "browsing_data/mock_browsing_data_database_helper.cc",
1099 "browsing_data/mock_browsing_data_database_helper.h",
1100 "browsing_data/mock_browsing_data_file_system_helper.cc",
1101 "browsing_data/mock_browsing_data_file_system_helper.h",
1102 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
1103 "browsing_data/mock_browsing_data_flash_lso_helper.h",
1104 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
1105 "browsing_data/mock_browsing_data_indexed_db_helper.h",
1106 "browsing_data/mock_browsing_data_local_storage_helper.cc",
1107 "browsing_data/mock_browsing_data_local_storage_helper.h",
1108 "browsing_data/mock_browsing_data_quota_helper.cc",
1109 "browsing_data/mock_browsing_data_quota_helper.h",
1110 "browsing_data/mock_browsing_data_service_worker_helper.cc",
1111 "browsing_data/mock_browsing_data_service_worker_helper.h",
1112 "download/download_test_file_activity_observer.cc",
1113 "download/download_test_file_activity_observer.h",
1114 "download/test_download_shelf.cc",
1115 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:291116 "media/fake_desktop_media_list.cc",
1117 "media/fake_desktop_media_list.h",
1118 "net/dns_probe_test_util.cc",
1119 "net/dns_probe_test_util.h",
1120 "net/url_request_mock_util.cc",
1121 "net/url_request_mock_util.h",
1122 "notifications/notification_test_util.cc",
1123 "notifications/notification_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291124 "profile_resetter/profile_resetter_test_base.cc",
1125 "profile_resetter/profile_resetter_test_base.h",
1126 "search_engines/template_url_service_factory_test_util.cc",
1127 "search_engines/template_url_service_factory_test_util.h",
1128 "search_engines/template_url_service_test_util.cc",
1129 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:451130 "sessions/session_restore_test_helper.cc",
1131 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291132 "sessions/session_service_test_helper.cc",
1133 "sessions/session_service_test_helper.h",
knn523bd722015-07-30 16:27:091134 "signin/fake_account_fetcher_service_builder.cc",
1135 "signin/fake_account_fetcher_service_builder.h",
mlerman2933d012015-04-24 18:34:271136 "signin/fake_gaia_cookie_manager_service.cc",
1137 "signin/fake_gaia_cookie_manager_service.h",
Brett Wilson052ce132014-09-12 19:46:291138 "signin/fake_profile_oauth2_token_service_builder.cc",
1139 "signin/fake_profile_oauth2_token_service_builder.h",
droger4f489e62015-07-24 19:27:591140 "signin/fake_signin_manager_builder.cc",
1141 "signin/fake_signin_manager_builder.h",
Brett Wilson052ce132014-09-12 19:46:291142 "ssl/ssl_client_auth_requestor_mock.cc",
1143 "ssl/ssl_client_auth_requestor_mock.h",
maxbogued2ea9242015-10-29 01:24:521144 "sync/profile_sync_test_util.cc",
1145 "sync/profile_sync_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291146 ]
1147
brettwbc8b2a22015-07-28 18:24:421148 configs += [ "//build/config:precompiled_headers" ]
1149
Brett Wilsone53895272014-09-23 23:41:461150 public_deps = [
Brett Wilson052ce132014-09-12 19:46:291151 ":browser",
Brett Wilsone53895272014-09-23 23:41:461152 "//chrome/browser/ui:test_support",
1153 ]
1154 deps = [
agrieved7a71c882015-11-20 19:53:281155 "//chrome/app/theme:theme_resources",
Brett Wilson052ce132014-09-12 19:46:291156 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:291157 "//chrome/common",
1158 "//chrome/common/safe_browsing:proto",
vabra6fded22015-12-10 09:06:551159 "//components/browser_sync/browser:test_support",
knn062cdbb2015-06-26 18:18:421160 "//components/invalidation/impl",
1161 "//components/invalidation/impl:test_support",
Brett Wilson052ce132014-09-12 19:46:291162 "//components/password_manager/core/browser:test_support",
brettw9f7802a22016-01-30 06:40:171163 "//components/prefs:test_support",
Brett Wilson052ce132014-09-12 19:46:291164 "//components/search_engines:test_support",
sdefresne875d0782015-09-16 12:01:281165 "//components/syncable_prefs:test_support",
jitendra.ks94c0b962015-08-10 08:24:091166 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
carlosk282c4372016-02-02 14:53:491167 "//content/test:browsertest_base",
Brett Wilson052ce132014-09-12 19:46:291168 "//content/test:test_support",
Brett Wilson052ce132014-09-12 19:46:291169 "//net:test_support",
1170 "//skia",
1171 "//testing/gmock",
1172 "//testing/gtest",
1173 "//ui/gfx",
1174 ]
1175
Brett Wilson052ce132014-09-12 19:46:291176 if (!is_ios) {
1177 deps += [
1178 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:291179 "//google_apis:test_support",
1180 ]
1181 }
1182
thestig354985d2015-09-28 20:55:001183 if (is_android) {
1184 sources -= [
thestig259da0b2015-10-07 18:09:081185 "download/test_download_shelf.cc",
1186 "download/test_download_shelf.h",
1187 "profile_resetter/profile_resetter_test_base.cc",
1188 "profile_resetter/profile_resetter_test_base.h",
1189 "sessions/session_restore_test_helper.cc",
1190 "sessions/session_restore_test_helper.h",
thestig354985d2015-09-28 20:55:001191 "sessions/session_service_test_helper.cc",
1192 "sessions/session_service_test_helper.h",
thestig354985d2015-09-28 20:55:001193 ]
1194 }
1195
James Robinson2ed4d692014-09-17 05:20:581196 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:381197 sources += [
1198 "extensions/extension_action_test_util.cc",
1199 "extensions/extension_action_test_util.h",
1200 ]
scottmga266f952014-12-03 20:47:101201 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:581202 }
1203
Brett Wilson052ce132014-09-12 19:46:291204 if (is_chromeos) {
1205 sources += [
1206 "chromeos/app_mode/fake_cws.cc",
1207 "chromeos/app_mode/fake_cws.h",
1208 "chromeos/file_manager/fake_disk_mount_manager.cc",
1209 "chromeos/file_manager/fake_disk_mount_manager.h",
1210 "chromeos/input_method/mock_candidate_window_controller.cc",
1211 "chromeos/input_method/mock_candidate_window_controller.h",
1212 "chromeos/input_method/mock_input_method_engine.cc",
1213 "chromeos/input_method/mock_input_method_engine.h",
1214 "chromeos/input_method/mock_input_method_manager.cc",
1215 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511216 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1217 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391218 "chromeos/login/session/user_session_manager_test_api.cc",
1219 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291220 "chromeos/login/test/js_checker.cc",
1221 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591222 "chromeos/login/test/oobe_screen_waiter.cc",
1223 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291224 "chromeos/login/ui/mock_login_display.cc",
1225 "chromeos/login/ui/mock_login_display.h",
1226 "chromeos/login/ui/mock_login_display_host.cc",
1227 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511228 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1229 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301230 "chromeos/login/users/fake_chrome_user_manager.cc",
1231 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511232 "chromeos/login/users/fake_supervised_user_manager.cc",
1233 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511234 "chromeos/login/users/mock_user_manager.cc",
1235 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291236 "chromeos/net/network_portal_detector_test_utils.cc",
1237 "chromeos/net/network_portal_detector_test_utils.h",
1238 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1239 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1240 "chromeos/policy/device_policy_builder.cc",
1241 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071242 "chromeos/policy/fake_consumer_management_service.cc",
1243 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291244 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1245 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071246 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1247 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291248 "chromeos/policy/stub_enterprise_install_attributes.cc",
1249 "chromeos/policy/stub_enterprise_install_attributes.h",
1250 "chromeos/settings/device_settings_test_helper.cc",
1251 "chromeos/settings/device_settings_test_helper.h",
1252 "chromeos/system/fake_input_device_settings.cc",
1253 "chromeos/system/fake_input_device_settings.h",
1254 ]
1255 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:171256 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291257 }
1258
1259 if (enable_configuration_policy) {
1260 sources += [
1261 "policy/test/local_policy_test_server.cc",
1262 "policy/test/local_policy_test_server.h",
1263 ]
Brett Wilsone53895272014-09-23 23:41:461264 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291265 "//components/policy:policy_component_test_support",
1266 "//components/policy:test_support",
1267 ]
Brett Wilson052ce132014-09-12 19:46:291268 }
1269
1270 if (safe_browsing_mode == 1) {
1271 sources += [
1272 "extensions/fake_safe_browsing_database_manager.cc",
1273 "extensions/fake_safe_browsing_database_manager.h",
1274 ]
1275 }
1276
1277 if (enable_extensions) {
1278 sources += [
Brett Wilson052ce132014-09-12 19:46:291279 "extensions/api/messaging/native_messaging_test_util.cc",
1280 "extensions/api/messaging/native_messaging_test_util.h",
Brett Wilson052ce132014-09-12 19:46:291281 "extensions/mock_extension_special_storage_policy.cc",
1282 "extensions/mock_extension_special_storage_policy.h",
1283 "extensions/test_blacklist.cc",
1284 "extensions/test_blacklist.h",
1285 "extensions/test_blacklist_state_fetcher.cc",
1286 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511287 "extensions/test_extension_dir.cc",
1288 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591289 "extensions/test_extension_environment.cc",
1290 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291291 "extensions/test_extension_prefs.cc",
1292 "extensions/test_extension_prefs.h",
1293 "extensions/test_extension_service.cc",
1294 "extensions/test_extension_service.h",
1295 "extensions/test_extension_system.cc",
1296 "extensions/test_extension_system.h",
1297 "media_galleries/media_galleries_test_util.cc",
1298 "media_galleries/media_galleries_test_util.h",
1299 ]
lukasza8acc4eb2015-07-20 20:57:201300 deps += [
1301 "//components/drive:test_support",
1302 "//components/storage_monitor:test_support",
1303 ]
Brett Wilson052ce132014-09-12 19:46:291304 }
1305
1306 if (enable_mdns) {
1307 sources += [
1308 "local_discovery/test_service_discovery_client.cc",
1309 "local_discovery/test_service_discovery_client.h",
1310 ]
1311 }
1312
1313 if (enable_app_list) {
1314 sources += [
1315 "ui/app_list/test/chrome_app_list_test_support.cc",
1316 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511317 "ui/app_list/test/test_app_list_controller_delegate.cc",
1318 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291319 ]
1320 }
Brett Wilson052ce132014-09-12 19:46:291321}
sdefresned967d552015-07-16 08:34:351322
thestig65d7c5c2015-10-06 18:13:471323# In GYP this is part of test_support_ui.
1324source_set("test_support_ui") {
1325 testonly = true
1326
1327 # Always include this via the main test support UI target.
1328 visibility = [ "//chrome/test:test_support_ui" ]
1329
1330 sources = [
1331 "password_manager/password_manager_test_base.cc",
1332 "password_manager/password_manager_test_base.h",
shadi3ca8c9d2016-01-19 18:54:391333 "signin/token_revoker_test_utils.cc",
1334 "signin/token_revoker_test_utils.h",
thestig65d7c5c2015-10-06 18:13:471335 "ui/webui/signin/login_ui_test_utils.cc",
1336 "ui/webui/signin/login_ui_test_utils.h",
1337 ]
1338
1339 configs += [ "//build/config:precompiled_headers" ]
1340
1341 deps = [
1342 "//components/metrics:test_support",
vabr22c9e4f42015-10-20 15:34:091343 "//components/password_manager/core/browser:test_support",
thestig65d7c5c2015-10-06 18:13:471344 "//skia",
1345 "//testing/gtest",
1346 ]
1347}
1348
sdefresned967d552015-07-16 08:34:351349if (enable_rlz_support) {
1350 source_set("rlz") {
1351 sources =
1352 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1353 deps = [
1354 "//components/google/core/browser",
1355 "//components/omnibox/browser",
1356 "//components/rlz",
1357 "//components/search_engines",
1358 "//rlz:rlz_lib",
1359 ]
1360 }
1361}