blob: 6c2e6e7d1626f996174924005f5d53dee45d45ab [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/history:in_memory_url_index_cache_proto",
[email protected]855b7de2014-07-08 21:02:4563 "//chrome/browser/net:cert_logger_proto",
[email protected]797b25042014-07-01 23:54:1764 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:3065 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:3166 "//chrome/common",
67 "//chrome/common/net",
[email protected]604828c2014-07-02 20:39:1268 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:0169 "//components/bookmarks/browser",
[email protected]b9f4c682014-07-10 22:00:3770 "//components/captive_portal",
[email protected]fca567b2014-07-02 17:37:3471 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:0172 "//components/component_updater",
vasiliiac461392014-09-18 11:35:1773 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:5474 "//components/content_settings/core/common",
[email protected]478ed232014-08-19 02:10:5575 "//components/crx_file",
megjablon3476e042014-10-14 19:21:5976 "//components/data_reduction_proxy/core/browser",
[email protected]273ae5ab2014-07-09 21:10:2577 "//components/domain_reliability",
noyaudaaac3a2014-10-08 11:11:1178 "//components/enhanced_bookmarks",
[email protected]273ae5ab2014-07-09 21:10:2579 "//components/favicon_base",
80 "//components/favicon/core",
[email protected]abd4b682014-07-16 20:26:3081 "//components/feedback",
82 "//components/gcm_driver",
Brett Wilson1c693992014-08-25 19:10:0183 "//components/google/core/browser",
erikchen332265b2014-11-14 19:59:5284 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:2585 "//components/history/core/browser",
86 "//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",
rockot89e757c2014-11-13 18:40:0795 "//components/omaha_client",
[email protected]b1c5ab682014-08-07 11:53:1796 "//components/omnibox",
[email protected]fca567b2014-07-02 17:37:3497 "//components/os_crypt",
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",
[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",
drogerf8479942014-11-21 17:47:53121 "//components/web_resource",
[email protected]dffd8a912014-06-30 23:24:31122 "//content/public/browser",
123 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12124 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31125 "//crypto",
[email protected]604828c2014-07-02 20:39:12126 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56127 "//gpu/config",
ajwongf7b1cb692014-08-23 21:36:22128 "//jingle:notifier",
[email protected]dffd8a912014-06-30 23:24:31129 "//skia",
130 "//sql",
131 "//sync",
[email protected]797b25042014-07-01 23:54:17132 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31133 "//third_party/icu",
134 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22135 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31136 "//third_party/widevine/cdm:version_h",
137 "//third_party/zlib",
138 "//third_party/zlib:minizip",
139 "//third_party/zlib:zip",
140 "//ui/base",
cjhopman09981a92014-10-27 17:11:18141 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31142 "//ui/gfx",
143 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36144 "//ui/message_center",
145 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31146 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17147 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31148 ]
149
scottmga266f952014-12-03 20:47:10150 sources +=
151 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00152
[email protected]dffd8a912014-06-30 23:24:31153 if (!is_ios) {
scottmga266f952014-12-03 20:47:10154 sources +=
155 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59156 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10157 ".",
158 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59159 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10160 ".",
161 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18162 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
163 ".",
164 "//chrome")
165 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
166 ".",
167 "//chrome")
scottmga266f952014-12-03 20:47:10168 sources +=
169 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
170 sources +=
171 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
172 sources +=
173 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
174 sources +=
175 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
176 sources +=
177 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59178 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10179 ".",
180 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59181 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10182 ".",
183 "//chrome")
184 sources +=
185 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59186 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10187 ".",
188 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59189 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10190 ".",
191 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59192 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10193 ".",
194 "//chrome")
195 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18196 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
197 sources +=
scottmga266f952014-12-03 20:47:10198 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
199 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18200 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
201 sources +=
scottmga266f952014-12-03 20:47:10202 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59203 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10204 ".",
205 "//chrome")
206
[email protected]dffd8a912014-06-30 23:24:31207 #TODO(GYP) Add these sources:
208 # # These files are generated by GRIT.
209 # '<(grit_out_dir)/grit/component_extension_resources_map.cc',
210 # '<(grit_out_dir)/grit/theme_resources_map.cc',
[email protected]a3c134352014-07-11 19:23:19211 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/grit/ui_resources_map.cc',
[email protected]dffd8a912014-06-30 23:24:31212 #
213 # # This file is generated by
214 # # chrome/browser/metrics/variations/generate_resources_map.py
215 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/generated_resources_map.cc',
216
[email protected]1bb1a6002014-07-24 23:58:56217 defines = nacl_defines
[email protected]797b25042014-07-01 23:54:17218
[email protected]dffd8a912014-06-30 23:24:31219 deps += [
Brett Wilson1c693992014-08-25 19:10:01220 "//apps",
[email protected]dffd8a912014-06-30 23:24:31221 "//cc",
[email protected]55699f392014-08-20 22:16:30222 "//chrome/browser/devtools",
[email protected]55699f392014-08-20 22:16:30223 "//chrome/installer/util",
oshimaf65398422014-11-18 23:30:42224 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37225 "//components/autofill/content/browser",
226 "//components/dom_distiller/content",
[email protected]fca567b2014-07-02 17:37:34227 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30228 "//components/navigation_interception",
229 "//components/password_manager/content/browser",
230 "//components/precache/content",
rohitraod16f44e2014-10-24 15:34:35231 "//components/sessions:sessions_content",
[email protected]abd4b682014-07-16 20:26:30232 "//components/storage_monitor",
[email protected]b9f4c682014-07-10 22:00:37233 "//components/translate/content/browser",
[email protected]fca567b2014-07-02 17:37:34234 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31235 "//components/visitedlink/browser",
236 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18237 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37238 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08239 "//content/app/resources",
[email protected]55699f392014-08-20 22:16:30240 "//media",
241 "//media/cast:net",
cjhopman09981a92014-10-27 17:11:18242 "//mojo/common",
jamesra03ae492014-10-03 04:26:48243 "//mojo/edk/system",
[email protected]604828c2014-07-02 20:39:12244 "//mojo/environment:chromium",
245 "//mojo/public/cpp/bindings",
jamesr60a7dbf2014-11-07 01:24:51246 "//mojo/public/js",
Brett Wilson83fd4242014-09-02 19:45:33247 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31248 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15249 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24250 "//storage/common",
[email protected]4eebe74d2014-08-13 02:54:46251 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31252 "//third_party/expat",
253 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34254 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31255 "//third_party/libyuv",
256 "//third_party/npapi",
257 "//third_party/re2",
258 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33259 "//third_party/webrtc/modules/desktop_capture",
[email protected]dffd8a912014-06-30 23:24:31260 "//ui/gl",
261 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12262 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34263 "//v8",
scottmga266f952014-12-03 20:47:10264
[email protected]dffd8a912014-06-30 23:24:31265 ## TODO(tonyg): Remove this dependency (crbug.com/280157).
[email protected]55699f392014-08-20 22:16:30266 #"../testing/perf/perf_test.gyp:*", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31267 ]
268 } else { # iOS
scottmga266f952014-12-03 20:47:10269 sources +=
270 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
271 sources +=
272 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
273 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31274 libs += [
275 "CoreTelephony.framework",
276 "CoreText.framework",
277 "MobileCoreServices.framework",
278 "QuartzCore.framework",
279 ]
scottmga266f952014-12-03 20:47:10280 ldflags += [
281 "-weak_framework",
282 "CoreImage",
283 ]
[email protected]dffd8a912014-06-30 23:24:31284 }
285
286 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10287 sources +=
288 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31289 }
290 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
291 sources += [
292 "net/disk_cache_dir_policy_handler.cc",
293 "net/disk_cache_dir_policy_handler.h",
294 ]
295 }
296 if (!is_android && !is_ios && enable_configuration_policy) {
297 sources += [
298 "download/download_dir_policy_handler.cc",
299 "download/download_dir_policy_handler.h",
300 ]
301 }
302 if (is_mac) {
scottmga266f952014-12-03 20:47:10303 sources +=
304 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31305 deps += [
306 #"app_shim" TODO(GYP)
tapted63829f72014-09-24 23:50:50307 #"browser_app_shim" TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31308 ]
309 }
[email protected]dffd8a912014-06-30 23:24:31310 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46311 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52312 deps += [
[email protected]cc5b3be2014-08-15 23:24:52313 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30314 "//chrome/common/extensions/api",
315 "//chrome/common/extensions/api:api_registration",
oshima758abebc2014-11-06 10:55:50316 "//extensions/components/javascript_dialog_extensions_client",
[email protected]cc5b3be2014-08-15 23:24:52317 ]
[email protected]dffd8a912014-06-30 23:24:31318 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10319 ".",
320 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31321 }
322 if (enable_background) {
323 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10324 ".",
325 "//chrome")
jamesr29ea2d122014-10-23 10:30:27326 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31327 sources -= [ "background/background_mode_manager_aura.cc" ]
328 }
thestig52a87b3b2014-10-23 22:02:38329 defines += [ "ENABLE_BACKGROUND=1" ]
[email protected]dffd8a912014-06-30 23:24:31330 }
331 if (enable_task_manager) {
332 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10333 ".",
334 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31335 }
336 if (enable_spellcheck) {
337 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10338 ".",
339 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31340 deps += [ "//third_party/hunspell" ]
341 }
342 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10343 sources +=
344 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31345 #deps += [ "//components/nacl:nacl_browser" ] TODO(GYP)
346 }
apavlove749bca2014-09-30 11:07:41347
[email protected]dffd8a912014-06-30 23:24:31348 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10349 sources +=
350 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
351 ".",
352 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31353 deps += [
[email protected]604828c2014-07-02 20:39:12354 "//components/policy",
[email protected]797b25042014-07-01 23:54:17355 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31356 ]
357 if (!is_ios) {
scottmga266f952014-12-03 20:47:10358 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
359 ".",
360 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31361 }
362 if (!is_chromeos) {
363 sources += rebase_path(
scottmga266f952014-12-03 20:47:10364 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
365 ".",
366 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31367 }
368 if (is_win || is_mac || is_desktop_linux) {
369 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10370 ".",
371 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31372 }
cjhopman09981a92014-10-27 17:11:18373 if (is_android || is_ios) {
374 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10375 ".",
376 "//chrome")
cjhopman09981a92014-10-27 17:11:18377 } else {
scottmga266f952014-12-03 20:47:10378 deps += [ "//chrome/browser/policy:path_parser" ]
[email protected]dffd8a912014-06-30 23:24:31379 }
380 } else {
381 # Configuration policy disabled.
382 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10383 ".",
384 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31385 }
386
387 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10388 sources +=
389 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31390 deps += [
James Robinson2ed4d692014-09-17 05:20:58391 "//components/pdf/browser",
[email protected]dffd8a912014-06-30 23:24:31392 "//ppapi:ppapi_ipc",
thestig11b815e92014-08-26 00:32:14393 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31394 ]
395 }
396 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10397 sources +=
stuartmorgan1b3df822014-12-08 14:36:11398 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10399 ".",
400 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31401 deps += [
[email protected]fca567b2014-07-02 17:37:34402 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45403 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34404 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31405 ]
406 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10407 sources +=
stuartmorgan1b3df822014-12-08 14:36:11408 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10409 ".",
410 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31411 defines += [ "FULL_SAFE_BROWSING" ]
scottmga266f952014-12-03 20:47:10412 deps += [ "//chrome/common/safe_browsing:proto" ]
[email protected]dffd8a912014-06-30 23:24:31413 } else if (safe_browsing_mode == 2) {
414 defines += [ "MOBILE_SAFE_BROWSING" ]
415 }
416 }
417
418 if (is_linux) {
thestigee816c272014-11-22 02:47:51419 deps += [
420 "//device/media_transfer_protocol",
scottmga266f952014-12-03 20:47:10421 "//device/udev_linux",
thestigee816c272014-11-22 02:47:51422 ]
[email protected]dffd8a912014-06-30 23:24:31423 }
424 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47425 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31426 }
427
428 if (is_chromeos) {
429 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10430 ".",
431 "//chrome")
432 deps += [ "//chrome/browser/chromeos" ]
[email protected]dffd8a912014-06-30 23:24:31433 } else {
434 # Non-ChromeOS.
435 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
scottmga266f952014-12-03 20:47:10436 ".",
437 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31438 }
439
mukai8c99b882014-10-15 03:07:59440 if (is_chromeos || is_ios) {
441 sources -= [
442 "metrics/signin_status_metrics_provider.cc",
443 "metrics/signin_status_metrics_provider.h",
444 ]
445 }
446
[email protected]dffd8a912014-06-30 23:24:31447 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12448 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31449 }
450 if (is_desktop_linux) {
451 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10452 ".",
453 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49454 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31455 }
456 if (use_aura) {
scottmga266f952014-12-03 20:47:10457 sources +=
458 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31459 deps += [
[email protected]fca567b2014-07-02 17:37:34460 "//ui/aura",
461 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12462 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31463 ]
464 }
465 if (ui_compositor_image_transport) {
466 deps += [ "//ui/gl" ]
467 }
468
[email protected]855b7de2014-07-08 21:02:45469 if (use_ash) {
scottmga266f952014-12-03 20:47:10470 sources +=
471 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45472 }
473
[email protected]dffd8a912014-06-30 23:24:31474 if (use_x11) {
scottmga266f952014-12-03 20:47:10475 sources +=
476 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31477 if (!is_chromeos) {
[email protected]fca567b2014-07-02 17:37:34478 configs += [ "//build/config/linux:xscrnsaver" ]
[email protected]dffd8a912014-06-30 23:24:31479 }
480 }
481 if (is_posix && !is_mac && !is_ios) {
482 sources += [
rseseka0a7a042014-09-18 23:59:20483 "//chrome/app/chrome_crash_reporter_client.cc",
484 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31485 ]
486 deps += [
Robert Sesekabcd8102014-08-27 16:12:44487 "//components/crash/app",
488 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31489 ]
490 }
491 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10492 sources +=
493 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59494 if (is_chromeos) {
495 sources -= [ "net/nss_context_linux.cc" ]
496 }
[email protected]dffd8a912014-06-30 23:24:31497 }
498 if (enable_notifications) {
499 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10500 ".",
501 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31502 if (!is_android) {
503 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11504 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10505 ".",
506 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31507 }
508 }
509 if (enable_themes) {
scottmga266f952014-12-03 20:47:10510 sources +=
511 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31512 }
513
vitalybuka93eea402014-11-05 23:47:15514 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31515 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11516 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10517 ".",
518 "//chrome")
519 deps += [ "//printing" ]
vitalybuka36259ca2014-08-28 23:42:24520 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31521 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10522 ".",
523 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31524 }
vitalybuka93eea402014-11-05 23:47:15525 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31526 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11527 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10528 ".",
529 "//chrome")
vitalybuka93eea402014-11-05 23:47:15530 } else {
[email protected]dffd8a912014-06-30 23:24:31531 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10532 sources +=
stuartmorgan1b3df822014-12-08 14:36:11533 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10534 ".",
535 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31536 }
537 }
538 if (enable_captive_portal_detection) {
539 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10540 ".",
541 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31542 }
543 if (enable_session_service) {
544 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10545 ".",
546 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31547 }
548
thestigdc377202014-10-28 22:06:02549 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10550 sources +=
551 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02552 }
553
[email protected]dffd8a912014-06-30 23:24:31554 if (is_android || is_ios) {
555 # Mobile.
scottmga266f952014-12-03 20:47:10556 sources +=
557 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31558 } else {
559 # Non-mobile.
560 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10561 ".",
562 "//chrome")
reillyge471fab2014-08-29 01:58:43563 deps += [
reillyge471fab2014-08-29 01:58:43564 "//device/core",
reillygd77718d2014-09-04 00:57:56565 "//device/usb",
reillyge471fab2014-08-29 01:58:43566 ]
[email protected]dffd8a912014-06-30 23:24:31567 }
568
569 if (is_android) {
scottmga266f952014-12-03 20:47:10570 sources +=
571 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31572 deps += [
James Robinson2ed4d692014-09-17 05:20:58573 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30574 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18575 "//components/enhanced_bookmarks",
576 "//components/history/core/android",
estadee37f8222014-11-07 21:35:22577 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18578 "//components/web_contents_delegate_android",
579 "//third_party/android_opengl/etc1",
[email protected]dffd8a912014-06-30 23:24:31580 ]
581 deps -= [
[email protected]fca567b2014-07-02 17:37:34582 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30583 "//components/feedback",
584 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30585 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31586 ]
587 } else {
588 sources += rebase_path(gypi_values.chrome_browser_non_android_sources,
scottmga266f952014-12-03 20:47:10589 ".",
590 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31591 }
592
593 if (is_mac) {
594 deps += [
[email protected]6b5d2f92014-07-30 00:40:03595 "//third_party/google_toolbox_for_mac",
[email protected]dffd8a912014-06-30 23:24:31596 #"../third_party/mozilla/mozilla.gyp:mozilla", TODO(GYP)
597 ]
598 libs += [
599 "Accelerate.framework",
600 "AddressBook.framework",
601 "AudioUnit.framework",
602 "DiskArbitration.framework",
603 "IOKit.framework",
604 "ImageCaptureCore.framework",
605 "OpenGL.framework",
606 "QuartzCore.framework",
607 "SecurityInterface.framework",
608 ]
609 }
610
611 if (enable_rlz) {
scottmga266f952014-12-03 20:47:10612 sources +=
613 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31614 deps += [ "//rlz:rlz_lib" ]
615 }
616
617 # TODO(GYP)
618 # Temporary fix to break the browser target into smaller chunks so it
619 # will link with goma builds.
620 #["OS=="win" and chromium_win_pch==0", {
621 # "msvs_shard": 4,
622 #}],
623
624 if (is_win) {
scottmga266f952014-12-03 20:47:10625 sources +=
626 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
grtaa9d8d22014-11-13 19:52:36627 if (!is_chrome_branded) {
628 sources -= [
629 "google/did_run_updater_win.cc",
630 "google/did_run_updater_win.h",
631 ]
632 }
Brett Wilsone53895272014-09-23 23:41:46633 public_deps += [
634 "//ui/views",
635 "//ui/views/controls/webview",
636 ]
[email protected]dffd8a912014-06-30 23:24:31637 deps += [
[email protected]55699f392014-08-20 22:16:30638 "//chrome:version_header",
639 "//chrome/installer/util:strings",
640 "//third_party/iaccessible2",
641 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31642 "//third_party/wtl",
scottmga266f952014-12-03 20:47:10643
[email protected]dffd8a912014-06-30 23:24:31644 #"chrome_process_finder", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31645 #"../chrome_elf/chrome_elf.gyp:chrome_elf", TODO(GYP)
646 #"../chrome_elf/chrome_elf.gyp:chrome_elf_constants", TODO(GYP)
647 #"../chrome_elf/chrome_elf.gyp:dll_hash", TODO(GYP)
648 #"../google_update/google_update.gyp:google_update", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31649 #"../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31650 #"../win8/win8.gyp:metro_viewer", TODO(GYP)
651 ]
[email protected]dffd8a912014-06-30 23:24:31652 } else {
653 # Non-Windows.
scottmga266f952014-12-03 20:47:10654 sources +=
655 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37656 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31657 deps += [
scottmga266f952014-12-03 20:47:10658 "//ui/views",
659 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31660 ]
661 # TODO(GYP) why is this needed? Very susicious.
662 # "include_dirs": [
663 # "<(INTERMEDIATE_DIR)/chrome",
664 # ],
665 }
666 }
667
668 if (is_linux) {
scottmga266f952014-12-03 20:47:10669 sources +=
670 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31671 if (use_aura) {
672 configs += [
673 "//build/config/linux:dbus",
674 "//build/config/linux:fontconfig",
675 ]
scottmga266f952014-12-03 20:47:10676 deps += [ "//dbus" ]
[email protected]dffd8a912014-06-30 23:24:31677 }
678 if (use_x11) {
679 configs += [ "//build/config/linux:x11" ]
680 deps += [ "//ui/gfx/x" ]
681 }
682 }
683
684 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54685 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10686 ".",
687 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31688 }
689 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10690 sources +=
691 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
692 ".",
693 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31694 }
695 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10696 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31697 }
treib87bb89cbb2014-12-01 16:01:47698 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10699 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
700 ".",
701 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31702 }
treib87bb89cbb2014-12-01 16:01:47703 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59704 sources += rebase_path(
scottmga266f952014-12-03 20:47:10705 gypi_values.chrome_browser_supervised_user_and_themes_sources,
706 ".",
707 "//chrome")
thestig169a6362014-11-13 20:47:59708 }
[email protected]dffd8a912014-06-30 23:24:31709 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10710 sources +=
711 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31712 }
713 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10714 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
715 ".",
716 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31717 }
718 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10719 sources +=
720 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31721 }
722 if (!enable_autofill_dialog || is_android || is_ios) {
723 sources -= [
724 "autofill/validation_rules_storage_factory.cc",
725 "autofill/validation_rules_storage_factory.h",
726 ]
727 }
728 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10729 sources +=
730 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
731 ".",
732 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31733 if (is_win || is_mac) {
734 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
735 # and Mac, so this test is meaningless. Can we merge these lists?
736 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11737 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10738 ".",
739 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31740 }
741 }
742}
743
James Robinson2ed4d692014-09-17 05:20:58744if (is_android) {
745 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
746 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10747 sources =
748 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58749 jni_package = "chrome"
750 }
751}
752
[email protected]77ce8022014-06-16 19:29:56753# GYP version: chrome/chrome_resources.gyp:chrome_resources
754# (generate_browser_resources action)
755grit("resources") {
756 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41757 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26758 outputs = [
759 "grit/browser_resources.h",
760 "browser_resources.pak",
761 ]
[email protected]77ce8022014-06-16 19:29:56762
scottmga266f952014-12-03 20:47:10763 omnibox_mojom_file =
764 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
[email protected]77ce8022014-06-16 19:29:56765
766 grit_flags = [
scottmga266f952014-12-03 20:47:10767 "-E",
768 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
769 "-E",
770 "additional_modules_list_file=" +
771 rebase_path(additional_modules_list_file, root_build_dir),
772 "-E",
773 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56774 ]
775
776 deps = [
777 ":about_credits",
778 ":chrome_internal_resources_gen",
[email protected]77ce8022014-06-16 19:29:56779 "//chrome/browser/ui/webui/omnibox:mojo_bindings",
Brett Wilson4263a742014-09-10 00:02:24780 "//mojo/environment:chromium",
[email protected]77ce8022014-06-16 19:29:56781 ]
782}
783
784# GYP version: chrome/chrome_resource.gyp:about_credits
785action("about_credits") {
786 script = "//tools/licenses.py"
787
788 # TODO(phajdan.jr): input dependencies so this can be regenerated
789 # automatically when one of the credits changes. The way this should work is
790 # that licenses.py should write a .d file listing the input dependencies (see
791 # "depfile" in GN).
scottmga266f952014-12-03 20:47:10792 outputs = [
793 about_credits_file,
794 ]
[email protected]77ce8022014-06-16 19:29:56795
796 args = [
797 "credits",
798 rebase_path(about_credits_file, root_build_dir),
799 ]
800}
801
802# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41803if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56804 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41805 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10806 sources = [
807 "internal/resources/additional_modules_list.input",
808 ]
809 outputs = [
810 additional_modules_list_file,
811 ]
engedy99d0e11b2014-09-30 13:32:41812 args = rebase_path(sources, root_build_dir) +
813 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56814 }
815} else {
816 group("chrome_internal_resources_gen") {
817 # Empty placeholder.
818 }
819}
Brett Wilson052ce132014-09-12 19:46:29820
821# In GYP this is part of test_support_common.
822source_set("test_support") {
823 testonly = true
824
825 # Always include this via the main test support target.
826 visibility = [ "//chrome/test:test_support" ]
827
828 sources = [
829 "browsing_data/mock_browsing_data_appcache_helper.cc",
830 "browsing_data/mock_browsing_data_appcache_helper.h",
831 "browsing_data/mock_browsing_data_channel_id_helper.cc",
832 "browsing_data/mock_browsing_data_channel_id_helper.h",
833 "browsing_data/mock_browsing_data_cookie_helper.cc",
834 "browsing_data/mock_browsing_data_cookie_helper.h",
835 "browsing_data/mock_browsing_data_database_helper.cc",
836 "browsing_data/mock_browsing_data_database_helper.h",
837 "browsing_data/mock_browsing_data_file_system_helper.cc",
838 "browsing_data/mock_browsing_data_file_system_helper.h",
839 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
840 "browsing_data/mock_browsing_data_flash_lso_helper.h",
841 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
842 "browsing_data/mock_browsing_data_indexed_db_helper.h",
843 "browsing_data/mock_browsing_data_local_storage_helper.cc",
844 "browsing_data/mock_browsing_data_local_storage_helper.h",
845 "browsing_data/mock_browsing_data_quota_helper.cc",
846 "browsing_data/mock_browsing_data_quota_helper.h",
847 "browsing_data/mock_browsing_data_service_worker_helper.cc",
848 "browsing_data/mock_browsing_data_service_worker_helper.h",
849 "download/download_test_file_activity_observer.cc",
850 "download/download_test_file_activity_observer.h",
851 "download/test_download_shelf.cc",
852 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:29853 "invalidation/fake_invalidation_service.cc",
854 "invalidation/fake_invalidation_service.h",
855 "media/fake_desktop_media_list.cc",
856 "media/fake_desktop_media_list.h",
857 "net/dns_probe_test_util.cc",
858 "net/dns_probe_test_util.h",
859 "net/url_request_mock_util.cc",
860 "net/url_request_mock_util.h",
861 "notifications/notification_test_util.cc",
862 "notifications/notification_test_util.h",
863 "password_manager/mock_password_store_service.cc",
864 "password_manager/mock_password_store_service.h",
865 "password_manager/null_password_store_service.cc",
866 "password_manager/null_password_store_service.h",
867 "password_manager/test_password_store_service.cc",
868 "password_manager/test_password_store_service.h",
869 "prefs/pref_service_mock_factory.cc",
870 "prefs/pref_service_mock_factory.h",
871 "profile_resetter/profile_resetter_test_base.cc",
872 "profile_resetter/profile_resetter_test_base.h",
873 "search_engines/template_url_service_factory_test_util.cc",
874 "search_engines/template_url_service_factory_test_util.h",
875 "search_engines/template_url_service_test_util.cc",
876 "search_engines/template_url_service_test_util.h",
877 "sessions/session_service_test_helper.cc",
878 "sessions/session_service_test_helper.h",
879 "signin/fake_account_reconcilor.cc",
880 "signin/fake_account_reconcilor.h",
881 "signin/fake_account_tracker_service.cc",
882 "signin/fake_account_tracker_service.h",
883 "signin/fake_profile_oauth2_token_service.cc",
884 "signin/fake_profile_oauth2_token_service.h",
885 "signin/fake_profile_oauth2_token_service_builder.cc",
886 "signin/fake_profile_oauth2_token_service_builder.h",
887 "signin/fake_signin_manager.cc",
888 "signin/fake_signin_manager.h",
889 "ssl/ssl_client_auth_requestor_mock.cc",
890 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:29891 "sync/profile_sync_components_factory_mock.cc",
892 "sync/profile_sync_components_factory_mock.h",
893 "sync/profile_sync_service_mock.cc",
894 "sync/profile_sync_service_mock.h",
shadi2f257fc2014-12-03 18:04:12895 "ui/webui/signin/login_ui_test_utils.cc",
896 "ui/webui/signin/login_ui_test_utils.h",
Brett Wilson052ce132014-09-12 19:46:29897 ]
898
Brett Wilsone53895272014-09-23 23:41:46899 public_deps = [
Brett Wilson052ce132014-09-12 19:46:29900 ":browser",
Brett Wilsone53895272014-09-23 23:41:46901 "//chrome/browser/ui:test_support",
902 ]
903 deps = [
Brett Wilson052ce132014-09-12 19:46:29904 "//base:prefs_test_support",
905 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:29906 "//chrome/common",
907 "//chrome/common/safe_browsing:proto",
908 "//components/invalidation",
909 "//components/invalidation:test_support",
910 "//components/password_manager/core/browser:test_support",
911 "//components/search_engines:test_support",
912 "//content/test:test_support",
913 "//chrome/app/theme:theme_resources",
914 "//net:test_support",
915 "//skia",
916 "//testing/gmock",
917 "//testing/gtest",
918 "//ui/gfx",
919 ]
920
Brett Wilson052ce132014-09-12 19:46:29921 if (!is_ios) {
922 deps += [
923 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:29924 "//google_apis:test_support",
925 ]
926 }
927
James Robinson2ed4d692014-09-17 05:20:58928 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:38929 sources += [
930 "extensions/extension_action_test_util.cc",
931 "extensions/extension_action_test_util.h",
932 ]
scottmga266f952014-12-03 20:47:10933 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:58934 }
935
Brett Wilson052ce132014-09-12 19:46:29936 if (is_chromeos) {
937 sources += [
938 "chromeos/app_mode/fake_cws.cc",
939 "chromeos/app_mode/fake_cws.h",
940 "chromeos/file_manager/fake_disk_mount_manager.cc",
941 "chromeos/file_manager/fake_disk_mount_manager.h",
942 "chromeos/input_method/mock_candidate_window_controller.cc",
943 "chromeos/input_method/mock_candidate_window_controller.h",
944 "chromeos/input_method/mock_input_method_engine.cc",
945 "chromeos/input_method/mock_input_method_engine.h",
946 "chromeos/input_method/mock_input_method_manager.cc",
947 "chromeos/input_method/mock_input_method_manager.h",
948 "chromeos/login/fake_login_utils.cc",
949 "chromeos/login/fake_login_utils.h",
950 "chromeos/login/mock_login_utils.cc",
951 "chromeos/login/mock_login_utils.h",
952 "chromeos/login/users/avatar/mock_user_image_manager.cc",
953 "chromeos/login/users/avatar/mock_user_image_manager.h",
954 "chromeos/login/users/fake_supervised_user_manager.cc",
955 "chromeos/login/users/fake_supervised_user_manager.h",
956 "chromeos/login/users/fake_user_manager.cc",
957 "chromeos/login/users/fake_user_manager.h",
958 "chromeos/login/users/mock_user_manager.cc",
959 "chromeos/login/users/mock_user_manager.h",
960 "chromeos/login/test/oobe_screen_waiter.cc",
961 "chromeos/login/test/oobe_screen_waiter.h",
962 "chromeos/login/test/js_checker.cc",
963 "chromeos/login/test/js_checker.h",
964 "chromeos/login/ui/mock_login_display.cc",
965 "chromeos/login/ui/mock_login_display.h",
966 "chromeos/login/ui/mock_login_display_host.cc",
967 "chromeos/login/ui/mock_login_display_host.h",
968 "chromeos/net/network_portal_detector_test_utils.cc",
969 "chromeos/net/network_portal_detector_test_utils.h",
970 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
971 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
972 "chromeos/policy/device_policy_builder.cc",
973 "chromeos/policy/device_policy_builder.h",
974 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
975 "chromeos/policy/fake_device_cloud_policy_initializer.h",
976 "chromeos/policy/stub_enterprise_install_attributes.cc",
977 "chromeos/policy/stub_enterprise_install_attributes.h",
978 "chromeos/settings/device_settings_test_helper.cc",
979 "chromeos/settings/device_settings_test_helper.h",
980 "chromeos/system/fake_input_device_settings.cc",
981 "chromeos/system/fake_input_device_settings.h",
982 ]
983 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:17984 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:29985 }
986
987 if (enable_configuration_policy) {
988 sources += [
989 "policy/test/local_policy_test_server.cc",
990 "policy/test/local_policy_test_server.h",
991 ]
Brett Wilsone53895272014-09-23 23:41:46992 public_deps += [
Brett Wilson052ce132014-09-12 19:46:29993 "//components/policy:policy_component_test_support",
994 "//components/policy:test_support",
995 ]
Brett Wilson052ce132014-09-12 19:46:29996 }
997
998 if (safe_browsing_mode == 1) {
999 sources += [
1000 "extensions/fake_safe_browsing_database_manager.cc",
1001 "extensions/fake_safe_browsing_database_manager.h",
1002 ]
1003 }
1004
1005 if (enable_extensions) {
1006 sources += [
1007 "drive/dummy_drive_service.cc",
1008 "drive/dummy_drive_service.h",
1009 "drive/fake_drive_service.cc",
1010 "drive/fake_drive_service.h",
1011 "drive/test_util.cc",
1012 "drive/test_util.h",
1013 "extensions/api/messaging/native_messaging_test_util.cc",
1014 "extensions/api/messaging/native_messaging_test_util.h",
1015 "extensions/extension_notification_observer.cc",
1016 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:291017 "extensions/mock_extension_special_storage_policy.cc",
1018 "extensions/mock_extension_special_storage_policy.h",
1019 "extensions/test_blacklist.cc",
1020 "extensions/test_blacklist.h",
1021 "extensions/test_blacklist_state_fetcher.cc",
1022 "extensions/test_blacklist_state_fetcher.h",
1023 "extensions/test_extension_environment.cc",
1024 "extensions/test_extension_environment.h",
1025 "extensions/test_extension_prefs.cc",
1026 "extensions/test_extension_prefs.h",
1027 "extensions/test_extension_service.cc",
1028 "extensions/test_extension_service.h",
1029 "extensions/test_extension_system.cc",
1030 "extensions/test_extension_system.h",
1031 "media_galleries/media_galleries_test_util.cc",
1032 "media_galleries/media_galleries_test_util.h",
1033 ]
scottmga266f952014-12-03 20:47:101034 deps += [ "//components/storage_monitor:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291035 }
1036
1037 if (enable_mdns) {
1038 sources += [
1039 "local_discovery/test_service_discovery_client.cc",
1040 "local_discovery/test_service_discovery_client.h",
1041 ]
1042 }
1043
1044 if (enable_app_list) {
1045 sources += [
1046 "ui/app_list/test/chrome_app_list_test_support.cc",
1047 "ui/app_list/test/chrome_app_list_test_support.h",
1048 ]
1049 }
1050
1051 if (enable_wifi_bootstrapping) {
1052 sources += [
1053 "local_discovery/wifi/mock_wifi_manager.cc",
1054 "local_discovery/wifi/mock_wifi_manager.h",
1055 ]
1056 }
1057}