blob: b85eb2d5f503826b440a71c5e3b8f5b874ea0cf9 [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:5629additional_modules_list_file =
30 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
31
scottmga266f952014-12-03 20:47:1032gypi_values = exec_script("//build/gypi_to_gn.py",
33 [ rebase_path("../chrome_browser.gypi") ],
34 "scope",
35 [ "../chrome_browser.gypi" ])
[email protected]dffd8a912014-06-30 23:24:3136
mmenkede134672015-08-18 01:33:3937if (is_win) {
38 # This is in a separate config so the flags can be applied to dependents.
39 # ldflags in GN aren't automatically inherited.
40 config("browser_win_linker_flags") {
41 libs = [
42 "credui.lib",
43 "netapi32.lib",
44 "ndfapi.lib", # Used by browser/net/net_error_diagnostics_dialog_win.h
45 ]
46 ldflags = [ "/DELAYLOAD:ndfapi.dll" ]
47 }
48}
49
cmasone0a9e4ca2014-10-16 16:40:4950if (is_desktop_linux) {
brettwa68ea2b2015-02-01 02:54:0751 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
52 # will set this up.
cmasone0a9e4ca2014-10-16 16:40:4953 pkg_config("gnome_keyring") {
54 packages = [ "gnome-keyring-1" ]
brettwa68ea2b2015-02-01 02:54:0755 defines = [
56 "USE_GNOME_KEYRING",
57 "DLOPEN_GNOME_KEYRING",
58 ]
59 ignore_libs = true
60 }
61
62 # If you want to link gnome-keyring directly (use only for unit tests)
63 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
64 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
65 # are just itself and common gnome ones we link already, so we can get away
66 # with additionally just coding the library name here.
67 config("gnome_keyring_direct") {
68 libs = [ "gnome-keyring" ]
cmasone0a9e4ca2014-10-16 16:40:4969 }
70}
71
brettw44a5cf82015-04-08 19:48:2272source_set("browser") {
apavlove749bca2014-09-30 11:07:4173 configs += [
74 "//build/config/compiler:wexit_time_destructors",
brettwbc8b2a22015-07-28 18:24:4275 "//build/config:precompiled_headers",
apavlove749bca2014-09-30 11:07:4176 "//third_party/WebKit/public:debug_devtools",
77 ]
[email protected]dffd8a912014-06-30 23:24:3178 defines = []
79 sources = []
80 libs = []
81 ldflags = []
82
83 # iOS/non-iOS shared deps. New dependencies should generally be added in the
84 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:4685 public_deps = [
86 "//components/autofill/core/browser",
87 "//content/public/browser",
88 "//sql",
89 "//sync",
90 ]
[email protected]dffd8a912014-06-30 23:24:3191 deps = [
92 "//base/allocator",
93 "//chrome:extra_resources",
94 "//chrome:resources",
95 "//chrome:strings",
[email protected]855b7de2014-07-08 21:02:4596 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:1797 "//chrome/app/theme:theme_resources",
sdefresnea213ceb2015-10-05 09:23:3998 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
[email protected]797b25042014-07-01 23:54:1799 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:30100 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:31101 "//chrome/common",
[email protected]604828c2014-07-02 20:39:12102 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:01103 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:03104 "//components/bookmarks/managed",
[email protected]b9f4c682014-07-10 22:00:37105 "//components/captive_portal",
estark334673f42015-09-08 14:51:39106 "//components/certificate_reporting",
[email protected]fca567b2014-07-02 17:37:34107 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:01108 "//components/component_updater",
blundell64fedf12015-08-25 12:22:27109 "//components/compression",
vabrfc325fa2015-04-10 16:24:45110 "//components/content_settings/content/common",
vasiliiac461392014-09-18 11:35:17111 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:54112 "//components/content_settings/core/common",
[email protected]478ed232014-08-19 02:10:55113 "//components/crx_file",
megjablon3476e042014-10-14 19:21:59114 "//components/data_reduction_proxy/core/browser",
sclittleae932be2015-10-08 20:53:50115 "//components/data_usage/core",
amohammadkhanf76ae112015-09-14 17:34:43116 "//components/data_use_measurement/core",
reillyg4a849272015-02-20 21:38:43117 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:25118 "//components/domain_reliability",
noyaudaaac3a2014-10-08 11:11:11119 "//components/enhanced_bookmarks",
sdefresnecbacfd72015-03-20 12:11:32120 "//components/favicon/core",
sdefresne001b10de2015-03-20 18:41:46121 "//components/favicon_base",
droger888be0b2015-10-01 14:28:52122 "//components/flags_ui",
[email protected]abd4b682014-07-16 20:26:30123 "//components/gcm_driver",
jianli2104ce612015-05-06 00:24:34124 "//components/gcm_driver/instance_id",
Brett Wilson1c693992014-08-25 19:10:01125 "//components/google/core/browser",
fsamuelaf5bf6d12015-05-28 16:29:54126 "//components/guest_view/browser",
erikchen332265b2014-11-14 19:59:52127 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25128 "//components/history/core/browser",
129 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01130 "//components/infobars/core",
knn062cdbb2015-06-26 18:18:42131 "//components/invalidation/impl",
gunsch1afc65172014-09-16 00:03:32132 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34133 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06134 "//components/metrics:profiler",
Brett Wilson1c693992014-08-25 19:10:01135 "//components/metrics/proto:proto",
blundell8e66adc2015-10-12 11:46:12136 "//components/metrics:ui",
rsleevic327b48f82015-04-30 02:03:25137 "//components/mime_util",
[email protected]fca567b2014-07-02 17:37:34138 "//components/navigation_metrics",
Brett Wilson1c693992014-08-25 19:10:01139 "//components/network_time",
fgorskife7b92f2015-06-15 19:19:40140 "//components/offline_pages",
blundell2102f7c2015-07-09 10:00:53141 "//components/omnibox/browser",
[email protected]fca567b2014-07-02 17:37:34142 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00143 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01144 "//components/password_manager/core/browser",
145 "//components/password_manager/core/common",
[email protected]fca567b2014-07-02 17:37:34146 "//components/policy:policy_component",
stevenjbb237e2ae2015-07-02 22:02:11147 "//components/proxy_config",
[email protected]fca567b2014-07-02 17:37:34148 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37149 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01150 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40151 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01152 "//components/search_engines",
153 "//components/search_provider_logos",
felt20e0f2002015-07-31 15:27:36154 "//components/security_interstitials/core",
[email protected]abd4b682014-07-16 20:26:30155 "//components/signin/core/browser",
felt2493b4452015-09-17 20:33:59156 "//components/ssl_errors",
[email protected]abd4b682014-07-16 20:26:30157 "//components/startup_metric_utils",
[email protected]797b25042014-07-01 23:54:17158 "//components/strings",
mathp60143a32014-10-08 14:52:45159 "//components/suggestions",
blundellc759b682015-10-08 15:50:59160 "//components/sync_bookmarks",
Brett Wilson1c693992014-08-25 19:10:01161 "//components/sync_driver",
skym6b9887e2015-10-09 22:10:47162 "//components/sync_sessions",
zhenwecedcf22015-08-18 23:37:46163 "//components/tracing:startup_tracing",
[email protected]b9f4c682014-07-10 22:00:37164 "//components/translate/core/browser",
165 "//components/translate/core/common",
brettw0741cb1c2015-08-21 22:06:00166 "//components/ui/zoom",
sdefresnec083d1f2015-04-17 21:12:18167 "//components/undo",
sorin39eab2f2015-01-06 01:09:08168 "//components/update_client",
rsleevi24f64dc22015-08-07 21:39:21169 "//components/url_formatter",
[email protected]fca567b2014-07-02 17:37:34170 "//components/user_prefs",
jitendra.ks94c0b962015-08-10 08:24:09171 "//components/user_prefs/tracked:user_prefs_tracked",
isherman3be67db2014-10-24 05:57:44172 "//components/variations",
173 "//components/variations/net",
blundellb50ad702015-08-27 17:08:29174 "//components/variations/service",
[email protected]bf4545f2014-07-11 19:49:46175 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56176 "//components/webdata_services",
drogerf8479942014-11-21 17:47:53177 "//components/web_resource",
[email protected]dffd8a912014-06-30 23:24:31178 "//content/public/browser",
179 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12180 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31181 "//crypto",
[email protected]604828c2014-07-02 20:39:12182 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56183 "//gpu/config",
[email protected]dffd8a912014-06-30 23:24:31184 "//skia",
185 "//sql",
186 "//sync",
[email protected]797b25042014-07-01 23:54:17187 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31188 "//third_party/icu",
189 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22190 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31191 "//third_party/widevine/cdm:version_h",
192 "//third_party/zlib",
193 "//third_party/zlib:minizip",
194 "//third_party/zlib:zip",
195 "//ui/base",
cjhopman09981a92014-10-27 17:11:18196 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31197 "//ui/gfx",
198 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36199 "//ui/message_center",
200 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31201 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17202 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31203 ]
204
scottmga266f952014-12-03 20:47:10205 sources +=
206 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00207
[email protected]dffd8a912014-06-30 23:24:31208 if (!is_ios) {
scottmga266f952014-12-03 20:47:10209 sources +=
210 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59211 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10212 ".",
213 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59214 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10215 ".",
216 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18217 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
218 ".",
219 "//chrome")
220 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
221 ".",
222 "//chrome")
benwellsedf5e082015-04-23 02:45:14223 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
224 ".",
225 "//chrome")
scottmga266f952014-12-03 20:47:10226 sources +=
227 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
228 sources +=
229 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
230 sources +=
231 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
232 sources +=
233 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
234 sources +=
235 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59236 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10237 ".",
238 "//chrome")
mlamouri4e372022015-03-29 14:51:06239 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
240 ".",
241 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59242 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10243 ".",
244 "//chrome")
245 sources +=
246 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59247 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10248 ".",
249 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59250 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10251 ".",
252 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59253 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10254 ".",
255 "//chrome")
256 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18257 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
258 sources +=
scottmga266f952014-12-03 20:47:10259 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
260 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18261 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
262 sources +=
scottmga266f952014-12-03 20:47:10263 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59264 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10265 ".",
266 "//chrome")
267
[email protected]dffd8a912014-06-30 23:24:31268 deps += [
Brett Wilson1c693992014-08-25 19:10:01269 "//apps",
[email protected]dffd8a912014-06-30 23:24:31270 "//cc",
brettwca934582015-02-24 21:50:27271 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30272 "//chrome/browser/devtools",
sdefresnea213ceb2015-10-05 09:23:39273 "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory",
brettwca934582015-02-24 21:50:27274 "//chrome/browser/resources:component_extension_resources",
tfarina04d426612015-08-18 16:42:33275 "//chrome/common/net",
[email protected]55699f392014-08-20 22:16:30276 "//chrome/installer/util",
jitendra.ks4f2e9112015-08-14 11:40:26277 "//components/about_handler",
oshimaf65398422014-11-18 23:30:42278 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37279 "//components/autofill/content/browser",
lazyboy14082d22015-04-02 01:04:58280 "//components/browsing_data",
jeremyim364ac1182015-03-03 18:49:43281 "//components/data_reduction_proxy/content/browser",
amohammadkhan092adb22015-09-11 21:08:49282 "//components/data_use_measurement/content",
dgozmanec2b982a2015-04-28 10:36:39283 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46284 "//components/devtools_http_handler",
mdjones1c47b052015-07-22 19:15:39285 "//components/dom_distiller/content:content_browser",
tfarina041134472015-09-02 15:29:38286 "//components/error_page/common",
sdefresne001b10de2015-03-20 18:41:46287 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04288 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34289 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30290 "//components/navigation_interception",
drogerc690e8802015-09-21 14:29:16291 "//components/net_log",
tfarina041134472015-09-02 15:29:38292 "//components/network_hints/common",
[email protected]55699f392014-08-20 22:16:30293 "//components/password_manager/content/browser",
vabr5410d0b2015-08-07 11:02:04294 "//components/password_manager/sync/browser",
dbeam155ac972015-04-20 15:34:48295 "//components/plugins/common",
abhishek.a2171c612852015-08-31 10:48:19296 "//components/proxy_config",
droger2a6ab542015-10-09 16:10:28297 "//components/resources",
bauerbf0e64aa2015-06-25 15:54:07298 "//components/safe_json",
brettwa22cb3b2015-04-30 20:23:12299 "//components/sessions",
[email protected]abd4b682014-07-16 20:26:30300 "//components/storage_monitor",
sdefresne875d0782015-09-16 12:01:28301 "//components/syncable_prefs",
[email protected]b9f4c682014-07-10 22:00:37302 "//components/translate/content/browser",
sdefresne44eb1f22015-08-06 08:51:55303 "//components/upload_list",
[email protected]fca567b2014-07-02 17:37:34304 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31305 "//components/visitedlink/browser",
306 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18307 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37308 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08309 "//content/app/resources",
finnur61535c702015-10-05 11:10:02310 "//device/devices_app/usb/public/interfaces",
[email protected]55699f392014-08-20 22:16:30311 "//media",
yhiranobbea6272015-09-17 07:09:03312 "//media/midi",
rockot50dc5692015-07-08 01:57:26313 "//mojo/application/public/cpp",
cjhopman09981a92014-10-27 17:11:18314 "//mojo/common",
[email protected]604828c2014-07-02 20:39:12315 "//mojo/environment:chromium",
Brett Wilson83fd4242014-09-02 19:45:33316 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31317 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15318 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24319 "//storage/common",
erga3c614c92015-04-03 17:47:51320 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46321 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31322 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34323 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31324 "//third_party/libyuv",
blundell70fb547672015-01-19 17:18:33325 "//third_party/mojo/src/mojo/edk/system",
326 "//third_party/mojo/src/mojo/public/cpp/bindings",
327 "//third_party/mojo/src/mojo/public/js",
[email protected]dffd8a912014-06-30 23:24:31328 "//third_party/re2",
329 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33330 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12331 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31332 "//ui/gl",
brettwca934582015-02-24 21:50:27333 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31334 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12335 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34336 "//v8",
[email protected]dffd8a912014-06-30 23:24:31337 ]
paulmeyer27b328b2015-06-17 21:26:12338
339 if (toolkit_views) {
340 deps += [ "//ui/views" ]
341 }
[email protected]dffd8a912014-06-30 23:24:31342 } else { # iOS
scottmga266f952014-12-03 20:47:10343 sources +=
344 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
345 sources +=
346 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
347 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31348 libs += [
349 "CoreTelephony.framework",
350 "CoreText.framework",
351 "MobileCoreServices.framework",
352 "QuartzCore.framework",
353 ]
scottmga266f952014-12-03 20:47:10354 ldflags += [
355 "-weak_framework",
356 "CoreImage",
357 ]
[email protected]dffd8a912014-06-30 23:24:31358 }
359
360 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10361 sources +=
362 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31363 }
mmenkede134672015-08-18 01:33:39364 if (!is_win && !is_mac && !is_ios) {
365 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ]
366 }
[email protected]dffd8a912014-06-30 23:24:31367 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
368 sources += [
369 "net/disk_cache_dir_policy_handler.cc",
370 "net/disk_cache_dir_policy_handler.h",
371 ]
372 }
373 if (!is_android && !is_ios && enable_configuration_policy) {
374 sources += [
375 "download/download_dir_policy_handler.cc",
376 "download/download_dir_policy_handler.h",
377 ]
378 }
379 if (is_mac) {
scottmga266f952014-12-03 20:47:10380 sources +=
381 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31382 deps += [
brettw624c82d2015-07-23 00:31:50383 #"app_shim" TODO(GYP) bug 512600
384 #"browser_app_shim" TODO(GYP) bug 512600
[email protected]dffd8a912014-06-30 23:24:31385 ]
386 }
ki.stfu5e669f02015-09-17 07:15:19387 if (is_mac || is_android) {
388 sources += rebase_path(
389 gypi_values.chrome_browser_password_manager_mac_android_sources,
390 ".",
391 "//chrome")
392 }
[email protected]dffd8a912014-06-30 23:24:31393 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46394 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52395 deps += [
[email protected]cc5b3be2014-08-15 23:24:52396 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30397 "//chrome/common/extensions/api",
398 "//chrome/common/extensions/api:api_registration",
lukasza8acc4eb2015-07-20 20:57:20399 "//components/drive:drive",
msarda4c408ff2015-04-22 14:27:56400 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44401 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50402 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06403 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52404 ]
[email protected]dffd8a912014-06-30 23:24:31405 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10406 ".",
407 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31408 }
409 if (enable_background) {
410 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10411 ".",
412 "//chrome")
jamesr29ea2d122014-10-23 10:30:27413 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31414 sources -= [ "background/background_mode_manager_aura.cc" ]
415 }
416 }
417 if (enable_task_manager) {
418 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10419 ".",
420 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31421 }
422 if (enable_spellcheck) {
423 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10424 ".",
425 "//chrome")
dylanking34c72442015-07-23 23:19:58426 if (!is_android) {
427 deps += [ "//third_party/hunspell" ]
428 }
[email protected]dffd8a912014-06-30 23:24:31429 }
430 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10431 sources +=
432 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
dpranke6065cf72015-02-26 03:30:58433 deps += [ "//components/nacl:nacl_browser" ]
[email protected]dffd8a912014-06-30 23:24:31434 }
apavlove749bca2014-09-30 11:07:41435
[email protected]dffd8a912014-06-30 23:24:31436 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10437 sources +=
438 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
439 ".",
440 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31441 deps += [
[email protected]604828c2014-07-02 20:39:12442 "//components/policy",
[email protected]797b25042014-07-01 23:54:17443 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31444 ]
445 if (!is_ios) {
scottmga266f952014-12-03 20:47:10446 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
447 ".",
448 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31449 }
450 if (!is_chromeos) {
451 sources += rebase_path(
scottmga266f952014-12-03 20:47:10452 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
453 ".",
454 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31455 }
456 if (is_win || is_mac || is_desktop_linux) {
457 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10458 ".",
459 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31460 }
cjhopman09981a92014-10-27 17:11:18461 if (is_android || is_ios) {
462 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10463 ".",
464 "//chrome")
cjhopman09981a92014-10-27 17:11:18465 } else {
amistry6e1ed1b2015-03-12 05:24:01466 deps += [
467 "//chrome/browser/policy:path_parser",
468 "//net:net_browser_services",
469 ]
[email protected]dffd8a912014-06-30 23:24:31470 }
471 } else {
472 # Configuration policy disabled.
473 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10474 ".",
475 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31476 }
477
478 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10479 sources +=
480 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31481 deps += [
James Robinson2ed4d692014-09-17 05:20:58482 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31483 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14484 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31485 ]
486 }
487 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10488 sources +=
stuartmorgan1b3df822014-12-08 14:36:11489 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10490 ".",
491 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31492 deps += [
[email protected]fca567b2014-07-02 17:37:34493 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45494 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34495 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31496 ]
497 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10498 sources +=
stuartmorgan1b3df822014-12-08 14:36:11499 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10500 ".",
501 "//chrome")
scottmga266f952014-12-03 20:47:10502 deps += [ "//chrome/common/safe_browsing:proto" ]
grtc1d1b752015-09-05 13:26:41503 if (is_win) {
504 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto" ]
505 }
nparkerb2cd5ee2015-05-13 01:12:01506 } else if (safe_browsing_mode == 3) {
507 sources += rebase_path(
508 gypi_values.chrome_browser_safe_browsing_mobile_extended_sources,
509 ".",
510 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31511 }
512 }
513
amistryf269d3b2015-06-09 19:18:39514 if (enable_hotwording) {
515 defines += [ "ENABLE_HOTWORDING" ]
516 }
517
[email protected]dffd8a912014-06-30 23:24:31518 if (is_linux) {
mostynbea514682015-08-18 22:08:56519 deps += [ "//device/media_transfer_protocol" ]
[email protected]dffd8a912014-06-30 23:24:31520 }
mostynbea514682015-08-18 22:08:56521
522 if (use_udev) {
523 deps += [ "//device/udev_linux" ]
524 }
525
[email protected]dffd8a912014-06-30 23:24:31526 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47527 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31528 }
529
530 if (is_chromeos) {
531 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10532 ".",
533 "//chrome")
534 deps += [ "//chrome/browser/chromeos" ]
[email protected]dffd8a912014-06-30 23:24:31535 }
536
yiyaoliubcd08dc22014-12-10 05:56:10537 if (is_ios) {
538 sources -= [
539 "metrics/signin_status_metrics_provider_base.cc",
540 "metrics/signin_status_metrics_provider_base.h",
541 ]
542 }
543
mukai8c99b882014-10-15 03:07:59544 if (is_chromeos || is_ios) {
545 sources -= [
546 "metrics/signin_status_metrics_provider.cc",
547 "metrics/signin_status_metrics_provider.h",
548 ]
549 }
550
[email protected]dffd8a912014-06-30 23:24:31551 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12552 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31553 }
554 if (is_desktop_linux) {
555 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10556 ".",
557 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49558 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31559 }
dvadym34532022015-01-22 15:42:51560 if (is_desktop_linux) {
561 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
562 ".",
563 "//chrome")
564 defines += [ "USE_LIBSECRET" ]
565 }
[email protected]dffd8a912014-06-30 23:24:31566 if (use_aura) {
scottmga266f952014-12-03 20:47:10567 sources +=
568 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31569 deps += [
[email protected]fca567b2014-07-02 17:37:34570 "//ui/aura",
571 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12572 "//ui/keyboard",
ben974286a2015-10-10 00:45:12573 "//ui/keyboard:keyboard_with_content",
[email protected]dffd8a912014-06-30 23:24:31574 ]
575 }
576 if (ui_compositor_image_transport) {
577 deps += [ "//ui/gl" ]
578 }
579
[email protected]855b7de2014-07-08 21:02:45580 if (use_ash) {
scottmga266f952014-12-03 20:47:10581 sources +=
582 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45583 }
584
[email protected]dffd8a912014-06-30 23:24:31585 if (use_x11) {
scottmga266f952014-12-03 20:47:10586 sources +=
587 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23588 } else {
589 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31590 }
591 if (is_posix && !is_mac && !is_ios) {
592 sources += [
rseseka0a7a042014-09-18 23:59:20593 "//chrome/app/chrome_crash_reporter_client.cc",
594 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31595 ]
596 deps += [
sdefresne8ba0b88c2015-09-18 10:33:13597 "//components/crash/content/app",
598 "//components/crash/content/browser",
[email protected]dffd8a912014-06-30 23:24:31599 ]
600 }
601 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10602 sources +=
603 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59604 if (is_chromeos) {
605 sources -= [ "net/nss_context_linux.cc" ]
606 }
[email protected]dffd8a912014-06-30 23:24:31607 }
608 if (enable_notifications) {
609 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10610 ".",
611 "//chrome")
estade6d95d1d2015-10-02 18:55:23612 if (is_android) {
613 sources +=
614 rebase_path(gypi_values.chrome_browser_notifications_android_sources,
615 ".",
616 "//chrome")
617 } else {
[email protected]dffd8a912014-06-30 23:24:31618 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11619 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10620 ".",
621 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31622 }
623 }
624 if (enable_themes) {
scottmga266f952014-12-03 20:47:10625 sources +=
626 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31627 }
628
vitalybuka93eea402014-11-05 23:47:15629 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31630 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11631 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10632 ".",
633 "//chrome")
spang5cc72542015-08-04 19:47:11634 deps += [
635 "//printing",
brettwd649f6b2015-08-18 20:58:51636 "//components/printing/browser",
spang5cc72542015-08-04 19:47:11637 ]
638
vitalybuka36259ca2014-08-28 23:42:24639 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31640 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10641 ".",
642 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31643 }
vitalybuka93eea402014-11-05 23:47:15644 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31645 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11646 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10647 ".",
648 "//chrome")
vitalybuka93eea402014-11-05 23:47:15649 } else {
[email protected]dffd8a912014-06-30 23:24:31650 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10651 sources +=
stuartmorgan1b3df822014-12-08 14:36:11652 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10653 ".",
654 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31655 }
656 }
657 if (enable_captive_portal_detection) {
658 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10659 ".",
660 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31661 }
662 if (enable_session_service) {
663 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10664 ".",
665 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31666 }
667
thestigdc377202014-10-28 22:06:02668 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10669 sources +=
670 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02671 }
672
[email protected]dffd8a912014-06-30 23:24:31673 if (is_android || is_ios) {
674 # Mobile.
scottmga266f952014-12-03 20:47:10675 sources +=
676 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31677 } else {
678 # Non-mobile.
679 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10680 ".",
681 "//chrome")
reillyge471fab2014-08-29 01:58:43682 deps += [
sdefresnebbf563c2015-03-17 11:09:09683 "//components/feedback",
juncai1b1152562015-09-04 02:36:08684 "//components/webusb",
reillyge471fab2014-08-29 01:58:43685 "//device/core",
rockot50dc5692015-07-08 01:57:26686 "//device/devices_app/public/cpp",
687 "//device/devices_app/public/cpp:factory",
reillygd77718d2014-09-04 00:57:56688 "//device/usb",
reillyge471fab2014-08-29 01:58:43689 ]
[email protected]dffd8a912014-06-30 23:24:31690 }
691
mathp17e1eba2015-10-06 21:50:59692 if (!is_chrome_branded) {
fserb1c2db4c2015-07-16 17:14:49693 sources += [
694 "search/local_files_ntp_source.cc",
695 "search/local_files_ntp_source.h",
696 ]
697 }
698
[email protected]dffd8a912014-06-30 23:24:31699 if (is_android) {
scottmga266f952014-12-03 20:47:10700 sources +=
701 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
twellingtoncaf0eb752015-06-01 16:19:50702 sources += rebase_path(gypi_values.chrome_browser_bookmark_android_sources,
703 ".",
704 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31705 deps += [
pkotwicz127726f2015-05-29 15:20:12706 ":client_discourse_context_proto",
707 ":delta_file_proto",
James Robinson2ed4d692014-09-17 05:20:58708 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30709 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18710 "//components/enhanced_bookmarks",
twifkak8c9f7502015-06-25 02:12:57711 "//components/precache/content",
712 "//components/precache/core",
estadee37f8222014-11-07 21:35:22713 "//components/resources:components_resources",
mathiash3ecfdfa2015-04-13 15:06:07714 "//components/service_tab_launcher",
blundell11d93bc2015-07-31 12:33:12715 "//components/toolbar",
cjhopman09981a92014-10-27 17:11:18716 "//components/web_contents_delegate_android",
717 "//third_party/android_opengl/etc1",
fdegans34f31e272015-05-22 16:59:03718 "//third_party/android_tools:cpu_features",
twellington0bc61492015-01-30 20:14:13719 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31720 ]
721 deps -= [
[email protected]fca567b2014-07-02 17:37:34722 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30723 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30724 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31725 ]
megjablon5effca2e2015-02-13 23:54:07726 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
rseseke59ea892015-03-19 22:27:44727
728 if (use_seccomp_bpf) {
729 defines += [ "USE_SECCOMP_BPF" ]
rsesek65d31352015-06-08 22:53:44730 deps += [ "//sandbox/linux:seccomp_bpf" ]
rseseke59ea892015-03-19 22:27:44731 }
[email protected]dffd8a912014-06-30 23:24:31732 }
733
734 if (is_mac) {
735 deps += [
[email protected]6b5d2f92014-07-30 00:40:03736 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03737 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31738 ]
739 libs += [
740 "Accelerate.framework",
741 "AddressBook.framework",
742 "AudioUnit.framework",
743 "DiskArbitration.framework",
744 "IOKit.framework",
745 "ImageCaptureCore.framework",
746 "OpenGL.framework",
747 "QuartzCore.framework",
748 "SecurityInterface.framework",
749 ]
750 }
751
752 if (enable_rlz) {
sdefresned967d552015-07-16 08:34:35753 deps += [ ":rlz" ]
[email protected]dffd8a912014-06-30 23:24:31754 }
755
756 # TODO(GYP)
757 # Temporary fix to break the browser target into smaller chunks so it
758 # will link with goma builds.
759 #["OS=="win" and chromium_win_pch==0", {
760 # "msvs_shard": 4,
761 #}],
762
763 if (is_win) {
scottmga266f952014-12-03 20:47:10764 sources +=
765 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
Brett Wilsone53895272014-09-23 23:41:46766 public_deps += [
767 "//ui/views",
768 "//ui/views/controls/webview",
769 ]
[email protected]dffd8a912014-06-30 23:24:31770 deps += [
vchigrin9593e7a2015-01-27 10:08:19771 ":chrome_process_finder",
[email protected]55699f392014-08-20 22:16:30772 "//chrome:version_header",
773 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19774 "//chrome_elf",
775 "//chrome_elf:constants",
776 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32777 "//components/browser_watcher",
778 "//components/browser_watcher:browser_watcher_client",
vchigrinbbc23e72015-01-21 22:49:23779 "//google_update",
[email protected]55699f392014-08-20 22:16:30780 "//third_party/iaccessible2",
781 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31782 "//third_party/wtl",
vchigrin88ed6f42015-01-17 11:56:42783 "//ui/metro_viewer",
784 "//win8:metro_viewer",
[email protected]dffd8a912014-06-30 23:24:31785 ]
mmenkede134672015-08-18 01:33:39786
787 all_dependent_configs = [ ":browser_win_linker_flags" ]
788
grt235b3f092015-05-27 21:42:48789 if (!is_chrome_branded) {
790 deps -= [ "//google_update" ]
791 sources -= [
792 "google/did_run_updater_win.cc",
793 "google/did_run_updater_win.h",
794 "google/google_update_win.cc",
795 "google/google_update_win.h",
796 ]
797 }
[email protected]dffd8a912014-06-30 23:24:31798 } else {
799 # Non-Windows.
scottmga266f952014-12-03 20:47:10800 sources +=
801 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37802 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31803 deps += [
scottmga266f952014-12-03 20:47:10804 "//ui/views",
805 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31806 ]
[email protected]dffd8a912014-06-30 23:24:31807 }
808 }
809
810 if (is_linux) {
[email protected]dffd8a912014-06-30 23:24:31811 if (use_aura) {
slan17e5ce7f2015-09-25 00:04:45812 configs += [ "//build/config/linux:dbus" ]
813 deps += [
814 "//build/linux:fontconfig",
815 "//dbus",
[email protected]dffd8a912014-06-30 23:24:31816 ]
[email protected]dffd8a912014-06-30 23:24:31817 }
818 if (use_x11) {
819 configs += [ "//build/config/linux:x11" ]
820 deps += [ "//ui/gfx/x" ]
821 }
822 }
823
824 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54825 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10826 ".",
827 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31828 }
829 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10830 sources +=
831 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
832 ".",
833 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31834 }
835 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10836 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31837 }
treib87bb89cbb2014-12-01 16:01:47838 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10839 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
840 ".",
841 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31842 }
bauerb7f3b8542015-06-29 19:56:19843 if (enable_supervised_users && !is_android && !is_ios) {
844 sources +=
845 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
846 ".",
847 "//chrome")
848 }
treib87bb89cbb2014-12-01 16:01:47849 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59850 sources += rebase_path(
scottmga266f952014-12-03 20:47:10851 gypi_values.chrome_browser_supervised_user_and_themes_sources,
852 ".",
853 "//chrome")
thestig169a6362014-11-13 20:47:59854 }
[email protected]dffd8a912014-06-30 23:24:31855 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10856 sources +=
857 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31858 }
859 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10860 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
861 ".",
862 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31863 }
864 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10865 sources +=
866 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31867 }
868 if (!enable_autofill_dialog || is_android || is_ios) {
869 sources -= [
870 "autofill/validation_rules_storage_factory.cc",
871 "autofill/validation_rules_storage_factory.h",
872 ]
873 }
874 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10875 sources +=
876 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
877 ".",
878 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31879 if (is_win || is_mac) {
880 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
881 # and Mac, so this test is meaningless. Can we merge these lists?
882 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11883 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10884 ".",
885 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31886 }
887 }
mfoltz150bb8b2015-04-09 22:30:05888 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55889 deps += [ "//chrome/browser/media/router" ]
mfoltz150bb8b2015-04-09 22:30:05890 }
[email protected]dffd8a912014-06-30 23:24:31891}
892
James Robinson2ed4d692014-09-17 05:20:58893if (is_android) {
894 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
895 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10896 sources =
897 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58898 jni_package = "chrome"
899 }
pkotwicz127726f2015-05-29 15:20:12900
901 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
902 proto_library("client_discourse_context_proto") {
903 sources = [
904 "android/proto/client_discourse_context.proto",
905 ]
906 }
907
908 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
909 proto_library("delta_file_proto") {
910 sources = [
911 "android/proto/delta_file.proto",
912 ]
913 }
James Robinson2ed4d692014-09-17 05:20:58914}
915
vchigrin9593e7a2015-01-27 10:08:19916if (is_win) {
917 source_set("chrome_process_finder") {
918 sources = [
919 "chrome_process_finder_win.cc",
920 "chrome_process_finder_win.h",
921 ]
922 deps = [
923 "//base",
924 "//chrome/browser/metro_utils",
925 "//chrome/common:constants",
926 ]
927 if (enable_configuration_policy) {
928 deps += [ "//chrome/browser/policy:path_parser" ]
929 }
930 }
931}
932
[email protected]77ce8022014-06-16 19:29:56933# GYP version: chrome/chrome_resources.gyp:chrome_resources
934# (generate_browser_resources action)
935grit("resources") {
936 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41937 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26938 outputs = [
939 "grit/browser_resources.h",
940 "browser_resources.pak",
941 ]
[email protected]77ce8022014-06-16 19:29:56942
[email protected]77ce8022014-06-16 19:29:56943 grit_flags = [
scottmga266f952014-12-03 20:47:10944 "-E",
scottmga266f952014-12-03 20:47:10945 "additional_modules_list_file=" +
946 rebase_path(additional_modules_list_file, root_build_dir),
947 "-E",
calamityd59c1032015-09-22 06:35:53948 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56949 ]
950
951 deps = [
[email protected]77ce8022014-06-16 19:29:56952 ":chrome_internal_resources_gen",
brettwde262b02015-05-27 19:41:42953
954 # Depend only on the generated mojo bindings since we read the .mojom.js
955 # file, rather than the whole mojo target which will link the C++ bindings.
calamityd59c1032015-09-22 06:35:53956 "//chrome/browser/ui/webui/engagement:mojo_bindings__generator",
brettwde262b02015-05-27 19:41:42957 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
vchigrin8eede942015-01-29 09:28:15958 ]
[email protected]77ce8022014-06-16 19:29:56959}
960
[email protected]77ce8022014-06-16 19:29:56961# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41962if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56963 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41964 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10965 sources = [
966 "internal/resources/additional_modules_list.input",
967 ]
968 outputs = [
969 additional_modules_list_file,
970 ]
engedy99d0e11b2014-09-30 13:32:41971 args = rebase_path(sources, root_build_dir) +
972 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56973 }
974} else {
975 group("chrome_internal_resources_gen") {
976 # Empty placeholder.
977 }
978}
Brett Wilson052ce132014-09-12 19:46:29979
980# In GYP this is part of test_support_common.
981source_set("test_support") {
982 testonly = true
983
984 # Always include this via the main test support target.
985 visibility = [ "//chrome/test:test_support" ]
986
987 sources = [
988 "browsing_data/mock_browsing_data_appcache_helper.cc",
989 "browsing_data/mock_browsing_data_appcache_helper.h",
jsbelle1fe9692015-08-22 01:02:42990 "browsing_data/mock_browsing_data_cache_storage_helper.cc",
991 "browsing_data/mock_browsing_data_cache_storage_helper.h",
Brett Wilson052ce132014-09-12 19:46:29992 "browsing_data/mock_browsing_data_channel_id_helper.cc",
993 "browsing_data/mock_browsing_data_channel_id_helper.h",
994 "browsing_data/mock_browsing_data_cookie_helper.cc",
995 "browsing_data/mock_browsing_data_cookie_helper.h",
996 "browsing_data/mock_browsing_data_database_helper.cc",
997 "browsing_data/mock_browsing_data_database_helper.h",
998 "browsing_data/mock_browsing_data_file_system_helper.cc",
999 "browsing_data/mock_browsing_data_file_system_helper.h",
1000 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
1001 "browsing_data/mock_browsing_data_flash_lso_helper.h",
1002 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
1003 "browsing_data/mock_browsing_data_indexed_db_helper.h",
1004 "browsing_data/mock_browsing_data_local_storage_helper.cc",
1005 "browsing_data/mock_browsing_data_local_storage_helper.h",
1006 "browsing_data/mock_browsing_data_quota_helper.cc",
1007 "browsing_data/mock_browsing_data_quota_helper.h",
1008 "browsing_data/mock_browsing_data_service_worker_helper.cc",
1009 "browsing_data/mock_browsing_data_service_worker_helper.h",
1010 "download/download_test_file_activity_observer.cc",
1011 "download/download_test_file_activity_observer.h",
1012 "download/test_download_shelf.cc",
1013 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:291014 "invalidation/fake_invalidation_service.cc",
1015 "invalidation/fake_invalidation_service.h",
1016 "media/fake_desktop_media_list.cc",
1017 "media/fake_desktop_media_list.h",
1018 "net/dns_probe_test_util.cc",
1019 "net/dns_probe_test_util.h",
1020 "net/url_request_mock_util.cc",
1021 "net/url_request_mock_util.h",
1022 "notifications/notification_test_util.cc",
1023 "notifications/notification_test_util.h",
1024 "password_manager/mock_password_store_service.cc",
1025 "password_manager/mock_password_store_service.h",
Brett Wilson052ce132014-09-12 19:46:291026 "password_manager/test_password_store_service.cc",
1027 "password_manager/test_password_store_service.h",
Brett Wilson052ce132014-09-12 19:46:291028 "profile_resetter/profile_resetter_test_base.cc",
1029 "profile_resetter/profile_resetter_test_base.h",
1030 "search_engines/template_url_service_factory_test_util.cc",
1031 "search_engines/template_url_service_factory_test_util.h",
1032 "search_engines/template_url_service_test_util.cc",
1033 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:451034 "sessions/session_restore_test_helper.cc",
1035 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291036 "sessions/session_service_test_helper.cc",
1037 "sessions/session_service_test_helper.h",
knn523bd722015-07-30 16:27:091038 "signin/fake_account_fetcher_service_builder.cc",
1039 "signin/fake_account_fetcher_service_builder.h",
mlerman2933d012015-04-24 18:34:271040 "signin/fake_gaia_cookie_manager_service.cc",
1041 "signin/fake_gaia_cookie_manager_service.h",
Brett Wilson052ce132014-09-12 19:46:291042 "signin/fake_profile_oauth2_token_service_builder.cc",
1043 "signin/fake_profile_oauth2_token_service_builder.h",
droger4f489e62015-07-24 19:27:591044 "signin/fake_signin_manager_builder.cc",
1045 "signin/fake_signin_manager_builder.h",
Brett Wilson052ce132014-09-12 19:46:291046 "ssl/ssl_client_auth_requestor_mock.cc",
1047 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:291048 "sync/profile_sync_service_mock.cc",
1049 "sync/profile_sync_service_mock.h",
1050 ]
1051
brettwbc8b2a22015-07-28 18:24:421052 configs += [ "//build/config:precompiled_headers" ]
1053
Brett Wilsone53895272014-09-23 23:41:461054 public_deps = [
Brett Wilson052ce132014-09-12 19:46:291055 ":browser",
Brett Wilsone53895272014-09-23 23:41:461056 "//chrome/browser/ui:test_support",
1057 ]
1058 deps = [
Brett Wilson052ce132014-09-12 19:46:291059 "//base:prefs_test_support",
1060 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:291061 "//chrome/common",
1062 "//chrome/common/safe_browsing:proto",
knn062cdbb2015-06-26 18:18:421063 "//components/invalidation/impl",
1064 "//components/invalidation/impl:test_support",
Brett Wilson052ce132014-09-12 19:46:291065 "//components/password_manager/core/browser:test_support",
1066 "//components/search_engines:test_support",
sdefresne875d0782015-09-16 12:01:281067 "//components/syncable_prefs:test_support",
jitendra.ks94c0b962015-08-10 08:24:091068 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
Brett Wilson052ce132014-09-12 19:46:291069 "//content/test:test_support",
1070 "//chrome/app/theme:theme_resources",
1071 "//net:test_support",
1072 "//skia",
1073 "//testing/gmock",
1074 "//testing/gtest",
1075 "//ui/gfx",
1076 ]
1077
Brett Wilson052ce132014-09-12 19:46:291078 if (!is_ios) {
1079 deps += [
1080 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:291081 "//google_apis:test_support",
1082 ]
1083 }
1084
thestig354985d2015-09-28 20:55:001085 if (is_android) {
1086 sources -= [
thestig259da0b2015-10-07 18:09:081087 "download/test_download_shelf.cc",
1088 "download/test_download_shelf.h",
1089 "profile_resetter/profile_resetter_test_base.cc",
1090 "profile_resetter/profile_resetter_test_base.h",
1091 "sessions/session_restore_test_helper.cc",
1092 "sessions/session_restore_test_helper.h",
thestig354985d2015-09-28 20:55:001093 "sessions/session_service_test_helper.cc",
1094 "sessions/session_service_test_helper.h",
thestig354985d2015-09-28 20:55:001095 ]
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
thestig65d7c5c2015-10-06 18:13:471234# In GYP this is part of test_support_ui.
1235source_set("test_support_ui") {
1236 testonly = true
1237
1238 # Always include this via the main test support UI target.
1239 visibility = [ "//chrome/test:test_support_ui" ]
1240
1241 sources = [
1242 "password_manager/password_manager_test_base.cc",
1243 "password_manager/password_manager_test_base.h",
1244 "ui/webui/signin/login_ui_test_utils.cc",
1245 "ui/webui/signin/login_ui_test_utils.h",
1246 ]
1247
1248 configs += [ "//build/config:precompiled_headers" ]
1249
1250 deps = [
1251 "//components/metrics:test_support",
1252 "//skia",
1253 "//testing/gtest",
1254 ]
1255}
1256
sdefresned967d552015-07-16 08:34:351257if (enable_rlz_support) {
1258 source_set("rlz") {
1259 sources =
1260 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1261 deps = [
1262 "//components/google/core/browser",
1263 "//components/omnibox/browser",
1264 "//components/rlz",
1265 "//components/search_engines",
1266 "//rlz:rlz_lib",
1267 ]
1268 }
1269}