blob: b3fe0802c535df6ebedd2ee7478ef2ea0c54f03c [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",
sdefresne039209fc2015-03-09 15:33:1777 "//chrome/browser/autocomplete:in_memory_url_index_cache_proto",
[email protected]855b7de2014-07-08 21:02:4578 "//chrome/browser/net:cert_logger_proto",
[email protected]797b25042014-07-01 23:54:1779 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:3080 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:3181 "//chrome/common",
82 "//chrome/common/net",
[email protected]604828c2014-07-02 20:39:1283 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:0184 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:0385 "//components/bookmarks/managed",
[email protected]b9f4c682014-07-10 22:00:3786 "//components/captive_portal",
[email protected]fca567b2014-07-02 17:37:3487 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:0188 "//components/component_updater",
vasiliiac461392014-09-18 11:35:1789 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:5490 "//components/content_settings/core/common",
[email protected]478ed232014-08-19 02:10:5591 "//components/crx_file",
megjablon3476e042014-10-14 19:21:5992 "//components/data_reduction_proxy/core/browser",
reillyg4a849272015-02-20 21:38:4393 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:2594 "//components/domain_reliability",
noyaudaaac3a2014-10-08 11:11:1195 "//components/enhanced_bookmarks",
[email protected]273ae5ab2014-07-09 21:10:2596 "//components/favicon_base",
sdefresnefee69b42015-03-16 16:56:0397 "//components/favicon/core/browser",
[email protected]abd4b682014-07-16 20:26:3098 "//components/gcm_driver",
Brett Wilson1c693992014-08-25 19:10:0199 "//components/google/core/browser",
erikchen332265b2014-11-14 19:59:52100 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25101 "//components/history/core/browser",
102 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01103 "//components/infobars/core",
104 "//components/invalidation",
gunsch1afc65172014-09-16 00:03:32105 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34106 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06107 "//components/metrics:profiler",
Brett Wilson1c693992014-08-25 19:10:01108 "//components/metrics/proto:proto",
[email protected]fca567b2014-07-02 17:37:34109 "//components/navigation_metrics",
Brett Wilson1c693992014-08-25 19:10:01110 "//components/network_time",
[email protected]b1c5ab682014-08-07 11:53:17111 "//components/omnibox",
[email protected]fca567b2014-07-02 17:37:34112 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00113 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01114 "//components/password_manager/core/browser",
115 "//components/password_manager/core/common",
[email protected]fca567b2014-07-02 17:37:34116 "//components/policy:policy_component",
Brett Wilson1c693992014-08-25 19:10:01117 "//components/precache/core",
[email protected]fca567b2014-07-02 17:37:34118 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37119 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01120 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40121 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01122 "//components/search_engines",
123 "//components/search_provider_logos",
[email protected]abd4b682014-07-16 20:26:30124 "//components/signin/core/browser",
125 "//components/startup_metric_utils",
[email protected]797b25042014-07-01 23:54:17126 "//components/strings",
mathp60143a32014-10-08 14:52:45127 "//components/suggestions",
Brett Wilson1c693992014-08-25 19:10:01128 "//components/sync_driver",
[email protected]b9f4c682014-07-10 22:00:37129 "//components/translate/core/browser",
130 "//components/translate/core/common",
wjmaclean7f63c6b2014-12-09 14:59:55131 "//components/ui/zoom:ui_zoom",
sorin39eab2f2015-01-06 01:09:08132 "//components/update_client",
[email protected]273ae5ab2014-07-09 21:10:25133 "//components/url_fixer",
[email protected]fca567b2014-07-02 17:37:34134 "//components/user_prefs",
isherman3be67db2014-10-24 05:57:44135 "//components/variations",
136 "//components/variations/net",
[email protected]bf4545f2014-07-11 19:49:46137 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56138 "//components/webdata_services",
drogerf8479942014-11-21 17:47:53139 "//components/web_resource",
[email protected]dffd8a912014-06-30 23:24:31140 "//content/public/browser",
141 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12142 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31143 "//crypto",
[email protected]604828c2014-07-02 20:39:12144 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56145 "//gpu/config",
ajwongf7b1cb692014-08-23 21:36:22146 "//jingle:notifier",
[email protected]dffd8a912014-06-30 23:24:31147 "//skia",
148 "//sql",
149 "//sync",
[email protected]797b25042014-07-01 23:54:17150 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31151 "//third_party/icu",
152 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22153 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31154 "//third_party/widevine/cdm:version_h",
155 "//third_party/zlib",
156 "//third_party/zlib:minizip",
157 "//third_party/zlib:zip",
158 "//ui/base",
cjhopman09981a92014-10-27 17:11:18159 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31160 "//ui/gfx",
161 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36162 "//ui/message_center",
163 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31164 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17165 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31166 ]
167
scottmga266f952014-12-03 20:47:10168 sources +=
169 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00170
[email protected]dffd8a912014-06-30 23:24:31171 if (!is_ios) {
scottmga266f952014-12-03 20:47:10172 sources +=
173 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59174 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10175 ".",
176 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59177 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10178 ".",
179 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18180 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
181 ".",
182 "//chrome")
183 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
184 ".",
185 "//chrome")
scottmga266f952014-12-03 20:47:10186 sources +=
187 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
188 sources +=
189 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
190 sources +=
191 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
192 sources +=
193 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
194 sources +=
195 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59196 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10197 ".",
198 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59199 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10200 ".",
201 "//chrome")
202 sources +=
203 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59204 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10205 ".",
206 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59207 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10208 ".",
209 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59210 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10211 ".",
212 "//chrome")
213 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18214 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
215 sources +=
scottmga266f952014-12-03 20:47:10216 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
217 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18218 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
219 sources +=
scottmga266f952014-12-03 20:47:10220 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59221 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10222 ".",
223 "//chrome")
224
[email protected]dffd8a912014-06-30 23:24:31225 deps += [
Brett Wilson1c693992014-08-25 19:10:01226 "//apps",
[email protected]dffd8a912014-06-30 23:24:31227 "//cc",
brettwca934582015-02-24 21:50:27228 "//chrome/app:generated_resources_map",
229 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30230 "//chrome/browser/devtools",
brettwca934582015-02-24 21:50:27231 "//chrome/browser/resources:component_extension_resources",
[email protected]55699f392014-08-20 22:16:30232 "//chrome/installer/util",
oshimaf65398422014-11-18 23:30:42233 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37234 "//components/autofill/content/browser",
jeremyim364ac1182015-03-03 18:49:43235 "//components/data_reduction_proxy/content/browser",
[email protected]b9f4c682014-07-10 22:00:37236 "//components/dom_distiller/content",
sdefresne715246622015-01-12 16:24:04237 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34238 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30239 "//components/navigation_interception",
240 "//components/password_manager/content/browser",
241 "//components/precache/content",
rohitraod16f44e2014-10-24 15:34:35242 "//components/sessions:sessions_content",
[email protected]abd4b682014-07-16 20:26:30243 "//components/storage_monitor",
[email protected]b9f4c682014-07-10 22:00:37244 "//components/translate/content/browser",
[email protected]fca567b2014-07-02 17:37:34245 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31246 "//components/visitedlink/browser",
247 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18248 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37249 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08250 "//content/app/resources",
[email protected]55699f392014-08-20 22:16:30251 "//media",
cjhopman09981a92014-10-27 17:11:18252 "//mojo/common",
[email protected]604828c2014-07-02 20:39:12253 "//mojo/environment:chromium",
Brett Wilson83fd4242014-09-02 19:45:33254 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31255 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15256 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24257 "//storage/common",
[email protected]4eebe74d2014-08-13 02:54:46258 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31259 "//third_party/expat",
260 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34261 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31262 "//third_party/libyuv",
blundell70fb547672015-01-19 17:18:33263 "//third_party/mojo/src/mojo/edk/system",
264 "//third_party/mojo/src/mojo/public/cpp/bindings",
265 "//third_party/mojo/src/mojo/public/js",
[email protected]dffd8a912014-06-30 23:24:31266 "//third_party/npapi",
267 "//third_party/re2",
268 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33269 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12270 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31271 "//ui/gl",
brettwca934582015-02-24 21:50:27272 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31273 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12274 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34275 "//v8",
[email protected]dffd8a912014-06-30 23:24:31276 ]
277 } else { # iOS
scottmga266f952014-12-03 20:47:10278 sources +=
279 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
280 sources +=
281 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
282 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31283 libs += [
284 "CoreTelephony.framework",
285 "CoreText.framework",
286 "MobileCoreServices.framework",
287 "QuartzCore.framework",
288 ]
scottmga266f952014-12-03 20:47:10289 ldflags += [
290 "-weak_framework",
291 "CoreImage",
292 ]
[email protected]dffd8a912014-06-30 23:24:31293 }
294
295 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10296 sources +=
297 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31298 }
299 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
300 sources += [
301 "net/disk_cache_dir_policy_handler.cc",
302 "net/disk_cache_dir_policy_handler.h",
303 ]
304 }
305 if (!is_android && !is_ios && enable_configuration_policy) {
306 sources += [
307 "download/download_dir_policy_handler.cc",
308 "download/download_dir_policy_handler.h",
309 ]
310 }
311 if (is_mac) {
scottmga266f952014-12-03 20:47:10312 sources +=
313 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31314 deps += [
315 #"app_shim" TODO(GYP)
tapted63829f72014-09-24 23:50:50316 #"browser_app_shim" TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31317 ]
318 }
[email protected]dffd8a912014-06-30 23:24:31319 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46320 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52321 deps += [
[email protected]cc5b3be2014-08-15 23:24:52322 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30323 "//chrome/common/extensions/api",
324 "//chrome/common/extensions/api:api_registration",
tengs4758c082014-12-19 18:51:44325 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50326 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06327 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52328 ]
[email protected]dffd8a912014-06-30 23:24:31329 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10330 ".",
331 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31332 }
333 if (enable_background) {
334 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10335 ".",
336 "//chrome")
jamesr29ea2d122014-10-23 10:30:27337 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31338 sources -= [ "background/background_mode_manager_aura.cc" ]
339 }
340 }
341 if (enable_task_manager) {
342 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10343 ".",
344 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31345 }
346 if (enable_spellcheck) {
347 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10348 ".",
349 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31350 deps += [ "//third_party/hunspell" ]
351 }
352 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10353 sources +=
354 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
dpranke6065cf72015-02-26 03:30:58355 deps += [ "//components/nacl:nacl_browser" ]
[email protected]dffd8a912014-06-30 23:24:31356 }
apavlove749bca2014-09-30 11:07:41357
[email protected]dffd8a912014-06-30 23:24:31358 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10359 sources +=
360 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
361 ".",
362 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31363 deps += [
[email protected]604828c2014-07-02 20:39:12364 "//components/policy",
[email protected]797b25042014-07-01 23:54:17365 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31366 ]
367 if (!is_ios) {
scottmga266f952014-12-03 20:47:10368 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
369 ".",
370 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31371 }
372 if (!is_chromeos) {
373 sources += rebase_path(
scottmga266f952014-12-03 20:47:10374 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
375 ".",
376 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31377 }
378 if (is_win || is_mac || is_desktop_linux) {
379 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10380 ".",
381 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31382 }
cjhopman09981a92014-10-27 17:11:18383 if (is_android || is_ios) {
384 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10385 ".",
386 "//chrome")
cjhopman09981a92014-10-27 17:11:18387 } else {
amistry6e1ed1b2015-03-12 05:24:01388 deps += [
389 "//chrome/browser/policy:path_parser",
390 "//net:net_browser_services",
391 ]
[email protected]dffd8a912014-06-30 23:24:31392 }
393 } else {
394 # Configuration policy disabled.
395 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10396 ".",
397 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31398 }
399
400 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10401 sources +=
402 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31403 deps += [
James Robinson2ed4d692014-09-17 05:20:58404 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31405 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14406 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31407 ]
408 }
409 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10410 sources +=
stuartmorgan1b3df822014-12-08 14:36:11411 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10412 ".",
413 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31414 deps += [
[email protected]fca567b2014-07-02 17:37:34415 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45416 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34417 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31418 ]
419 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10420 sources +=
stuartmorgan1b3df822014-12-08 14:36:11421 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10422 ".",
423 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31424 defines += [ "FULL_SAFE_BROWSING" ]
scottmga266f952014-12-03 20:47:10425 deps += [ "//chrome/common/safe_browsing:proto" ]
[email protected]dffd8a912014-06-30 23:24:31426 } else if (safe_browsing_mode == 2) {
427 defines += [ "MOBILE_SAFE_BROWSING" ]
428 }
429 }
430
431 if (is_linux) {
thestigee816c272014-11-22 02:47:51432 deps += [
433 "//device/media_transfer_protocol",
scottmga266f952014-12-03 20:47:10434 "//device/udev_linux",
thestigee816c272014-11-22 02:47:51435 ]
[email protected]dffd8a912014-06-30 23:24:31436 }
437 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47438 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31439 }
440
441 if (is_chromeos) {
442 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10443 ".",
444 "//chrome")
445 deps += [ "//chrome/browser/chromeos" ]
[email protected]dffd8a912014-06-30 23:24:31446 } else {
447 # Non-ChromeOS.
448 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
scottmga266f952014-12-03 20:47:10449 ".",
450 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31451 }
452
yiyaoliubcd08dc22014-12-10 05:56:10453 if (is_ios) {
454 sources -= [
455 "metrics/signin_status_metrics_provider_base.cc",
456 "metrics/signin_status_metrics_provider_base.h",
457 ]
458 }
459
mukai8c99b882014-10-15 03:07:59460 if (is_chromeos || is_ios) {
461 sources -= [
462 "metrics/signin_status_metrics_provider.cc",
463 "metrics/signin_status_metrics_provider.h",
464 ]
465 }
466
[email protected]dffd8a912014-06-30 23:24:31467 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12468 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31469 }
470 if (is_desktop_linux) {
471 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10472 ".",
473 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49474 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31475 }
dvadym34532022015-01-22 15:42:51476 if (is_desktop_linux) {
477 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
478 ".",
479 "//chrome")
480 defines += [ "USE_LIBSECRET" ]
481 }
[email protected]dffd8a912014-06-30 23:24:31482 if (use_aura) {
scottmga266f952014-12-03 20:47:10483 sources +=
484 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31485 deps += [
[email protected]fca567b2014-07-02 17:37:34486 "//ui/aura",
487 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12488 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31489 ]
490 }
491 if (ui_compositor_image_transport) {
492 deps += [ "//ui/gl" ]
493 }
494
[email protected]855b7de2014-07-08 21:02:45495 if (use_ash) {
scottmga266f952014-12-03 20:47:10496 sources +=
497 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45498 }
499
[email protected]dffd8a912014-06-30 23:24:31500 if (use_x11) {
scottmga266f952014-12-03 20:47:10501 sources +=
502 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23503 } else {
504 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31505 }
506 if (is_posix && !is_mac && !is_ios) {
507 sources += [
rseseka0a7a042014-09-18 23:59:20508 "//chrome/app/chrome_crash_reporter_client.cc",
509 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31510 ]
511 deps += [
Robert Sesekabcd8102014-08-27 16:12:44512 "//components/crash/app",
513 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31514 ]
515 }
516 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10517 sources +=
518 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59519 if (is_chromeos) {
520 sources -= [ "net/nss_context_linux.cc" ]
521 }
[email protected]dffd8a912014-06-30 23:24:31522 }
523 if (enable_notifications) {
524 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10525 ".",
526 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31527 if (!is_android) {
528 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11529 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10530 ".",
531 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31532 }
533 }
534 if (enable_themes) {
scottmga266f952014-12-03 20:47:10535 sources +=
536 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31537 }
538
vitalybuka93eea402014-11-05 23:47:15539 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31540 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11541 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10542 ".",
543 "//chrome")
544 deps += [ "//printing" ]
vitalybuka36259ca2014-08-28 23:42:24545 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31546 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10547 ".",
548 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31549 }
vitalybuka93eea402014-11-05 23:47:15550 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31551 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11552 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10553 ".",
554 "//chrome")
vitalybuka93eea402014-11-05 23:47:15555 } else {
[email protected]dffd8a912014-06-30 23:24:31556 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10557 sources +=
stuartmorgan1b3df822014-12-08 14:36:11558 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10559 ".",
560 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31561 }
562 }
563 if (enable_captive_portal_detection) {
564 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10565 ".",
566 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31567 }
568 if (enable_session_service) {
569 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10570 ".",
571 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31572 }
573
thestigdc377202014-10-28 22:06:02574 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10575 sources +=
576 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02577 }
578
[email protected]dffd8a912014-06-30 23:24:31579 if (is_android || is_ios) {
580 # Mobile.
scottmga266f952014-12-03 20:47:10581 sources +=
582 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31583 } else {
584 # Non-mobile.
585 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10586 ".",
587 "//chrome")
reillyge471fab2014-08-29 01:58:43588 deps += [
sdefresnebbf563c2015-03-17 11:09:09589 "//components/feedback",
reillyge471fab2014-08-29 01:58:43590 "//device/core",
reillygd77718d2014-09-04 00:57:56591 "//device/usb",
reillyge471fab2014-08-29 01:58:43592 ]
[email protected]dffd8a912014-06-30 23:24:31593 }
594
595 if (is_android) {
scottmga266f952014-12-03 20:47:10596 sources +=
597 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31598 deps += [
James Robinson2ed4d692014-09-17 05:20:58599 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30600 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18601 "//components/enhanced_bookmarks",
estadee37f8222014-11-07 21:35:22602 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18603 "//components/web_contents_delegate_android",
604 "//third_party/android_opengl/etc1",
twellington0bc61492015-01-30 20:14:13605 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31606 ]
607 deps -= [
[email protected]fca567b2014-07-02 17:37:34608 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30609 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30610 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31611 ]
megjablon5effca2e2015-02-13 23:54:07612 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
rseseke59ea892015-03-19 22:27:44613
614 if (use_seccomp_bpf) {
615 defines += [ "USE_SECCOMP_BPF" ]
616 }
[email protected]dffd8a912014-06-30 23:24:31617 }
618
619 if (is_mac) {
620 deps += [
[email protected]6b5d2f92014-07-30 00:40:03621 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03622 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31623 ]
624 libs += [
625 "Accelerate.framework",
626 "AddressBook.framework",
627 "AudioUnit.framework",
628 "DiskArbitration.framework",
629 "IOKit.framework",
630 "ImageCaptureCore.framework",
631 "OpenGL.framework",
632 "QuartzCore.framework",
633 "SecurityInterface.framework",
634 ]
635 }
636
637 if (enable_rlz) {
scottmga266f952014-12-03 20:47:10638 sources +=
639 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31640 deps += [ "//rlz:rlz_lib" ]
641 }
642
643 # TODO(GYP)
644 # Temporary fix to break the browser target into smaller chunks so it
645 # will link with goma builds.
646 #["OS=="win" and chromium_win_pch==0", {
647 # "msvs_shard": 4,
648 #}],
649
650 if (is_win) {
scottmga266f952014-12-03 20:47:10651 sources +=
652 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
grtaa9d8d22014-11-13 19:52:36653 if (!is_chrome_branded) {
654 sources -= [
655 "google/did_run_updater_win.cc",
656 "google/did_run_updater_win.h",
657 ]
658 }
Brett Wilsone53895272014-09-23 23:41:46659 public_deps += [
660 "//ui/views",
661 "//ui/views/controls/webview",
662 ]
[email protected]dffd8a912014-06-30 23:24:31663 deps += [
vchigrin9593e7a2015-01-27 10:08:19664 ":chrome_process_finder",
[email protected]55699f392014-08-20 22:16:30665 "//chrome:version_header",
666 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19667 "//chrome_elf",
668 "//chrome_elf:constants",
669 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32670 "//components/browser_watcher",
671 "//components/browser_watcher:browser_watcher_client",
vchigrinbbc23e72015-01-21 22:49:23672 "//google_update",
[email protected]55699f392014-08-20 22:16:30673 "//third_party/iaccessible2",
674 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31675 "//third_party/wtl",
vchigrin88ed6f42015-01-17 11:56:42676 "//ui/metro_viewer",
677 "//win8:metro_viewer",
[email protected]dffd8a912014-06-30 23:24:31678 ]
vchigrin61944ae2015-01-30 23:51:32679 libs += [ "credui.lib" ]
[email protected]dffd8a912014-06-30 23:24:31680 } else {
681 # Non-Windows.
scottmga266f952014-12-03 20:47:10682 sources +=
683 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37684 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31685 deps += [
scottmga266f952014-12-03 20:47:10686 "//ui/views",
687 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31688 ]
[email protected]dffd8a912014-06-30 23:24:31689 }
690 }
691
692 if (is_linux) {
scottmga266f952014-12-03 20:47:10693 sources +=
694 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31695 if (use_aura) {
696 configs += [
697 "//build/config/linux:dbus",
698 "//build/config/linux:fontconfig",
699 ]
scottmga266f952014-12-03 20:47:10700 deps += [ "//dbus" ]
[email protected]dffd8a912014-06-30 23:24:31701 }
702 if (use_x11) {
703 configs += [ "//build/config/linux:x11" ]
704 deps += [ "//ui/gfx/x" ]
705 }
706 }
707
708 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54709 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10710 ".",
711 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31712 }
713 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10714 sources +=
715 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
716 ".",
717 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31718 }
719 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10720 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31721 }
treib87bb89cbb2014-12-01 16:01:47722 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10723 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
724 ".",
725 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31726 }
treib87bb89cbb2014-12-01 16:01:47727 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59728 sources += rebase_path(
scottmga266f952014-12-03 20:47:10729 gypi_values.chrome_browser_supervised_user_and_themes_sources,
730 ".",
731 "//chrome")
thestig169a6362014-11-13 20:47:59732 }
[email protected]dffd8a912014-06-30 23:24:31733 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10734 sources +=
735 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31736 }
737 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10738 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
739 ".",
740 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31741 }
742 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10743 sources +=
744 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31745 }
746 if (!enable_autofill_dialog || is_android || is_ios) {
747 sources -= [
748 "autofill/validation_rules_storage_factory.cc",
749 "autofill/validation_rules_storage_factory.h",
750 ]
751 }
752 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10753 sources +=
754 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
755 ".",
756 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31757 if (is_win || is_mac) {
758 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
759 # and Mac, so this test is meaningless. Can we merge these lists?
760 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11761 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10762 ".",
763 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31764 }
765 }
766}
767
James Robinson2ed4d692014-09-17 05:20:58768if (is_android) {
769 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
770 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10771 sources =
772 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58773 jni_package = "chrome"
774 }
775}
776
vchigrin9593e7a2015-01-27 10:08:19777if (is_win) {
778 source_set("chrome_process_finder") {
779 sources = [
780 "chrome_process_finder_win.cc",
781 "chrome_process_finder_win.h",
782 ]
783 deps = [
784 "//base",
785 "//chrome/browser/metro_utils",
786 "//chrome/common:constants",
787 ]
788 if (enable_configuration_policy) {
789 deps += [ "//chrome/browser/policy:path_parser" ]
790 }
791 }
792}
793
[email protected]77ce8022014-06-16 19:29:56794# GYP version: chrome/chrome_resources.gyp:chrome_resources
795# (generate_browser_resources action)
796grit("resources") {
797 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41798 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26799 outputs = [
800 "grit/browser_resources.h",
801 "browser_resources.pak",
802 ]
[email protected]77ce8022014-06-16 19:29:56803
scottmga266f952014-12-03 20:47:10804 omnibox_mojom_file =
805 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
[email protected]77ce8022014-06-16 19:29:56806
807 grit_flags = [
scottmga266f952014-12-03 20:47:10808 "-E",
809 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
810 "-E",
811 "additional_modules_list_file=" +
812 rebase_path(additional_modules_list_file, root_build_dir),
813 "-E",
814 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56815 ]
816
817 deps = [
818 ":about_credits",
819 ":chrome_internal_resources_gen",
vchigrin8eede942015-01-29 09:28:15820 ]
821 inputs = [
822 omnibox_mojom_file,
[email protected]77ce8022014-06-16 19:29:56823 ]
824}
825
826# GYP version: chrome/chrome_resource.gyp:about_credits
827action("about_credits") {
828 script = "//tools/licenses.py"
829
dbeamc7776c72014-12-17 02:24:05830 inputs = [
831 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
832 # generate a .d file with all the licenses/credits that about:credits uses.
833 # Then about:credits will automatically rebuild when one of them changes.
834 # See: depfile in gn's documentation (gn help depfile).
835 "resources/about_credits.tmpl",
836 "resources/about_credits_entry.tmpl",
837 ]
838
scottmga266f952014-12-03 20:47:10839 outputs = [
840 about_credits_file,
841 ]
[email protected]77ce8022014-06-16 19:29:56842
843 args = [
844 "credits",
845 rebase_path(about_credits_file, root_build_dir),
846 ]
847}
848
849# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41850if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56851 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41852 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10853 sources = [
854 "internal/resources/additional_modules_list.input",
855 ]
856 outputs = [
857 additional_modules_list_file,
858 ]
engedy99d0e11b2014-09-30 13:32:41859 args = rebase_path(sources, root_build_dir) +
860 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56861 }
862} else {
863 group("chrome_internal_resources_gen") {
864 # Empty placeholder.
865 }
866}
Brett Wilson052ce132014-09-12 19:46:29867
868# In GYP this is part of test_support_common.
869source_set("test_support") {
870 testonly = true
871
872 # Always include this via the main test support target.
873 visibility = [ "//chrome/test:test_support" ]
874
875 sources = [
876 "browsing_data/mock_browsing_data_appcache_helper.cc",
877 "browsing_data/mock_browsing_data_appcache_helper.h",
878 "browsing_data/mock_browsing_data_channel_id_helper.cc",
879 "browsing_data/mock_browsing_data_channel_id_helper.h",
880 "browsing_data/mock_browsing_data_cookie_helper.cc",
881 "browsing_data/mock_browsing_data_cookie_helper.h",
882 "browsing_data/mock_browsing_data_database_helper.cc",
883 "browsing_data/mock_browsing_data_database_helper.h",
884 "browsing_data/mock_browsing_data_file_system_helper.cc",
885 "browsing_data/mock_browsing_data_file_system_helper.h",
886 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
887 "browsing_data/mock_browsing_data_flash_lso_helper.h",
888 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
889 "browsing_data/mock_browsing_data_indexed_db_helper.h",
890 "browsing_data/mock_browsing_data_local_storage_helper.cc",
891 "browsing_data/mock_browsing_data_local_storage_helper.h",
892 "browsing_data/mock_browsing_data_quota_helper.cc",
893 "browsing_data/mock_browsing_data_quota_helper.h",
894 "browsing_data/mock_browsing_data_service_worker_helper.cc",
895 "browsing_data/mock_browsing_data_service_worker_helper.h",
896 "download/download_test_file_activity_observer.cc",
897 "download/download_test_file_activity_observer.h",
898 "download/test_download_shelf.cc",
899 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:29900 "invalidation/fake_invalidation_service.cc",
901 "invalidation/fake_invalidation_service.h",
902 "media/fake_desktop_media_list.cc",
903 "media/fake_desktop_media_list.h",
904 "net/dns_probe_test_util.cc",
905 "net/dns_probe_test_util.h",
906 "net/url_request_mock_util.cc",
907 "net/url_request_mock_util.h",
908 "notifications/notification_test_util.cc",
909 "notifications/notification_test_util.h",
910 "password_manager/mock_password_store_service.cc",
911 "password_manager/mock_password_store_service.h",
912 "password_manager/null_password_store_service.cc",
913 "password_manager/null_password_store_service.h",
914 "password_manager/test_password_store_service.cc",
915 "password_manager/test_password_store_service.h",
916 "prefs/pref_service_mock_factory.cc",
917 "prefs/pref_service_mock_factory.h",
918 "profile_resetter/profile_resetter_test_base.cc",
919 "profile_resetter/profile_resetter_test_base.h",
920 "search_engines/template_url_service_factory_test_util.cc",
921 "search_engines/template_url_service_factory_test_util.h",
922 "search_engines/template_url_service_test_util.cc",
923 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:45924 "sessions/session_restore_test_helper.cc",
925 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:29926 "sessions/session_service_test_helper.cc",
927 "sessions/session_service_test_helper.h",
928 "signin/fake_account_reconcilor.cc",
929 "signin/fake_account_reconcilor.h",
930 "signin/fake_account_tracker_service.cc",
931 "signin/fake_account_tracker_service.h",
932 "signin/fake_profile_oauth2_token_service.cc",
933 "signin/fake_profile_oauth2_token_service.h",
934 "signin/fake_profile_oauth2_token_service_builder.cc",
935 "signin/fake_profile_oauth2_token_service_builder.h",
936 "signin/fake_signin_manager.cc",
937 "signin/fake_signin_manager.h",
938 "ssl/ssl_client_auth_requestor_mock.cc",
939 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:29940 "sync/profile_sync_components_factory_mock.cc",
941 "sync/profile_sync_components_factory_mock.h",
942 "sync/profile_sync_service_mock.cc",
943 "sync/profile_sync_service_mock.h",
shadi2f257fc2014-12-03 18:04:12944 "ui/webui/signin/login_ui_test_utils.cc",
945 "ui/webui/signin/login_ui_test_utils.h",
Brett Wilson052ce132014-09-12 19:46:29946 ]
947
Brett Wilsone53895272014-09-23 23:41:46948 public_deps = [
Brett Wilson052ce132014-09-12 19:46:29949 ":browser",
Brett Wilsone53895272014-09-23 23:41:46950 "//chrome/browser/ui:test_support",
951 ]
952 deps = [
Brett Wilson052ce132014-09-12 19:46:29953 "//base:prefs_test_support",
954 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:29955 "//chrome/common",
956 "//chrome/common/safe_browsing:proto",
957 "//components/invalidation",
958 "//components/invalidation:test_support",
959 "//components/password_manager/core/browser:test_support",
960 "//components/search_engines:test_support",
961 "//content/test:test_support",
962 "//chrome/app/theme:theme_resources",
963 "//net:test_support",
964 "//skia",
965 "//testing/gmock",
966 "//testing/gtest",
967 "//ui/gfx",
968 ]
969
Brett Wilson052ce132014-09-12 19:46:29970 if (!is_ios) {
971 deps += [
972 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:29973 "//google_apis:test_support",
974 ]
975 }
976
James Robinson2ed4d692014-09-17 05:20:58977 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:38978 sources += [
979 "extensions/extension_action_test_util.cc",
980 "extensions/extension_action_test_util.h",
981 ]
scottmga266f952014-12-03 20:47:10982 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:58983 }
984
Brett Wilson052ce132014-09-12 19:46:29985 if (is_chromeos) {
986 sources += [
987 "chromeos/app_mode/fake_cws.cc",
988 "chromeos/app_mode/fake_cws.h",
989 "chromeos/file_manager/fake_disk_mount_manager.cc",
990 "chromeos/file_manager/fake_disk_mount_manager.h",
991 "chromeos/input_method/mock_candidate_window_controller.cc",
992 "chromeos/input_method/mock_candidate_window_controller.h",
993 "chromeos/input_method/mock_input_method_engine.cc",
994 "chromeos/input_method/mock_input_method_engine.h",
995 "chromeos/input_method/mock_input_method_manager.cc",
996 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:51997 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
998 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:39999 "chromeos/login/session/user_session_manager_test_api.cc",
1000 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291001 "chromeos/login/test/js_checker.cc",
1002 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591003 "chromeos/login/test/oobe_screen_waiter.cc",
1004 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291005 "chromeos/login/ui/mock_login_display.cc",
1006 "chromeos/login/ui/mock_login_display.h",
1007 "chromeos/login/ui/mock_login_display_host.cc",
1008 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511009 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1010 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301011 "chromeos/login/users/fake_chrome_user_manager.cc",
1012 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511013 "chromeos/login/users/fake_supervised_user_manager.cc",
1014 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511015 "chromeos/login/users/mock_user_manager.cc",
1016 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291017 "chromeos/net/network_portal_detector_test_utils.cc",
1018 "chromeos/net/network_portal_detector_test_utils.h",
1019 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1020 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1021 "chromeos/policy/device_policy_builder.cc",
1022 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071023 "chromeos/policy/fake_consumer_management_service.cc",
1024 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291025 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1026 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071027 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1028 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291029 "chromeos/policy/stub_enterprise_install_attributes.cc",
1030 "chromeos/policy/stub_enterprise_install_attributes.h",
1031 "chromeos/settings/device_settings_test_helper.cc",
1032 "chromeos/settings/device_settings_test_helper.h",
1033 "chromeos/system/fake_input_device_settings.cc",
1034 "chromeos/system/fake_input_device_settings.h",
1035 ]
1036 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:171037 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291038 }
1039
1040 if (enable_configuration_policy) {
1041 sources += [
1042 "policy/test/local_policy_test_server.cc",
1043 "policy/test/local_policy_test_server.h",
1044 ]
Brett Wilsone53895272014-09-23 23:41:461045 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291046 "//components/policy:policy_component_test_support",
1047 "//components/policy:test_support",
1048 ]
Brett Wilson052ce132014-09-12 19:46:291049 }
1050
1051 if (safe_browsing_mode == 1) {
1052 sources += [
1053 "extensions/fake_safe_browsing_database_manager.cc",
1054 "extensions/fake_safe_browsing_database_manager.h",
1055 ]
1056 }
1057
1058 if (enable_extensions) {
1059 sources += [
1060 "drive/dummy_drive_service.cc",
1061 "drive/dummy_drive_service.h",
1062 "drive/fake_drive_service.cc",
1063 "drive/fake_drive_service.h",
1064 "drive/test_util.cc",
1065 "drive/test_util.h",
1066 "extensions/api/messaging/native_messaging_test_util.cc",
1067 "extensions/api/messaging/native_messaging_test_util.h",
1068 "extensions/extension_notification_observer.cc",
1069 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:291070 "extensions/mock_extension_special_storage_policy.cc",
1071 "extensions/mock_extension_special_storage_policy.h",
1072 "extensions/test_blacklist.cc",
1073 "extensions/test_blacklist.h",
1074 "extensions/test_blacklist_state_fetcher.cc",
1075 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511076 "extensions/test_extension_dir.cc",
1077 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591078 "extensions/test_extension_environment.cc",
1079 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291080 "extensions/test_extension_prefs.cc",
1081 "extensions/test_extension_prefs.h",
1082 "extensions/test_extension_service.cc",
1083 "extensions/test_extension_service.h",
1084 "extensions/test_extension_system.cc",
1085 "extensions/test_extension_system.h",
1086 "media_galleries/media_galleries_test_util.cc",
1087 "media_galleries/media_galleries_test_util.h",
1088 ]
scottmga266f952014-12-03 20:47:101089 deps += [ "//components/storage_monitor:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291090 }
1091
1092 if (enable_mdns) {
1093 sources += [
1094 "local_discovery/test_service_discovery_client.cc",
1095 "local_discovery/test_service_discovery_client.h",
1096 ]
1097 }
1098
1099 if (enable_app_list) {
1100 sources += [
1101 "ui/app_list/test/chrome_app_list_test_support.cc",
1102 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511103 "ui/app_list/test/test_app_list_controller_delegate.cc",
1104 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291105 ]
1106 }
1107
1108 if (enable_wifi_bootstrapping) {
1109 sources += [
1110 "local_discovery/wifi/mock_wifi_manager.cc",
1111 "local_discovery/wifi/mock_wifi_manager.h",
1112 ]
1113 }
1114}