blob: 2f21c8e613e2af002e33219c08a318b6062fb2f3 [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
[email protected]dffd8a912014-06-30 23:24:315import("//build/config/crypto.gni")
6import("//build/config/features.gni")
7import("//build/config/ui.gni")
scottmga266f952014-12-03 20:47:108
James Robinson2ed4d692014-09-17 05:20:589# //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
10# produces a conflict for the "grit" template so we have to only include one.
11if (is_android) {
12 import("//build/config/android/rules.gni")
13} else {
14 import("//tools/grit/grit_rule.gni")
15}
cmasone0a9e4ca2014-10-16 16:40:4916if (is_desktop_linux) {
17 import("//build/config/linux/pkg_config.gni")
18}
[email protected]77ce8022014-06-16 19:29:5619
20about_credits_file = "$target_gen_dir/about_credits.html"
21additional_modules_list_file =
22 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
23
scottmga266f952014-12-03 20:47:1024gypi_values = exec_script("//build/gypi_to_gn.py",
25 [ rebase_path("../chrome_browser.gypi") ],
26 "scope",
27 [ "../chrome_browser.gypi" ])
[email protected]dffd8a912014-06-30 23:24:3128
cmasone0a9e4ca2014-10-16 16:40:4929if (is_desktop_linux) {
brettwa68ea2b2015-02-01 02:54:0730 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
31 # will set this up.
cmasone0a9e4ca2014-10-16 16:40:4932 pkg_config("gnome_keyring") {
33 packages = [ "gnome-keyring-1" ]
brettwa68ea2b2015-02-01 02:54:0734 defines = [
35 "USE_GNOME_KEYRING",
36 "DLOPEN_GNOME_KEYRING",
37 ]
38 ignore_libs = true
39 }
40
41 # If you want to link gnome-keyring directly (use only for unit tests)
42 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
43 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
44 # are just itself and common gnome ones we link already, so we can get away
45 # with additionally just coding the library name here.
46 config("gnome_keyring_direct") {
47 libs = [ "gnome-keyring" ]
cmasone0a9e4ca2014-10-16 16:40:4948 }
49}
50
[email protected]dffd8a912014-06-30 23:24:3151static_library("browser") {
apavlove749bca2014-09-30 11:07:4152 configs += [
53 "//build/config/compiler:wexit_time_destructors",
54 "//third_party/WebKit/public:debug_devtools",
55 ]
[email protected]dffd8a912014-06-30 23:24:3156 defines = []
57 sources = []
58 libs = []
59 ldflags = []
60
61 # iOS/non-iOS shared deps. New dependencies should generally be added in the
62 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:4663 public_deps = [
64 "//components/autofill/core/browser",
65 "//content/public/browser",
66 "//sql",
67 "//sync",
68 ]
[email protected]dffd8a912014-06-30 23:24:3169 deps = [
70 "//base/allocator",
71 "//chrome:extra_resources",
72 "//chrome:resources",
73 "//chrome:strings",
[email protected]797b25042014-07-01 23:54:1774 "//chrome/app:generated_resources_map",
[email protected]855b7de2014-07-08 21:02:4575 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:1776 "//chrome/app/theme:theme_resources",
[email protected]855b7de2014-07-08 21:02:4577 "//chrome/browser/net:cert_logger_proto",
[email protected]797b25042014-07-01 23:54:1778 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:3079 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:3180 "//chrome/common",
81 "//chrome/common/net",
[email protected]604828c2014-07-02 20:39:1282 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:0183 "//components/bookmarks/browser",
[email protected]b9f4c682014-07-10 22:00:3784 "//components/captive_portal",
[email protected]fca567b2014-07-02 17:37:3485 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:0186 "//components/component_updater",
vasiliiac461392014-09-18 11:35:1787 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:5488 "//components/content_settings/core/common",
[email protected]478ed232014-08-19 02:10:5589 "//components/crx_file",
megjablon3476e042014-10-14 19:21:5990 "//components/data_reduction_proxy/core/browser",
[email protected]273ae5ab2014-07-09 21:10:2591 "//components/domain_reliability",
noyaudaaac3a2014-10-08 11:11:1192 "//components/enhanced_bookmarks",
[email protected]273ae5ab2014-07-09 21:10:2593 "//components/favicon_base",
94 "//components/favicon/core",
[email protected]abd4b682014-07-16 20:26:3095 "//components/feedback",
96 "//components/gcm_driver",
Brett Wilson1c693992014-08-25 19:10:0197 "//components/google/core/browser",
erikchen332265b2014-11-14 19:59:5298 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:2599 "//components/history/core/browser",
sdefresneeb278882014-12-30 19:23:49100 "//components/history/core/browser:proto",
[email protected]273ae5ab2014-07-09 21:10:25101 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01102 "//components/infobars/core",
103 "//components/invalidation",
gunsch1afc65172014-09-16 00:03:32104 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34105 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06106 "//components/metrics:profiler",
Brett Wilson1c693992014-08-25 19:10:01107 "//components/metrics/proto:proto",
[email protected]fca567b2014-07-02 17:37:34108 "//components/navigation_metrics",
Brett Wilson1c693992014-08-25 19:10:01109 "//components/network_time",
[email protected]b1c5ab682014-08-07 11:53:17110 "//components/omnibox",
[email protected]fca567b2014-07-02 17:37:34111 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00112 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01113 "//components/password_manager/core/browser",
114 "//components/password_manager/core/common",
[email protected]fca567b2014-07-02 17:37:34115 "//components/policy:policy_component",
Brett Wilson1c693992014-08-25 19:10:01116 "//components/precache/core",
[email protected]fca567b2014-07-02 17:37:34117 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37118 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01119 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40120 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01121 "//components/search_engines",
122 "//components/search_provider_logos",
[email protected]abd4b682014-07-16 20:26:30123 "//components/signin/core/browser",
124 "//components/startup_metric_utils",
[email protected]797b25042014-07-01 23:54:17125 "//components/strings",
mathp60143a32014-10-08 14:52:45126 "//components/suggestions",
Brett Wilson1c693992014-08-25 19:10:01127 "//components/sync_driver",
[email protected]b9f4c682014-07-10 22:00:37128 "//components/translate/core/browser",
129 "//components/translate/core/common",
wjmaclean7f63c6b2014-12-09 14:59:55130 "//components/ui/zoom:ui_zoom",
sorin39eab2f2015-01-06 01:09:08131 "//components/update_client",
[email protected]273ae5ab2014-07-09 21:10:25132 "//components/url_fixer",
[email protected]fca567b2014-07-02 17:37:34133 "//components/user_prefs",
isherman3be67db2014-10-24 05:57:44134 "//components/variations",
135 "//components/variations/net",
[email protected]bf4545f2014-07-11 19:49:46136 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56137 "//components/webdata_services",
drogerf8479942014-11-21 17:47:53138 "//components/web_resource",
[email protected]dffd8a912014-06-30 23:24:31139 "//content/public/browser",
140 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12141 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31142 "//crypto",
[email protected]604828c2014-07-02 20:39:12143 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56144 "//gpu/config",
ajwongf7b1cb692014-08-23 21:36:22145 "//jingle:notifier",
[email protected]dffd8a912014-06-30 23:24:31146 "//skia",
147 "//sql",
148 "//sync",
[email protected]797b25042014-07-01 23:54:17149 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31150 "//third_party/icu",
151 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22152 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31153 "//third_party/widevine/cdm:version_h",
154 "//third_party/zlib",
155 "//third_party/zlib:minizip",
156 "//third_party/zlib:zip",
157 "//ui/base",
cjhopman09981a92014-10-27 17:11:18158 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31159 "//ui/gfx",
160 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36161 "//ui/message_center",
162 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31163 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17164 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31165 ]
166
scottmga266f952014-12-03 20:47:10167 sources +=
168 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00169
[email protected]dffd8a912014-06-30 23:24:31170 if (!is_ios) {
scottmga266f952014-12-03 20:47:10171 sources +=
172 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59173 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10174 ".",
175 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59176 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10177 ".",
178 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18179 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
180 ".",
181 "//chrome")
182 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
183 ".",
184 "//chrome")
scottmga266f952014-12-03 20:47:10185 sources +=
186 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
187 sources +=
188 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
189 sources +=
190 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
191 sources +=
192 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
193 sources +=
194 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59195 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10196 ".",
197 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59198 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10199 ".",
200 "//chrome")
201 sources +=
202 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59203 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10204 ".",
205 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59206 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10207 ".",
208 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59209 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10210 ".",
211 "//chrome")
212 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18213 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
214 sources +=
scottmga266f952014-12-03 20:47:10215 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
216 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18217 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
218 sources +=
scottmga266f952014-12-03 20:47:10219 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59220 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10221 ".",
222 "//chrome")
223
[email protected]dffd8a912014-06-30 23:24:31224 #TODO(GYP) Add these sources:
225 # # These files are generated by GRIT.
226 # '<(grit_out_dir)/grit/component_extension_resources_map.cc',
227 # '<(grit_out_dir)/grit/theme_resources_map.cc',
[email protected]a3c134352014-07-11 19:23:19228 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/grit/ui_resources_map.cc',
[email protected]dffd8a912014-06-30 23:24:31229 #
230 # # This file is generated by
231 # # chrome/browser/metrics/variations/generate_resources_map.py
232 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/generated_resources_map.cc',
233
[email protected]dffd8a912014-06-30 23:24:31234 deps += [
Brett Wilson1c693992014-08-25 19:10:01235 "//apps",
[email protected]dffd8a912014-06-30 23:24:31236 "//cc",
[email protected]55699f392014-08-20 22:16:30237 "//chrome/browser/devtools",
[email protected]55699f392014-08-20 22:16:30238 "//chrome/installer/util",
oshimaf65398422014-11-18 23:30:42239 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37240 "//components/autofill/content/browser",
241 "//components/dom_distiller/content",
sdefresne715246622015-01-12 16:24:04242 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34243 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30244 "//components/navigation_interception",
245 "//components/password_manager/content/browser",
246 "//components/precache/content",
rohitraod16f44e2014-10-24 15:34:35247 "//components/sessions:sessions_content",
[email protected]abd4b682014-07-16 20:26:30248 "//components/storage_monitor",
[email protected]b9f4c682014-07-10 22:00:37249 "//components/translate/content/browser",
[email protected]fca567b2014-07-02 17:37:34250 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31251 "//components/visitedlink/browser",
252 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18253 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37254 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08255 "//content/app/resources",
[email protected]55699f392014-08-20 22:16:30256 "//media",
cjhopman09981a92014-10-27 17:11:18257 "//mojo/common",
[email protected]604828c2014-07-02 20:39:12258 "//mojo/environment:chromium",
Brett Wilson83fd4242014-09-02 19:45:33259 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31260 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15261 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24262 "//storage/common",
[email protected]4eebe74d2014-08-13 02:54:46263 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31264 "//third_party/expat",
265 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34266 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31267 "//third_party/libyuv",
blundell70fb547672015-01-19 17:18:33268 "//third_party/mojo/src/mojo/edk/system",
269 "//third_party/mojo/src/mojo/public/cpp/bindings",
270 "//third_party/mojo/src/mojo/public/js",
[email protected]dffd8a912014-06-30 23:24:31271 "//third_party/npapi",
272 "//third_party/re2",
273 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33274 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12275 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31276 "//ui/gl",
277 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12278 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34279 "//v8",
scottmga266f952014-12-03 20:47:10280
[email protected]dffd8a912014-06-30 23:24:31281 ## TODO(tonyg): Remove this dependency (crbug.com/280157).
[email protected]55699f392014-08-20 22:16:30282 #"../testing/perf/perf_test.gyp:*", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31283 ]
284 } else { # iOS
scottmga266f952014-12-03 20:47:10285 sources +=
286 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
287 sources +=
288 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
289 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31290 libs += [
291 "CoreTelephony.framework",
292 "CoreText.framework",
293 "MobileCoreServices.framework",
294 "QuartzCore.framework",
295 ]
scottmga266f952014-12-03 20:47:10296 ldflags += [
297 "-weak_framework",
298 "CoreImage",
299 ]
[email protected]dffd8a912014-06-30 23:24:31300 }
301
302 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10303 sources +=
304 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31305 }
306 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
307 sources += [
308 "net/disk_cache_dir_policy_handler.cc",
309 "net/disk_cache_dir_policy_handler.h",
310 ]
311 }
312 if (!is_android && !is_ios && enable_configuration_policy) {
313 sources += [
314 "download/download_dir_policy_handler.cc",
315 "download/download_dir_policy_handler.h",
316 ]
317 }
318 if (is_mac) {
scottmga266f952014-12-03 20:47:10319 sources +=
320 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31321 deps += [
322 #"app_shim" TODO(GYP)
tapted63829f72014-09-24 23:50:50323 #"browser_app_shim" TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31324 ]
325 }
[email protected]dffd8a912014-06-30 23:24:31326 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46327 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52328 deps += [
[email protected]cc5b3be2014-08-15 23:24:52329 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30330 "//chrome/common/extensions/api",
331 "//chrome/common/extensions/api:api_registration",
tengs4758c082014-12-19 18:51:44332 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50333 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06334 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52335 ]
[email protected]dffd8a912014-06-30 23:24:31336 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10337 ".",
338 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31339 }
340 if (enable_background) {
341 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10342 ".",
343 "//chrome")
jamesr29ea2d122014-10-23 10:30:27344 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31345 sources -= [ "background/background_mode_manager_aura.cc" ]
346 }
thestig52a87b3b2014-10-23 22:02:38347 defines += [ "ENABLE_BACKGROUND=1" ]
[email protected]dffd8a912014-06-30 23:24:31348 }
349 if (enable_task_manager) {
350 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10351 ".",
352 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31353 }
354 if (enable_spellcheck) {
355 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10356 ".",
357 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31358 deps += [ "//third_party/hunspell" ]
359 }
360 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10361 sources +=
362 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31363 #deps += [ "//components/nacl:nacl_browser" ] TODO(GYP)
364 }
apavlove749bca2014-09-30 11:07:41365
[email protected]dffd8a912014-06-30 23:24:31366 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10367 sources +=
368 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
369 ".",
370 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31371 deps += [
[email protected]604828c2014-07-02 20:39:12372 "//components/policy",
[email protected]797b25042014-07-01 23:54:17373 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31374 ]
375 if (!is_ios) {
scottmga266f952014-12-03 20:47:10376 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
377 ".",
378 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31379 }
380 if (!is_chromeos) {
381 sources += rebase_path(
scottmga266f952014-12-03 20:47:10382 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
383 ".",
384 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31385 }
386 if (is_win || is_mac || is_desktop_linux) {
387 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10388 ".",
389 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31390 }
cjhopman09981a92014-10-27 17:11:18391 if (is_android || is_ios) {
392 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10393 ".",
394 "//chrome")
cjhopman09981a92014-10-27 17:11:18395 } else {
scottmga266f952014-12-03 20:47:10396 deps += [ "//chrome/browser/policy:path_parser" ]
[email protected]dffd8a912014-06-30 23:24:31397 }
398 } else {
399 # Configuration policy disabled.
400 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10401 ".",
402 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31403 }
404
405 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10406 sources +=
407 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31408 deps += [
James Robinson2ed4d692014-09-17 05:20:58409 "//components/pdf/browser",
[email protected]dffd8a912014-06-30 23:24:31410 "//ppapi:ppapi_ipc",
thestig11b815e92014-08-26 00:32:14411 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31412 ]
413 }
414 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10415 sources +=
stuartmorgan1b3df822014-12-08 14:36:11416 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10417 ".",
418 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31419 deps += [
[email protected]fca567b2014-07-02 17:37:34420 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45421 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34422 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31423 ]
424 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10425 sources +=
stuartmorgan1b3df822014-12-08 14:36:11426 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10427 ".",
428 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31429 defines += [ "FULL_SAFE_BROWSING" ]
scottmga266f952014-12-03 20:47:10430 deps += [ "//chrome/common/safe_browsing:proto" ]
[email protected]dffd8a912014-06-30 23:24:31431 } else if (safe_browsing_mode == 2) {
432 defines += [ "MOBILE_SAFE_BROWSING" ]
433 }
434 }
435
436 if (is_linux) {
thestigee816c272014-11-22 02:47:51437 deps += [
438 "//device/media_transfer_protocol",
scottmga266f952014-12-03 20:47:10439 "//device/udev_linux",
thestigee816c272014-11-22 02:47:51440 ]
[email protected]dffd8a912014-06-30 23:24:31441 }
442 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47443 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31444 }
445
446 if (is_chromeos) {
447 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10448 ".",
449 "//chrome")
450 deps += [ "//chrome/browser/chromeos" ]
[email protected]dffd8a912014-06-30 23:24:31451 } else {
452 # Non-ChromeOS.
453 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
scottmga266f952014-12-03 20:47:10454 ".",
455 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31456 }
457
yiyaoliubcd08dc22014-12-10 05:56:10458 if (is_ios) {
459 sources -= [
460 "metrics/signin_status_metrics_provider_base.cc",
461 "metrics/signin_status_metrics_provider_base.h",
462 ]
463 }
464
mukai8c99b882014-10-15 03:07:59465 if (is_chromeos || is_ios) {
466 sources -= [
467 "metrics/signin_status_metrics_provider.cc",
468 "metrics/signin_status_metrics_provider.h",
469 ]
470 }
471
[email protected]dffd8a912014-06-30 23:24:31472 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12473 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31474 }
475 if (is_desktop_linux) {
476 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10477 ".",
478 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49479 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31480 }
dvadym34532022015-01-22 15:42:51481 if (is_desktop_linux) {
482 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
483 ".",
484 "//chrome")
485 defines += [ "USE_LIBSECRET" ]
486 }
[email protected]dffd8a912014-06-30 23:24:31487 if (use_aura) {
scottmga266f952014-12-03 20:47:10488 sources +=
489 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31490 deps += [
[email protected]fca567b2014-07-02 17:37:34491 "//ui/aura",
492 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12493 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31494 ]
495 }
496 if (ui_compositor_image_transport) {
497 deps += [ "//ui/gl" ]
498 }
499
[email protected]855b7de2014-07-08 21:02:45500 if (use_ash) {
scottmga266f952014-12-03 20:47:10501 sources +=
502 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45503 }
504
[email protected]dffd8a912014-06-30 23:24:31505 if (use_x11) {
scottmga266f952014-12-03 20:47:10506 sources +=
507 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23508 } else {
509 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31510 }
511 if (is_posix && !is_mac && !is_ios) {
512 sources += [
rseseka0a7a042014-09-18 23:59:20513 "//chrome/app/chrome_crash_reporter_client.cc",
514 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31515 ]
516 deps += [
Robert Sesekabcd8102014-08-27 16:12:44517 "//components/crash/app",
518 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31519 ]
520 }
521 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10522 sources +=
523 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59524 if (is_chromeos) {
525 sources -= [ "net/nss_context_linux.cc" ]
526 }
[email protected]dffd8a912014-06-30 23:24:31527 }
528 if (enable_notifications) {
529 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10530 ".",
531 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31532 if (!is_android) {
533 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11534 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10535 ".",
536 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31537 }
538 }
539 if (enable_themes) {
scottmga266f952014-12-03 20:47:10540 sources +=
541 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31542 }
543
vitalybuka93eea402014-11-05 23:47:15544 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31545 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11546 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10547 ".",
548 "//chrome")
549 deps += [ "//printing" ]
vitalybuka36259ca2014-08-28 23:42:24550 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31551 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10552 ".",
553 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31554 }
vitalybuka93eea402014-11-05 23:47:15555 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31556 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11557 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10558 ".",
559 "//chrome")
vitalybuka93eea402014-11-05 23:47:15560 } else {
[email protected]dffd8a912014-06-30 23:24:31561 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10562 sources +=
stuartmorgan1b3df822014-12-08 14:36:11563 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10564 ".",
565 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31566 }
567 }
568 if (enable_captive_portal_detection) {
569 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10570 ".",
571 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31572 }
573 if (enable_session_service) {
574 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10575 ".",
576 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31577 }
578
thestigdc377202014-10-28 22:06:02579 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10580 sources +=
581 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02582 }
583
[email protected]dffd8a912014-06-30 23:24:31584 if (is_android || is_ios) {
585 # Mobile.
scottmga266f952014-12-03 20:47:10586 sources +=
587 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31588 } else {
589 # Non-mobile.
590 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10591 ".",
592 "//chrome")
reillyge471fab2014-08-29 01:58:43593 deps += [
reillyge471fab2014-08-29 01:58:43594 "//device/core",
reillygd77718d2014-09-04 00:57:56595 "//device/usb",
reillyge471fab2014-08-29 01:58:43596 ]
[email protected]dffd8a912014-06-30 23:24:31597 }
598
599 if (is_android) {
scottmga266f952014-12-03 20:47:10600 sources +=
601 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31602 deps += [
James Robinson2ed4d692014-09-17 05:20:58603 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30604 "//components/cdm/browser",
megjablon5effca2e2015-02-13 23:54:07605 "//components/data_reduction_proxy/content/browser",
cjhopman09981a92014-10-27 17:11:18606 "//components/enhanced_bookmarks",
estadee37f8222014-11-07 21:35:22607 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18608 "//components/web_contents_delegate_android",
609 "//third_party/android_opengl/etc1",
twellington0bc61492015-01-30 20:14:13610 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31611 ]
612 deps -= [
[email protected]fca567b2014-07-02 17:37:34613 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30614 "//components/feedback",
615 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30616 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31617 ]
megjablon5effca2e2015-02-13 23:54:07618 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
[email protected]dffd8a912014-06-30 23:24:31619 }
620
621 if (is_mac) {
622 deps += [
[email protected]6b5d2f92014-07-30 00:40:03623 "//third_party/google_toolbox_for_mac",
[email protected]dffd8a912014-06-30 23:24:31624 #"../third_party/mozilla/mozilla.gyp:mozilla", TODO(GYP)
625 ]
626 libs += [
627 "Accelerate.framework",
628 "AddressBook.framework",
629 "AudioUnit.framework",
630 "DiskArbitration.framework",
631 "IOKit.framework",
632 "ImageCaptureCore.framework",
633 "OpenGL.framework",
634 "QuartzCore.framework",
635 "SecurityInterface.framework",
636 ]
637 }
638
639 if (enable_rlz) {
scottmga266f952014-12-03 20:47:10640 sources +=
641 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31642 deps += [ "//rlz:rlz_lib" ]
643 }
644
645 # TODO(GYP)
646 # Temporary fix to break the browser target into smaller chunks so it
647 # will link with goma builds.
648 #["OS=="win" and chromium_win_pch==0", {
649 # "msvs_shard": 4,
650 #}],
651
652 if (is_win) {
scottmga266f952014-12-03 20:47:10653 sources +=
654 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
grtaa9d8d22014-11-13 19:52:36655 if (!is_chrome_branded) {
656 sources -= [
657 "google/did_run_updater_win.cc",
658 "google/did_run_updater_win.h",
659 ]
660 }
Brett Wilsone53895272014-09-23 23:41:46661 public_deps += [
662 "//ui/views",
663 "//ui/views/controls/webview",
664 ]
[email protected]dffd8a912014-06-30 23:24:31665 deps += [
vchigrin9593e7a2015-01-27 10:08:19666 ":chrome_process_finder",
[email protected]55699f392014-08-20 22:16:30667 "//chrome:version_header",
668 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19669 "//chrome_elf",
670 "//chrome_elf:constants",
671 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32672 "//components/browser_watcher",
673 "//components/browser_watcher:browser_watcher_client",
vchigrinbbc23e72015-01-21 22:49:23674 "//google_update",
[email protected]55699f392014-08-20 22:16:30675 "//third_party/iaccessible2",
676 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31677 "//third_party/wtl",
vchigrin88ed6f42015-01-17 11:56:42678 "//ui/metro_viewer",
679 "//win8:metro_viewer",
[email protected]dffd8a912014-06-30 23:24:31680 ]
vchigrin61944ae2015-01-30 23:51:32681 libs += [ "credui.lib" ]
[email protected]dffd8a912014-06-30 23:24:31682 } else {
683 # Non-Windows.
scottmga266f952014-12-03 20:47:10684 sources +=
685 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37686 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31687 deps += [
scottmga266f952014-12-03 20:47:10688 "//ui/views",
689 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31690 ]
691 # TODO(GYP) why is this needed? Very susicious.
692 # "include_dirs": [
693 # "<(INTERMEDIATE_DIR)/chrome",
694 # ],
695 }
696 }
697
698 if (is_linux) {
scottmga266f952014-12-03 20:47:10699 sources +=
700 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31701 if (use_aura) {
702 configs += [
703 "//build/config/linux:dbus",
704 "//build/config/linux:fontconfig",
705 ]
scottmga266f952014-12-03 20:47:10706 deps += [ "//dbus" ]
[email protected]dffd8a912014-06-30 23:24:31707 }
708 if (use_x11) {
709 configs += [ "//build/config/linux:x11" ]
710 deps += [ "//ui/gfx/x" ]
711 }
712 }
713
714 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54715 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10716 ".",
717 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31718 }
719 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10720 sources +=
721 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
722 ".",
723 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31724 }
725 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10726 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31727 }
treib87bb89cbb2014-12-01 16:01:47728 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10729 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
730 ".",
731 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31732 }
treib87bb89cbb2014-12-01 16:01:47733 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59734 sources += rebase_path(
scottmga266f952014-12-03 20:47:10735 gypi_values.chrome_browser_supervised_user_and_themes_sources,
736 ".",
737 "//chrome")
thestig169a6362014-11-13 20:47:59738 }
[email protected]dffd8a912014-06-30 23:24:31739 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10740 sources +=
741 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31742 }
743 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10744 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
745 ".",
746 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31747 }
748 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10749 sources +=
750 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31751 }
752 if (!enable_autofill_dialog || is_android || is_ios) {
753 sources -= [
754 "autofill/validation_rules_storage_factory.cc",
755 "autofill/validation_rules_storage_factory.h",
756 ]
757 }
758 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10759 sources +=
760 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
761 ".",
762 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31763 if (is_win || is_mac) {
764 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
765 # and Mac, so this test is meaningless. Can we merge these lists?
766 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11767 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10768 ".",
769 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31770 }
771 }
772}
773
James Robinson2ed4d692014-09-17 05:20:58774if (is_android) {
775 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
776 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10777 sources =
778 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58779 jni_package = "chrome"
780 }
781}
782
vchigrin9593e7a2015-01-27 10:08:19783if (is_win) {
784 source_set("chrome_process_finder") {
785 sources = [
786 "chrome_process_finder_win.cc",
787 "chrome_process_finder_win.h",
788 ]
789 deps = [
790 "//base",
791 "//chrome/browser/metro_utils",
792 "//chrome/common:constants",
793 ]
794 if (enable_configuration_policy) {
795 deps += [ "//chrome/browser/policy:path_parser" ]
796 }
797 }
798}
799
[email protected]77ce8022014-06-16 19:29:56800# GYP version: chrome/chrome_resources.gyp:chrome_resources
801# (generate_browser_resources action)
802grit("resources") {
803 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41804 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26805 outputs = [
806 "grit/browser_resources.h",
807 "browser_resources.pak",
808 ]
[email protected]77ce8022014-06-16 19:29:56809
scottmga266f952014-12-03 20:47:10810 omnibox_mojom_file =
811 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
[email protected]77ce8022014-06-16 19:29:56812
813 grit_flags = [
scottmga266f952014-12-03 20:47:10814 "-E",
815 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
816 "-E",
817 "additional_modules_list_file=" +
818 rebase_path(additional_modules_list_file, root_build_dir),
819 "-E",
820 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56821 ]
822
823 deps = [
824 ":about_credits",
825 ":chrome_internal_resources_gen",
vchigrin8eede942015-01-29 09:28:15826 ]
827 inputs = [
828 omnibox_mojom_file,
[email protected]77ce8022014-06-16 19:29:56829 ]
830}
831
832# GYP version: chrome/chrome_resource.gyp:about_credits
833action("about_credits") {
834 script = "//tools/licenses.py"
835
dbeamc7776c72014-12-17 02:24:05836 inputs = [
837 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
838 # generate a .d file with all the licenses/credits that about:credits uses.
839 # Then about:credits will automatically rebuild when one of them changes.
840 # See: depfile in gn's documentation (gn help depfile).
841 "resources/about_credits.tmpl",
842 "resources/about_credits_entry.tmpl",
843 ]
844
scottmga266f952014-12-03 20:47:10845 outputs = [
846 about_credits_file,
847 ]
[email protected]77ce8022014-06-16 19:29:56848
849 args = [
850 "credits",
851 rebase_path(about_credits_file, root_build_dir),
852 ]
853}
854
855# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41856if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56857 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41858 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10859 sources = [
860 "internal/resources/additional_modules_list.input",
861 ]
862 outputs = [
863 additional_modules_list_file,
864 ]
engedy99d0e11b2014-09-30 13:32:41865 args = rebase_path(sources, root_build_dir) +
866 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56867 }
868} else {
869 group("chrome_internal_resources_gen") {
870 # Empty placeholder.
871 }
872}
Brett Wilson052ce132014-09-12 19:46:29873
874# In GYP this is part of test_support_common.
875source_set("test_support") {
876 testonly = true
877
878 # Always include this via the main test support target.
879 visibility = [ "//chrome/test:test_support" ]
880
881 sources = [
882 "browsing_data/mock_browsing_data_appcache_helper.cc",
883 "browsing_data/mock_browsing_data_appcache_helper.h",
884 "browsing_data/mock_browsing_data_channel_id_helper.cc",
885 "browsing_data/mock_browsing_data_channel_id_helper.h",
886 "browsing_data/mock_browsing_data_cookie_helper.cc",
887 "browsing_data/mock_browsing_data_cookie_helper.h",
888 "browsing_data/mock_browsing_data_database_helper.cc",
889 "browsing_data/mock_browsing_data_database_helper.h",
890 "browsing_data/mock_browsing_data_file_system_helper.cc",
891 "browsing_data/mock_browsing_data_file_system_helper.h",
892 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
893 "browsing_data/mock_browsing_data_flash_lso_helper.h",
894 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
895 "browsing_data/mock_browsing_data_indexed_db_helper.h",
896 "browsing_data/mock_browsing_data_local_storage_helper.cc",
897 "browsing_data/mock_browsing_data_local_storage_helper.h",
898 "browsing_data/mock_browsing_data_quota_helper.cc",
899 "browsing_data/mock_browsing_data_quota_helper.h",
900 "browsing_data/mock_browsing_data_service_worker_helper.cc",
901 "browsing_data/mock_browsing_data_service_worker_helper.h",
902 "download/download_test_file_activity_observer.cc",
903 "download/download_test_file_activity_observer.h",
904 "download/test_download_shelf.cc",
905 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:29906 "invalidation/fake_invalidation_service.cc",
907 "invalidation/fake_invalidation_service.h",
908 "media/fake_desktop_media_list.cc",
909 "media/fake_desktop_media_list.h",
910 "net/dns_probe_test_util.cc",
911 "net/dns_probe_test_util.h",
912 "net/url_request_mock_util.cc",
913 "net/url_request_mock_util.h",
914 "notifications/notification_test_util.cc",
915 "notifications/notification_test_util.h",
916 "password_manager/mock_password_store_service.cc",
917 "password_manager/mock_password_store_service.h",
918 "password_manager/null_password_store_service.cc",
919 "password_manager/null_password_store_service.h",
920 "password_manager/test_password_store_service.cc",
921 "password_manager/test_password_store_service.h",
922 "prefs/pref_service_mock_factory.cc",
923 "prefs/pref_service_mock_factory.h",
924 "profile_resetter/profile_resetter_test_base.cc",
925 "profile_resetter/profile_resetter_test_base.h",
926 "search_engines/template_url_service_factory_test_util.cc",
927 "search_engines/template_url_service_factory_test_util.h",
928 "search_engines/template_url_service_test_util.cc",
929 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:45930 "sessions/session_restore_test_helper.cc",
931 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:29932 "sessions/session_service_test_helper.cc",
933 "sessions/session_service_test_helper.h",
934 "signin/fake_account_reconcilor.cc",
935 "signin/fake_account_reconcilor.h",
936 "signin/fake_account_tracker_service.cc",
937 "signin/fake_account_tracker_service.h",
938 "signin/fake_profile_oauth2_token_service.cc",
939 "signin/fake_profile_oauth2_token_service.h",
940 "signin/fake_profile_oauth2_token_service_builder.cc",
941 "signin/fake_profile_oauth2_token_service_builder.h",
942 "signin/fake_signin_manager.cc",
943 "signin/fake_signin_manager.h",
944 "ssl/ssl_client_auth_requestor_mock.cc",
945 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:29946 "sync/profile_sync_components_factory_mock.cc",
947 "sync/profile_sync_components_factory_mock.h",
948 "sync/profile_sync_service_mock.cc",
949 "sync/profile_sync_service_mock.h",
shadi2f257fc2014-12-03 18:04:12950 "ui/webui/signin/login_ui_test_utils.cc",
951 "ui/webui/signin/login_ui_test_utils.h",
Brett Wilson052ce132014-09-12 19:46:29952 ]
953
Brett Wilsone53895272014-09-23 23:41:46954 public_deps = [
Brett Wilson052ce132014-09-12 19:46:29955 ":browser",
Brett Wilsone53895272014-09-23 23:41:46956 "//chrome/browser/ui:test_support",
957 ]
958 deps = [
Brett Wilson052ce132014-09-12 19:46:29959 "//base:prefs_test_support",
960 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:29961 "//chrome/common",
962 "//chrome/common/safe_browsing:proto",
963 "//components/invalidation",
964 "//components/invalidation:test_support",
965 "//components/password_manager/core/browser:test_support",
966 "//components/search_engines:test_support",
967 "//content/test:test_support",
968 "//chrome/app/theme:theme_resources",
969 "//net:test_support",
970 "//skia",
971 "//testing/gmock",
972 "//testing/gtest",
973 "//ui/gfx",
974 ]
975
Brett Wilson052ce132014-09-12 19:46:29976 if (!is_ios) {
977 deps += [
978 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:29979 "//google_apis:test_support",
980 ]
981 }
982
James Robinson2ed4d692014-09-17 05:20:58983 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:38984 sources += [
985 "extensions/extension_action_test_util.cc",
986 "extensions/extension_action_test_util.h",
987 ]
scottmga266f952014-12-03 20:47:10988 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:58989 }
990
Brett Wilson052ce132014-09-12 19:46:29991 if (is_chromeos) {
992 sources += [
993 "chromeos/app_mode/fake_cws.cc",
994 "chromeos/app_mode/fake_cws.h",
995 "chromeos/file_manager/fake_disk_mount_manager.cc",
996 "chromeos/file_manager/fake_disk_mount_manager.h",
997 "chromeos/input_method/mock_candidate_window_controller.cc",
998 "chromeos/input_method/mock_candidate_window_controller.h",
999 "chromeos/input_method/mock_input_method_engine.cc",
1000 "chromeos/input_method/mock_input_method_engine.h",
1001 "chromeos/input_method/mock_input_method_manager.cc",
1002 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511003 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1004 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391005 "chromeos/login/session/user_session_manager_test_api.cc",
1006 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291007 "chromeos/login/test/js_checker.cc",
1008 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591009 "chromeos/login/test/oobe_screen_waiter.cc",
1010 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291011 "chromeos/login/ui/mock_login_display.cc",
1012 "chromeos/login/ui/mock_login_display.h",
1013 "chromeos/login/ui/mock_login_display_host.cc",
1014 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511015 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1016 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301017 "chromeos/login/users/fake_chrome_user_manager.cc",
1018 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511019 "chromeos/login/users/fake_supervised_user_manager.cc",
1020 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511021 "chromeos/login/users/mock_user_manager.cc",
1022 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291023 "chromeos/net/network_portal_detector_test_utils.cc",
1024 "chromeos/net/network_portal_detector_test_utils.h",
1025 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1026 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1027 "chromeos/policy/device_policy_builder.cc",
1028 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071029 "chromeos/policy/fake_consumer_management_service.cc",
1030 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291031 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1032 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071033 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1034 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291035 "chromeos/policy/stub_enterprise_install_attributes.cc",
1036 "chromeos/policy/stub_enterprise_install_attributes.h",
1037 "chromeos/settings/device_settings_test_helper.cc",
1038 "chromeos/settings/device_settings_test_helper.h",
1039 "chromeos/system/fake_input_device_settings.cc",
1040 "chromeos/system/fake_input_device_settings.h",
1041 ]
1042 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:171043 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291044 }
1045
1046 if (enable_configuration_policy) {
1047 sources += [
1048 "policy/test/local_policy_test_server.cc",
1049 "policy/test/local_policy_test_server.h",
1050 ]
Brett Wilsone53895272014-09-23 23:41:461051 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291052 "//components/policy:policy_component_test_support",
1053 "//components/policy:test_support",
1054 ]
Brett Wilson052ce132014-09-12 19:46:291055 }
1056
1057 if (safe_browsing_mode == 1) {
1058 sources += [
1059 "extensions/fake_safe_browsing_database_manager.cc",
1060 "extensions/fake_safe_browsing_database_manager.h",
1061 ]
1062 }
1063
1064 if (enable_extensions) {
1065 sources += [
1066 "drive/dummy_drive_service.cc",
1067 "drive/dummy_drive_service.h",
1068 "drive/fake_drive_service.cc",
1069 "drive/fake_drive_service.h",
1070 "drive/test_util.cc",
1071 "drive/test_util.h",
1072 "extensions/api/messaging/native_messaging_test_util.cc",
1073 "extensions/api/messaging/native_messaging_test_util.h",
1074 "extensions/extension_notification_observer.cc",
1075 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:291076 "extensions/mock_extension_special_storage_policy.cc",
1077 "extensions/mock_extension_special_storage_policy.h",
1078 "extensions/test_blacklist.cc",
1079 "extensions/test_blacklist.h",
1080 "extensions/test_blacklist_state_fetcher.cc",
1081 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511082 "extensions/test_extension_dir.cc",
1083 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591084 "extensions/test_extension_environment.cc",
1085 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291086 "extensions/test_extension_prefs.cc",
1087 "extensions/test_extension_prefs.h",
1088 "extensions/test_extension_service.cc",
1089 "extensions/test_extension_service.h",
1090 "extensions/test_extension_system.cc",
1091 "extensions/test_extension_system.h",
1092 "media_galleries/media_galleries_test_util.cc",
1093 "media_galleries/media_galleries_test_util.h",
1094 ]
scottmga266f952014-12-03 20:47:101095 deps += [ "//components/storage_monitor:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291096 }
1097
1098 if (enable_mdns) {
1099 sources += [
1100 "local_discovery/test_service_discovery_client.cc",
1101 "local_discovery/test_service_discovery_client.h",
1102 ]
1103 }
1104
1105 if (enable_app_list) {
1106 sources += [
1107 "ui/app_list/test/chrome_app_list_test_support.cc",
1108 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511109 "ui/app_list/test/test_app_list_controller_delegate.cc",
1110 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291111 ]
1112 }
1113
1114 if (enable_wifi_bootstrapping) {
1115 sources += [
1116 "local_discovery/wifi/mock_wifi_manager.cc",
1117 "local_discovery/wifi/mock_wifi_manager.h",
1118 ]
1119 }
1120}