blob: 90973f330ecb5ec26b667d2af3c5581c1b37af37 [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")
pkotwicz127726f2015-05-29 15:20:129import("//third_party/protobuf/proto_library.gni")
scottmga266f952014-12-03 20:47:1010
James Robinson2ed4d692014-09-17 05:20:5811# //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
12# produces a conflict for the "grit" template so we have to only include one.
13if (is_android) {
14 import("//build/config/android/rules.gni")
15} else {
16 import("//tools/grit/grit_rule.gni")
17}
cmasone0a9e4ca2014-10-16 16:40:4918if (is_desktop_linux) {
19 import("//build/config/linux/pkg_config.gni")
20}
[email protected]77ce8022014-06-16 19:29:5621
amistryf269d3b2015-06-09 19:18:3922declare_args() {
mgiuca3cd6a822015-08-07 00:46:1323 # 'Ok Google' hotwording is disabled by default. Set to true to enable. (This
24 # will download a closed-source NaCl module at startup.) Chrome-branded
25 # ChromeOS builds have this enabled by default.
26 enable_hotwording = is_chrome_branded && is_chromeos
amistryf269d3b2015-06-09 19:18:3927}
28
[email protected]77ce8022014-06-16 19:29:5629about_credits_file = "$target_gen_dir/about_credits.html"
30additional_modules_list_file =
31 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
32
scottmga266f952014-12-03 20:47:1033gypi_values = exec_script("//build/gypi_to_gn.py",
34 [ rebase_path("../chrome_browser.gypi") ],
35 "scope",
36 [ "../chrome_browser.gypi" ])
[email protected]dffd8a912014-06-30 23:24:3137
mmenkede134672015-08-18 01:33:3938if (is_win) {
39 # This is in a separate config so the flags can be applied to dependents.
40 # ldflags in GN aren't automatically inherited.
41 config("browser_win_linker_flags") {
42 libs = [
43 "credui.lib",
44 "netapi32.lib",
45 "ndfapi.lib", # Used by browser/net/net_error_diagnostics_dialog_win.h
46 ]
47 ldflags = [ "/DELAYLOAD:ndfapi.dll" ]
48 }
49}
50
cmasone0a9e4ca2014-10-16 16:40:4951if (is_desktop_linux) {
brettwa68ea2b2015-02-01 02:54:0752 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
53 # will set this up.
cmasone0a9e4ca2014-10-16 16:40:4954 pkg_config("gnome_keyring") {
55 packages = [ "gnome-keyring-1" ]
brettwa68ea2b2015-02-01 02:54:0756 defines = [
57 "USE_GNOME_KEYRING",
58 "DLOPEN_GNOME_KEYRING",
59 ]
60 ignore_libs = true
61 }
62
63 # If you want to link gnome-keyring directly (use only for unit tests)
64 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
65 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
66 # are just itself and common gnome ones we link already, so we can get away
67 # with additionally just coding the library name here.
68 config("gnome_keyring_direct") {
69 libs = [ "gnome-keyring" ]
cmasone0a9e4ca2014-10-16 16:40:4970 }
71}
72
brettw44a5cf82015-04-08 19:48:2273source_set("browser") {
apavlove749bca2014-09-30 11:07:4174 configs += [
75 "//build/config/compiler:wexit_time_destructors",
brettwbc8b2a22015-07-28 18:24:4276 "//build/config:precompiled_headers",
apavlove749bca2014-09-30 11:07:4177 "//third_party/WebKit/public:debug_devtools",
78 ]
[email protected]dffd8a912014-06-30 23:24:3179 defines = []
80 sources = []
81 libs = []
82 ldflags = []
83
84 # iOS/non-iOS shared deps. New dependencies should generally be added in the
85 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:4686 public_deps = [
87 "//components/autofill/core/browser",
88 "//content/public/browser",
89 "//sql",
90 "//sync",
91 ]
[email protected]dffd8a912014-06-30 23:24:3192 deps = [
93 "//base/allocator",
94 "//chrome:extra_resources",
95 "//chrome:resources",
96 "//chrome:strings",
[email protected]797b25042014-07-01 23:54:1797 "//chrome/app:generated_resources_map",
[email protected]855b7de2014-07-08 21:02:4598 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:1799 "//chrome/app/theme:theme_resources",
100 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:30101 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:31102 "//chrome/common",
[email protected]604828c2014-07-02 20:39:12103 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:01104 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:03105 "//components/bookmarks/managed",
[email protected]b9f4c682014-07-10 22:00:37106 "//components/captive_portal",
estark334673f42015-09-08 14:51:39107 "//components/certificate_reporting",
[email protected]fca567b2014-07-02 17:37:34108 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:01109 "//components/component_updater",
blundell64fedf12015-08-25 12:22:27110 "//components/compression",
vabrfc325fa2015-04-10 16:24:45111 "//components/content_settings/content/common",
vasiliiac461392014-09-18 11:35:17112 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:54113 "//components/content_settings/core/common",
[email protected]478ed232014-08-19 02:10:55114 "//components/crx_file",
megjablon3476e042014-10-14 19:21:59115 "//components/data_reduction_proxy/core/browser",
reillyg4a849272015-02-20 21:38:43116 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:25117 "//components/domain_reliability",
noyaudaaac3a2014-10-08 11:11:11118 "//components/enhanced_bookmarks",
sdefresnecbacfd72015-03-20 12:11:32119 "//components/favicon/core",
sdefresne001b10de2015-03-20 18:41:46120 "//components/favicon_base",
[email protected]abd4b682014-07-16 20:26:30121 "//components/gcm_driver",
jianli2104ce612015-05-06 00:24:34122 "//components/gcm_driver/instance_id",
Brett Wilson1c693992014-08-25 19:10:01123 "//components/google/core/browser",
fsamuelaf5bf6d12015-05-28 16:29:54124 "//components/guest_view/browser",
erikchen332265b2014-11-14 19:59:52125 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25126 "//components/history/core/browser",
127 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01128 "//components/infobars/core",
knn062cdbb2015-06-26 18:18:42129 "//components/invalidation/impl",
gunsch1afc65172014-09-16 00:03:32130 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34131 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06132 "//components/metrics:profiler",
Brett Wilson1c693992014-08-25 19:10:01133 "//components/metrics/proto:proto",
rsleevic327b48f82015-04-30 02:03:25134 "//components/mime_util",
[email protected]fca567b2014-07-02 17:37:34135 "//components/navigation_metrics",
Brett Wilson1c693992014-08-25 19:10:01136 "//components/network_time",
fgorskife7b92f2015-06-15 19:19:40137 "//components/offline_pages",
blundell2102f7c2015-07-09 10:00:53138 "//components/omnibox/browser",
[email protected]fca567b2014-07-02 17:37:34139 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00140 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01141 "//components/password_manager/core/browser",
142 "//components/password_manager/core/common",
[email protected]fca567b2014-07-02 17:37:34143 "//components/policy:policy_component",
stevenjbb237e2ae2015-07-02 22:02:11144 "//components/proxy_config",
[email protected]fca567b2014-07-02 17:37:34145 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37146 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01147 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40148 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01149 "//components/search_engines",
150 "//components/search_provider_logos",
felt20e0f2002015-07-31 15:27:36151 "//components/security_interstitials/core",
[email protected]abd4b682014-07-16 20:26:30152 "//components/signin/core/browser",
153 "//components/startup_metric_utils",
[email protected]797b25042014-07-01 23:54:17154 "//components/strings",
mathp60143a32014-10-08 14:52:45155 "//components/suggestions",
Brett Wilson1c693992014-08-25 19:10:01156 "//components/sync_driver",
zhenwecedcf22015-08-18 23:37:46157 "//components/tracing:startup_tracing",
[email protected]b9f4c682014-07-10 22:00:37158 "//components/translate/core/browser",
159 "//components/translate/core/common",
brettw0741cb1c2015-08-21 22:06:00160 "//components/ui/zoom",
sdefresnec083d1f2015-04-17 21:12:18161 "//components/undo",
sorin39eab2f2015-01-06 01:09:08162 "//components/update_client",
rsleevi24f64dc22015-08-07 21:39:21163 "//components/url_formatter",
[email protected]fca567b2014-07-02 17:37:34164 "//components/user_prefs",
jitendra.ks94c0b962015-08-10 08:24:09165 "//components/user_prefs/tracked:user_prefs_tracked",
isherman3be67db2014-10-24 05:57:44166 "//components/variations",
167 "//components/variations/net",
blundellb50ad702015-08-27 17:08:29168 "//components/variations/service",
[email protected]bf4545f2014-07-11 19:49:46169 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56170 "//components/webdata_services",
drogerf8479942014-11-21 17:47:53171 "//components/web_resource",
[email protected]dffd8a912014-06-30 23:24:31172 "//content/public/browser",
173 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12174 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31175 "//crypto",
[email protected]604828c2014-07-02 20:39:12176 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56177 "//gpu/config",
[email protected]dffd8a912014-06-30 23:24:31178 "//skia",
179 "//sql",
180 "//sync",
[email protected]797b25042014-07-01 23:54:17181 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31182 "//third_party/icu",
183 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22184 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31185 "//third_party/widevine/cdm:version_h",
186 "//third_party/zlib",
187 "//third_party/zlib:minizip",
188 "//third_party/zlib:zip",
189 "//ui/base",
cjhopman09981a92014-10-27 17:11:18190 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31191 "//ui/gfx",
192 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36193 "//ui/message_center",
194 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31195 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17196 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31197 ]
198
scottmga266f952014-12-03 20:47:10199 sources +=
200 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00201
[email protected]dffd8a912014-06-30 23:24:31202 if (!is_ios) {
scottmga266f952014-12-03 20:47:10203 sources +=
204 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59205 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10206 ".",
207 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59208 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10209 ".",
210 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18211 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
212 ".",
213 "//chrome")
214 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
215 ".",
216 "//chrome")
benwellsedf5e082015-04-23 02:45:14217 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
218 ".",
219 "//chrome")
scottmga266f952014-12-03 20:47:10220 sources +=
221 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
222 sources +=
223 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
224 sources +=
225 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
226 sources +=
227 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
228 sources +=
229 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59230 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10231 ".",
232 "//chrome")
mlamouri4e372022015-03-29 14:51:06233 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
234 ".",
235 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59236 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10237 ".",
238 "//chrome")
239 sources +=
240 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59241 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10242 ".",
243 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59244 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10245 ".",
246 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59247 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10248 ".",
249 "//chrome")
250 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18251 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
252 sources +=
scottmga266f952014-12-03 20:47:10253 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
254 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18255 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
256 sources +=
scottmga266f952014-12-03 20:47:10257 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59258 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10259 ".",
260 "//chrome")
261
[email protected]dffd8a912014-06-30 23:24:31262 deps += [
Brett Wilson1c693992014-08-25 19:10:01263 "//apps",
[email protected]dffd8a912014-06-30 23:24:31264 "//cc",
brettwca934582015-02-24 21:50:27265 "//chrome/app:generated_resources_map",
266 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30267 "//chrome/browser/devtools",
brettwca934582015-02-24 21:50:27268 "//chrome/browser/resources:component_extension_resources",
tfarina04d426612015-08-18 16:42:33269 "//chrome/common/net",
[email protected]55699f392014-08-20 22:16:30270 "//chrome/installer/util",
jitendra.ks4f2e9112015-08-14 11:40:26271 "//components/about_handler",
oshimaf65398422014-11-18 23:30:42272 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37273 "//components/autofill/content/browser",
lazyboy14082d22015-04-02 01:04:58274 "//components/browsing_data",
jeremyim364ac1182015-03-03 18:49:43275 "//components/data_reduction_proxy/content/browser",
dgozmanec2b982a2015-04-28 10:36:39276 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46277 "//components/devtools_http_handler",
mdjones1c47b052015-07-22 19:15:39278 "//components/dom_distiller/content:content_browser",
tfarina041134472015-09-02 15:29:38279 "//components/error_page/common",
sdefresne001b10de2015-03-20 18:41:46280 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04281 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34282 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30283 "//components/navigation_interception",
tfarina041134472015-09-02 15:29:38284 "//components/network_hints/common",
[email protected]55699f392014-08-20 22:16:30285 "//components/password_manager/content/browser",
vabr5410d0b2015-08-07 11:02:04286 "//components/password_manager/sync/browser",
dbeam155ac972015-04-20 15:34:48287 "//components/plugins/common",
abhishek.a2171c612852015-08-31 10:48:19288 "//components/proxy_config",
bauerbf0e64aa2015-06-25 15:54:07289 "//components/safe_json",
brettwa22cb3b2015-04-30 20:23:12290 "//components/sessions",
[email protected]abd4b682014-07-16 20:26:30291 "//components/storage_monitor",
[email protected]b9f4c682014-07-10 22:00:37292 "//components/translate/content/browser",
sdefresne44eb1f22015-08-06 08:51:55293 "//components/upload_list",
[email protected]fca567b2014-07-02 17:37:34294 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31295 "//components/visitedlink/browser",
296 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18297 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37298 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08299 "//content/app/resources",
[email protected]55699f392014-08-20 22:16:30300 "//media",
rockot50dc5692015-07-08 01:57:26301 "//mojo/application/public/cpp",
cjhopman09981a92014-10-27 17:11:18302 "//mojo/common",
[email protected]604828c2014-07-02 20:39:12303 "//mojo/environment:chromium",
Brett Wilson83fd4242014-09-02 19:45:33304 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31305 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15306 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24307 "//storage/common",
erga3c614c92015-04-03 17:47:51308 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46309 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31310 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34311 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31312 "//third_party/libyuv",
blundell70fb547672015-01-19 17:18:33313 "//third_party/mojo/src/mojo/edk/system",
314 "//third_party/mojo/src/mojo/public/cpp/bindings",
315 "//third_party/mojo/src/mojo/public/js",
[email protected]dffd8a912014-06-30 23:24:31316 "//third_party/re2",
317 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33318 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12319 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31320 "//ui/gl",
brettwca934582015-02-24 21:50:27321 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31322 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12323 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34324 "//v8",
[email protected]dffd8a912014-06-30 23:24:31325 ]
paulmeyer27b328b2015-06-17 21:26:12326
327 if (toolkit_views) {
328 deps += [ "//ui/views" ]
329 }
[email protected]dffd8a912014-06-30 23:24:31330 } else { # iOS
scottmga266f952014-12-03 20:47:10331 sources +=
332 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
333 sources +=
334 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
335 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31336 libs += [
337 "CoreTelephony.framework",
338 "CoreText.framework",
339 "MobileCoreServices.framework",
340 "QuartzCore.framework",
341 ]
scottmga266f952014-12-03 20:47:10342 ldflags += [
343 "-weak_framework",
344 "CoreImage",
345 ]
[email protected]dffd8a912014-06-30 23:24:31346 }
347
348 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10349 sources +=
350 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31351 }
mmenkede134672015-08-18 01:33:39352 if (!is_win && !is_mac && !is_ios) {
353 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ]
354 }
[email protected]dffd8a912014-06-30 23:24:31355 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
356 sources += [
357 "net/disk_cache_dir_policy_handler.cc",
358 "net/disk_cache_dir_policy_handler.h",
359 ]
360 }
361 if (!is_android && !is_ios && enable_configuration_policy) {
362 sources += [
363 "download/download_dir_policy_handler.cc",
364 "download/download_dir_policy_handler.h",
365 ]
366 }
367 if (is_mac) {
scottmga266f952014-12-03 20:47:10368 sources +=
369 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31370 deps += [
brettw624c82d2015-07-23 00:31:50371 #"app_shim" TODO(GYP) bug 512600
372 #"browser_app_shim" TODO(GYP) bug 512600
[email protected]dffd8a912014-06-30 23:24:31373 ]
374 }
[email protected]dffd8a912014-06-30 23:24:31375 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46376 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52377 deps += [
[email protected]cc5b3be2014-08-15 23:24:52378 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30379 "//chrome/common/extensions/api",
380 "//chrome/common/extensions/api:api_registration",
lukasza8acc4eb2015-07-20 20:57:20381 "//components/drive:drive",
msarda4c408ff2015-04-22 14:27:56382 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44383 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50384 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06385 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52386 ]
[email protected]dffd8a912014-06-30 23:24:31387 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10388 ".",
389 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31390 }
391 if (enable_background) {
392 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10393 ".",
394 "//chrome")
jamesr29ea2d122014-10-23 10:30:27395 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31396 sources -= [ "background/background_mode_manager_aura.cc" ]
397 }
398 }
399 if (enable_task_manager) {
400 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10401 ".",
402 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31403 }
404 if (enable_spellcheck) {
405 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10406 ".",
407 "//chrome")
dylanking34c72442015-07-23 23:19:58408 if (!is_android) {
409 deps += [ "//third_party/hunspell" ]
410 }
[email protected]dffd8a912014-06-30 23:24:31411 }
412 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10413 sources +=
414 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
dpranke6065cf72015-02-26 03:30:58415 deps += [ "//components/nacl:nacl_browser" ]
[email protected]dffd8a912014-06-30 23:24:31416 }
apavlove749bca2014-09-30 11:07:41417
[email protected]dffd8a912014-06-30 23:24:31418 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10419 sources +=
420 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
421 ".",
422 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31423 deps += [
[email protected]604828c2014-07-02 20:39:12424 "//components/policy",
[email protected]797b25042014-07-01 23:54:17425 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31426 ]
427 if (!is_ios) {
scottmga266f952014-12-03 20:47:10428 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
429 ".",
430 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31431 }
432 if (!is_chromeos) {
433 sources += rebase_path(
scottmga266f952014-12-03 20:47:10434 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
435 ".",
436 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31437 }
438 if (is_win || is_mac || is_desktop_linux) {
439 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10440 ".",
441 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31442 }
cjhopman09981a92014-10-27 17:11:18443 if (is_android || is_ios) {
444 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10445 ".",
446 "//chrome")
cjhopman09981a92014-10-27 17:11:18447 } else {
amistry6e1ed1b2015-03-12 05:24:01448 deps += [
449 "//chrome/browser/policy:path_parser",
450 "//net:net_browser_services",
451 ]
[email protected]dffd8a912014-06-30 23:24:31452 }
453 } else {
454 # Configuration policy disabled.
455 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10456 ".",
457 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31458 }
459
460 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10461 sources +=
462 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31463 deps += [
James Robinson2ed4d692014-09-17 05:20:58464 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31465 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14466 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31467 ]
468 }
469 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10470 sources +=
stuartmorgan1b3df822014-12-08 14:36:11471 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10472 ".",
473 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31474 deps += [
[email protected]fca567b2014-07-02 17:37:34475 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45476 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34477 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31478 ]
479 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10480 sources +=
stuartmorgan1b3df822014-12-08 14:36:11481 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10482 ".",
483 "//chrome")
scottmga266f952014-12-03 20:47:10484 deps += [ "//chrome/common/safe_browsing:proto" ]
grtc1d1b752015-09-05 13:26:41485 if (is_win) {
486 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto" ]
487 }
nparkerb2cd5ee2015-05-13 01:12:01488 } else if (safe_browsing_mode == 3) {
489 sources += rebase_path(
490 gypi_values.chrome_browser_safe_browsing_mobile_extended_sources,
491 ".",
492 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31493 }
494 }
495
amistryf269d3b2015-06-09 19:18:39496 if (enable_hotwording) {
497 defines += [ "ENABLE_HOTWORDING" ]
498 }
499
[email protected]dffd8a912014-06-30 23:24:31500 if (is_linux) {
mostynbea514682015-08-18 22:08:56501 deps += [ "//device/media_transfer_protocol" ]
[email protected]dffd8a912014-06-30 23:24:31502 }
mostynbea514682015-08-18 22:08:56503
504 if (use_udev) {
505 deps += [ "//device/udev_linux" ]
506 }
507
[email protected]dffd8a912014-06-30 23:24:31508 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47509 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31510 }
511
512 if (is_chromeos) {
513 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10514 ".",
515 "//chrome")
516 deps += [ "//chrome/browser/chromeos" ]
estade8c0780f2015-08-21 23:36:41517 } else {
518 # Non-ChromeOS.
519 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
520 ".",
521 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31522 }
523
yiyaoliubcd08dc22014-12-10 05:56:10524 if (is_ios) {
525 sources -= [
526 "metrics/signin_status_metrics_provider_base.cc",
527 "metrics/signin_status_metrics_provider_base.h",
528 ]
529 }
530
mukai8c99b882014-10-15 03:07:59531 if (is_chromeos || is_ios) {
532 sources -= [
533 "metrics/signin_status_metrics_provider.cc",
534 "metrics/signin_status_metrics_provider.h",
535 ]
536 }
537
[email protected]dffd8a912014-06-30 23:24:31538 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12539 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31540 }
541 if (is_desktop_linux) {
542 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10543 ".",
544 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49545 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31546 }
dvadym34532022015-01-22 15:42:51547 if (is_desktop_linux) {
548 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
549 ".",
550 "//chrome")
551 defines += [ "USE_LIBSECRET" ]
552 }
[email protected]dffd8a912014-06-30 23:24:31553 if (use_aura) {
scottmga266f952014-12-03 20:47:10554 sources +=
555 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31556 deps += [
[email protected]fca567b2014-07-02 17:37:34557 "//ui/aura",
558 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12559 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31560 ]
561 }
562 if (ui_compositor_image_transport) {
563 deps += [ "//ui/gl" ]
564 }
565
[email protected]855b7de2014-07-08 21:02:45566 if (use_ash) {
scottmga266f952014-12-03 20:47:10567 sources +=
568 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45569 }
570
[email protected]dffd8a912014-06-30 23:24:31571 if (use_x11) {
scottmga266f952014-12-03 20:47:10572 sources +=
573 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23574 } else {
575 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31576 }
577 if (is_posix && !is_mac && !is_ios) {
578 sources += [
rseseka0a7a042014-09-18 23:59:20579 "//chrome/app/chrome_crash_reporter_client.cc",
580 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31581 ]
582 deps += [
Robert Sesekabcd8102014-08-27 16:12:44583 "//components/crash/app",
584 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31585 ]
586 }
587 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10588 sources +=
589 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59590 if (is_chromeos) {
591 sources -= [ "net/nss_context_linux.cc" ]
592 }
[email protected]dffd8a912014-06-30 23:24:31593 }
594 if (enable_notifications) {
595 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10596 ".",
597 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31598 if (!is_android) {
599 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11600 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10601 ".",
602 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31603 }
604 }
605 if (enable_themes) {
scottmga266f952014-12-03 20:47:10606 sources +=
607 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31608 }
609
vitalybuka93eea402014-11-05 23:47:15610 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31611 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11612 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10613 ".",
614 "//chrome")
spang5cc72542015-08-04 19:47:11615 deps += [
616 "//printing",
brettwd649f6b2015-08-18 20:58:51617 "//components/printing/browser",
spang5cc72542015-08-04 19:47:11618 ]
619
vitalybuka36259ca2014-08-28 23:42:24620 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31621 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10622 ".",
623 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31624 }
vitalybuka93eea402014-11-05 23:47:15625 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31626 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11627 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10628 ".",
629 "//chrome")
vitalybuka93eea402014-11-05 23:47:15630 } else {
[email protected]dffd8a912014-06-30 23:24:31631 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10632 sources +=
stuartmorgan1b3df822014-12-08 14:36:11633 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10634 ".",
635 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31636 }
637 }
638 if (enable_captive_portal_detection) {
639 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10640 ".",
641 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31642 }
643 if (enable_session_service) {
644 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10645 ".",
646 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31647 }
648
thestigdc377202014-10-28 22:06:02649 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10650 sources +=
651 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02652 }
653
[email protected]dffd8a912014-06-30 23:24:31654 if (is_android || is_ios) {
655 # Mobile.
scottmga266f952014-12-03 20:47:10656 sources +=
657 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31658 } else {
659 # Non-mobile.
660 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10661 ".",
662 "//chrome")
reillyge471fab2014-08-29 01:58:43663 deps += [
sdefresnebbf563c2015-03-17 11:09:09664 "//components/feedback",
juncai1b1152562015-09-04 02:36:08665 "//components/webusb",
reillyge471fab2014-08-29 01:58:43666 "//device/core",
rockot50dc5692015-07-08 01:57:26667 "//device/devices_app/public/cpp",
668 "//device/devices_app/public/cpp:factory",
reillygd77718d2014-09-04 00:57:56669 "//device/usb",
reillyge471fab2014-08-29 01:58:43670 ]
[email protected]dffd8a912014-06-30 23:24:31671 }
672
fserb1c2db4c2015-07-16 17:14:49673 if (!is_official_build) {
674 sources += [
675 "search/local_files_ntp_source.cc",
676 "search/local_files_ntp_source.h",
677 ]
678 }
679
[email protected]dffd8a912014-06-30 23:24:31680 if (is_android) {
scottmga266f952014-12-03 20:47:10681 sources +=
682 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
twellingtoncaf0eb752015-06-01 16:19:50683 sources += rebase_path(gypi_values.chrome_browser_bookmark_android_sources,
684 ".",
685 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31686 deps += [
pkotwicz127726f2015-05-29 15:20:12687 ":client_discourse_context_proto",
688 ":delta_file_proto",
James Robinson2ed4d692014-09-17 05:20:58689 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30690 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18691 "//components/enhanced_bookmarks",
twifkak8c9f7502015-06-25 02:12:57692 "//components/precache/content",
693 "//components/precache/core",
estadee37f8222014-11-07 21:35:22694 "//components/resources:components_resources",
mathiash3ecfdfa2015-04-13 15:06:07695 "//components/service_tab_launcher",
blundell11d93bc2015-07-31 12:33:12696 "//components/toolbar",
cjhopman09981a92014-10-27 17:11:18697 "//components/web_contents_delegate_android",
698 "//third_party/android_opengl/etc1",
fdegans34f31e272015-05-22 16:59:03699 "//third_party/android_tools:cpu_features",
twellington0bc61492015-01-30 20:14:13700 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31701 ]
702 deps -= [
[email protected]fca567b2014-07-02 17:37:34703 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30704 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30705 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31706 ]
megjablon5effca2e2015-02-13 23:54:07707 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
rseseke59ea892015-03-19 22:27:44708
709 if (use_seccomp_bpf) {
710 defines += [ "USE_SECCOMP_BPF" ]
rsesek65d31352015-06-08 22:53:44711 deps += [ "//sandbox/linux:seccomp_bpf" ]
rseseke59ea892015-03-19 22:27:44712 }
[email protected]dffd8a912014-06-30 23:24:31713 }
714
715 if (is_mac) {
716 deps += [
[email protected]6b5d2f92014-07-30 00:40:03717 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03718 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31719 ]
720 libs += [
721 "Accelerate.framework",
722 "AddressBook.framework",
723 "AudioUnit.framework",
724 "DiskArbitration.framework",
725 "IOKit.framework",
726 "ImageCaptureCore.framework",
727 "OpenGL.framework",
728 "QuartzCore.framework",
729 "SecurityInterface.framework",
730 ]
731 }
732
733 if (enable_rlz) {
sdefresned967d552015-07-16 08:34:35734 deps += [ ":rlz" ]
[email protected]dffd8a912014-06-30 23:24:31735 }
736
737 # TODO(GYP)
738 # Temporary fix to break the browser target into smaller chunks so it
739 # will link with goma builds.
740 #["OS=="win" and chromium_win_pch==0", {
741 # "msvs_shard": 4,
742 #}],
743
744 if (is_win) {
scottmga266f952014-12-03 20:47:10745 sources +=
746 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
Brett Wilsone53895272014-09-23 23:41:46747 public_deps += [
748 "//ui/views",
749 "//ui/views/controls/webview",
750 ]
[email protected]dffd8a912014-06-30 23:24:31751 deps += [
vchigrin9593e7a2015-01-27 10:08:19752 ":chrome_process_finder",
[email protected]55699f392014-08-20 22:16:30753 "//chrome:version_header",
754 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19755 "//chrome_elf",
756 "//chrome_elf:constants",
757 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32758 "//components/browser_watcher",
759 "//components/browser_watcher:browser_watcher_client",
vchigrinbbc23e72015-01-21 22:49:23760 "//google_update",
[email protected]55699f392014-08-20 22:16:30761 "//third_party/iaccessible2",
762 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31763 "//third_party/wtl",
vchigrin88ed6f42015-01-17 11:56:42764 "//ui/metro_viewer",
765 "//win8:metro_viewer",
[email protected]dffd8a912014-06-30 23:24:31766 ]
mmenkede134672015-08-18 01:33:39767
768 all_dependent_configs = [ ":browser_win_linker_flags" ]
769
grt235b3f092015-05-27 21:42:48770 if (!is_chrome_branded) {
771 deps -= [ "//google_update" ]
772 sources -= [
773 "google/did_run_updater_win.cc",
774 "google/did_run_updater_win.h",
775 "google/google_update_win.cc",
776 "google/google_update_win.h",
777 ]
778 }
[email protected]dffd8a912014-06-30 23:24:31779 } else {
780 # Non-Windows.
scottmga266f952014-12-03 20:47:10781 sources +=
782 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37783 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31784 deps += [
scottmga266f952014-12-03 20:47:10785 "//ui/views",
786 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31787 ]
[email protected]dffd8a912014-06-30 23:24:31788 }
789 }
790
791 if (is_linux) {
scottmga266f952014-12-03 20:47:10792 sources +=
793 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31794 if (use_aura) {
795 configs += [
796 "//build/config/linux:dbus",
797 "//build/config/linux:fontconfig",
798 ]
scottmga266f952014-12-03 20:47:10799 deps += [ "//dbus" ]
[email protected]dffd8a912014-06-30 23:24:31800 }
801 if (use_x11) {
802 configs += [ "//build/config/linux:x11" ]
803 deps += [ "//ui/gfx/x" ]
804 }
805 }
806
807 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54808 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10809 ".",
810 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31811 }
812 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10813 sources +=
814 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
815 ".",
816 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31817 }
818 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10819 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31820 }
treib87bb89cbb2014-12-01 16:01:47821 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10822 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
823 ".",
824 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31825 }
bauerb7f3b8542015-06-29 19:56:19826 if (enable_supervised_users && !is_android && !is_ios) {
827 sources +=
828 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
829 ".",
830 "//chrome")
831 }
treib87bb89cbb2014-12-01 16:01:47832 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59833 sources += rebase_path(
scottmga266f952014-12-03 20:47:10834 gypi_values.chrome_browser_supervised_user_and_themes_sources,
835 ".",
836 "//chrome")
thestig169a6362014-11-13 20:47:59837 }
[email protected]dffd8a912014-06-30 23:24:31838 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10839 sources +=
840 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31841 }
842 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10843 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
844 ".",
845 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31846 }
847 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10848 sources +=
849 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31850 }
851 if (!enable_autofill_dialog || is_android || is_ios) {
852 sources -= [
853 "autofill/validation_rules_storage_factory.cc",
854 "autofill/validation_rules_storage_factory.h",
855 ]
856 }
857 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10858 sources +=
859 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
860 ".",
861 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31862 if (is_win || is_mac) {
863 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
864 # and Mac, so this test is meaningless. Can we merge these lists?
865 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11866 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10867 ".",
868 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31869 }
870 }
mfoltz150bb8b2015-04-09 22:30:05871 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55872 deps += [ "//chrome/browser/media/router" ]
mfoltz150bb8b2015-04-09 22:30:05873 }
[email protected]dffd8a912014-06-30 23:24:31874}
875
James Robinson2ed4d692014-09-17 05:20:58876if (is_android) {
877 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
878 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10879 sources =
880 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58881 jni_package = "chrome"
882 }
pkotwicz127726f2015-05-29 15:20:12883
884 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
885 proto_library("client_discourse_context_proto") {
886 sources = [
887 "android/proto/client_discourse_context.proto",
888 ]
889 }
890
891 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
892 proto_library("delta_file_proto") {
893 sources = [
894 "android/proto/delta_file.proto",
895 ]
896 }
James Robinson2ed4d692014-09-17 05:20:58897}
898
vchigrin9593e7a2015-01-27 10:08:19899if (is_win) {
900 source_set("chrome_process_finder") {
901 sources = [
902 "chrome_process_finder_win.cc",
903 "chrome_process_finder_win.h",
904 ]
905 deps = [
906 "//base",
907 "//chrome/browser/metro_utils",
908 "//chrome/common:constants",
909 ]
910 if (enable_configuration_policy) {
911 deps += [ "//chrome/browser/policy:path_parser" ]
912 }
913 }
914}
915
[email protected]77ce8022014-06-16 19:29:56916# GYP version: chrome/chrome_resources.gyp:chrome_resources
917# (generate_browser_resources action)
918grit("resources") {
919 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41920 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26921 outputs = [
922 "grit/browser_resources.h",
923 "browser_resources.pak",
924 ]
[email protected]77ce8022014-06-16 19:29:56925
scottmga266f952014-12-03 20:47:10926 omnibox_mojom_file =
927 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
[email protected]77ce8022014-06-16 19:29:56928
929 grit_flags = [
scottmga266f952014-12-03 20:47:10930 "-E",
931 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
932 "-E",
933 "additional_modules_list_file=" +
934 rebase_path(additional_modules_list_file, root_build_dir),
935 "-E",
936 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56937 ]
938
939 deps = [
940 ":about_credits",
941 ":chrome_internal_resources_gen",
brettwde262b02015-05-27 19:41:42942
943 # Depend only on the generated mojo bindings since we read the .mojom.js
944 # file, rather than the whole mojo target which will link the C++ bindings.
945 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
vchigrin8eede942015-01-29 09:28:15946 ]
947 inputs = [
948 omnibox_mojom_file,
[email protected]77ce8022014-06-16 19:29:56949 ]
950}
951
952# GYP version: chrome/chrome_resource.gyp:about_credits
953action("about_credits") {
954 script = "//tools/licenses.py"
955
dbeamc7776c72014-12-17 02:24:05956 inputs = [
957 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
958 # generate a .d file with all the licenses/credits that about:credits uses.
959 # Then about:credits will automatically rebuild when one of them changes.
960 # See: depfile in gn's documentation (gn help depfile).
961 "resources/about_credits.tmpl",
962 "resources/about_credits_entry.tmpl",
963 ]
964
scottmga266f952014-12-03 20:47:10965 outputs = [
966 about_credits_file,
967 ]
[email protected]77ce8022014-06-16 19:29:56968
969 args = [
970 "credits",
971 rebase_path(about_credits_file, root_build_dir),
972 ]
973}
974
975# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41976if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56977 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41978 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10979 sources = [
980 "internal/resources/additional_modules_list.input",
981 ]
982 outputs = [
983 additional_modules_list_file,
984 ]
engedy99d0e11b2014-09-30 13:32:41985 args = rebase_path(sources, root_build_dir) +
986 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56987 }
988} else {
989 group("chrome_internal_resources_gen") {
990 # Empty placeholder.
991 }
992}
Brett Wilson052ce132014-09-12 19:46:29993
994# In GYP this is part of test_support_common.
995source_set("test_support") {
996 testonly = true
997
998 # Always include this via the main test support target.
999 visibility = [ "//chrome/test:test_support" ]
1000
1001 sources = [
1002 "browsing_data/mock_browsing_data_appcache_helper.cc",
1003 "browsing_data/mock_browsing_data_appcache_helper.h",
jsbelle1fe9692015-08-22 01:02:421004 "browsing_data/mock_browsing_data_cache_storage_helper.cc",
1005 "browsing_data/mock_browsing_data_cache_storage_helper.h",
Brett Wilson052ce132014-09-12 19:46:291006 "browsing_data/mock_browsing_data_channel_id_helper.cc",
1007 "browsing_data/mock_browsing_data_channel_id_helper.h",
1008 "browsing_data/mock_browsing_data_cookie_helper.cc",
1009 "browsing_data/mock_browsing_data_cookie_helper.h",
1010 "browsing_data/mock_browsing_data_database_helper.cc",
1011 "browsing_data/mock_browsing_data_database_helper.h",
1012 "browsing_data/mock_browsing_data_file_system_helper.cc",
1013 "browsing_data/mock_browsing_data_file_system_helper.h",
1014 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
1015 "browsing_data/mock_browsing_data_flash_lso_helper.h",
1016 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
1017 "browsing_data/mock_browsing_data_indexed_db_helper.h",
1018 "browsing_data/mock_browsing_data_local_storage_helper.cc",
1019 "browsing_data/mock_browsing_data_local_storage_helper.h",
1020 "browsing_data/mock_browsing_data_quota_helper.cc",
1021 "browsing_data/mock_browsing_data_quota_helper.h",
1022 "browsing_data/mock_browsing_data_service_worker_helper.cc",
1023 "browsing_data/mock_browsing_data_service_worker_helper.h",
1024 "download/download_test_file_activity_observer.cc",
1025 "download/download_test_file_activity_observer.h",
1026 "download/test_download_shelf.cc",
1027 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:291028 "invalidation/fake_invalidation_service.cc",
1029 "invalidation/fake_invalidation_service.h",
1030 "media/fake_desktop_media_list.cc",
1031 "media/fake_desktop_media_list.h",
1032 "net/dns_probe_test_util.cc",
1033 "net/dns_probe_test_util.h",
1034 "net/url_request_mock_util.cc",
1035 "net/url_request_mock_util.h",
1036 "notifications/notification_test_util.cc",
1037 "notifications/notification_test_util.h",
1038 "password_manager/mock_password_store_service.cc",
1039 "password_manager/mock_password_store_service.h",
1040 "password_manager/null_password_store_service.cc",
1041 "password_manager/null_password_store_service.h",
gcasto686493e72015-07-08 23:53:481042 "password_manager/password_manager_test_base.cc",
1043 "password_manager/password_manager_test_base.h",
Brett Wilson052ce132014-09-12 19:46:291044 "password_manager/test_password_store_service.cc",
1045 "password_manager/test_password_store_service.h",
1046 "prefs/pref_service_mock_factory.cc",
1047 "prefs/pref_service_mock_factory.h",
1048 "profile_resetter/profile_resetter_test_base.cc",
1049 "profile_resetter/profile_resetter_test_base.h",
1050 "search_engines/template_url_service_factory_test_util.cc",
1051 "search_engines/template_url_service_factory_test_util.h",
1052 "search_engines/template_url_service_test_util.cc",
1053 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:451054 "sessions/session_restore_test_helper.cc",
1055 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291056 "sessions/session_service_test_helper.cc",
1057 "sessions/session_service_test_helper.h",
knn523bd722015-07-30 16:27:091058 "signin/fake_account_fetcher_service_builder.cc",
1059 "signin/fake_account_fetcher_service_builder.h",
mlerman2933d012015-04-24 18:34:271060 "signin/fake_gaia_cookie_manager_service.cc",
1061 "signin/fake_gaia_cookie_manager_service.h",
Brett Wilson052ce132014-09-12 19:46:291062 "signin/fake_profile_oauth2_token_service_builder.cc",
1063 "signin/fake_profile_oauth2_token_service_builder.h",
droger4f489e62015-07-24 19:27:591064 "signin/fake_signin_manager_builder.cc",
1065 "signin/fake_signin_manager_builder.h",
Brett Wilson052ce132014-09-12 19:46:291066 "ssl/ssl_client_auth_requestor_mock.cc",
1067 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:291068 "sync/profile_sync_components_factory_mock.cc",
1069 "sync/profile_sync_components_factory_mock.h",
1070 "sync/profile_sync_service_mock.cc",
1071 "sync/profile_sync_service_mock.h",
shadi2f257fc2014-12-03 18:04:121072 "ui/webui/signin/login_ui_test_utils.cc",
1073 "ui/webui/signin/login_ui_test_utils.h",
Brett Wilson052ce132014-09-12 19:46:291074 ]
1075
brettwbc8b2a22015-07-28 18:24:421076 configs += [ "//build/config:precompiled_headers" ]
1077
Brett Wilsone53895272014-09-23 23:41:461078 public_deps = [
Brett Wilson052ce132014-09-12 19:46:291079 ":browser",
Brett Wilsone53895272014-09-23 23:41:461080 "//chrome/browser/ui:test_support",
1081 ]
1082 deps = [
Brett Wilson052ce132014-09-12 19:46:291083 "//base:prefs_test_support",
1084 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:291085 "//chrome/common",
1086 "//chrome/common/safe_browsing:proto",
knn062cdbb2015-06-26 18:18:421087 "//components/invalidation/impl",
1088 "//components/invalidation/impl:test_support",
Brett Wilson052ce132014-09-12 19:46:291089 "//components/password_manager/core/browser:test_support",
1090 "//components/search_engines:test_support",
jitendra.ks94c0b962015-08-10 08:24:091091 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
Brett Wilson052ce132014-09-12 19:46:291092 "//content/test:test_support",
1093 "//chrome/app/theme:theme_resources",
1094 "//net:test_support",
1095 "//skia",
1096 "//testing/gmock",
1097 "//testing/gtest",
1098 "//ui/gfx",
1099 ]
1100
Brett Wilson052ce132014-09-12 19:46:291101 if (!is_ios) {
1102 deps += [
1103 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:291104 "//google_apis:test_support",
1105 ]
1106 }
1107
James Robinson2ed4d692014-09-17 05:20:581108 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:381109 sources += [
1110 "extensions/extension_action_test_util.cc",
1111 "extensions/extension_action_test_util.h",
1112 ]
scottmga266f952014-12-03 20:47:101113 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:581114 }
1115
Brett Wilson052ce132014-09-12 19:46:291116 if (is_chromeos) {
1117 sources += [
1118 "chromeos/app_mode/fake_cws.cc",
1119 "chromeos/app_mode/fake_cws.h",
1120 "chromeos/file_manager/fake_disk_mount_manager.cc",
1121 "chromeos/file_manager/fake_disk_mount_manager.h",
1122 "chromeos/input_method/mock_candidate_window_controller.cc",
1123 "chromeos/input_method/mock_candidate_window_controller.h",
1124 "chromeos/input_method/mock_input_method_engine.cc",
1125 "chromeos/input_method/mock_input_method_engine.h",
1126 "chromeos/input_method/mock_input_method_manager.cc",
1127 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511128 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1129 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391130 "chromeos/login/session/user_session_manager_test_api.cc",
1131 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291132 "chromeos/login/test/js_checker.cc",
1133 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591134 "chromeos/login/test/oobe_screen_waiter.cc",
1135 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291136 "chromeos/login/ui/mock_login_display.cc",
1137 "chromeos/login/ui/mock_login_display.h",
1138 "chromeos/login/ui/mock_login_display_host.cc",
1139 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511140 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1141 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301142 "chromeos/login/users/fake_chrome_user_manager.cc",
1143 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511144 "chromeos/login/users/fake_supervised_user_manager.cc",
1145 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511146 "chromeos/login/users/mock_user_manager.cc",
1147 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291148 "chromeos/net/network_portal_detector_test_utils.cc",
1149 "chromeos/net/network_portal_detector_test_utils.h",
1150 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1151 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1152 "chromeos/policy/device_policy_builder.cc",
1153 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071154 "chromeos/policy/fake_consumer_management_service.cc",
1155 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291156 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1157 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071158 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1159 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291160 "chromeos/policy/stub_enterprise_install_attributes.cc",
1161 "chromeos/policy/stub_enterprise_install_attributes.h",
1162 "chromeos/settings/device_settings_test_helper.cc",
1163 "chromeos/settings/device_settings_test_helper.h",
1164 "chromeos/system/fake_input_device_settings.cc",
1165 "chromeos/system/fake_input_device_settings.h",
1166 ]
1167 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:171168 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291169 }
1170
1171 if (enable_configuration_policy) {
1172 sources += [
1173 "policy/test/local_policy_test_server.cc",
1174 "policy/test/local_policy_test_server.h",
1175 ]
Brett Wilsone53895272014-09-23 23:41:461176 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291177 "//components/policy:policy_component_test_support",
1178 "//components/policy:test_support",
1179 ]
Brett Wilson052ce132014-09-12 19:46:291180 }
1181
1182 if (safe_browsing_mode == 1) {
1183 sources += [
1184 "extensions/fake_safe_browsing_database_manager.cc",
1185 "extensions/fake_safe_browsing_database_manager.h",
1186 ]
1187 }
1188
1189 if (enable_extensions) {
1190 sources += [
Brett Wilson052ce132014-09-12 19:46:291191 "extensions/api/messaging/native_messaging_test_util.cc",
1192 "extensions/api/messaging/native_messaging_test_util.h",
1193 "extensions/extension_notification_observer.cc",
1194 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:291195 "extensions/mock_extension_special_storage_policy.cc",
1196 "extensions/mock_extension_special_storage_policy.h",
1197 "extensions/test_blacklist.cc",
1198 "extensions/test_blacklist.h",
1199 "extensions/test_blacklist_state_fetcher.cc",
1200 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511201 "extensions/test_extension_dir.cc",
1202 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591203 "extensions/test_extension_environment.cc",
1204 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291205 "extensions/test_extension_prefs.cc",
1206 "extensions/test_extension_prefs.h",
1207 "extensions/test_extension_service.cc",
1208 "extensions/test_extension_service.h",
1209 "extensions/test_extension_system.cc",
1210 "extensions/test_extension_system.h",
1211 "media_galleries/media_galleries_test_util.cc",
1212 "media_galleries/media_galleries_test_util.h",
1213 ]
lukasza8acc4eb2015-07-20 20:57:201214 deps += [
1215 "//components/drive:test_support",
1216 "//components/storage_monitor:test_support",
1217 ]
Brett Wilson052ce132014-09-12 19:46:291218 }
1219
1220 if (enable_mdns) {
1221 sources += [
1222 "local_discovery/test_service_discovery_client.cc",
1223 "local_discovery/test_service_discovery_client.h",
1224 ]
1225 }
1226
1227 if (enable_app_list) {
1228 sources += [
1229 "ui/app_list/test/chrome_app_list_test_support.cc",
1230 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511231 "ui/app_list/test/test_app_list_controller_delegate.cc",
1232 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291233 ]
1234 }
1235
1236 if (enable_wifi_bootstrapping) {
1237 sources += [
1238 "local_discovery/wifi/mock_wifi_manager.cc",
1239 "local_discovery/wifi/mock_wifi_manager.h",
1240 ]
1241 }
1242}
sdefresned967d552015-07-16 08:34:351243
1244if (enable_rlz_support) {
1245 source_set("rlz") {
1246 sources =
1247 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1248 deps = [
1249 "//components/google/core/browser",
1250 "//components/omnibox/browser",
1251 "//components/rlz",
1252 "//components/search_engines",
1253 "//rlz:rlz_lib",
1254 ]
1255 }
1256}