blob: a789bedf41f0aabad7c3428e074d46ed65723600 [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",
Brett Wilson1c693992014-08-25 19:10:0197 "//components/password_manager/core/browser",
98 "//components/password_manager/core/common",
[email protected]fca567b2014-07-02 17:37:3499 "//components/policy:policy_component",
Brett Wilson1c693992014-08-25 19:10:01100 "//components/precache/core",
[email protected]fca567b2014-07-02 17:37:34101 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37102 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01103 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40104 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01105 "//components/search_engines",
106 "//components/search_provider_logos",
[email protected]abd4b682014-07-16 20:26:30107 "//components/signin/core/browser",
108 "//components/startup_metric_utils",
[email protected]797b25042014-07-01 23:54:17109 "//components/strings",
mathp60143a32014-10-08 14:52:45110 "//components/suggestions",
Brett Wilson1c693992014-08-25 19:10:01111 "//components/sync_driver",
[email protected]b9f4c682014-07-10 22:00:37112 "//components/translate/core/browser",
113 "//components/translate/core/common",
wjmaclean7f63c6b2014-12-09 14:59:55114 "//components/ui/zoom:ui_zoom",
sorin39eab2f2015-01-06 01:09:08115 "//components/update_client",
[email protected]273ae5ab2014-07-09 21:10:25116 "//components/url_fixer",
[email protected]fca567b2014-07-02 17:37:34117 "//components/user_prefs",
isherman3be67db2014-10-24 05:57:44118 "//components/variations",
119 "//components/variations/net",
[email protected]bf4545f2014-07-11 19:49:46120 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56121 "//components/webdata_services",
drogerf8479942014-11-21 17:47:53122 "//components/web_resource",
[email protected]dffd8a912014-06-30 23:24:31123 "//content/public/browser",
124 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12125 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31126 "//crypto",
[email protected]604828c2014-07-02 20:39:12127 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56128 "//gpu/config",
ajwongf7b1cb692014-08-23 21:36:22129 "//jingle:notifier",
[email protected]dffd8a912014-06-30 23:24:31130 "//skia",
131 "//sql",
132 "//sync",
[email protected]797b25042014-07-01 23:54:17133 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31134 "//third_party/icu",
135 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22136 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31137 "//third_party/widevine/cdm:version_h",
138 "//third_party/zlib",
139 "//third_party/zlib:minizip",
140 "//third_party/zlib:zip",
141 "//ui/base",
cjhopman09981a92014-10-27 17:11:18142 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31143 "//ui/gfx",
144 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36145 "//ui/message_center",
146 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31147 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17148 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31149 ]
150
scottmga266f952014-12-03 20:47:10151 sources +=
152 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00153
[email protected]dffd8a912014-06-30 23:24:31154 if (!is_ios) {
scottmga266f952014-12-03 20:47:10155 sources +=
156 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59157 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10158 ".",
159 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59160 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10161 ".",
162 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18163 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
164 ".",
165 "//chrome")
166 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
167 ".",
168 "//chrome")
scottmga266f952014-12-03 20:47:10169 sources +=
170 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
171 sources +=
172 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
173 sources +=
174 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
175 sources +=
176 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
177 sources +=
178 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59179 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10180 ".",
181 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59182 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10183 ".",
184 "//chrome")
185 sources +=
186 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59187 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10188 ".",
189 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59190 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10191 ".",
192 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59193 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10194 ".",
195 "//chrome")
196 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18197 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
198 sources +=
scottmga266f952014-12-03 20:47:10199 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
200 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18201 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
202 sources +=
scottmga266f952014-12-03 20:47:10203 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59204 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10205 ".",
206 "//chrome")
207
[email protected]dffd8a912014-06-30 23:24:31208 #TODO(GYP) Add these sources:
209 # # These files are generated by GRIT.
210 # '<(grit_out_dir)/grit/component_extension_resources_map.cc',
211 # '<(grit_out_dir)/grit/theme_resources_map.cc',
[email protected]a3c134352014-07-11 19:23:19212 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/grit/ui_resources_map.cc',
[email protected]dffd8a912014-06-30 23:24:31213 #
214 # # This file is generated by
215 # # chrome/browser/metrics/variations/generate_resources_map.py
216 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/generated_resources_map.cc',
217
[email protected]1bb1a6002014-07-24 23:58:56218 defines = nacl_defines
[email protected]797b25042014-07-01 23:54:17219
[email protected]dffd8a912014-06-30 23:24:31220 deps += [
Brett Wilson1c693992014-08-25 19:10:01221 "//apps",
[email protected]dffd8a912014-06-30 23:24:31222 "//cc",
[email protected]55699f392014-08-20 22:16:30223 "//chrome/browser/devtools",
[email protected]55699f392014-08-20 22:16:30224 "//chrome/installer/util",
oshimaf65398422014-11-18 23:30:42225 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37226 "//components/autofill/content/browser",
227 "//components/dom_distiller/content",
[email protected]fca567b2014-07-02 17:37:34228 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30229 "//components/navigation_interception",
230 "//components/password_manager/content/browser",
231 "//components/precache/content",
rohitraod16f44e2014-10-24 15:34:35232 "//components/sessions:sessions_content",
[email protected]abd4b682014-07-16 20:26:30233 "//components/storage_monitor",
[email protected]b9f4c682014-07-10 22:00:37234 "//components/translate/content/browser",
[email protected]fca567b2014-07-02 17:37:34235 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31236 "//components/visitedlink/browser",
237 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18238 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37239 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08240 "//content/app/resources",
[email protected]55699f392014-08-20 22:16:30241 "//media",
242 "//media/cast:net",
cjhopman09981a92014-10-27 17:11:18243 "//mojo/common",
jamesra03ae492014-10-03 04:26:48244 "//mojo/edk/system",
[email protected]604828c2014-07-02 20:39:12245 "//mojo/environment:chromium",
246 "//mojo/public/cpp/bindings",
jamesr60a7dbf2014-11-07 01:24:51247 "//mojo/public/js",
Brett Wilson83fd4242014-09-02 19:45:33248 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31249 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15250 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24251 "//storage/common",
[email protected]4eebe74d2014-08-13 02:54:46252 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31253 "//third_party/expat",
254 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34255 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31256 "//third_party/libyuv",
257 "//third_party/npapi",
258 "//third_party/re2",
259 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33260 "//third_party/webrtc/modules/desktop_capture",
[email protected]dffd8a912014-06-30 23:24:31261 "//ui/gl",
262 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12263 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34264 "//v8",
scottmga266f952014-12-03 20:47:10265
[email protected]dffd8a912014-06-30 23:24:31266 ## TODO(tonyg): Remove this dependency (crbug.com/280157).
[email protected]55699f392014-08-20 22:16:30267 #"../testing/perf/perf_test.gyp:*", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31268 ]
269 } else { # iOS
scottmga266f952014-12-03 20:47:10270 sources +=
271 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
272 sources +=
273 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
274 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31275 libs += [
276 "CoreTelephony.framework",
277 "CoreText.framework",
278 "MobileCoreServices.framework",
279 "QuartzCore.framework",
280 ]
scottmga266f952014-12-03 20:47:10281 ldflags += [
282 "-weak_framework",
283 "CoreImage",
284 ]
[email protected]dffd8a912014-06-30 23:24:31285 }
286
287 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10288 sources +=
289 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31290 }
291 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
292 sources += [
293 "net/disk_cache_dir_policy_handler.cc",
294 "net/disk_cache_dir_policy_handler.h",
295 ]
296 }
297 if (!is_android && !is_ios && enable_configuration_policy) {
298 sources += [
299 "download/download_dir_policy_handler.cc",
300 "download/download_dir_policy_handler.h",
301 ]
302 }
303 if (is_mac) {
scottmga266f952014-12-03 20:47:10304 sources +=
305 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31306 deps += [
307 #"app_shim" TODO(GYP)
tapted63829f72014-09-24 23:50:50308 #"browser_app_shim" TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31309 ]
310 }
[email protected]dffd8a912014-06-30 23:24:31311 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46312 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52313 deps += [
[email protected]cc5b3be2014-08-15 23:24:52314 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30315 "//chrome/common/extensions/api",
316 "//chrome/common/extensions/api:api_registration",
tengs4758c082014-12-19 18:51:44317 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50318 "//extensions/components/javascript_dialog_extensions_client",
[email protected]cc5b3be2014-08-15 23:24:52319 ]
[email protected]dffd8a912014-06-30 23:24:31320 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10321 ".",
322 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31323 }
324 if (enable_background) {
325 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10326 ".",
327 "//chrome")
jamesr29ea2d122014-10-23 10:30:27328 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31329 sources -= [ "background/background_mode_manager_aura.cc" ]
330 }
thestig52a87b3b2014-10-23 22:02:38331 defines += [ "ENABLE_BACKGROUND=1" ]
[email protected]dffd8a912014-06-30 23:24:31332 }
333 if (enable_task_manager) {
334 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10335 ".",
336 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31337 }
338 if (enable_spellcheck) {
339 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10340 ".",
341 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31342 deps += [ "//third_party/hunspell" ]
343 }
344 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10345 sources +=
346 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31347 #deps += [ "//components/nacl:nacl_browser" ] TODO(GYP)
348 }
apavlove749bca2014-09-30 11:07:41349
[email protected]dffd8a912014-06-30 23:24:31350 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10351 sources +=
352 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
353 ".",
354 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31355 deps += [
[email protected]604828c2014-07-02 20:39:12356 "//components/policy",
[email protected]797b25042014-07-01 23:54:17357 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31358 ]
359 if (!is_ios) {
scottmga266f952014-12-03 20:47:10360 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
361 ".",
362 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31363 }
364 if (!is_chromeos) {
365 sources += rebase_path(
scottmga266f952014-12-03 20:47:10366 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
367 ".",
368 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31369 }
370 if (is_win || is_mac || is_desktop_linux) {
371 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10372 ".",
373 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31374 }
cjhopman09981a92014-10-27 17:11:18375 if (is_android || is_ios) {
376 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10377 ".",
378 "//chrome")
cjhopman09981a92014-10-27 17:11:18379 } else {
scottmga266f952014-12-03 20:47:10380 deps += [ "//chrome/browser/policy:path_parser" ]
[email protected]dffd8a912014-06-30 23:24:31381 }
382 } else {
383 # Configuration policy disabled.
384 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10385 ".",
386 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31387 }
388
389 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10390 sources +=
391 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31392 deps += [
James Robinson2ed4d692014-09-17 05:20:58393 "//components/pdf/browser",
[email protected]dffd8a912014-06-30 23:24:31394 "//ppapi:ppapi_ipc",
thestig11b815e92014-08-26 00:32:14395 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31396 ]
397 }
398 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10399 sources +=
stuartmorgan1b3df822014-12-08 14:36:11400 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10401 ".",
402 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31403 deps += [
[email protected]fca567b2014-07-02 17:37:34404 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45405 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34406 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31407 ]
408 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10409 sources +=
stuartmorgan1b3df822014-12-08 14:36:11410 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10411 ".",
412 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31413 defines += [ "FULL_SAFE_BROWSING" ]
scottmga266f952014-12-03 20:47:10414 deps += [ "//chrome/common/safe_browsing:proto" ]
[email protected]dffd8a912014-06-30 23:24:31415 } else if (safe_browsing_mode == 2) {
416 defines += [ "MOBILE_SAFE_BROWSING" ]
417 }
418 }
419
420 if (is_linux) {
thestigee816c272014-11-22 02:47:51421 deps += [
422 "//device/media_transfer_protocol",
scottmga266f952014-12-03 20:47:10423 "//device/udev_linux",
thestigee816c272014-11-22 02:47:51424 ]
[email protected]dffd8a912014-06-30 23:24:31425 }
426 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47427 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31428 }
429
430 if (is_chromeos) {
431 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10432 ".",
433 "//chrome")
434 deps += [ "//chrome/browser/chromeos" ]
[email protected]dffd8a912014-06-30 23:24:31435 } else {
436 # Non-ChromeOS.
437 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
scottmga266f952014-12-03 20:47:10438 ".",
439 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31440 }
441
yiyaoliubcd08dc22014-12-10 05:56:10442 if (is_ios) {
443 sources -= [
444 "metrics/signin_status_metrics_provider_base.cc",
445 "metrics/signin_status_metrics_provider_base.h",
446 ]
447 }
448
mukai8c99b882014-10-15 03:07:59449 if (is_chromeos || is_ios) {
450 sources -= [
451 "metrics/signin_status_metrics_provider.cc",
452 "metrics/signin_status_metrics_provider.h",
453 ]
454 }
455
[email protected]dffd8a912014-06-30 23:24:31456 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12457 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31458 }
459 if (is_desktop_linux) {
460 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10461 ".",
462 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49463 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31464 }
465 if (use_aura) {
scottmga266f952014-12-03 20:47:10466 sources +=
467 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31468 deps += [
[email protected]fca567b2014-07-02 17:37:34469 "//ui/aura",
470 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12471 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31472 ]
473 }
474 if (ui_compositor_image_transport) {
475 deps += [ "//ui/gl" ]
476 }
477
[email protected]855b7de2014-07-08 21:02:45478 if (use_ash) {
scottmga266f952014-12-03 20:47:10479 sources +=
480 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45481 }
482
[email protected]dffd8a912014-06-30 23:24:31483 if (use_x11) {
scottmga266f952014-12-03 20:47:10484 sources +=
485 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31486 if (!is_chromeos) {
[email protected]fca567b2014-07-02 17:37:34487 configs += [ "//build/config/linux:xscrnsaver" ]
[email protected]dffd8a912014-06-30 23:24:31488 }
489 }
490 if (is_posix && !is_mac && !is_ios) {
491 sources += [
rseseka0a7a042014-09-18 23:59:20492 "//chrome/app/chrome_crash_reporter_client.cc",
493 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31494 ]
495 deps += [
Robert Sesekabcd8102014-08-27 16:12:44496 "//components/crash/app",
497 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31498 ]
499 }
500 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10501 sources +=
502 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59503 if (is_chromeos) {
504 sources -= [ "net/nss_context_linux.cc" ]
505 }
[email protected]dffd8a912014-06-30 23:24:31506 }
507 if (enable_notifications) {
508 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10509 ".",
510 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31511 if (!is_android) {
512 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11513 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10514 ".",
515 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31516 }
517 }
518 if (enable_themes) {
scottmga266f952014-12-03 20:47:10519 sources +=
520 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31521 }
522
vitalybuka93eea402014-11-05 23:47:15523 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31524 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11525 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10526 ".",
527 "//chrome")
528 deps += [ "//printing" ]
vitalybuka36259ca2014-08-28 23:42:24529 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31530 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10531 ".",
532 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31533 }
vitalybuka93eea402014-11-05 23:47:15534 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31535 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11536 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10537 ".",
538 "//chrome")
vitalybuka93eea402014-11-05 23:47:15539 } else {
[email protected]dffd8a912014-06-30 23:24:31540 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10541 sources +=
stuartmorgan1b3df822014-12-08 14:36:11542 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10543 ".",
544 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31545 }
546 }
547 if (enable_captive_portal_detection) {
548 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10549 ".",
550 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31551 }
552 if (enable_session_service) {
553 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10554 ".",
555 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31556 }
557
thestigdc377202014-10-28 22:06:02558 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10559 sources +=
560 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02561 }
562
[email protected]dffd8a912014-06-30 23:24:31563 if (is_android || is_ios) {
564 # Mobile.
scottmga266f952014-12-03 20:47:10565 sources +=
566 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31567 } else {
568 # Non-mobile.
569 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10570 ".",
571 "//chrome")
reillyge471fab2014-08-29 01:58:43572 deps += [
reillyge471fab2014-08-29 01:58:43573 "//device/core",
reillygd77718d2014-09-04 00:57:56574 "//device/usb",
reillyge471fab2014-08-29 01:58:43575 ]
[email protected]dffd8a912014-06-30 23:24:31576 }
577
578 if (is_android) {
scottmga266f952014-12-03 20:47:10579 sources +=
580 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31581 deps += [
James Robinson2ed4d692014-09-17 05:20:58582 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30583 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18584 "//components/enhanced_bookmarks",
585 "//components/history/core/android",
estadee37f8222014-11-07 21:35:22586 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18587 "//components/web_contents_delegate_android",
588 "//third_party/android_opengl/etc1",
[email protected]dffd8a912014-06-30 23:24:31589 ]
590 deps -= [
[email protected]fca567b2014-07-02 17:37:34591 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30592 "//components/feedback",
593 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30594 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31595 ]
[email protected]dffd8a912014-06-30 23:24:31596 }
597
598 if (is_mac) {
599 deps += [
[email protected]6b5d2f92014-07-30 00:40:03600 "//third_party/google_toolbox_for_mac",
[email protected]dffd8a912014-06-30 23:24:31601 #"../third_party/mozilla/mozilla.gyp:mozilla", TODO(GYP)
602 ]
603 libs += [
604 "Accelerate.framework",
605 "AddressBook.framework",
606 "AudioUnit.framework",
607 "DiskArbitration.framework",
608 "IOKit.framework",
609 "ImageCaptureCore.framework",
610 "OpenGL.framework",
611 "QuartzCore.framework",
612 "SecurityInterface.framework",
613 ]
614 }
615
616 if (enable_rlz) {
scottmga266f952014-12-03 20:47:10617 sources +=
618 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31619 deps += [ "//rlz:rlz_lib" ]
620 }
621
622 # TODO(GYP)
623 # Temporary fix to break the browser target into smaller chunks so it
624 # will link with goma builds.
625 #["OS=="win" and chromium_win_pch==0", {
626 # "msvs_shard": 4,
627 #}],
628
629 if (is_win) {
scottmga266f952014-12-03 20:47:10630 sources +=
631 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
grtaa9d8d22014-11-13 19:52:36632 if (!is_chrome_branded) {
633 sources -= [
634 "google/did_run_updater_win.cc",
635 "google/did_run_updater_win.h",
636 ]
637 }
Brett Wilsone53895272014-09-23 23:41:46638 public_deps += [
639 "//ui/views",
640 "//ui/views/controls/webview",
641 ]
[email protected]dffd8a912014-06-30 23:24:31642 deps += [
[email protected]55699f392014-08-20 22:16:30643 "//chrome:version_header",
644 "//chrome/installer/util:strings",
645 "//third_party/iaccessible2",
646 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31647 "//third_party/wtl",
scottmga266f952014-12-03 20:47:10648
[email protected]dffd8a912014-06-30 23:24:31649 #"chrome_process_finder", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31650 #"../chrome_elf/chrome_elf.gyp:chrome_elf", TODO(GYP)
651 #"../chrome_elf/chrome_elf.gyp:chrome_elf_constants", TODO(GYP)
652 #"../chrome_elf/chrome_elf.gyp:dll_hash", TODO(GYP)
653 #"../google_update/google_update.gyp:google_update", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31654 #"../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31655 #"../win8/win8.gyp:metro_viewer", TODO(GYP)
656 ]
[email protected]dffd8a912014-06-30 23:24:31657 } else {
658 # Non-Windows.
scottmga266f952014-12-03 20:47:10659 sources +=
660 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37661 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31662 deps += [
scottmga266f952014-12-03 20:47:10663 "//ui/views",
664 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31665 ]
666 # TODO(GYP) why is this needed? Very susicious.
667 # "include_dirs": [
668 # "<(INTERMEDIATE_DIR)/chrome",
669 # ],
670 }
671 }
672
673 if (is_linux) {
scottmga266f952014-12-03 20:47:10674 sources +=
675 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31676 if (use_aura) {
677 configs += [
678 "//build/config/linux:dbus",
679 "//build/config/linux:fontconfig",
680 ]
scottmga266f952014-12-03 20:47:10681 deps += [ "//dbus" ]
[email protected]dffd8a912014-06-30 23:24:31682 }
683 if (use_x11) {
684 configs += [ "//build/config/linux:x11" ]
685 deps += [ "//ui/gfx/x" ]
686 }
687 }
688
689 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54690 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10691 ".",
692 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31693 }
694 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10695 sources +=
696 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
697 ".",
698 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31699 }
700 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10701 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31702 }
treib87bb89cbb2014-12-01 16:01:47703 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10704 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
705 ".",
706 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31707 }
treib87bb89cbb2014-12-01 16:01:47708 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59709 sources += rebase_path(
scottmga266f952014-12-03 20:47:10710 gypi_values.chrome_browser_supervised_user_and_themes_sources,
711 ".",
712 "//chrome")
thestig169a6362014-11-13 20:47:59713 }
[email protected]dffd8a912014-06-30 23:24:31714 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10715 sources +=
716 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31717 }
718 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10719 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
720 ".",
721 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31722 }
723 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10724 sources +=
725 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31726 }
727 if (!enable_autofill_dialog || is_android || is_ios) {
728 sources -= [
729 "autofill/validation_rules_storage_factory.cc",
730 "autofill/validation_rules_storage_factory.h",
731 ]
732 }
733 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10734 sources +=
735 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
736 ".",
737 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31738 if (is_win || is_mac) {
739 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
740 # and Mac, so this test is meaningless. Can we merge these lists?
741 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11742 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10743 ".",
744 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31745 }
746 }
747}
748
James Robinson2ed4d692014-09-17 05:20:58749if (is_android) {
750 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
751 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10752 sources =
753 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58754 jni_package = "chrome"
755 }
756}
757
[email protected]77ce8022014-06-16 19:29:56758# GYP version: chrome/chrome_resources.gyp:chrome_resources
759# (generate_browser_resources action)
760grit("resources") {
761 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41762 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26763 outputs = [
764 "grit/browser_resources.h",
765 "browser_resources.pak",
766 ]
[email protected]77ce8022014-06-16 19:29:56767
scottmga266f952014-12-03 20:47:10768 omnibox_mojom_file =
769 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
[email protected]77ce8022014-06-16 19:29:56770
771 grit_flags = [
scottmga266f952014-12-03 20:47:10772 "-E",
773 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
774 "-E",
775 "additional_modules_list_file=" +
776 rebase_path(additional_modules_list_file, root_build_dir),
777 "-E",
778 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56779 ]
780
781 deps = [
782 ":about_credits",
783 ":chrome_internal_resources_gen",
[email protected]77ce8022014-06-16 19:29:56784 "//chrome/browser/ui/webui/omnibox:mojo_bindings",
Brett Wilson4263a742014-09-10 00:02:24785 "//mojo/environment:chromium",
[email protected]77ce8022014-06-16 19:29:56786 ]
787}
788
789# GYP version: chrome/chrome_resource.gyp:about_credits
790action("about_credits") {
791 script = "//tools/licenses.py"
792
dbeamc7776c72014-12-17 02:24:05793 inputs = [
794 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
795 # generate a .d file with all the licenses/credits that about:credits uses.
796 # Then about:credits will automatically rebuild when one of them changes.
797 # See: depfile in gn's documentation (gn help depfile).
798 "resources/about_credits.tmpl",
799 "resources/about_credits_entry.tmpl",
800 ]
801
scottmga266f952014-12-03 20:47:10802 outputs = [
803 about_credits_file,
804 ]
[email protected]77ce8022014-06-16 19:29:56805
806 args = [
807 "credits",
808 rebase_path(about_credits_file, root_build_dir),
809 ]
810}
811
812# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41813if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56814 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41815 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10816 sources = [
817 "internal/resources/additional_modules_list.input",
818 ]
819 outputs = [
820 additional_modules_list_file,
821 ]
engedy99d0e11b2014-09-30 13:32:41822 args = rebase_path(sources, root_build_dir) +
823 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56824 }
825} else {
826 group("chrome_internal_resources_gen") {
827 # Empty placeholder.
828 }
829}
Brett Wilson052ce132014-09-12 19:46:29830
831# In GYP this is part of test_support_common.
832source_set("test_support") {
833 testonly = true
834
835 # Always include this via the main test support target.
836 visibility = [ "//chrome/test:test_support" ]
837
838 sources = [
839 "browsing_data/mock_browsing_data_appcache_helper.cc",
840 "browsing_data/mock_browsing_data_appcache_helper.h",
841 "browsing_data/mock_browsing_data_channel_id_helper.cc",
842 "browsing_data/mock_browsing_data_channel_id_helper.h",
843 "browsing_data/mock_browsing_data_cookie_helper.cc",
844 "browsing_data/mock_browsing_data_cookie_helper.h",
845 "browsing_data/mock_browsing_data_database_helper.cc",
846 "browsing_data/mock_browsing_data_database_helper.h",
847 "browsing_data/mock_browsing_data_file_system_helper.cc",
848 "browsing_data/mock_browsing_data_file_system_helper.h",
849 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
850 "browsing_data/mock_browsing_data_flash_lso_helper.h",
851 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
852 "browsing_data/mock_browsing_data_indexed_db_helper.h",
853 "browsing_data/mock_browsing_data_local_storage_helper.cc",
854 "browsing_data/mock_browsing_data_local_storage_helper.h",
855 "browsing_data/mock_browsing_data_quota_helper.cc",
856 "browsing_data/mock_browsing_data_quota_helper.h",
857 "browsing_data/mock_browsing_data_service_worker_helper.cc",
858 "browsing_data/mock_browsing_data_service_worker_helper.h",
859 "download/download_test_file_activity_observer.cc",
860 "download/download_test_file_activity_observer.h",
861 "download/test_download_shelf.cc",
862 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:29863 "invalidation/fake_invalidation_service.cc",
864 "invalidation/fake_invalidation_service.h",
865 "media/fake_desktop_media_list.cc",
866 "media/fake_desktop_media_list.h",
867 "net/dns_probe_test_util.cc",
868 "net/dns_probe_test_util.h",
869 "net/url_request_mock_util.cc",
870 "net/url_request_mock_util.h",
871 "notifications/notification_test_util.cc",
872 "notifications/notification_test_util.h",
873 "password_manager/mock_password_store_service.cc",
874 "password_manager/mock_password_store_service.h",
875 "password_manager/null_password_store_service.cc",
876 "password_manager/null_password_store_service.h",
877 "password_manager/test_password_store_service.cc",
878 "password_manager/test_password_store_service.h",
879 "prefs/pref_service_mock_factory.cc",
880 "prefs/pref_service_mock_factory.h",
881 "profile_resetter/profile_resetter_test_base.cc",
882 "profile_resetter/profile_resetter_test_base.h",
883 "search_engines/template_url_service_factory_test_util.cc",
884 "search_engines/template_url_service_factory_test_util.h",
885 "search_engines/template_url_service_test_util.cc",
886 "search_engines/template_url_service_test_util.h",
887 "sessions/session_service_test_helper.cc",
888 "sessions/session_service_test_helper.h",
889 "signin/fake_account_reconcilor.cc",
890 "signin/fake_account_reconcilor.h",
891 "signin/fake_account_tracker_service.cc",
892 "signin/fake_account_tracker_service.h",
893 "signin/fake_profile_oauth2_token_service.cc",
894 "signin/fake_profile_oauth2_token_service.h",
895 "signin/fake_profile_oauth2_token_service_builder.cc",
896 "signin/fake_profile_oauth2_token_service_builder.h",
897 "signin/fake_signin_manager.cc",
898 "signin/fake_signin_manager.h",
899 "ssl/ssl_client_auth_requestor_mock.cc",
900 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:29901 "sync/profile_sync_components_factory_mock.cc",
902 "sync/profile_sync_components_factory_mock.h",
903 "sync/profile_sync_service_mock.cc",
904 "sync/profile_sync_service_mock.h",
shadi2f257fc2014-12-03 18:04:12905 "ui/webui/signin/login_ui_test_utils.cc",
906 "ui/webui/signin/login_ui_test_utils.h",
Brett Wilson052ce132014-09-12 19:46:29907 ]
908
Brett Wilsone53895272014-09-23 23:41:46909 public_deps = [
Brett Wilson052ce132014-09-12 19:46:29910 ":browser",
Brett Wilsone53895272014-09-23 23:41:46911 "//chrome/browser/ui:test_support",
912 ]
913 deps = [
Brett Wilson052ce132014-09-12 19:46:29914 "//base:prefs_test_support",
915 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:29916 "//chrome/common",
917 "//chrome/common/safe_browsing:proto",
918 "//components/invalidation",
919 "//components/invalidation:test_support",
920 "//components/password_manager/core/browser:test_support",
921 "//components/search_engines:test_support",
922 "//content/test:test_support",
923 "//chrome/app/theme:theme_resources",
924 "//net:test_support",
925 "//skia",
926 "//testing/gmock",
927 "//testing/gtest",
928 "//ui/gfx",
929 ]
930
Brett Wilson052ce132014-09-12 19:46:29931 if (!is_ios) {
932 deps += [
933 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:29934 "//google_apis:test_support",
935 ]
936 }
937
James Robinson2ed4d692014-09-17 05:20:58938 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:38939 sources += [
940 "extensions/extension_action_test_util.cc",
941 "extensions/extension_action_test_util.h",
942 ]
scottmga266f952014-12-03 20:47:10943 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:58944 }
945
Brett Wilson052ce132014-09-12 19:46:29946 if (is_chromeos) {
947 sources += [
948 "chromeos/app_mode/fake_cws.cc",
949 "chromeos/app_mode/fake_cws.h",
950 "chromeos/file_manager/fake_disk_mount_manager.cc",
951 "chromeos/file_manager/fake_disk_mount_manager.h",
952 "chromeos/input_method/mock_candidate_window_controller.cc",
953 "chromeos/input_method/mock_candidate_window_controller.h",
954 "chromeos/input_method/mock_input_method_engine.cc",
955 "chromeos/input_method/mock_input_method_engine.h",
956 "chromeos/input_method/mock_input_method_manager.cc",
957 "chromeos/input_method/mock_input_method_manager.h",
958 "chromeos/login/fake_login_utils.cc",
959 "chromeos/login/fake_login_utils.h",
960 "chromeos/login/mock_login_utils.cc",
961 "chromeos/login/mock_login_utils.h",
brettw7d6ec2462015-01-07 13:00:51962 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
963 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
Brett Wilson052ce132014-09-12 19:46:29964 "chromeos/login/test/oobe_screen_waiter.cc",
965 "chromeos/login/test/oobe_screen_waiter.h",
966 "chromeos/login/test/js_checker.cc",
967 "chromeos/login/test/js_checker.h",
968 "chromeos/login/ui/mock_login_display.cc",
969 "chromeos/login/ui/mock_login_display.h",
970 "chromeos/login/ui/mock_login_display_host.cc",
971 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:51972 "chromeos/login/users/avatar/mock_user_image_manager.cc",
973 "chromeos/login/users/avatar/mock_user_image_manager.h",
974 "chromeos/login/users/fake_supervised_user_manager.cc",
975 "chromeos/login/users/fake_supervised_user_manager.h",
976 "chromeos/login/users/fake_user_manager.cc",
977 "chromeos/login/users/fake_user_manager.h",
978 "chromeos/login/users/mock_user_manager.cc",
979 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:29980 "chromeos/net/network_portal_detector_test_utils.cc",
981 "chromeos/net/network_portal_detector_test_utils.h",
982 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
983 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
984 "chromeos/policy/device_policy_builder.cc",
985 "chromeos/policy/device_policy_builder.h",
986 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
987 "chromeos/policy/fake_device_cloud_policy_initializer.h",
988 "chromeos/policy/stub_enterprise_install_attributes.cc",
989 "chromeos/policy/stub_enterprise_install_attributes.h",
990 "chromeos/settings/device_settings_test_helper.cc",
991 "chromeos/settings/device_settings_test_helper.h",
992 "chromeos/system/fake_input_device_settings.cc",
993 "chromeos/system/fake_input_device_settings.h",
994 ]
995 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:17996 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:29997 }
998
999 if (enable_configuration_policy) {
1000 sources += [
1001 "policy/test/local_policy_test_server.cc",
1002 "policy/test/local_policy_test_server.h",
1003 ]
Brett Wilsone53895272014-09-23 23:41:461004 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291005 "//components/policy:policy_component_test_support",
1006 "//components/policy:test_support",
1007 ]
Brett Wilson052ce132014-09-12 19:46:291008 }
1009
1010 if (safe_browsing_mode == 1) {
1011 sources += [
1012 "extensions/fake_safe_browsing_database_manager.cc",
1013 "extensions/fake_safe_browsing_database_manager.h",
1014 ]
1015 }
1016
1017 if (enable_extensions) {
1018 sources += [
1019 "drive/dummy_drive_service.cc",
1020 "drive/dummy_drive_service.h",
1021 "drive/fake_drive_service.cc",
1022 "drive/fake_drive_service.h",
1023 "drive/test_util.cc",
1024 "drive/test_util.h",
1025 "extensions/api/messaging/native_messaging_test_util.cc",
1026 "extensions/api/messaging/native_messaging_test_util.h",
1027 "extensions/extension_notification_observer.cc",
1028 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:291029 "extensions/mock_extension_special_storage_policy.cc",
1030 "extensions/mock_extension_special_storage_policy.h",
1031 "extensions/test_blacklist.cc",
1032 "extensions/test_blacklist.h",
1033 "extensions/test_blacklist_state_fetcher.cc",
1034 "extensions/test_blacklist_state_fetcher.h",
1035 "extensions/test_extension_environment.cc",
1036 "extensions/test_extension_environment.h",
brettw7d6ec2462015-01-07 13:00:511037 "extensions/test_extension_dir.cc",
1038 "extensions/test_extension_dir.h",
Brett Wilson052ce132014-09-12 19:46:291039 "extensions/test_extension_prefs.cc",
1040 "extensions/test_extension_prefs.h",
1041 "extensions/test_extension_service.cc",
1042 "extensions/test_extension_service.h",
1043 "extensions/test_extension_system.cc",
1044 "extensions/test_extension_system.h",
1045 "media_galleries/media_galleries_test_util.cc",
1046 "media_galleries/media_galleries_test_util.h",
1047 ]
scottmga266f952014-12-03 20:47:101048 deps += [ "//components/storage_monitor:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291049 }
1050
1051 if (enable_mdns) {
1052 sources += [
1053 "local_discovery/test_service_discovery_client.cc",
1054 "local_discovery/test_service_discovery_client.h",
1055 ]
1056 }
1057
1058 if (enable_app_list) {
1059 sources += [
1060 "ui/app_list/test/chrome_app_list_test_support.cc",
1061 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511062 "ui/app_list/test/test_app_list_controller_delegate.cc",
1063 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291064 ]
1065 }
1066
1067 if (enable_wifi_bootstrapping) {
1068 sources += [
1069 "local_discovery/wifi/mock_wifi_manager.cc",
1070 "local_discovery/wifi/mock_wifi_manager.h",
1071 ]
1072 }
1073}