blob: 37307c512be5909349b8466d4acd73350c3f6058 [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",
estark4282f1172015-05-13 22:01:55100 "//chrome/browser/net:encrypted_cert_logger_proto",
[email protected]797b25042014-07-01 23:54:17101 "//chrome/browser/net:probe_message_proto",
estark4282f1172015-05-13 22:01:55102 "//chrome/browser/ssl:cert_logger_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",
[email protected]b9f4c682014-07-10 22:00:37108 "//components/captive_portal",
[email protected]fca567b2014-07-02 17:37:34109 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:01110 "//components/component_updater",
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",
[email protected]bf4545f2014-07-11 19:49:46168 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56169 "//components/webdata_services",
drogerf8479942014-11-21 17:47:53170 "//components/web_resource",
[email protected]dffd8a912014-06-30 23:24:31171 "//content/public/browser",
172 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12173 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31174 "//crypto",
[email protected]604828c2014-07-02 20:39:12175 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56176 "//gpu/config",
[email protected]dffd8a912014-06-30 23:24:31177 "//skia",
178 "//sql",
179 "//sync",
[email protected]797b25042014-07-01 23:54:17180 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31181 "//third_party/icu",
182 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22183 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31184 "//third_party/widevine/cdm:version_h",
185 "//third_party/zlib",
186 "//third_party/zlib:minizip",
187 "//third_party/zlib:zip",
188 "//ui/base",
cjhopman09981a92014-10-27 17:11:18189 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31190 "//ui/gfx",
191 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36192 "//ui/message_center",
193 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31194 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17195 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31196 ]
197
scottmga266f952014-12-03 20:47:10198 sources +=
199 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00200
[email protected]dffd8a912014-06-30 23:24:31201 if (!is_ios) {
scottmga266f952014-12-03 20:47:10202 sources +=
203 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59204 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10205 ".",
206 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59207 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10208 ".",
209 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18210 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
211 ".",
212 "//chrome")
213 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
214 ".",
215 "//chrome")
benwellsedf5e082015-04-23 02:45:14216 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
217 ".",
218 "//chrome")
scottmga266f952014-12-03 20:47:10219 sources +=
220 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
221 sources +=
222 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
223 sources +=
224 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
225 sources +=
226 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
227 sources +=
228 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59229 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10230 ".",
231 "//chrome")
mlamouri4e372022015-03-29 14:51:06232 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
233 ".",
234 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59235 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10236 ".",
237 "//chrome")
238 sources +=
239 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59240 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10241 ".",
242 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59243 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10244 ".",
245 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59246 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10247 ".",
248 "//chrome")
249 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18250 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
251 sources +=
scottmga266f952014-12-03 20:47:10252 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
253 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18254 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
255 sources +=
scottmga266f952014-12-03 20:47:10256 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59257 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10258 ".",
259 "//chrome")
260
[email protected]dffd8a912014-06-30 23:24:31261 deps += [
Brett Wilson1c693992014-08-25 19:10:01262 "//apps",
[email protected]dffd8a912014-06-30 23:24:31263 "//cc",
brettwca934582015-02-24 21:50:27264 "//chrome/app:generated_resources_map",
265 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30266 "//chrome/browser/devtools",
brettwca934582015-02-24 21:50:27267 "//chrome/browser/resources:component_extension_resources",
tfarina04d426612015-08-18 16:42:33268 "//chrome/common/net",
[email protected]55699f392014-08-20 22:16:30269 "//chrome/installer/util",
jitendra.ks4f2e9112015-08-14 11:40:26270 "//components/about_handler",
oshimaf65398422014-11-18 23:30:42271 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37272 "//components/autofill/content/browser",
lazyboy14082d22015-04-02 01:04:58273 "//components/browsing_data",
jeremyim364ac1182015-03-03 18:49:43274 "//components/data_reduction_proxy/content/browser",
dgozmanec2b982a2015-04-28 10:36:39275 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46276 "//components/devtools_http_handler",
mdjones1c47b052015-07-22 19:15:39277 "//components/dom_distiller/content:content_browser",
sdefresne001b10de2015-03-20 18:41:46278 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04279 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34280 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30281 "//components/navigation_interception",
282 "//components/password_manager/content/browser",
vabr5410d0b2015-08-07 11:02:04283 "//components/password_manager/sync/browser",
dbeam155ac972015-04-20 15:34:48284 "//components/plugins/common",
bauerbf0e64aa2015-06-25 15:54:07285 "//components/safe_json",
brettwa22cb3b2015-04-30 20:23:12286 "//components/sessions",
[email protected]abd4b682014-07-16 20:26:30287 "//components/storage_monitor",
[email protected]b9f4c682014-07-10 22:00:37288 "//components/translate/content/browser",
sdefresne44eb1f22015-08-06 08:51:55289 "//components/upload_list",
[email protected]fca567b2014-07-02 17:37:34290 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31291 "//components/visitedlink/browser",
292 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18293 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37294 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08295 "//content/app/resources",
[email protected]55699f392014-08-20 22:16:30296 "//media",
rockot50dc5692015-07-08 01:57:26297 "//mojo/application/public/cpp",
cjhopman09981a92014-10-27 17:11:18298 "//mojo/common",
[email protected]604828c2014-07-02 20:39:12299 "//mojo/environment:chromium",
Brett Wilson83fd4242014-09-02 19:45:33300 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31301 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15302 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24303 "//storage/common",
erga3c614c92015-04-03 17:47:51304 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46305 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31306 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34307 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31308 "//third_party/libyuv",
blundell70fb547672015-01-19 17:18:33309 "//third_party/mojo/src/mojo/edk/system",
310 "//third_party/mojo/src/mojo/public/cpp/bindings",
311 "//third_party/mojo/src/mojo/public/js",
[email protected]dffd8a912014-06-30 23:24:31312 "//third_party/re2",
313 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33314 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12315 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31316 "//ui/gl",
brettwca934582015-02-24 21:50:27317 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31318 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12319 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34320 "//v8",
[email protected]dffd8a912014-06-30 23:24:31321 ]
paulmeyer27b328b2015-06-17 21:26:12322
323 if (toolkit_views) {
324 deps += [ "//ui/views" ]
325 }
[email protected]dffd8a912014-06-30 23:24:31326 } else { # iOS
scottmga266f952014-12-03 20:47:10327 sources +=
328 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
329 sources +=
330 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
331 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31332 libs += [
333 "CoreTelephony.framework",
334 "CoreText.framework",
335 "MobileCoreServices.framework",
336 "QuartzCore.framework",
337 ]
scottmga266f952014-12-03 20:47:10338 ldflags += [
339 "-weak_framework",
340 "CoreImage",
341 ]
[email protected]dffd8a912014-06-30 23:24:31342 }
343
344 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10345 sources +=
346 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31347 }
mmenkede134672015-08-18 01:33:39348 if (!is_win && !is_mac && !is_ios) {
349 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ]
350 }
[email protected]dffd8a912014-06-30 23:24:31351 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
352 sources += [
353 "net/disk_cache_dir_policy_handler.cc",
354 "net/disk_cache_dir_policy_handler.h",
355 ]
356 }
357 if (!is_android && !is_ios && enable_configuration_policy) {
358 sources += [
359 "download/download_dir_policy_handler.cc",
360 "download/download_dir_policy_handler.h",
361 ]
362 }
363 if (is_mac) {
scottmga266f952014-12-03 20:47:10364 sources +=
365 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31366 deps += [
brettw624c82d2015-07-23 00:31:50367 #"app_shim" TODO(GYP) bug 512600
368 #"browser_app_shim" TODO(GYP) bug 512600
[email protected]dffd8a912014-06-30 23:24:31369 ]
370 }
[email protected]dffd8a912014-06-30 23:24:31371 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46372 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52373 deps += [
[email protected]cc5b3be2014-08-15 23:24:52374 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30375 "//chrome/common/extensions/api",
376 "//chrome/common/extensions/api:api_registration",
lukasza8acc4eb2015-07-20 20:57:20377 "//components/drive:drive",
msarda4c408ff2015-04-22 14:27:56378 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44379 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50380 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06381 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52382 ]
[email protected]dffd8a912014-06-30 23:24:31383 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10384 ".",
385 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31386 }
387 if (enable_background) {
388 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10389 ".",
390 "//chrome")
jamesr29ea2d122014-10-23 10:30:27391 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31392 sources -= [ "background/background_mode_manager_aura.cc" ]
393 }
394 }
395 if (enable_task_manager) {
396 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10397 ".",
398 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31399 }
400 if (enable_spellcheck) {
401 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10402 ".",
403 "//chrome")
dylanking34c72442015-07-23 23:19:58404 if (!is_android) {
405 deps += [ "//third_party/hunspell" ]
406 }
[email protected]dffd8a912014-06-30 23:24:31407 }
408 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10409 sources +=
410 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
dpranke6065cf72015-02-26 03:30:58411 deps += [ "//components/nacl:nacl_browser" ]
[email protected]dffd8a912014-06-30 23:24:31412 }
apavlove749bca2014-09-30 11:07:41413
[email protected]dffd8a912014-06-30 23:24:31414 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10415 sources +=
416 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
417 ".",
418 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31419 deps += [
[email protected]604828c2014-07-02 20:39:12420 "//components/policy",
[email protected]797b25042014-07-01 23:54:17421 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31422 ]
423 if (!is_ios) {
scottmga266f952014-12-03 20:47:10424 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
425 ".",
426 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31427 }
428 if (!is_chromeos) {
429 sources += rebase_path(
scottmga266f952014-12-03 20:47:10430 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
431 ".",
432 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31433 }
434 if (is_win || is_mac || is_desktop_linux) {
435 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10436 ".",
437 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31438 }
cjhopman09981a92014-10-27 17:11:18439 if (is_android || is_ios) {
440 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10441 ".",
442 "//chrome")
cjhopman09981a92014-10-27 17:11:18443 } else {
amistry6e1ed1b2015-03-12 05:24:01444 deps += [
445 "//chrome/browser/policy:path_parser",
446 "//net:net_browser_services",
447 ]
[email protected]dffd8a912014-06-30 23:24:31448 }
449 } else {
450 # Configuration policy disabled.
451 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10452 ".",
453 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31454 }
455
456 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10457 sources +=
458 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31459 deps += [
James Robinson2ed4d692014-09-17 05:20:58460 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31461 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14462 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31463 ]
464 }
465 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10466 sources +=
stuartmorgan1b3df822014-12-08 14:36:11467 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10468 ".",
469 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31470 deps += [
[email protected]fca567b2014-07-02 17:37:34471 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45472 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34473 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31474 ]
475 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10476 sources +=
stuartmorgan1b3df822014-12-08 14:36:11477 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10478 ".",
479 "//chrome")
scottmga266f952014-12-03 20:47:10480 deps += [ "//chrome/common/safe_browsing:proto" ]
nparkerb2cd5ee2015-05-13 01:12:01481 } else if (safe_browsing_mode == 3) {
482 sources += rebase_path(
483 gypi_values.chrome_browser_safe_browsing_mobile_extended_sources,
484 ".",
485 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31486 }
487 }
488
amistryf269d3b2015-06-09 19:18:39489 if (enable_hotwording) {
490 defines += [ "ENABLE_HOTWORDING" ]
491 }
492
[email protected]dffd8a912014-06-30 23:24:31493 if (is_linux) {
mostynbea514682015-08-18 22:08:56494 deps += [ "//device/media_transfer_protocol" ]
[email protected]dffd8a912014-06-30 23:24:31495 }
mostynbea514682015-08-18 22:08:56496
497 if (use_udev) {
498 deps += [ "//device/udev_linux" ]
499 }
500
[email protected]dffd8a912014-06-30 23:24:31501 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47502 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31503 }
504
505 if (is_chromeos) {
506 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10507 ".",
508 "//chrome")
509 deps += [ "//chrome/browser/chromeos" ]
estade8c0780f2015-08-21 23:36:41510 } else {
511 # Non-ChromeOS.
512 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
513 ".",
514 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31515 }
516
yiyaoliubcd08dc22014-12-10 05:56:10517 if (is_ios) {
518 sources -= [
519 "metrics/signin_status_metrics_provider_base.cc",
520 "metrics/signin_status_metrics_provider_base.h",
521 ]
522 }
523
mukai8c99b882014-10-15 03:07:59524 if (is_chromeos || is_ios) {
525 sources -= [
526 "metrics/signin_status_metrics_provider.cc",
527 "metrics/signin_status_metrics_provider.h",
528 ]
529 }
530
[email protected]dffd8a912014-06-30 23:24:31531 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12532 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31533 }
534 if (is_desktop_linux) {
535 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10536 ".",
537 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49538 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31539 }
dvadym34532022015-01-22 15:42:51540 if (is_desktop_linux) {
541 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
542 ".",
543 "//chrome")
544 defines += [ "USE_LIBSECRET" ]
545 }
[email protected]dffd8a912014-06-30 23:24:31546 if (use_aura) {
scottmga266f952014-12-03 20:47:10547 sources +=
548 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31549 deps += [
[email protected]fca567b2014-07-02 17:37:34550 "//ui/aura",
551 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12552 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31553 ]
554 }
555 if (ui_compositor_image_transport) {
556 deps += [ "//ui/gl" ]
557 }
558
[email protected]855b7de2014-07-08 21:02:45559 if (use_ash) {
scottmga266f952014-12-03 20:47:10560 sources +=
561 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45562 }
563
[email protected]dffd8a912014-06-30 23:24:31564 if (use_x11) {
scottmga266f952014-12-03 20:47:10565 sources +=
566 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23567 } else {
568 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31569 }
570 if (is_posix && !is_mac && !is_ios) {
571 sources += [
rseseka0a7a042014-09-18 23:59:20572 "//chrome/app/chrome_crash_reporter_client.cc",
573 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31574 ]
575 deps += [
Robert Sesekabcd8102014-08-27 16:12:44576 "//components/crash/app",
577 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31578 ]
579 }
580 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10581 sources +=
582 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59583 if (is_chromeos) {
584 sources -= [ "net/nss_context_linux.cc" ]
585 }
[email protected]dffd8a912014-06-30 23:24:31586 }
587 if (enable_notifications) {
588 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10589 ".",
590 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31591 if (!is_android) {
592 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11593 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10594 ".",
595 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31596 }
597 }
598 if (enable_themes) {
scottmga266f952014-12-03 20:47:10599 sources +=
600 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31601 }
602
vitalybuka93eea402014-11-05 23:47:15603 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31604 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11605 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10606 ".",
607 "//chrome")
spang5cc72542015-08-04 19:47:11608 deps += [
609 "//printing",
brettwd649f6b2015-08-18 20:58:51610 "//components/printing/browser",
spang5cc72542015-08-04 19:47:11611 ]
612
vitalybuka36259ca2014-08-28 23:42:24613 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31614 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10615 ".",
616 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31617 }
vitalybuka93eea402014-11-05 23:47:15618 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31619 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11620 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10621 ".",
622 "//chrome")
vitalybuka93eea402014-11-05 23:47:15623 } else {
[email protected]dffd8a912014-06-30 23:24:31624 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10625 sources +=
stuartmorgan1b3df822014-12-08 14:36:11626 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10627 ".",
628 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31629 }
630 }
631 if (enable_captive_portal_detection) {
632 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10633 ".",
634 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31635 }
636 if (enable_session_service) {
637 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10638 ".",
639 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31640 }
641
thestigdc377202014-10-28 22:06:02642 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10643 sources +=
644 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02645 }
646
[email protected]dffd8a912014-06-30 23:24:31647 if (is_android || is_ios) {
648 # Mobile.
scottmga266f952014-12-03 20:47:10649 sources +=
650 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31651 } else {
652 # Non-mobile.
653 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10654 ".",
655 "//chrome")
reillyge471fab2014-08-29 01:58:43656 deps += [
sdefresnebbf563c2015-03-17 11:09:09657 "//components/feedback",
reillyge471fab2014-08-29 01:58:43658 "//device/core",
rockot50dc5692015-07-08 01:57:26659 "//device/devices_app/public/cpp",
660 "//device/devices_app/public/cpp:factory",
reillygd77718d2014-09-04 00:57:56661 "//device/usb",
reillyge471fab2014-08-29 01:58:43662 ]
[email protected]dffd8a912014-06-30 23:24:31663 }
664
fserb1c2db4c2015-07-16 17:14:49665 if (!is_official_build) {
666 sources += [
667 "search/local_files_ntp_source.cc",
668 "search/local_files_ntp_source.h",
669 ]
670 }
671
[email protected]dffd8a912014-06-30 23:24:31672 if (is_android) {
scottmga266f952014-12-03 20:47:10673 sources +=
674 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
twellingtoncaf0eb752015-06-01 16:19:50675 sources += rebase_path(gypi_values.chrome_browser_bookmark_android_sources,
676 ".",
677 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31678 deps += [
pkotwicz127726f2015-05-29 15:20:12679 ":client_discourse_context_proto",
680 ":delta_file_proto",
James Robinson2ed4d692014-09-17 05:20:58681 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30682 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18683 "//components/enhanced_bookmarks",
twifkak8c9f7502015-06-25 02:12:57684 "//components/precache/content",
685 "//components/precache/core",
estadee37f8222014-11-07 21:35:22686 "//components/resources:components_resources",
mathiash3ecfdfa2015-04-13 15:06:07687 "//components/service_tab_launcher",
blundell11d93bc2015-07-31 12:33:12688 "//components/toolbar",
cjhopman09981a92014-10-27 17:11:18689 "//components/web_contents_delegate_android",
690 "//third_party/android_opengl/etc1",
fdegans34f31e272015-05-22 16:59:03691 "//third_party/android_tools:cpu_features",
twellington0bc61492015-01-30 20:14:13692 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31693 ]
694 deps -= [
[email protected]fca567b2014-07-02 17:37:34695 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30696 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30697 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31698 ]
megjablon5effca2e2015-02-13 23:54:07699 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
rseseke59ea892015-03-19 22:27:44700
701 if (use_seccomp_bpf) {
702 defines += [ "USE_SECCOMP_BPF" ]
rsesek65d31352015-06-08 22:53:44703 deps += [ "//sandbox/linux:seccomp_bpf" ]
rseseke59ea892015-03-19 22:27:44704 }
[email protected]dffd8a912014-06-30 23:24:31705 }
706
707 if (is_mac) {
708 deps += [
[email protected]6b5d2f92014-07-30 00:40:03709 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03710 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31711 ]
712 libs += [
713 "Accelerate.framework",
714 "AddressBook.framework",
715 "AudioUnit.framework",
716 "DiskArbitration.framework",
717 "IOKit.framework",
718 "ImageCaptureCore.framework",
719 "OpenGL.framework",
720 "QuartzCore.framework",
721 "SecurityInterface.framework",
722 ]
723 }
724
725 if (enable_rlz) {
sdefresned967d552015-07-16 08:34:35726 deps += [ ":rlz" ]
[email protected]dffd8a912014-06-30 23:24:31727 }
728
729 # TODO(GYP)
730 # Temporary fix to break the browser target into smaller chunks so it
731 # will link with goma builds.
732 #["OS=="win" and chromium_win_pch==0", {
733 # "msvs_shard": 4,
734 #}],
735
736 if (is_win) {
scottmga266f952014-12-03 20:47:10737 sources +=
738 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
Brett Wilsone53895272014-09-23 23:41:46739 public_deps += [
740 "//ui/views",
741 "//ui/views/controls/webview",
742 ]
[email protected]dffd8a912014-06-30 23:24:31743 deps += [
vchigrin9593e7a2015-01-27 10:08:19744 ":chrome_process_finder",
[email protected]55699f392014-08-20 22:16:30745 "//chrome:version_header",
746 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19747 "//chrome_elf",
748 "//chrome_elf:constants",
749 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32750 "//components/browser_watcher",
751 "//components/browser_watcher:browser_watcher_client",
vchigrinbbc23e72015-01-21 22:49:23752 "//google_update",
[email protected]55699f392014-08-20 22:16:30753 "//third_party/iaccessible2",
754 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31755 "//third_party/wtl",
vchigrin88ed6f42015-01-17 11:56:42756 "//ui/metro_viewer",
757 "//win8:metro_viewer",
[email protected]dffd8a912014-06-30 23:24:31758 ]
mmenkede134672015-08-18 01:33:39759
760 all_dependent_configs = [ ":browser_win_linker_flags" ]
761
grt235b3f092015-05-27 21:42:48762 if (!is_chrome_branded) {
763 deps -= [ "//google_update" ]
764 sources -= [
765 "google/did_run_updater_win.cc",
766 "google/did_run_updater_win.h",
767 "google/google_update_win.cc",
768 "google/google_update_win.h",
769 ]
770 }
[email protected]dffd8a912014-06-30 23:24:31771 } else {
772 # Non-Windows.
scottmga266f952014-12-03 20:47:10773 sources +=
774 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37775 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31776 deps += [
scottmga266f952014-12-03 20:47:10777 "//ui/views",
778 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31779 ]
[email protected]dffd8a912014-06-30 23:24:31780 }
781 }
782
783 if (is_linux) {
scottmga266f952014-12-03 20:47:10784 sources +=
785 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31786 if (use_aura) {
787 configs += [
788 "//build/config/linux:dbus",
789 "//build/config/linux:fontconfig",
790 ]
scottmga266f952014-12-03 20:47:10791 deps += [ "//dbus" ]
[email protected]dffd8a912014-06-30 23:24:31792 }
793 if (use_x11) {
794 configs += [ "//build/config/linux:x11" ]
795 deps += [ "//ui/gfx/x" ]
796 }
797 }
798
799 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54800 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10801 ".",
802 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31803 }
804 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10805 sources +=
806 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
807 ".",
808 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31809 }
810 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10811 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31812 }
treib87bb89cbb2014-12-01 16:01:47813 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10814 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
815 ".",
816 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31817 }
bauerb7f3b8542015-06-29 19:56:19818 if (enable_supervised_users && !is_android && !is_ios) {
819 sources +=
820 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
821 ".",
822 "//chrome")
823 }
treib87bb89cbb2014-12-01 16:01:47824 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59825 sources += rebase_path(
scottmga266f952014-12-03 20:47:10826 gypi_values.chrome_browser_supervised_user_and_themes_sources,
827 ".",
828 "//chrome")
thestig169a6362014-11-13 20:47:59829 }
[email protected]dffd8a912014-06-30 23:24:31830 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10831 sources +=
832 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31833 }
834 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10835 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
836 ".",
837 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31838 }
839 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10840 sources +=
841 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31842 }
843 if (!enable_autofill_dialog || is_android || is_ios) {
844 sources -= [
845 "autofill/validation_rules_storage_factory.cc",
846 "autofill/validation_rules_storage_factory.h",
847 ]
848 }
849 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10850 sources +=
851 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
852 ".",
853 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31854 if (is_win || is_mac) {
855 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
856 # and Mac, so this test is meaningless. Can we merge these lists?
857 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11858 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10859 ".",
860 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31861 }
862 }
mfoltz150bb8b2015-04-09 22:30:05863 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55864 deps += [ "//chrome/browser/media/router" ]
mfoltz150bb8b2015-04-09 22:30:05865 }
[email protected]dffd8a912014-06-30 23:24:31866}
867
James Robinson2ed4d692014-09-17 05:20:58868if (is_android) {
869 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
870 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10871 sources =
872 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58873 jni_package = "chrome"
874 }
pkotwicz127726f2015-05-29 15:20:12875
876 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
877 proto_library("client_discourse_context_proto") {
878 sources = [
879 "android/proto/client_discourse_context.proto",
880 ]
881 }
882
883 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
884 proto_library("delta_file_proto") {
885 sources = [
886 "android/proto/delta_file.proto",
887 ]
888 }
James Robinson2ed4d692014-09-17 05:20:58889}
890
vchigrin9593e7a2015-01-27 10:08:19891if (is_win) {
892 source_set("chrome_process_finder") {
893 sources = [
894 "chrome_process_finder_win.cc",
895 "chrome_process_finder_win.h",
896 ]
897 deps = [
898 "//base",
899 "//chrome/browser/metro_utils",
900 "//chrome/common:constants",
901 ]
902 if (enable_configuration_policy) {
903 deps += [ "//chrome/browser/policy:path_parser" ]
904 }
905 }
906}
907
[email protected]77ce8022014-06-16 19:29:56908# GYP version: chrome/chrome_resources.gyp:chrome_resources
909# (generate_browser_resources action)
910grit("resources") {
911 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41912 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26913 outputs = [
914 "grit/browser_resources.h",
915 "browser_resources.pak",
916 ]
[email protected]77ce8022014-06-16 19:29:56917
scottmga266f952014-12-03 20:47:10918 omnibox_mojom_file =
919 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
[email protected]77ce8022014-06-16 19:29:56920
921 grit_flags = [
scottmga266f952014-12-03 20:47:10922 "-E",
923 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
924 "-E",
925 "additional_modules_list_file=" +
926 rebase_path(additional_modules_list_file, root_build_dir),
927 "-E",
928 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56929 ]
930
931 deps = [
932 ":about_credits",
933 ":chrome_internal_resources_gen",
brettwde262b02015-05-27 19:41:42934
935 # Depend only on the generated mojo bindings since we read the .mojom.js
936 # file, rather than the whole mojo target which will link the C++ bindings.
937 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
vchigrin8eede942015-01-29 09:28:15938 ]
939 inputs = [
940 omnibox_mojom_file,
[email protected]77ce8022014-06-16 19:29:56941 ]
942}
943
944# GYP version: chrome/chrome_resource.gyp:about_credits
945action("about_credits") {
946 script = "//tools/licenses.py"
947
dbeamc7776c72014-12-17 02:24:05948 inputs = [
949 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
950 # generate a .d file with all the licenses/credits that about:credits uses.
951 # Then about:credits will automatically rebuild when one of them changes.
952 # See: depfile in gn's documentation (gn help depfile).
953 "resources/about_credits.tmpl",
954 "resources/about_credits_entry.tmpl",
955 ]
956
scottmga266f952014-12-03 20:47:10957 outputs = [
958 about_credits_file,
959 ]
[email protected]77ce8022014-06-16 19:29:56960
961 args = [
962 "credits",
963 rebase_path(about_credits_file, root_build_dir),
964 ]
965}
966
967# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41968if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56969 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41970 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10971 sources = [
972 "internal/resources/additional_modules_list.input",
973 ]
974 outputs = [
975 additional_modules_list_file,
976 ]
engedy99d0e11b2014-09-30 13:32:41977 args = rebase_path(sources, root_build_dir) +
978 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56979 }
980} else {
981 group("chrome_internal_resources_gen") {
982 # Empty placeholder.
983 }
984}
Brett Wilson052ce132014-09-12 19:46:29985
986# In GYP this is part of test_support_common.
987source_set("test_support") {
988 testonly = true
989
990 # Always include this via the main test support target.
991 visibility = [ "//chrome/test:test_support" ]
992
993 sources = [
994 "browsing_data/mock_browsing_data_appcache_helper.cc",
995 "browsing_data/mock_browsing_data_appcache_helper.h",
Brett Wilson052ce132014-09-12 19:46:29996 "browsing_data/mock_browsing_data_channel_id_helper.cc",
997 "browsing_data/mock_browsing_data_channel_id_helper.h",
998 "browsing_data/mock_browsing_data_cookie_helper.cc",
999 "browsing_data/mock_browsing_data_cookie_helper.h",
1000 "browsing_data/mock_browsing_data_database_helper.cc",
1001 "browsing_data/mock_browsing_data_database_helper.h",
1002 "browsing_data/mock_browsing_data_file_system_helper.cc",
1003 "browsing_data/mock_browsing_data_file_system_helper.h",
1004 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
1005 "browsing_data/mock_browsing_data_flash_lso_helper.h",
1006 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
1007 "browsing_data/mock_browsing_data_indexed_db_helper.h",
1008 "browsing_data/mock_browsing_data_local_storage_helper.cc",
1009 "browsing_data/mock_browsing_data_local_storage_helper.h",
1010 "browsing_data/mock_browsing_data_quota_helper.cc",
1011 "browsing_data/mock_browsing_data_quota_helper.h",
1012 "browsing_data/mock_browsing_data_service_worker_helper.cc",
1013 "browsing_data/mock_browsing_data_service_worker_helper.h",
1014 "download/download_test_file_activity_observer.cc",
1015 "download/download_test_file_activity_observer.h",
1016 "download/test_download_shelf.cc",
1017 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:291018 "invalidation/fake_invalidation_service.cc",
1019 "invalidation/fake_invalidation_service.h",
1020 "media/fake_desktop_media_list.cc",
1021 "media/fake_desktop_media_list.h",
1022 "net/dns_probe_test_util.cc",
1023 "net/dns_probe_test_util.h",
1024 "net/url_request_mock_util.cc",
1025 "net/url_request_mock_util.h",
1026 "notifications/notification_test_util.cc",
1027 "notifications/notification_test_util.h",
1028 "password_manager/mock_password_store_service.cc",
1029 "password_manager/mock_password_store_service.h",
1030 "password_manager/null_password_store_service.cc",
1031 "password_manager/null_password_store_service.h",
gcasto686493e72015-07-08 23:53:481032 "password_manager/password_manager_test_base.cc",
1033 "password_manager/password_manager_test_base.h",
Brett Wilson052ce132014-09-12 19:46:291034 "password_manager/test_password_store_service.cc",
1035 "password_manager/test_password_store_service.h",
1036 "prefs/pref_service_mock_factory.cc",
1037 "prefs/pref_service_mock_factory.h",
1038 "profile_resetter/profile_resetter_test_base.cc",
1039 "profile_resetter/profile_resetter_test_base.h",
1040 "search_engines/template_url_service_factory_test_util.cc",
1041 "search_engines/template_url_service_factory_test_util.h",
1042 "search_engines/template_url_service_test_util.cc",
1043 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:451044 "sessions/session_restore_test_helper.cc",
1045 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291046 "sessions/session_service_test_helper.cc",
1047 "sessions/session_service_test_helper.h",
knn523bd722015-07-30 16:27:091048 "signin/fake_account_fetcher_service_builder.cc",
1049 "signin/fake_account_fetcher_service_builder.h",
mlerman2933d012015-04-24 18:34:271050 "signin/fake_gaia_cookie_manager_service.cc",
1051 "signin/fake_gaia_cookie_manager_service.h",
Brett Wilson052ce132014-09-12 19:46:291052 "signin/fake_profile_oauth2_token_service_builder.cc",
1053 "signin/fake_profile_oauth2_token_service_builder.h",
droger4f489e62015-07-24 19:27:591054 "signin/fake_signin_manager_builder.cc",
1055 "signin/fake_signin_manager_builder.h",
Brett Wilson052ce132014-09-12 19:46:291056 "ssl/ssl_client_auth_requestor_mock.cc",
1057 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:291058 "sync/profile_sync_components_factory_mock.cc",
1059 "sync/profile_sync_components_factory_mock.h",
1060 "sync/profile_sync_service_mock.cc",
1061 "sync/profile_sync_service_mock.h",
shadi2f257fc2014-12-03 18:04:121062 "ui/webui/signin/login_ui_test_utils.cc",
1063 "ui/webui/signin/login_ui_test_utils.h",
Brett Wilson052ce132014-09-12 19:46:291064 ]
1065
brettwbc8b2a22015-07-28 18:24:421066 configs += [ "//build/config:precompiled_headers" ]
1067
Brett Wilsone53895272014-09-23 23:41:461068 public_deps = [
Brett Wilson052ce132014-09-12 19:46:291069 ":browser",
Brett Wilsone53895272014-09-23 23:41:461070 "//chrome/browser/ui:test_support",
1071 ]
1072 deps = [
Brett Wilson052ce132014-09-12 19:46:291073 "//base:prefs_test_support",
1074 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:291075 "//chrome/common",
1076 "//chrome/common/safe_browsing:proto",
knn062cdbb2015-06-26 18:18:421077 "//components/invalidation/impl",
1078 "//components/invalidation/impl:test_support",
Brett Wilson052ce132014-09-12 19:46:291079 "//components/password_manager/core/browser:test_support",
1080 "//components/search_engines:test_support",
jitendra.ks94c0b962015-08-10 08:24:091081 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
Brett Wilson052ce132014-09-12 19:46:291082 "//content/test:test_support",
1083 "//chrome/app/theme:theme_resources",
1084 "//net:test_support",
1085 "//skia",
1086 "//testing/gmock",
1087 "//testing/gtest",
1088 "//ui/gfx",
1089 ]
1090
Brett Wilson052ce132014-09-12 19:46:291091 if (!is_ios) {
1092 deps += [
1093 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:291094 "//google_apis:test_support",
1095 ]
1096 }
1097
James Robinson2ed4d692014-09-17 05:20:581098 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:381099 sources += [
1100 "extensions/extension_action_test_util.cc",
1101 "extensions/extension_action_test_util.h",
1102 ]
scottmga266f952014-12-03 20:47:101103 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:581104 }
1105
Brett Wilson052ce132014-09-12 19:46:291106 if (is_chromeos) {
1107 sources += [
1108 "chromeos/app_mode/fake_cws.cc",
1109 "chromeos/app_mode/fake_cws.h",
1110 "chromeos/file_manager/fake_disk_mount_manager.cc",
1111 "chromeos/file_manager/fake_disk_mount_manager.h",
1112 "chromeos/input_method/mock_candidate_window_controller.cc",
1113 "chromeos/input_method/mock_candidate_window_controller.h",
1114 "chromeos/input_method/mock_input_method_engine.cc",
1115 "chromeos/input_method/mock_input_method_engine.h",
1116 "chromeos/input_method/mock_input_method_manager.cc",
1117 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511118 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1119 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391120 "chromeos/login/session/user_session_manager_test_api.cc",
1121 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291122 "chromeos/login/test/js_checker.cc",
1123 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591124 "chromeos/login/test/oobe_screen_waiter.cc",
1125 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291126 "chromeos/login/ui/mock_login_display.cc",
1127 "chromeos/login/ui/mock_login_display.h",
1128 "chromeos/login/ui/mock_login_display_host.cc",
1129 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511130 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1131 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301132 "chromeos/login/users/fake_chrome_user_manager.cc",
1133 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511134 "chromeos/login/users/fake_supervised_user_manager.cc",
1135 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511136 "chromeos/login/users/mock_user_manager.cc",
1137 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291138 "chromeos/net/network_portal_detector_test_utils.cc",
1139 "chromeos/net/network_portal_detector_test_utils.h",
1140 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1141 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1142 "chromeos/policy/device_policy_builder.cc",
1143 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071144 "chromeos/policy/fake_consumer_management_service.cc",
1145 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291146 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1147 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071148 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1149 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291150 "chromeos/policy/stub_enterprise_install_attributes.cc",
1151 "chromeos/policy/stub_enterprise_install_attributes.h",
1152 "chromeos/settings/device_settings_test_helper.cc",
1153 "chromeos/settings/device_settings_test_helper.h",
1154 "chromeos/system/fake_input_device_settings.cc",
1155 "chromeos/system/fake_input_device_settings.h",
1156 ]
1157 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:171158 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291159 }
1160
1161 if (enable_configuration_policy) {
1162 sources += [
1163 "policy/test/local_policy_test_server.cc",
1164 "policy/test/local_policy_test_server.h",
1165 ]
Brett Wilsone53895272014-09-23 23:41:461166 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291167 "//components/policy:policy_component_test_support",
1168 "//components/policy:test_support",
1169 ]
Brett Wilson052ce132014-09-12 19:46:291170 }
1171
1172 if (safe_browsing_mode == 1) {
1173 sources += [
1174 "extensions/fake_safe_browsing_database_manager.cc",
1175 "extensions/fake_safe_browsing_database_manager.h",
1176 ]
1177 }
1178
1179 if (enable_extensions) {
1180 sources += [
Brett Wilson052ce132014-09-12 19:46:291181 "extensions/api/messaging/native_messaging_test_util.cc",
1182 "extensions/api/messaging/native_messaging_test_util.h",
1183 "extensions/extension_notification_observer.cc",
1184 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:291185 "extensions/mock_extension_special_storage_policy.cc",
1186 "extensions/mock_extension_special_storage_policy.h",
1187 "extensions/test_blacklist.cc",
1188 "extensions/test_blacklist.h",
1189 "extensions/test_blacklist_state_fetcher.cc",
1190 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511191 "extensions/test_extension_dir.cc",
1192 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591193 "extensions/test_extension_environment.cc",
1194 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291195 "extensions/test_extension_prefs.cc",
1196 "extensions/test_extension_prefs.h",
1197 "extensions/test_extension_service.cc",
1198 "extensions/test_extension_service.h",
1199 "extensions/test_extension_system.cc",
1200 "extensions/test_extension_system.h",
1201 "media_galleries/media_galleries_test_util.cc",
1202 "media_galleries/media_galleries_test_util.h",
1203 ]
lukasza8acc4eb2015-07-20 20:57:201204 deps += [
1205 "//components/drive:test_support",
1206 "//components/storage_monitor:test_support",
1207 ]
Brett Wilson052ce132014-09-12 19:46:291208 }
1209
1210 if (enable_mdns) {
1211 sources += [
1212 "local_discovery/test_service_discovery_client.cc",
1213 "local_discovery/test_service_discovery_client.h",
1214 ]
1215 }
1216
1217 if (enable_app_list) {
1218 sources += [
1219 "ui/app_list/test/chrome_app_list_test_support.cc",
1220 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511221 "ui/app_list/test/test_app_list_controller_delegate.cc",
1222 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291223 ]
1224 }
1225
1226 if (enable_wifi_bootstrapping) {
1227 sources += [
1228 "local_discovery/wifi/mock_wifi_manager.cc",
1229 "local_discovery/wifi/mock_wifi_manager.h",
1230 ]
1231 }
1232}
sdefresned967d552015-07-16 08:34:351233
1234if (enable_rlz_support) {
1235 source_set("rlz") {
1236 sources =
1237 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1238 deps = [
1239 "//components/google/core/browser",
1240 "//components/omnibox/browser",
1241 "//components/rlz",
1242 "//components/search_engines",
1243 "//rlz:rlz_lib",
1244 ]
1245 }
1246}