blob: c02400d347779e6f8064f78dc1968ec5d092c3a8 [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")
[email protected]449ceab2014-07-29 22:43:518import("//components/nacl/nacl_defines.gni")
scottmga266f952014-12-03 20:47:109
James Robinson2ed4d692014-09-17 05:20:5810# //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
11# produces a conflict for the "grit" template so we have to only include one.
12if (is_android) {
13 import("//build/config/android/rules.gni")
14} else {
15 import("//tools/grit/grit_rule.gni")
16}
cmasone0a9e4ca2014-10-16 16:40:4917if (is_desktop_linux) {
18 import("//build/config/linux/pkg_config.gni")
19}
[email protected]77ce8022014-06-16 19:29:5620
21about_credits_file = "$target_gen_dir/about_credits.html"
22additional_modules_list_file =
23 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
24
scottmga266f952014-12-03 20:47:1025gypi_values = exec_script("//build/gypi_to_gn.py",
26 [ rebase_path("../chrome_browser.gypi") ],
27 "scope",
28 [ "../chrome_browser.gypi" ])
[email protected]dffd8a912014-06-30 23:24:3129
cmasone0a9e4ca2014-10-16 16:40:4930if (is_desktop_linux) {
31 pkg_config("gnome_keyring") {
32 packages = [ "gnome-keyring-1" ]
33 }
34}
35
[email protected]dffd8a912014-06-30 23:24:3136static_library("browser") {
apavlove749bca2014-09-30 11:07:4137 configs += [
38 "//build/config/compiler:wexit_time_destructors",
39 "//third_party/WebKit/public:debug_devtools",
40 ]
[email protected]dffd8a912014-06-30 23:24:3141 defines = []
42 sources = []
43 libs = []
44 ldflags = []
45
46 # iOS/non-iOS shared deps. New dependencies should generally be added in the
47 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:4648 public_deps = [
49 "//components/autofill/core/browser",
50 "//content/public/browser",
51 "//sql",
52 "//sync",
53 ]
[email protected]dffd8a912014-06-30 23:24:3154 deps = [
55 "//base/allocator",
56 "//chrome:extra_resources",
57 "//chrome:resources",
58 "//chrome:strings",
[email protected]797b25042014-07-01 23:54:1759 "//chrome/app:generated_resources_map",
[email protected]855b7de2014-07-08 21:02:4560 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:1761 "//chrome/app/theme:theme_resources",
[email protected]855b7de2014-07-08 21:02:4562 "//chrome/browser/net:cert_logger_proto",
[email protected]797b25042014-07-01 23:54:1763 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:3064 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:3165 "//chrome/common",
66 "//chrome/common/net",
[email protected]604828c2014-07-02 20:39:1267 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:0168 "//components/bookmarks/browser",
[email protected]b9f4c682014-07-10 22:00:3769 "//components/captive_portal",
[email protected]fca567b2014-07-02 17:37:3470 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:0171 "//components/component_updater",
vasiliiac461392014-09-18 11:35:1772 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:5473 "//components/content_settings/core/common",
[email protected]478ed232014-08-19 02:10:5574 "//components/crx_file",
megjablon3476e042014-10-14 19:21:5975 "//components/data_reduction_proxy/core/browser",
[email protected]273ae5ab2014-07-09 21:10:2576 "//components/domain_reliability",
noyaudaaac3a2014-10-08 11:11:1177 "//components/enhanced_bookmarks",
[email protected]273ae5ab2014-07-09 21:10:2578 "//components/favicon_base",
79 "//components/favicon/core",
[email protected]abd4b682014-07-16 20:26:3080 "//components/feedback",
81 "//components/gcm_driver",
Brett Wilson1c693992014-08-25 19:10:0182 "//components/google/core/browser",
erikchen332265b2014-11-14 19:59:5283 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:2584 "//components/history/core/browser",
sdefresneeb278882014-12-30 19:23:4985 "//components/history/core/browser:proto",
[email protected]273ae5ab2014-07-09 21:10:2586 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:0187 "//components/infobars/core",
88 "//components/invalidation",
gunsch1afc65172014-09-16 00:03:3289 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:3490 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:0691 "//components/metrics:profiler",
Brett Wilson1c693992014-08-25 19:10:0192 "//components/metrics/proto:proto",
[email protected]fca567b2014-07-02 17:37:3493 "//components/navigation_metrics",
Brett Wilson1c693992014-08-25 19:10:0194 "//components/network_time",
[email protected]b1c5ab682014-08-07 11:53:1795 "//components/omnibox",
[email protected]fca567b2014-07-02 17:37:3496 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:0097 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:0198 "//components/password_manager/core/browser",
99 "//components/password_manager/core/common",
[email protected]fca567b2014-07-02 17:37:34100 "//components/policy:policy_component",
Brett Wilson1c693992014-08-25 19:10:01101 "//components/precache/core",
[email protected]fca567b2014-07-02 17:37:34102 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37103 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01104 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40105 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01106 "//components/search_engines",
107 "//components/search_provider_logos",
[email protected]abd4b682014-07-16 20:26:30108 "//components/signin/core/browser",
109 "//components/startup_metric_utils",
[email protected]797b25042014-07-01 23:54:17110 "//components/strings",
mathp60143a32014-10-08 14:52:45111 "//components/suggestions",
Brett Wilson1c693992014-08-25 19:10:01112 "//components/sync_driver",
[email protected]b9f4c682014-07-10 22:00:37113 "//components/translate/core/browser",
114 "//components/translate/core/common",
wjmaclean7f63c6b2014-12-09 14:59:55115 "//components/ui/zoom:ui_zoom",
sorin39eab2f2015-01-06 01:09:08116 "//components/update_client",
[email protected]273ae5ab2014-07-09 21:10:25117 "//components/url_fixer",
[email protected]fca567b2014-07-02 17:37:34118 "//components/user_prefs",
isherman3be67db2014-10-24 05:57:44119 "//components/variations",
120 "//components/variations/net",
[email protected]bf4545f2014-07-11 19:49:46121 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56122 "//components/webdata_services",
drogerf8479942014-11-21 17:47:53123 "//components/web_resource",
[email protected]dffd8a912014-06-30 23:24:31124 "//content/public/browser",
125 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12126 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31127 "//crypto",
[email protected]604828c2014-07-02 20:39:12128 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56129 "//gpu/config",
ajwongf7b1cb692014-08-23 21:36:22130 "//jingle:notifier",
[email protected]dffd8a912014-06-30 23:24:31131 "//skia",
132 "//sql",
133 "//sync",
[email protected]797b25042014-07-01 23:54:17134 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31135 "//third_party/icu",
136 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22137 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31138 "//third_party/widevine/cdm:version_h",
139 "//third_party/zlib",
140 "//third_party/zlib:minizip",
141 "//third_party/zlib:zip",
142 "//ui/base",
cjhopman09981a92014-10-27 17:11:18143 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31144 "//ui/gfx",
145 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36146 "//ui/message_center",
147 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31148 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17149 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31150 ]
151
scottmga266f952014-12-03 20:47:10152 sources +=
153 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00154
[email protected]dffd8a912014-06-30 23:24:31155 if (!is_ios) {
scottmga266f952014-12-03 20:47:10156 sources +=
157 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59158 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10159 ".",
160 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59161 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10162 ".",
163 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18164 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
165 ".",
166 "//chrome")
167 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
168 ".",
169 "//chrome")
scottmga266f952014-12-03 20:47:10170 sources +=
171 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
172 sources +=
173 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
174 sources +=
175 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
176 sources +=
177 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
178 sources +=
179 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59180 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10181 ".",
182 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59183 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10184 ".",
185 "//chrome")
186 sources +=
187 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59188 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10189 ".",
190 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59191 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10192 ".",
193 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59194 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10195 ".",
196 "//chrome")
197 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18198 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
199 sources +=
scottmga266f952014-12-03 20:47:10200 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
201 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18202 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
203 sources +=
scottmga266f952014-12-03 20:47:10204 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59205 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10206 ".",
207 "//chrome")
208
[email protected]dffd8a912014-06-30 23:24:31209 #TODO(GYP) Add these sources:
210 # # These files are generated by GRIT.
211 # '<(grit_out_dir)/grit/component_extension_resources_map.cc',
212 # '<(grit_out_dir)/grit/theme_resources_map.cc',
[email protected]a3c134352014-07-11 19:23:19213 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/grit/ui_resources_map.cc',
[email protected]dffd8a912014-06-30 23:24:31214 #
215 # # This file is generated by
216 # # chrome/browser/metrics/variations/generate_resources_map.py
217 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/generated_resources_map.cc',
218
[email protected]1bb1a6002014-07-24 23:58:56219 defines = nacl_defines
[email protected]797b25042014-07-01 23:54:17220
[email protected]dffd8a912014-06-30 23:24:31221 deps += [
Brett Wilson1c693992014-08-25 19:10:01222 "//apps",
[email protected]dffd8a912014-06-30 23:24:31223 "//cc",
[email protected]55699f392014-08-20 22:16:30224 "//chrome/browser/devtools",
[email protected]55699f392014-08-20 22:16:30225 "//chrome/installer/util",
oshimaf65398422014-11-18 23:30:42226 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37227 "//components/autofill/content/browser",
228 "//components/dom_distiller/content",
sdefresne715246622015-01-12 16:24:04229 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34230 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30231 "//components/navigation_interception",
232 "//components/password_manager/content/browser",
233 "//components/precache/content",
rohitraod16f44e2014-10-24 15:34:35234 "//components/sessions:sessions_content",
[email protected]abd4b682014-07-16 20:26:30235 "//components/storage_monitor",
[email protected]b9f4c682014-07-10 22:00:37236 "//components/translate/content/browser",
[email protected]fca567b2014-07-02 17:37:34237 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31238 "//components/visitedlink/browser",
239 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18240 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37241 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08242 "//content/app/resources",
[email protected]55699f392014-08-20 22:16:30243 "//media",
cjhopman09981a92014-10-27 17:11:18244 "//mojo/common",
[email protected]604828c2014-07-02 20:39:12245 "//mojo/environment:chromium",
Brett Wilson83fd4242014-09-02 19:45:33246 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31247 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15248 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24249 "//storage/common",
[email protected]4eebe74d2014-08-13 02:54:46250 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31251 "//third_party/expat",
252 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34253 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31254 "//third_party/libyuv",
blundell70fb547672015-01-19 17:18:33255 "//third_party/mojo/src/mojo/edk/system",
256 "//third_party/mojo/src/mojo/public/cpp/bindings",
257 "//third_party/mojo/src/mojo/public/js",
[email protected]dffd8a912014-06-30 23:24:31258 "//third_party/npapi",
259 "//third_party/re2",
260 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33261 "//third_party/webrtc/modules/desktop_capture",
[email protected]dffd8a912014-06-30 23:24:31262 "//ui/gl",
263 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12264 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34265 "//v8",
scottmga266f952014-12-03 20:47:10266
[email protected]dffd8a912014-06-30 23:24:31267 ## TODO(tonyg): Remove this dependency (crbug.com/280157).
[email protected]55699f392014-08-20 22:16:30268 #"../testing/perf/perf_test.gyp:*", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31269 ]
270 } else { # iOS
scottmga266f952014-12-03 20:47:10271 sources +=
272 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
273 sources +=
274 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
275 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31276 libs += [
277 "CoreTelephony.framework",
278 "CoreText.framework",
279 "MobileCoreServices.framework",
280 "QuartzCore.framework",
281 ]
scottmga266f952014-12-03 20:47:10282 ldflags += [
283 "-weak_framework",
284 "CoreImage",
285 ]
[email protected]dffd8a912014-06-30 23:24:31286 }
287
288 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10289 sources +=
290 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31291 }
292 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
293 sources += [
294 "net/disk_cache_dir_policy_handler.cc",
295 "net/disk_cache_dir_policy_handler.h",
296 ]
297 }
298 if (!is_android && !is_ios && enable_configuration_policy) {
299 sources += [
300 "download/download_dir_policy_handler.cc",
301 "download/download_dir_policy_handler.h",
302 ]
303 }
304 if (is_mac) {
scottmga266f952014-12-03 20:47:10305 sources +=
306 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31307 deps += [
308 #"app_shim" TODO(GYP)
tapted63829f72014-09-24 23:50:50309 #"browser_app_shim" TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31310 ]
311 }
[email protected]dffd8a912014-06-30 23:24:31312 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46313 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52314 deps += [
[email protected]cc5b3be2014-08-15 23:24:52315 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30316 "//chrome/common/extensions/api",
317 "//chrome/common/extensions/api:api_registration",
tengs4758c082014-12-19 18:51:44318 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50319 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06320 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52321 ]
[email protected]dffd8a912014-06-30 23:24:31322 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10323 ".",
324 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31325 }
326 if (enable_background) {
327 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10328 ".",
329 "//chrome")
jamesr29ea2d122014-10-23 10:30:27330 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31331 sources -= [ "background/background_mode_manager_aura.cc" ]
332 }
thestig52a87b3b2014-10-23 22:02:38333 defines += [ "ENABLE_BACKGROUND=1" ]
[email protected]dffd8a912014-06-30 23:24:31334 }
335 if (enable_task_manager) {
336 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10337 ".",
338 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31339 }
340 if (enable_spellcheck) {
341 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10342 ".",
343 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31344 deps += [ "//third_party/hunspell" ]
345 }
346 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10347 sources +=
348 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31349 #deps += [ "//components/nacl:nacl_browser" ] TODO(GYP)
350 }
apavlove749bca2014-09-30 11:07:41351
[email protected]dffd8a912014-06-30 23:24:31352 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10353 sources +=
354 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
355 ".",
356 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31357 deps += [
[email protected]604828c2014-07-02 20:39:12358 "//components/policy",
[email protected]797b25042014-07-01 23:54:17359 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31360 ]
361 if (!is_ios) {
scottmga266f952014-12-03 20:47:10362 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
363 ".",
364 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31365 }
366 if (!is_chromeos) {
367 sources += rebase_path(
scottmga266f952014-12-03 20:47:10368 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
369 ".",
370 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31371 }
372 if (is_win || is_mac || is_desktop_linux) {
373 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10374 ".",
375 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31376 }
cjhopman09981a92014-10-27 17:11:18377 if (is_android || is_ios) {
378 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10379 ".",
380 "//chrome")
cjhopman09981a92014-10-27 17:11:18381 } else {
scottmga266f952014-12-03 20:47:10382 deps += [ "//chrome/browser/policy:path_parser" ]
[email protected]dffd8a912014-06-30 23:24:31383 }
384 } else {
385 # Configuration policy disabled.
386 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10387 ".",
388 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31389 }
390
391 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10392 sources +=
393 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31394 deps += [
James Robinson2ed4d692014-09-17 05:20:58395 "//components/pdf/browser",
[email protected]dffd8a912014-06-30 23:24:31396 "//ppapi:ppapi_ipc",
thestig11b815e92014-08-26 00:32:14397 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31398 ]
399 }
400 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10401 sources +=
stuartmorgan1b3df822014-12-08 14:36:11402 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10403 ".",
404 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31405 deps += [
[email protected]fca567b2014-07-02 17:37:34406 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45407 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34408 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31409 ]
410 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10411 sources +=
stuartmorgan1b3df822014-12-08 14:36:11412 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10413 ".",
414 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31415 defines += [ "FULL_SAFE_BROWSING" ]
scottmga266f952014-12-03 20:47:10416 deps += [ "//chrome/common/safe_browsing:proto" ]
[email protected]dffd8a912014-06-30 23:24:31417 } else if (safe_browsing_mode == 2) {
418 defines += [ "MOBILE_SAFE_BROWSING" ]
419 }
420 }
421
422 if (is_linux) {
thestigee816c272014-11-22 02:47:51423 deps += [
424 "//device/media_transfer_protocol",
scottmga266f952014-12-03 20:47:10425 "//device/udev_linux",
thestigee816c272014-11-22 02:47:51426 ]
[email protected]dffd8a912014-06-30 23:24:31427 }
428 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47429 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31430 }
431
432 if (is_chromeos) {
433 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10434 ".",
435 "//chrome")
436 deps += [ "//chrome/browser/chromeos" ]
[email protected]dffd8a912014-06-30 23:24:31437 } else {
438 # Non-ChromeOS.
439 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
scottmga266f952014-12-03 20:47:10440 ".",
441 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31442 }
443
yiyaoliubcd08dc22014-12-10 05:56:10444 if (is_ios) {
445 sources -= [
446 "metrics/signin_status_metrics_provider_base.cc",
447 "metrics/signin_status_metrics_provider_base.h",
448 ]
449 }
450
mukai8c99b882014-10-15 03:07:59451 if (is_chromeos || is_ios) {
452 sources -= [
453 "metrics/signin_status_metrics_provider.cc",
454 "metrics/signin_status_metrics_provider.h",
455 ]
456 }
457
[email protected]dffd8a912014-06-30 23:24:31458 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12459 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31460 }
461 if (is_desktop_linux) {
462 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10463 ".",
464 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49465 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31466 }
dvadym34532022015-01-22 15:42:51467 if (is_desktop_linux) {
468 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
469 ".",
470 "//chrome")
471 defines += [ "USE_LIBSECRET" ]
472 }
[email protected]dffd8a912014-06-30 23:24:31473 if (use_aura) {
scottmga266f952014-12-03 20:47:10474 sources +=
475 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31476 deps += [
[email protected]fca567b2014-07-02 17:37:34477 "//ui/aura",
478 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12479 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31480 ]
481 }
482 if (ui_compositor_image_transport) {
483 deps += [ "//ui/gl" ]
484 }
485
[email protected]855b7de2014-07-08 21:02:45486 if (use_ash) {
scottmga266f952014-12-03 20:47:10487 sources +=
488 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45489 }
490
[email protected]dffd8a912014-06-30 23:24:31491 if (use_x11) {
scottmga266f952014-12-03 20:47:10492 sources +=
493 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23494 } else {
495 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31496 }
497 if (is_posix && !is_mac && !is_ios) {
498 sources += [
rseseka0a7a042014-09-18 23:59:20499 "//chrome/app/chrome_crash_reporter_client.cc",
500 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31501 ]
502 deps += [
Robert Sesekabcd8102014-08-27 16:12:44503 "//components/crash/app",
504 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31505 ]
506 }
507 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10508 sources +=
509 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59510 if (is_chromeos) {
511 sources -= [ "net/nss_context_linux.cc" ]
512 }
[email protected]dffd8a912014-06-30 23:24:31513 }
514 if (enable_notifications) {
515 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10516 ".",
517 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31518 if (!is_android) {
519 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11520 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10521 ".",
522 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31523 }
524 }
525 if (enable_themes) {
scottmga266f952014-12-03 20:47:10526 sources +=
527 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31528 }
529
vitalybuka93eea402014-11-05 23:47:15530 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31531 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11532 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10533 ".",
534 "//chrome")
535 deps += [ "//printing" ]
vitalybuka36259ca2014-08-28 23:42:24536 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31537 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10538 ".",
539 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31540 }
vitalybuka93eea402014-11-05 23:47:15541 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31542 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11543 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10544 ".",
545 "//chrome")
vitalybuka93eea402014-11-05 23:47:15546 } else {
[email protected]dffd8a912014-06-30 23:24:31547 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10548 sources +=
stuartmorgan1b3df822014-12-08 14:36:11549 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10550 ".",
551 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31552 }
553 }
554 if (enable_captive_portal_detection) {
555 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10556 ".",
557 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31558 }
559 if (enable_session_service) {
560 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10561 ".",
562 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31563 }
564
thestigdc377202014-10-28 22:06:02565 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10566 sources +=
567 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02568 }
569
[email protected]dffd8a912014-06-30 23:24:31570 if (is_android || is_ios) {
571 # Mobile.
scottmga266f952014-12-03 20:47:10572 sources +=
573 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31574 } else {
575 # Non-mobile.
576 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10577 ".",
578 "//chrome")
reillyge471fab2014-08-29 01:58:43579 deps += [
reillyge471fab2014-08-29 01:58:43580 "//device/core",
reillygd77718d2014-09-04 00:57:56581 "//device/usb",
reillyge471fab2014-08-29 01:58:43582 ]
[email protected]dffd8a912014-06-30 23:24:31583 }
584
585 if (is_android) {
scottmga266f952014-12-03 20:47:10586 sources +=
587 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31588 deps += [
James Robinson2ed4d692014-09-17 05:20:58589 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30590 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18591 "//components/enhanced_bookmarks",
estadee37f8222014-11-07 21:35:22592 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18593 "//components/web_contents_delegate_android",
594 "//third_party/android_opengl/etc1",
twellington0bc61492015-01-30 20:14:13595 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31596 ]
597 deps -= [
[email protected]fca567b2014-07-02 17:37:34598 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30599 "//components/feedback",
600 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30601 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31602 ]
[email protected]dffd8a912014-06-30 23:24:31603 }
604
605 if (is_mac) {
606 deps += [
[email protected]6b5d2f92014-07-30 00:40:03607 "//third_party/google_toolbox_for_mac",
[email protected]dffd8a912014-06-30 23:24:31608 #"../third_party/mozilla/mozilla.gyp:mozilla", TODO(GYP)
609 ]
610 libs += [
611 "Accelerate.framework",
612 "AddressBook.framework",
613 "AudioUnit.framework",
614 "DiskArbitration.framework",
615 "IOKit.framework",
616 "ImageCaptureCore.framework",
617 "OpenGL.framework",
618 "QuartzCore.framework",
619 "SecurityInterface.framework",
620 ]
621 }
622
623 if (enable_rlz) {
scottmga266f952014-12-03 20:47:10624 sources +=
625 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31626 deps += [ "//rlz:rlz_lib" ]
627 }
628
629 # TODO(GYP)
630 # Temporary fix to break the browser target into smaller chunks so it
631 # will link with goma builds.
632 #["OS=="win" and chromium_win_pch==0", {
633 # "msvs_shard": 4,
634 #}],
635
636 if (is_win) {
scottmga266f952014-12-03 20:47:10637 sources +=
638 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
grtaa9d8d22014-11-13 19:52:36639 if (!is_chrome_branded) {
640 sources -= [
641 "google/did_run_updater_win.cc",
642 "google/did_run_updater_win.h",
643 ]
644 }
Brett Wilsone53895272014-09-23 23:41:46645 public_deps += [
646 "//ui/views",
647 "//ui/views/controls/webview",
648 ]
[email protected]dffd8a912014-06-30 23:24:31649 deps += [
vchigrin9593e7a2015-01-27 10:08:19650 ":chrome_process_finder",
[email protected]55699f392014-08-20 22:16:30651 "//chrome:version_header",
652 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19653 "//chrome_elf",
654 "//chrome_elf:constants",
655 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32656 "//components/browser_watcher",
657 "//components/browser_watcher:browser_watcher_client",
vchigrinbbc23e72015-01-21 22:49:23658 "//google_update",
[email protected]55699f392014-08-20 22:16:30659 "//third_party/iaccessible2",
660 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31661 "//third_party/wtl",
vchigrin88ed6f42015-01-17 11:56:42662 "//ui/metro_viewer",
663 "//win8:metro_viewer",
[email protected]dffd8a912014-06-30 23:24:31664 ]
vchigrin61944ae2015-01-30 23:51:32665 libs += [ "credui.lib" ]
[email protected]dffd8a912014-06-30 23:24:31666 } else {
667 # Non-Windows.
scottmga266f952014-12-03 20:47:10668 sources +=
669 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37670 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31671 deps += [
scottmga266f952014-12-03 20:47:10672 "//ui/views",
673 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31674 ]
675 # TODO(GYP) why is this needed? Very susicious.
676 # "include_dirs": [
677 # "<(INTERMEDIATE_DIR)/chrome",
678 # ],
679 }
680 }
681
682 if (is_linux) {
scottmga266f952014-12-03 20:47:10683 sources +=
684 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31685 if (use_aura) {
686 configs += [
687 "//build/config/linux:dbus",
688 "//build/config/linux:fontconfig",
689 ]
scottmga266f952014-12-03 20:47:10690 deps += [ "//dbus" ]
[email protected]dffd8a912014-06-30 23:24:31691 }
692 if (use_x11) {
693 configs += [ "//build/config/linux:x11" ]
694 deps += [ "//ui/gfx/x" ]
695 }
696 }
697
698 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54699 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10700 ".",
701 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31702 }
703 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10704 sources +=
705 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
706 ".",
707 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31708 }
709 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10710 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31711 }
treib87bb89cbb2014-12-01 16:01:47712 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10713 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
714 ".",
715 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31716 }
treib87bb89cbb2014-12-01 16:01:47717 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59718 sources += rebase_path(
scottmga266f952014-12-03 20:47:10719 gypi_values.chrome_browser_supervised_user_and_themes_sources,
720 ".",
721 "//chrome")
thestig169a6362014-11-13 20:47:59722 }
[email protected]dffd8a912014-06-30 23:24:31723 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10724 sources +=
725 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31726 }
727 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10728 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
729 ".",
730 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31731 }
732 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10733 sources +=
734 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31735 }
736 if (!enable_autofill_dialog || is_android || is_ios) {
737 sources -= [
738 "autofill/validation_rules_storage_factory.cc",
739 "autofill/validation_rules_storage_factory.h",
740 ]
741 }
742 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10743 sources +=
744 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
745 ".",
746 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31747 if (is_win || is_mac) {
748 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
749 # and Mac, so this test is meaningless. Can we merge these lists?
750 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11751 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10752 ".",
753 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31754 }
755 }
756}
757
James Robinson2ed4d692014-09-17 05:20:58758if (is_android) {
759 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
760 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10761 sources =
762 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58763 jni_package = "chrome"
764 }
765}
766
vchigrin9593e7a2015-01-27 10:08:19767if (is_win) {
768 source_set("chrome_process_finder") {
769 sources = [
770 "chrome_process_finder_win.cc",
771 "chrome_process_finder_win.h",
772 ]
773 deps = [
774 "//base",
775 "//chrome/browser/metro_utils",
776 "//chrome/common:constants",
777 ]
778 if (enable_configuration_policy) {
779 deps += [ "//chrome/browser/policy:path_parser" ]
780 }
781 }
782}
783
[email protected]77ce8022014-06-16 19:29:56784# GYP version: chrome/chrome_resources.gyp:chrome_resources
785# (generate_browser_resources action)
786grit("resources") {
787 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41788 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26789 outputs = [
790 "grit/browser_resources.h",
791 "browser_resources.pak",
792 ]
[email protected]77ce8022014-06-16 19:29:56793
scottmga266f952014-12-03 20:47:10794 omnibox_mojom_file =
795 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
[email protected]77ce8022014-06-16 19:29:56796
797 grit_flags = [
scottmga266f952014-12-03 20:47:10798 "-E",
799 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
800 "-E",
801 "additional_modules_list_file=" +
802 rebase_path(additional_modules_list_file, root_build_dir),
803 "-E",
804 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56805 ]
806
807 deps = [
808 ":about_credits",
809 ":chrome_internal_resources_gen",
vchigrin8eede942015-01-29 09:28:15810 ]
811 inputs = [
812 omnibox_mojom_file,
[email protected]77ce8022014-06-16 19:29:56813 ]
814}
815
816# GYP version: chrome/chrome_resource.gyp:about_credits
817action("about_credits") {
818 script = "//tools/licenses.py"
819
dbeamc7776c72014-12-17 02:24:05820 inputs = [
821 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
822 # generate a .d file with all the licenses/credits that about:credits uses.
823 # Then about:credits will automatically rebuild when one of them changes.
824 # See: depfile in gn's documentation (gn help depfile).
825 "resources/about_credits.tmpl",
826 "resources/about_credits_entry.tmpl",
827 ]
828
scottmga266f952014-12-03 20:47:10829 outputs = [
830 about_credits_file,
831 ]
[email protected]77ce8022014-06-16 19:29:56832
833 args = [
834 "credits",
835 rebase_path(about_credits_file, root_build_dir),
836 ]
837}
838
839# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41840if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56841 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41842 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10843 sources = [
844 "internal/resources/additional_modules_list.input",
845 ]
846 outputs = [
847 additional_modules_list_file,
848 ]
engedy99d0e11b2014-09-30 13:32:41849 args = rebase_path(sources, root_build_dir) +
850 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56851 }
852} else {
853 group("chrome_internal_resources_gen") {
854 # Empty placeholder.
855 }
856}
Brett Wilson052ce132014-09-12 19:46:29857
858# In GYP this is part of test_support_common.
859source_set("test_support") {
860 testonly = true
861
862 # Always include this via the main test support target.
863 visibility = [ "//chrome/test:test_support" ]
864
865 sources = [
866 "browsing_data/mock_browsing_data_appcache_helper.cc",
867 "browsing_data/mock_browsing_data_appcache_helper.h",
868 "browsing_data/mock_browsing_data_channel_id_helper.cc",
869 "browsing_data/mock_browsing_data_channel_id_helper.h",
870 "browsing_data/mock_browsing_data_cookie_helper.cc",
871 "browsing_data/mock_browsing_data_cookie_helper.h",
872 "browsing_data/mock_browsing_data_database_helper.cc",
873 "browsing_data/mock_browsing_data_database_helper.h",
874 "browsing_data/mock_browsing_data_file_system_helper.cc",
875 "browsing_data/mock_browsing_data_file_system_helper.h",
876 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
877 "browsing_data/mock_browsing_data_flash_lso_helper.h",
878 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
879 "browsing_data/mock_browsing_data_indexed_db_helper.h",
880 "browsing_data/mock_browsing_data_local_storage_helper.cc",
881 "browsing_data/mock_browsing_data_local_storage_helper.h",
882 "browsing_data/mock_browsing_data_quota_helper.cc",
883 "browsing_data/mock_browsing_data_quota_helper.h",
884 "browsing_data/mock_browsing_data_service_worker_helper.cc",
885 "browsing_data/mock_browsing_data_service_worker_helper.h",
886 "download/download_test_file_activity_observer.cc",
887 "download/download_test_file_activity_observer.h",
888 "download/test_download_shelf.cc",
889 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:29890 "invalidation/fake_invalidation_service.cc",
891 "invalidation/fake_invalidation_service.h",
892 "media/fake_desktop_media_list.cc",
893 "media/fake_desktop_media_list.h",
894 "net/dns_probe_test_util.cc",
895 "net/dns_probe_test_util.h",
896 "net/url_request_mock_util.cc",
897 "net/url_request_mock_util.h",
898 "notifications/notification_test_util.cc",
899 "notifications/notification_test_util.h",
900 "password_manager/mock_password_store_service.cc",
901 "password_manager/mock_password_store_service.h",
902 "password_manager/null_password_store_service.cc",
903 "password_manager/null_password_store_service.h",
904 "password_manager/test_password_store_service.cc",
905 "password_manager/test_password_store_service.h",
906 "prefs/pref_service_mock_factory.cc",
907 "prefs/pref_service_mock_factory.h",
908 "profile_resetter/profile_resetter_test_base.cc",
909 "profile_resetter/profile_resetter_test_base.h",
910 "search_engines/template_url_service_factory_test_util.cc",
911 "search_engines/template_url_service_factory_test_util.h",
912 "search_engines/template_url_service_test_util.cc",
913 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:45914 "sessions/session_restore_test_helper.cc",
915 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:29916 "sessions/session_service_test_helper.cc",
917 "sessions/session_service_test_helper.h",
918 "signin/fake_account_reconcilor.cc",
919 "signin/fake_account_reconcilor.h",
920 "signin/fake_account_tracker_service.cc",
921 "signin/fake_account_tracker_service.h",
922 "signin/fake_profile_oauth2_token_service.cc",
923 "signin/fake_profile_oauth2_token_service.h",
924 "signin/fake_profile_oauth2_token_service_builder.cc",
925 "signin/fake_profile_oauth2_token_service_builder.h",
926 "signin/fake_signin_manager.cc",
927 "signin/fake_signin_manager.h",
928 "ssl/ssl_client_auth_requestor_mock.cc",
929 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:29930 "sync/profile_sync_components_factory_mock.cc",
931 "sync/profile_sync_components_factory_mock.h",
932 "sync/profile_sync_service_mock.cc",
933 "sync/profile_sync_service_mock.h",
shadi2f257fc2014-12-03 18:04:12934 "ui/webui/signin/login_ui_test_utils.cc",
935 "ui/webui/signin/login_ui_test_utils.h",
Brett Wilson052ce132014-09-12 19:46:29936 ]
937
Brett Wilsone53895272014-09-23 23:41:46938 public_deps = [
Brett Wilson052ce132014-09-12 19:46:29939 ":browser",
Brett Wilsone53895272014-09-23 23:41:46940 "//chrome/browser/ui:test_support",
941 ]
942 deps = [
Brett Wilson052ce132014-09-12 19:46:29943 "//base:prefs_test_support",
944 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:29945 "//chrome/common",
946 "//chrome/common/safe_browsing:proto",
947 "//components/invalidation",
948 "//components/invalidation:test_support",
949 "//components/password_manager/core/browser:test_support",
950 "//components/search_engines:test_support",
951 "//content/test:test_support",
952 "//chrome/app/theme:theme_resources",
953 "//net:test_support",
954 "//skia",
955 "//testing/gmock",
956 "//testing/gtest",
957 "//ui/gfx",
958 ]
959
Brett Wilson052ce132014-09-12 19:46:29960 if (!is_ios) {
961 deps += [
962 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:29963 "//google_apis:test_support",
964 ]
965 }
966
James Robinson2ed4d692014-09-17 05:20:58967 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:38968 sources += [
969 "extensions/extension_action_test_util.cc",
970 "extensions/extension_action_test_util.h",
971 ]
scottmga266f952014-12-03 20:47:10972 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:58973 }
974
Brett Wilson052ce132014-09-12 19:46:29975 if (is_chromeos) {
976 sources += [
977 "chromeos/app_mode/fake_cws.cc",
978 "chromeos/app_mode/fake_cws.h",
979 "chromeos/file_manager/fake_disk_mount_manager.cc",
980 "chromeos/file_manager/fake_disk_mount_manager.h",
981 "chromeos/input_method/mock_candidate_window_controller.cc",
982 "chromeos/input_method/mock_candidate_window_controller.h",
983 "chromeos/input_method/mock_input_method_engine.cc",
984 "chromeos/input_method/mock_input_method_engine.h",
985 "chromeos/input_method/mock_input_method_manager.cc",
986 "chromeos/input_method/mock_input_method_manager.h",
987 "chromeos/login/fake_login_utils.cc",
988 "chromeos/login/fake_login_utils.h",
989 "chromeos/login/mock_login_utils.cc",
990 "chromeos/login/mock_login_utils.h",
brettw7d6ec2462015-01-07 13:00:51991 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
992 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
Brett Wilson052ce132014-09-12 19:46:29993 "chromeos/login/test/oobe_screen_waiter.cc",
994 "chromeos/login/test/oobe_screen_waiter.h",
995 "chromeos/login/test/js_checker.cc",
996 "chromeos/login/test/js_checker.h",
997 "chromeos/login/ui/mock_login_display.cc",
998 "chromeos/login/ui/mock_login_display.h",
999 "chromeos/login/ui/mock_login_display_host.cc",
1000 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511001 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1002 "chromeos/login/users/avatar/mock_user_image_manager.h",
1003 "chromeos/login/users/fake_supervised_user_manager.cc",
1004 "chromeos/login/users/fake_supervised_user_manager.h",
1005 "chromeos/login/users/fake_user_manager.cc",
1006 "chromeos/login/users/fake_user_manager.h",
1007 "chromeos/login/users/mock_user_manager.cc",
1008 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291009 "chromeos/net/network_portal_detector_test_utils.cc",
1010 "chromeos/net/network_portal_detector_test_utils.h",
1011 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1012 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1013 "chromeos/policy/device_policy_builder.cc",
1014 "chromeos/policy/device_policy_builder.h",
1015 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1016 "chromeos/policy/fake_device_cloud_policy_initializer.h",
1017 "chromeos/policy/stub_enterprise_install_attributes.cc",
1018 "chromeos/policy/stub_enterprise_install_attributes.h",
1019 "chromeos/settings/device_settings_test_helper.cc",
1020 "chromeos/settings/device_settings_test_helper.h",
1021 "chromeos/system/fake_input_device_settings.cc",
1022 "chromeos/system/fake_input_device_settings.h",
1023 ]
1024 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:171025 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291026 }
1027
1028 if (enable_configuration_policy) {
1029 sources += [
1030 "policy/test/local_policy_test_server.cc",
1031 "policy/test/local_policy_test_server.h",
1032 ]
Brett Wilsone53895272014-09-23 23:41:461033 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291034 "//components/policy:policy_component_test_support",
1035 "//components/policy:test_support",
1036 ]
Brett Wilson052ce132014-09-12 19:46:291037 }
1038
1039 if (safe_browsing_mode == 1) {
1040 sources += [
1041 "extensions/fake_safe_browsing_database_manager.cc",
1042 "extensions/fake_safe_browsing_database_manager.h",
1043 ]
1044 }
1045
1046 if (enable_extensions) {
1047 sources += [
1048 "drive/dummy_drive_service.cc",
1049 "drive/dummy_drive_service.h",
1050 "drive/fake_drive_service.cc",
1051 "drive/fake_drive_service.h",
1052 "drive/test_util.cc",
1053 "drive/test_util.h",
1054 "extensions/api/messaging/native_messaging_test_util.cc",
1055 "extensions/api/messaging/native_messaging_test_util.h",
1056 "extensions/extension_notification_observer.cc",
1057 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:291058 "extensions/mock_extension_special_storage_policy.cc",
1059 "extensions/mock_extension_special_storage_policy.h",
1060 "extensions/test_blacklist.cc",
1061 "extensions/test_blacklist.h",
1062 "extensions/test_blacklist_state_fetcher.cc",
1063 "extensions/test_blacklist_state_fetcher.h",
1064 "extensions/test_extension_environment.cc",
1065 "extensions/test_extension_environment.h",
brettw7d6ec2462015-01-07 13:00:511066 "extensions/test_extension_dir.cc",
1067 "extensions/test_extension_dir.h",
Brett Wilson052ce132014-09-12 19:46:291068 "extensions/test_extension_prefs.cc",
1069 "extensions/test_extension_prefs.h",
1070 "extensions/test_extension_service.cc",
1071 "extensions/test_extension_service.h",
1072 "extensions/test_extension_system.cc",
1073 "extensions/test_extension_system.h",
1074 "media_galleries/media_galleries_test_util.cc",
1075 "media_galleries/media_galleries_test_util.h",
1076 ]
scottmga266f952014-12-03 20:47:101077 deps += [ "//components/storage_monitor:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291078 }
1079
1080 if (enable_mdns) {
1081 sources += [
1082 "local_discovery/test_service_discovery_client.cc",
1083 "local_discovery/test_service_discovery_client.h",
1084 ]
1085 }
1086
1087 if (enable_app_list) {
1088 sources += [
1089 "ui/app_list/test/chrome_app_list_test_support.cc",
1090 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511091 "ui/app_list/test/test_app_list_controller_delegate.cc",
1092 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291093 ]
1094 }
1095
1096 if (enable_wifi_bootstrapping) {
1097 sources += [
1098 "local_discovery/wifi/mock_wifi_manager.cc",
1099 "local_discovery/wifi/mock_wifi_manager.h",
1100 ]
1101 }
1102}