blob: 1343cb6a65b6a990ffd74814c2827263092a1c9a [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() {
mgiuca0366a512015-06-24 05:41:3323 # 'Ok Google' hotwording is disabled by default in open source builds. Set to
24 # true to enable. (This will download a closed-source NaCl module at startup.)
25 # Chrome-branded builds have this enabled by default.
26 enable_hotwording = is_chrome_branded
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
cmasone0a9e4ca2014-10-16 16:40:4938if (is_desktop_linux) {
brettwa68ea2b2015-02-01 02:54:0739 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
40 # will set this up.
cmasone0a9e4ca2014-10-16 16:40:4941 pkg_config("gnome_keyring") {
42 packages = [ "gnome-keyring-1" ]
brettwa68ea2b2015-02-01 02:54:0743 defines = [
44 "USE_GNOME_KEYRING",
45 "DLOPEN_GNOME_KEYRING",
46 ]
47 ignore_libs = true
48 }
49
50 # If you want to link gnome-keyring directly (use only for unit tests)
51 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
52 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
53 # are just itself and common gnome ones we link already, so we can get away
54 # with additionally just coding the library name here.
55 config("gnome_keyring_direct") {
56 libs = [ "gnome-keyring" ]
cmasone0a9e4ca2014-10-16 16:40:4957 }
58}
59
brettw44a5cf82015-04-08 19:48:2260source_set("browser") {
apavlove749bca2014-09-30 11:07:4161 configs += [
62 "//build/config/compiler:wexit_time_destructors",
brettwbc8b2a22015-07-28 18:24:4263 "//build/config:precompiled_headers",
apavlove749bca2014-09-30 11:07:4164 "//third_party/WebKit/public:debug_devtools",
65 ]
[email protected]dffd8a912014-06-30 23:24:3166 defines = []
67 sources = []
68 libs = []
69 ldflags = []
70
71 # iOS/non-iOS shared deps. New dependencies should generally be added in the
72 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:4673 public_deps = [
74 "//components/autofill/core/browser",
75 "//content/public/browser",
76 "//sql",
77 "//sync",
78 ]
[email protected]dffd8a912014-06-30 23:24:3179 deps = [
80 "//base/allocator",
81 "//chrome:extra_resources",
82 "//chrome:resources",
83 "//chrome:strings",
[email protected]797b25042014-07-01 23:54:1784 "//chrome/app:generated_resources_map",
[email protected]855b7de2014-07-08 21:02:4585 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:1786 "//chrome/app/theme:theme_resources",
estark4282f1172015-05-13 22:01:5587 "//chrome/browser/net:encrypted_cert_logger_proto",
[email protected]797b25042014-07-01 23:54:1788 "//chrome/browser/net:probe_message_proto",
estark4282f1172015-05-13 22:01:5589 "//chrome/browser/ssl:cert_logger_proto",
[email protected]abd4b682014-07-16 20:26:3090 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:3191 "//chrome/common",
92 "//chrome/common/net",
[email protected]604828c2014-07-02 20:39:1293 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:0194 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:0395 "//components/bookmarks/managed",
[email protected]b9f4c682014-07-10 22:00:3796 "//components/captive_portal",
[email protected]fca567b2014-07-02 17:37:3497 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:0198 "//components/component_updater",
vabrfc325fa2015-04-10 16:24:4599 "//components/content_settings/content/common",
vasiliiac461392014-09-18 11:35:17100 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:54101 "//components/content_settings/core/common",
[email protected]478ed232014-08-19 02:10:55102 "//components/crx_file",
megjablon3476e042014-10-14 19:21:59103 "//components/data_reduction_proxy/core/browser",
reillyg4a849272015-02-20 21:38:43104 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:25105 "//components/domain_reliability",
noyaudaaac3a2014-10-08 11:11:11106 "//components/enhanced_bookmarks",
sdefresnecbacfd72015-03-20 12:11:32107 "//components/favicon/core",
sdefresne001b10de2015-03-20 18:41:46108 "//components/favicon_base",
[email protected]abd4b682014-07-16 20:26:30109 "//components/gcm_driver",
jianli2104ce612015-05-06 00:24:34110 "//components/gcm_driver/instance_id",
Brett Wilson1c693992014-08-25 19:10:01111 "//components/google/core/browser",
fsamuelaf5bf6d12015-05-28 16:29:54112 "//components/guest_view/browser",
erikchen332265b2014-11-14 19:59:52113 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25114 "//components/history/core/browser",
115 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01116 "//components/infobars/core",
knn062cdbb2015-06-26 18:18:42117 "//components/invalidation/impl",
gunsch1afc65172014-09-16 00:03:32118 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34119 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06120 "//components/metrics:profiler",
Brett Wilson1c693992014-08-25 19:10:01121 "//components/metrics/proto:proto",
rsleevic327b48f82015-04-30 02:03:25122 "//components/mime_util",
[email protected]fca567b2014-07-02 17:37:34123 "//components/navigation_metrics",
Brett Wilson1c693992014-08-25 19:10:01124 "//components/network_time",
fgorskife7b92f2015-06-15 19:19:40125 "//components/offline_pages",
blundell2102f7c2015-07-09 10:00:53126 "//components/omnibox/browser",
[email protected]fca567b2014-07-02 17:37:34127 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00128 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01129 "//components/password_manager/core/browser",
130 "//components/password_manager/core/common",
[email protected]fca567b2014-07-02 17:37:34131 "//components/policy:policy_component",
timvolodine66cc354b2015-07-14 16:13:16132 "//components/printing/browser:printing_browser",
stevenjbb237e2ae2015-07-02 22:02:11133 "//components/proxy_config",
[email protected]fca567b2014-07-02 17:37:34134 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37135 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01136 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40137 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01138 "//components/search_engines",
139 "//components/search_provider_logos",
[email protected]abd4b682014-07-16 20:26:30140 "//components/signin/core/browser",
141 "//components/startup_metric_utils",
[email protected]797b25042014-07-01 23:54:17142 "//components/strings",
mathp60143a32014-10-08 14:52:45143 "//components/suggestions",
Brett Wilson1c693992014-08-25 19:10:01144 "//components/sync_driver",
[email protected]b9f4c682014-07-10 22:00:37145 "//components/translate/core/browser",
146 "//components/translate/core/common",
wjmaclean7f63c6b2014-12-09 14:59:55147 "//components/ui/zoom:ui_zoom",
sdefresnec083d1f2015-04-17 21:12:18148 "//components/undo",
sorin39eab2f2015-01-06 01:09:08149 "//components/update_client",
[email protected]273ae5ab2014-07-09 21:10:25150 "//components/url_fixer",
[email protected]fca567b2014-07-02 17:37:34151 "//components/user_prefs",
isherman3be67db2014-10-24 05:57:44152 "//components/variations",
153 "//components/variations/net",
[email protected]bf4545f2014-07-11 19:49:46154 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56155 "//components/webdata_services",
drogerf8479942014-11-21 17:47:53156 "//components/web_resource",
[email protected]dffd8a912014-06-30 23:24:31157 "//content/public/browser",
158 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12159 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31160 "//crypto",
[email protected]604828c2014-07-02 20:39:12161 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56162 "//gpu/config",
[email protected]dffd8a912014-06-30 23:24:31163 "//skia",
164 "//sql",
165 "//sync",
[email protected]797b25042014-07-01 23:54:17166 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31167 "//third_party/icu",
168 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22169 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31170 "//third_party/widevine/cdm:version_h",
171 "//third_party/zlib",
172 "//third_party/zlib:minizip",
173 "//third_party/zlib:zip",
174 "//ui/base",
cjhopman09981a92014-10-27 17:11:18175 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31176 "//ui/gfx",
177 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36178 "//ui/message_center",
179 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31180 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17181 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31182 ]
183
scottmga266f952014-12-03 20:47:10184 sources +=
185 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00186
[email protected]dffd8a912014-06-30 23:24:31187 if (!is_ios) {
scottmga266f952014-12-03 20:47:10188 sources +=
189 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59190 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10191 ".",
192 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59193 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10194 ".",
195 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18196 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
197 ".",
198 "//chrome")
199 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
200 ".",
201 "//chrome")
benwellsedf5e082015-04-23 02:45:14202 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
203 ".",
204 "//chrome")
scottmga266f952014-12-03 20:47:10205 sources +=
206 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
207 sources +=
208 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
209 sources +=
210 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
211 sources +=
212 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
213 sources +=
214 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59215 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10216 ".",
217 "//chrome")
mlamouri4e372022015-03-29 14:51:06218 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
219 ".",
220 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59221 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10222 ".",
223 "//chrome")
224 sources +=
225 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59226 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10227 ".",
228 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59229 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10230 ".",
231 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59232 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10233 ".",
234 "//chrome")
235 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18236 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
237 sources +=
scottmga266f952014-12-03 20:47:10238 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
239 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18240 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
241 sources +=
scottmga266f952014-12-03 20:47:10242 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59243 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10244 ".",
245 "//chrome")
246
[email protected]dffd8a912014-06-30 23:24:31247 deps += [
Brett Wilson1c693992014-08-25 19:10:01248 "//apps",
[email protected]dffd8a912014-06-30 23:24:31249 "//cc",
brettwca934582015-02-24 21:50:27250 "//chrome/app:generated_resources_map",
251 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30252 "//chrome/browser/devtools",
brettwca934582015-02-24 21:50:27253 "//chrome/browser/resources:component_extension_resources",
[email protected]55699f392014-08-20 22:16:30254 "//chrome/installer/util",
oshimaf65398422014-11-18 23:30:42255 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37256 "//components/autofill/content/browser",
lazyboy14082d22015-04-02 01:04:58257 "//components/browsing_data",
jeremyim364ac1182015-03-03 18:49:43258 "//components/data_reduction_proxy/content/browser",
dgozmanec2b982a2015-04-28 10:36:39259 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46260 "//components/devtools_http_handler",
mdjones1c47b052015-07-22 19:15:39261 "//components/dom_distiller/content:content_browser",
sdefresne001b10de2015-03-20 18:41:46262 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04263 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34264 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30265 "//components/navigation_interception",
266 "//components/password_manager/content/browser",
dbeam155ac972015-04-20 15:34:48267 "//components/plugins/common",
bauerbf0e64aa2015-06-25 15:54:07268 "//components/safe_json",
brettwa22cb3b2015-04-30 20:23:12269 "//components/sessions",
[email protected]abd4b682014-07-16 20:26:30270 "//components/storage_monitor",
[email protected]b9f4c682014-07-10 22:00:37271 "//components/translate/content/browser",
[email protected]fca567b2014-07-02 17:37:34272 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31273 "//components/visitedlink/browser",
274 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18275 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37276 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08277 "//content/app/resources",
[email protected]55699f392014-08-20 22:16:30278 "//media",
rockot50dc5692015-07-08 01:57:26279 "//mojo/application/public/cpp",
cjhopman09981a92014-10-27 17:11:18280 "//mojo/common",
[email protected]604828c2014-07-02 20:39:12281 "//mojo/environment:chromium",
Brett Wilson83fd4242014-09-02 19:45:33282 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31283 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15284 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24285 "//storage/common",
erga3c614c92015-04-03 17:47:51286 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46287 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31288 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34289 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31290 "//third_party/libyuv",
blundell70fb547672015-01-19 17:18:33291 "//third_party/mojo/src/mojo/edk/system",
292 "//third_party/mojo/src/mojo/public/cpp/bindings",
293 "//third_party/mojo/src/mojo/public/js",
[email protected]dffd8a912014-06-30 23:24:31294 "//third_party/re2",
295 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33296 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12297 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31298 "//ui/gl",
brettwca934582015-02-24 21:50:27299 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31300 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12301 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34302 "//v8",
[email protected]dffd8a912014-06-30 23:24:31303 ]
paulmeyer27b328b2015-06-17 21:26:12304
305 if (toolkit_views) {
306 deps += [ "//ui/views" ]
307 }
[email protected]dffd8a912014-06-30 23:24:31308 } else { # iOS
scottmga266f952014-12-03 20:47:10309 sources +=
310 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
311 sources +=
312 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
313 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31314 libs += [
315 "CoreTelephony.framework",
316 "CoreText.framework",
317 "MobileCoreServices.framework",
318 "QuartzCore.framework",
319 ]
scottmga266f952014-12-03 20:47:10320 ldflags += [
321 "-weak_framework",
322 "CoreImage",
323 ]
[email protected]dffd8a912014-06-30 23:24:31324 }
325
326 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10327 sources +=
328 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31329 }
330 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
331 sources += [
332 "net/disk_cache_dir_policy_handler.cc",
333 "net/disk_cache_dir_policy_handler.h",
334 ]
335 }
336 if (!is_android && !is_ios && enable_configuration_policy) {
337 sources += [
338 "download/download_dir_policy_handler.cc",
339 "download/download_dir_policy_handler.h",
340 ]
341 }
342 if (is_mac) {
scottmga266f952014-12-03 20:47:10343 sources +=
344 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31345 deps += [
brettw624c82d2015-07-23 00:31:50346 #"app_shim" TODO(GYP) bug 512600
347 #"browser_app_shim" TODO(GYP) bug 512600
[email protected]dffd8a912014-06-30 23:24:31348 ]
349 }
[email protected]dffd8a912014-06-30 23:24:31350 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46351 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52352 deps += [
[email protected]cc5b3be2014-08-15 23:24:52353 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30354 "//chrome/common/extensions/api",
355 "//chrome/common/extensions/api:api_registration",
lukasza8acc4eb2015-07-20 20:57:20356 "//components/drive:drive",
msarda4c408ff2015-04-22 14:27:56357 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44358 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50359 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06360 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52361 ]
[email protected]dffd8a912014-06-30 23:24:31362 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10363 ".",
364 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31365 }
366 if (enable_background) {
367 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10368 ".",
369 "//chrome")
jamesr29ea2d122014-10-23 10:30:27370 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31371 sources -= [ "background/background_mode_manager_aura.cc" ]
372 }
373 }
374 if (enable_task_manager) {
375 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10376 ".",
377 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31378 }
379 if (enable_spellcheck) {
380 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10381 ".",
382 "//chrome")
dylanking34c72442015-07-23 23:19:58383 if (!is_android) {
384 deps += [ "//third_party/hunspell" ]
385 }
[email protected]dffd8a912014-06-30 23:24:31386 }
387 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10388 sources +=
389 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
dpranke6065cf72015-02-26 03:30:58390 deps += [ "//components/nacl:nacl_browser" ]
[email protected]dffd8a912014-06-30 23:24:31391 }
apavlove749bca2014-09-30 11:07:41392
[email protected]dffd8a912014-06-30 23:24:31393 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10394 sources +=
395 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
396 ".",
397 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31398 deps += [
[email protected]604828c2014-07-02 20:39:12399 "//components/policy",
[email protected]797b25042014-07-01 23:54:17400 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31401 ]
402 if (!is_ios) {
scottmga266f952014-12-03 20:47:10403 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
404 ".",
405 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31406 }
407 if (!is_chromeos) {
408 sources += rebase_path(
scottmga266f952014-12-03 20:47:10409 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
410 ".",
411 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31412 }
413 if (is_win || is_mac || is_desktop_linux) {
414 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10415 ".",
416 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31417 }
cjhopman09981a92014-10-27 17:11:18418 if (is_android || is_ios) {
419 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10420 ".",
421 "//chrome")
cjhopman09981a92014-10-27 17:11:18422 } else {
amistry6e1ed1b2015-03-12 05:24:01423 deps += [
424 "//chrome/browser/policy:path_parser",
425 "//net:net_browser_services",
426 ]
[email protected]dffd8a912014-06-30 23:24:31427 }
428 } else {
429 # Configuration policy disabled.
430 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10431 ".",
432 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31433 }
434
435 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10436 sources +=
437 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31438 deps += [
James Robinson2ed4d692014-09-17 05:20:58439 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31440 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14441 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31442 ]
443 }
444 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10445 sources +=
stuartmorgan1b3df822014-12-08 14:36:11446 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10447 ".",
448 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31449 deps += [
[email protected]fca567b2014-07-02 17:37:34450 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45451 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34452 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31453 ]
454 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10455 sources +=
stuartmorgan1b3df822014-12-08 14:36:11456 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10457 ".",
458 "//chrome")
scottmga266f952014-12-03 20:47:10459 deps += [ "//chrome/common/safe_browsing:proto" ]
nparkerb2cd5ee2015-05-13 01:12:01460 } else if (safe_browsing_mode == 3) {
461 sources += rebase_path(
462 gypi_values.chrome_browser_safe_browsing_mobile_extended_sources,
463 ".",
464 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31465 }
466 }
467
amistryf269d3b2015-06-09 19:18:39468 if (enable_hotwording) {
469 defines += [ "ENABLE_HOTWORDING" ]
470 }
471
[email protected]dffd8a912014-06-30 23:24:31472 if (is_linux) {
thestigee816c272014-11-22 02:47:51473 deps += [
474 "//device/media_transfer_protocol",
scottmga266f952014-12-03 20:47:10475 "//device/udev_linux",
thestigee816c272014-11-22 02:47:51476 ]
[email protected]dffd8a912014-06-30 23:24:31477 }
478 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47479 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31480 }
481
482 if (is_chromeos) {
483 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10484 ".",
485 "//chrome")
486 deps += [ "//chrome/browser/chromeos" ]
[email protected]dffd8a912014-06-30 23:24:31487 } else {
488 # Non-ChromeOS.
489 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
scottmga266f952014-12-03 20:47:10490 ".",
491 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31492 }
493
yiyaoliubcd08dc22014-12-10 05:56:10494 if (is_ios) {
495 sources -= [
496 "metrics/signin_status_metrics_provider_base.cc",
497 "metrics/signin_status_metrics_provider_base.h",
498 ]
499 }
500
mukai8c99b882014-10-15 03:07:59501 if (is_chromeos || is_ios) {
502 sources -= [
503 "metrics/signin_status_metrics_provider.cc",
504 "metrics/signin_status_metrics_provider.h",
505 ]
506 }
507
[email protected]dffd8a912014-06-30 23:24:31508 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12509 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31510 }
511 if (is_desktop_linux) {
512 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10513 ".",
514 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49515 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31516 }
dvadym34532022015-01-22 15:42:51517 if (is_desktop_linux) {
518 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
519 ".",
520 "//chrome")
521 defines += [ "USE_LIBSECRET" ]
522 }
[email protected]dffd8a912014-06-30 23:24:31523 if (use_aura) {
scottmga266f952014-12-03 20:47:10524 sources +=
525 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31526 deps += [
[email protected]fca567b2014-07-02 17:37:34527 "//ui/aura",
528 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12529 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31530 ]
531 }
532 if (ui_compositor_image_transport) {
533 deps += [ "//ui/gl" ]
534 }
535
[email protected]855b7de2014-07-08 21:02:45536 if (use_ash) {
scottmga266f952014-12-03 20:47:10537 sources +=
538 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45539 }
540
[email protected]dffd8a912014-06-30 23:24:31541 if (use_x11) {
scottmga266f952014-12-03 20:47:10542 sources +=
543 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23544 } else {
545 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31546 }
547 if (is_posix && !is_mac && !is_ios) {
548 sources += [
rseseka0a7a042014-09-18 23:59:20549 "//chrome/app/chrome_crash_reporter_client.cc",
550 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31551 ]
552 deps += [
Robert Sesekabcd8102014-08-27 16:12:44553 "//components/crash/app",
554 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31555 ]
556 }
557 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10558 sources +=
559 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59560 if (is_chromeos) {
561 sources -= [ "net/nss_context_linux.cc" ]
562 }
[email protected]dffd8a912014-06-30 23:24:31563 }
564 if (enable_notifications) {
565 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10566 ".",
567 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31568 if (!is_android) {
569 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11570 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10571 ".",
572 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31573 }
574 }
575 if (enable_themes) {
scottmga266f952014-12-03 20:47:10576 sources +=
577 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31578 }
579
vitalybuka93eea402014-11-05 23:47:15580 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31581 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11582 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10583 ".",
584 "//chrome")
585 deps += [ "//printing" ]
vitalybuka36259ca2014-08-28 23:42:24586 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31587 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10588 ".",
589 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31590 }
vitalybuka93eea402014-11-05 23:47:15591 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31592 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11593 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10594 ".",
595 "//chrome")
vitalybuka93eea402014-11-05 23:47:15596 } else {
[email protected]dffd8a912014-06-30 23:24:31597 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10598 sources +=
stuartmorgan1b3df822014-12-08 14:36:11599 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10600 ".",
601 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31602 }
603 }
604 if (enable_captive_portal_detection) {
605 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10606 ".",
607 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31608 }
609 if (enable_session_service) {
610 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10611 ".",
612 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31613 }
614
thestigdc377202014-10-28 22:06:02615 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10616 sources +=
617 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02618 }
619
[email protected]dffd8a912014-06-30 23:24:31620 if (is_android || is_ios) {
621 # Mobile.
scottmga266f952014-12-03 20:47:10622 sources +=
623 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31624 } else {
625 # Non-mobile.
626 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10627 ".",
628 "//chrome")
reillyge471fab2014-08-29 01:58:43629 deps += [
sdefresnebbf563c2015-03-17 11:09:09630 "//components/feedback",
reillyge471fab2014-08-29 01:58:43631 "//device/core",
rockot50dc5692015-07-08 01:57:26632 "//device/devices_app/public/cpp",
633 "//device/devices_app/public/cpp:factory",
reillygd77718d2014-09-04 00:57:56634 "//device/usb",
reillyge471fab2014-08-29 01:58:43635 ]
[email protected]dffd8a912014-06-30 23:24:31636 }
637
fserb1c2db4c2015-07-16 17:14:49638 if (!is_official_build) {
639 sources += [
640 "search/local_files_ntp_source.cc",
641 "search/local_files_ntp_source.h",
642 ]
643 }
644
[email protected]dffd8a912014-06-30 23:24:31645 if (is_android) {
scottmga266f952014-12-03 20:47:10646 sources +=
647 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
twellingtoncaf0eb752015-06-01 16:19:50648 sources += rebase_path(gypi_values.chrome_browser_bookmark_android_sources,
649 ".",
650 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31651 deps += [
pkotwicz127726f2015-05-29 15:20:12652 ":client_discourse_context_proto",
653 ":delta_file_proto",
James Robinson2ed4d692014-09-17 05:20:58654 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30655 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18656 "//components/enhanced_bookmarks",
twifkak8c9f7502015-06-25 02:12:57657 "//components/precache/content",
658 "//components/precache/core",
estadee37f8222014-11-07 21:35:22659 "//components/resources:components_resources",
mathiash3ecfdfa2015-04-13 15:06:07660 "//components/service_tab_launcher",
cjhopman09981a92014-10-27 17:11:18661 "//components/web_contents_delegate_android",
662 "//third_party/android_opengl/etc1",
fdegans34f31e272015-05-22 16:59:03663 "//third_party/android_tools:cpu_features",
twellington0bc61492015-01-30 20:14:13664 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31665 ]
666 deps -= [
[email protected]fca567b2014-07-02 17:37:34667 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30668 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30669 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31670 ]
megjablon5effca2e2015-02-13 23:54:07671 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
rseseke59ea892015-03-19 22:27:44672
673 if (use_seccomp_bpf) {
674 defines += [ "USE_SECCOMP_BPF" ]
rsesek65d31352015-06-08 22:53:44675 deps += [ "//sandbox/linux:seccomp_bpf" ]
rseseke59ea892015-03-19 22:27:44676 }
[email protected]dffd8a912014-06-30 23:24:31677 }
678
679 if (is_mac) {
680 deps += [
[email protected]6b5d2f92014-07-30 00:40:03681 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03682 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31683 ]
684 libs += [
685 "Accelerate.framework",
686 "AddressBook.framework",
687 "AudioUnit.framework",
688 "DiskArbitration.framework",
689 "IOKit.framework",
690 "ImageCaptureCore.framework",
691 "OpenGL.framework",
692 "QuartzCore.framework",
693 "SecurityInterface.framework",
694 ]
695 }
696
697 if (enable_rlz) {
sdefresned967d552015-07-16 08:34:35698 deps += [ ":rlz" ]
[email protected]dffd8a912014-06-30 23:24:31699 }
700
701 # TODO(GYP)
702 # Temporary fix to break the browser target into smaller chunks so it
703 # will link with goma builds.
704 #["OS=="win" and chromium_win_pch==0", {
705 # "msvs_shard": 4,
706 #}],
707
708 if (is_win) {
scottmga266f952014-12-03 20:47:10709 sources +=
710 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
Brett Wilsone53895272014-09-23 23:41:46711 public_deps += [
712 "//ui/views",
713 "//ui/views/controls/webview",
714 ]
[email protected]dffd8a912014-06-30 23:24:31715 deps += [
vchigrin9593e7a2015-01-27 10:08:19716 ":chrome_process_finder",
[email protected]55699f392014-08-20 22:16:30717 "//chrome:version_header",
718 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19719 "//chrome_elf",
720 "//chrome_elf:constants",
721 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32722 "//components/browser_watcher",
723 "//components/browser_watcher:browser_watcher_client",
vchigrinbbc23e72015-01-21 22:49:23724 "//google_update",
[email protected]55699f392014-08-20 22:16:30725 "//third_party/iaccessible2",
726 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31727 "//third_party/wtl",
vchigrin88ed6f42015-01-17 11:56:42728 "//ui/metro_viewer",
729 "//win8:metro_viewer",
[email protected]dffd8a912014-06-30 23:24:31730 ]
brettw44a5cf82015-04-08 19:48:22731 libs += [
732 "credui.lib",
733 "netapi32.lib",
734 ]
grt235b3f092015-05-27 21:42:48735 if (!is_chrome_branded) {
736 deps -= [ "//google_update" ]
737 sources -= [
738 "google/did_run_updater_win.cc",
739 "google/did_run_updater_win.h",
740 "google/google_update_win.cc",
741 "google/google_update_win.h",
742 ]
743 }
[email protected]dffd8a912014-06-30 23:24:31744 } else {
745 # Non-Windows.
scottmga266f952014-12-03 20:47:10746 sources +=
747 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37748 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31749 deps += [
scottmga266f952014-12-03 20:47:10750 "//ui/views",
751 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31752 ]
[email protected]dffd8a912014-06-30 23:24:31753 }
754 }
755
756 if (is_linux) {
scottmga266f952014-12-03 20:47:10757 sources +=
758 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31759 if (use_aura) {
760 configs += [
761 "//build/config/linux:dbus",
762 "//build/config/linux:fontconfig",
763 ]
scottmga266f952014-12-03 20:47:10764 deps += [ "//dbus" ]
[email protected]dffd8a912014-06-30 23:24:31765 }
766 if (use_x11) {
767 configs += [ "//build/config/linux:x11" ]
768 deps += [ "//ui/gfx/x" ]
769 }
770 }
771
772 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54773 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10774 ".",
775 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31776 }
777 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10778 sources +=
779 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
780 ".",
781 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31782 }
783 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10784 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31785 }
treib87bb89cbb2014-12-01 16:01:47786 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10787 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
788 ".",
789 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31790 }
bauerb7f3b8542015-06-29 19:56:19791 if (enable_supervised_users && !is_android && !is_ios) {
792 sources +=
793 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
794 ".",
795 "//chrome")
796 }
treib87bb89cbb2014-12-01 16:01:47797 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59798 sources += rebase_path(
scottmga266f952014-12-03 20:47:10799 gypi_values.chrome_browser_supervised_user_and_themes_sources,
800 ".",
801 "//chrome")
thestig169a6362014-11-13 20:47:59802 }
[email protected]dffd8a912014-06-30 23:24:31803 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10804 sources +=
805 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31806 }
807 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10808 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
809 ".",
810 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31811 }
812 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10813 sources +=
814 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31815 }
816 if (!enable_autofill_dialog || is_android || is_ios) {
817 sources -= [
818 "autofill/validation_rules_storage_factory.cc",
819 "autofill/validation_rules_storage_factory.h",
820 ]
821 }
822 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10823 sources +=
824 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
825 ".",
826 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31827 if (is_win || is_mac) {
828 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
829 # and Mac, so this test is meaningless. Can we merge these lists?
830 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11831 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10832 ".",
833 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31834 }
835 }
mfoltz150bb8b2015-04-09 22:30:05836 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55837 deps += [ "//chrome/browser/media/router" ]
mfoltz150bb8b2015-04-09 22:30:05838 }
[email protected]dffd8a912014-06-30 23:24:31839}
840
James Robinson2ed4d692014-09-17 05:20:58841if (is_android) {
842 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
843 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10844 sources =
845 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58846 jni_package = "chrome"
847 }
pkotwicz127726f2015-05-29 15:20:12848
849 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
850 proto_library("client_discourse_context_proto") {
851 sources = [
852 "android/proto/client_discourse_context.proto",
853 ]
854 }
855
856 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
857 proto_library("delta_file_proto") {
858 sources = [
859 "android/proto/delta_file.proto",
860 ]
861 }
James Robinson2ed4d692014-09-17 05:20:58862}
863
vchigrin9593e7a2015-01-27 10:08:19864if (is_win) {
865 source_set("chrome_process_finder") {
866 sources = [
867 "chrome_process_finder_win.cc",
868 "chrome_process_finder_win.h",
869 ]
870 deps = [
871 "//base",
872 "//chrome/browser/metro_utils",
873 "//chrome/common:constants",
874 ]
875 if (enable_configuration_policy) {
876 deps += [ "//chrome/browser/policy:path_parser" ]
877 }
878 }
879}
880
[email protected]77ce8022014-06-16 19:29:56881# GYP version: chrome/chrome_resources.gyp:chrome_resources
882# (generate_browser_resources action)
883grit("resources") {
884 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41885 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26886 outputs = [
887 "grit/browser_resources.h",
888 "browser_resources.pak",
889 ]
[email protected]77ce8022014-06-16 19:29:56890
scottmga266f952014-12-03 20:47:10891 omnibox_mojom_file =
892 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
[email protected]77ce8022014-06-16 19:29:56893
894 grit_flags = [
scottmga266f952014-12-03 20:47:10895 "-E",
896 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
897 "-E",
898 "additional_modules_list_file=" +
899 rebase_path(additional_modules_list_file, root_build_dir),
900 "-E",
901 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56902 ]
903
904 deps = [
905 ":about_credits",
906 ":chrome_internal_resources_gen",
brettwde262b02015-05-27 19:41:42907
908 # Depend only on the generated mojo bindings since we read the .mojom.js
909 # file, rather than the whole mojo target which will link the C++ bindings.
910 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
vchigrin8eede942015-01-29 09:28:15911 ]
912 inputs = [
913 omnibox_mojom_file,
[email protected]77ce8022014-06-16 19:29:56914 ]
915}
916
917# GYP version: chrome/chrome_resource.gyp:about_credits
918action("about_credits") {
919 script = "//tools/licenses.py"
920
dbeamc7776c72014-12-17 02:24:05921 inputs = [
922 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
923 # generate a .d file with all the licenses/credits that about:credits uses.
924 # Then about:credits will automatically rebuild when one of them changes.
925 # See: depfile in gn's documentation (gn help depfile).
926 "resources/about_credits.tmpl",
927 "resources/about_credits_entry.tmpl",
928 ]
929
scottmga266f952014-12-03 20:47:10930 outputs = [
931 about_credits_file,
932 ]
[email protected]77ce8022014-06-16 19:29:56933
934 args = [
935 "credits",
936 rebase_path(about_credits_file, root_build_dir),
937 ]
938}
939
940# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41941if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56942 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41943 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10944 sources = [
945 "internal/resources/additional_modules_list.input",
946 ]
947 outputs = [
948 additional_modules_list_file,
949 ]
engedy99d0e11b2014-09-30 13:32:41950 args = rebase_path(sources, root_build_dir) +
951 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56952 }
953} else {
954 group("chrome_internal_resources_gen") {
955 # Empty placeholder.
956 }
957}
Brett Wilson052ce132014-09-12 19:46:29958
959# In GYP this is part of test_support_common.
960source_set("test_support") {
961 testonly = true
962
963 # Always include this via the main test support target.
964 visibility = [ "//chrome/test:test_support" ]
965
966 sources = [
967 "browsing_data/mock_browsing_data_appcache_helper.cc",
968 "browsing_data/mock_browsing_data_appcache_helper.h",
969 "browsing_data/mock_browsing_data_channel_id_helper.cc",
970 "browsing_data/mock_browsing_data_channel_id_helper.h",
971 "browsing_data/mock_browsing_data_cookie_helper.cc",
972 "browsing_data/mock_browsing_data_cookie_helper.h",
973 "browsing_data/mock_browsing_data_database_helper.cc",
974 "browsing_data/mock_browsing_data_database_helper.h",
975 "browsing_data/mock_browsing_data_file_system_helper.cc",
976 "browsing_data/mock_browsing_data_file_system_helper.h",
977 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
978 "browsing_data/mock_browsing_data_flash_lso_helper.h",
979 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
980 "browsing_data/mock_browsing_data_indexed_db_helper.h",
981 "browsing_data/mock_browsing_data_local_storage_helper.cc",
982 "browsing_data/mock_browsing_data_local_storage_helper.h",
983 "browsing_data/mock_browsing_data_quota_helper.cc",
984 "browsing_data/mock_browsing_data_quota_helper.h",
985 "browsing_data/mock_browsing_data_service_worker_helper.cc",
986 "browsing_data/mock_browsing_data_service_worker_helper.h",
987 "download/download_test_file_activity_observer.cc",
988 "download/download_test_file_activity_observer.h",
989 "download/test_download_shelf.cc",
990 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:29991 "invalidation/fake_invalidation_service.cc",
992 "invalidation/fake_invalidation_service.h",
993 "media/fake_desktop_media_list.cc",
994 "media/fake_desktop_media_list.h",
995 "net/dns_probe_test_util.cc",
996 "net/dns_probe_test_util.h",
997 "net/url_request_mock_util.cc",
998 "net/url_request_mock_util.h",
999 "notifications/notification_test_util.cc",
1000 "notifications/notification_test_util.h",
1001 "password_manager/mock_password_store_service.cc",
1002 "password_manager/mock_password_store_service.h",
1003 "password_manager/null_password_store_service.cc",
1004 "password_manager/null_password_store_service.h",
gcasto686493e72015-07-08 23:53:481005 "password_manager/password_manager_test_base.cc",
1006 "password_manager/password_manager_test_base.h",
Brett Wilson052ce132014-09-12 19:46:291007 "password_manager/test_password_store_service.cc",
1008 "password_manager/test_password_store_service.h",
1009 "prefs/pref_service_mock_factory.cc",
1010 "prefs/pref_service_mock_factory.h",
1011 "profile_resetter/profile_resetter_test_base.cc",
1012 "profile_resetter/profile_resetter_test_base.h",
1013 "search_engines/template_url_service_factory_test_util.cc",
1014 "search_engines/template_url_service_factory_test_util.h",
1015 "search_engines/template_url_service_test_util.cc",
1016 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:451017 "sessions/session_restore_test_helper.cc",
1018 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:291019 "sessions/session_service_test_helper.cc",
1020 "sessions/session_service_test_helper.h",
anthonyvd58a912b62015-07-08 22:55:431021 "signin/fake_account_fetcher_service.cc",
1022 "signin/fake_account_fetcher_service.h",
mlerman2933d012015-04-24 18:34:271023 "signin/fake_gaia_cookie_manager_service.cc",
1024 "signin/fake_gaia_cookie_manager_service.h",
Brett Wilson052ce132014-09-12 19:46:291025 "signin/fake_profile_oauth2_token_service_builder.cc",
1026 "signin/fake_profile_oauth2_token_service_builder.h",
droger4f489e62015-07-24 19:27:591027 "signin/fake_signin_manager_builder.cc",
1028 "signin/fake_signin_manager_builder.h",
Brett Wilson052ce132014-09-12 19:46:291029 "ssl/ssl_client_auth_requestor_mock.cc",
1030 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:291031 "sync/profile_sync_components_factory_mock.cc",
1032 "sync/profile_sync_components_factory_mock.h",
1033 "sync/profile_sync_service_mock.cc",
1034 "sync/profile_sync_service_mock.h",
shadi2f257fc2014-12-03 18:04:121035 "ui/webui/signin/login_ui_test_utils.cc",
1036 "ui/webui/signin/login_ui_test_utils.h",
Brett Wilson052ce132014-09-12 19:46:291037 ]
1038
brettwbc8b2a22015-07-28 18:24:421039 configs += [ "//build/config:precompiled_headers" ]
1040
Brett Wilsone53895272014-09-23 23:41:461041 public_deps = [
Brett Wilson052ce132014-09-12 19:46:291042 ":browser",
Brett Wilsone53895272014-09-23 23:41:461043 "//chrome/browser/ui:test_support",
1044 ]
1045 deps = [
Brett Wilson052ce132014-09-12 19:46:291046 "//base:prefs_test_support",
1047 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:291048 "//chrome/common",
1049 "//chrome/common/safe_browsing:proto",
knn062cdbb2015-06-26 18:18:421050 "//components/invalidation/impl",
1051 "//components/invalidation/impl:test_support",
Brett Wilson052ce132014-09-12 19:46:291052 "//components/password_manager/core/browser:test_support",
1053 "//components/search_engines:test_support",
1054 "//content/test:test_support",
1055 "//chrome/app/theme:theme_resources",
1056 "//net:test_support",
1057 "//skia",
1058 "//testing/gmock",
1059 "//testing/gtest",
1060 "//ui/gfx",
1061 ]
1062
Brett Wilson052ce132014-09-12 19:46:291063 if (!is_ios) {
1064 deps += [
1065 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:291066 "//google_apis:test_support",
1067 ]
1068 }
1069
James Robinson2ed4d692014-09-17 05:20:581070 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:381071 sources += [
1072 "extensions/extension_action_test_util.cc",
1073 "extensions/extension_action_test_util.h",
1074 ]
scottmga266f952014-12-03 20:47:101075 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:581076 }
1077
Brett Wilson052ce132014-09-12 19:46:291078 if (is_chromeos) {
1079 sources += [
1080 "chromeos/app_mode/fake_cws.cc",
1081 "chromeos/app_mode/fake_cws.h",
1082 "chromeos/file_manager/fake_disk_mount_manager.cc",
1083 "chromeos/file_manager/fake_disk_mount_manager.h",
1084 "chromeos/input_method/mock_candidate_window_controller.cc",
1085 "chromeos/input_method/mock_candidate_window_controller.h",
1086 "chromeos/input_method/mock_input_method_engine.cc",
1087 "chromeos/input_method/mock_input_method_engine.h",
1088 "chromeos/input_method/mock_input_method_manager.cc",
1089 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511090 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1091 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391092 "chromeos/login/session/user_session_manager_test_api.cc",
1093 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291094 "chromeos/login/test/js_checker.cc",
1095 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591096 "chromeos/login/test/oobe_screen_waiter.cc",
1097 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291098 "chromeos/login/ui/mock_login_display.cc",
1099 "chromeos/login/ui/mock_login_display.h",
1100 "chromeos/login/ui/mock_login_display_host.cc",
1101 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511102 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1103 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301104 "chromeos/login/users/fake_chrome_user_manager.cc",
1105 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511106 "chromeos/login/users/fake_supervised_user_manager.cc",
1107 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511108 "chromeos/login/users/mock_user_manager.cc",
1109 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291110 "chromeos/net/network_portal_detector_test_utils.cc",
1111 "chromeos/net/network_portal_detector_test_utils.h",
1112 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1113 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1114 "chromeos/policy/device_policy_builder.cc",
1115 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071116 "chromeos/policy/fake_consumer_management_service.cc",
1117 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291118 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1119 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071120 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1121 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291122 "chromeos/policy/stub_enterprise_install_attributes.cc",
1123 "chromeos/policy/stub_enterprise_install_attributes.h",
1124 "chromeos/settings/device_settings_test_helper.cc",
1125 "chromeos/settings/device_settings_test_helper.h",
1126 "chromeos/system/fake_input_device_settings.cc",
1127 "chromeos/system/fake_input_device_settings.h",
1128 ]
1129 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:171130 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291131 }
1132
1133 if (enable_configuration_policy) {
1134 sources += [
1135 "policy/test/local_policy_test_server.cc",
1136 "policy/test/local_policy_test_server.h",
1137 ]
Brett Wilsone53895272014-09-23 23:41:461138 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291139 "//components/policy:policy_component_test_support",
1140 "//components/policy:test_support",
1141 ]
Brett Wilson052ce132014-09-12 19:46:291142 }
1143
1144 if (safe_browsing_mode == 1) {
1145 sources += [
1146 "extensions/fake_safe_browsing_database_manager.cc",
1147 "extensions/fake_safe_browsing_database_manager.h",
1148 ]
1149 }
1150
1151 if (enable_extensions) {
1152 sources += [
Brett Wilson052ce132014-09-12 19:46:291153 "extensions/api/messaging/native_messaging_test_util.cc",
1154 "extensions/api/messaging/native_messaging_test_util.h",
1155 "extensions/extension_notification_observer.cc",
1156 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:291157 "extensions/mock_extension_special_storage_policy.cc",
1158 "extensions/mock_extension_special_storage_policy.h",
1159 "extensions/test_blacklist.cc",
1160 "extensions/test_blacklist.h",
1161 "extensions/test_blacklist_state_fetcher.cc",
1162 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511163 "extensions/test_extension_dir.cc",
1164 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591165 "extensions/test_extension_environment.cc",
1166 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291167 "extensions/test_extension_prefs.cc",
1168 "extensions/test_extension_prefs.h",
1169 "extensions/test_extension_service.cc",
1170 "extensions/test_extension_service.h",
1171 "extensions/test_extension_system.cc",
1172 "extensions/test_extension_system.h",
1173 "media_galleries/media_galleries_test_util.cc",
1174 "media_galleries/media_galleries_test_util.h",
1175 ]
lukasza8acc4eb2015-07-20 20:57:201176 deps += [
1177 "//components/drive:test_support",
1178 "//components/storage_monitor:test_support",
1179 ]
Brett Wilson052ce132014-09-12 19:46:291180 }
1181
1182 if (enable_mdns) {
1183 sources += [
1184 "local_discovery/test_service_discovery_client.cc",
1185 "local_discovery/test_service_discovery_client.h",
1186 ]
1187 }
1188
1189 if (enable_app_list) {
1190 sources += [
1191 "ui/app_list/test/chrome_app_list_test_support.cc",
1192 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511193 "ui/app_list/test/test_app_list_controller_delegate.cc",
1194 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291195 ]
1196 }
1197
1198 if (enable_wifi_bootstrapping) {
1199 sources += [
1200 "local_discovery/wifi/mock_wifi_manager.cc",
1201 "local_discovery/wifi/mock_wifi_manager.h",
1202 ]
1203 }
1204}
sdefresned967d552015-07-16 08:34:351205
1206if (enable_rlz_support) {
1207 source_set("rlz") {
1208 sources =
1209 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1210 deps = [
1211 "//components/google/core/browser",
1212 "//components/omnibox/browser",
1213 "//components/rlz",
1214 "//components/search_engines",
1215 "//rlz:rlz_lib",
1216 ]
1217 }
1218}