blob: 50f6b85ce86993dbd5bd404073a2ecbdb858711a [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
yiyaoliubcd08dc22014-12-10 05:56:10440 if (is_ios) {
441 sources -= [
442 "metrics/signin_status_metrics_provider_base.cc",
443 "metrics/signin_status_metrics_provider_base.h",
444 ]
445 }
446
mukai8c99b882014-10-15 03:07:59447 if (is_chromeos || is_ios) {
448 sources -= [
449 "metrics/signin_status_metrics_provider.cc",
450 "metrics/signin_status_metrics_provider.h",
451 ]
452 }
453
[email protected]dffd8a912014-06-30 23:24:31454 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12455 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31456 }
457 if (is_desktop_linux) {
458 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10459 ".",
460 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49461 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31462 }
463 if (use_aura) {
scottmga266f952014-12-03 20:47:10464 sources +=
465 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31466 deps += [
[email protected]fca567b2014-07-02 17:37:34467 "//ui/aura",
468 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12469 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31470 ]
471 }
472 if (ui_compositor_image_transport) {
473 deps += [ "//ui/gl" ]
474 }
475
[email protected]855b7de2014-07-08 21:02:45476 if (use_ash) {
scottmga266f952014-12-03 20:47:10477 sources +=
478 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45479 }
480
[email protected]dffd8a912014-06-30 23:24:31481 if (use_x11) {
scottmga266f952014-12-03 20:47:10482 sources +=
483 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31484 if (!is_chromeos) {
[email protected]fca567b2014-07-02 17:37:34485 configs += [ "//build/config/linux:xscrnsaver" ]
[email protected]dffd8a912014-06-30 23:24:31486 }
487 }
488 if (is_posix && !is_mac && !is_ios) {
489 sources += [
rseseka0a7a042014-09-18 23:59:20490 "//chrome/app/chrome_crash_reporter_client.cc",
491 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31492 ]
493 deps += [
Robert Sesekabcd8102014-08-27 16:12:44494 "//components/crash/app",
495 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31496 ]
497 }
498 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10499 sources +=
500 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59501 if (is_chromeos) {
502 sources -= [ "net/nss_context_linux.cc" ]
503 }
[email protected]dffd8a912014-06-30 23:24:31504 }
505 if (enable_notifications) {
506 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10507 ".",
508 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31509 if (!is_android) {
510 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11511 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10512 ".",
513 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31514 }
515 }
516 if (enable_themes) {
scottmga266f952014-12-03 20:47:10517 sources +=
518 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31519 }
520
vitalybuka93eea402014-11-05 23:47:15521 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31522 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11523 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10524 ".",
525 "//chrome")
526 deps += [ "//printing" ]
vitalybuka36259ca2014-08-28 23:42:24527 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31528 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10529 ".",
530 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31531 }
vitalybuka93eea402014-11-05 23:47:15532 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31533 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11534 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10535 ".",
536 "//chrome")
vitalybuka93eea402014-11-05 23:47:15537 } else {
[email protected]dffd8a912014-06-30 23:24:31538 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10539 sources +=
stuartmorgan1b3df822014-12-08 14:36:11540 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10541 ".",
542 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31543 }
544 }
545 if (enable_captive_portal_detection) {
546 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10547 ".",
548 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31549 }
550 if (enable_session_service) {
551 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10552 ".",
553 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31554 }
555
thestigdc377202014-10-28 22:06:02556 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10557 sources +=
558 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02559 }
560
[email protected]dffd8a912014-06-30 23:24:31561 if (is_android || is_ios) {
562 # Mobile.
scottmga266f952014-12-03 20:47:10563 sources +=
564 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31565 } else {
566 # Non-mobile.
567 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10568 ".",
569 "//chrome")
reillyge471fab2014-08-29 01:58:43570 deps += [
reillyge471fab2014-08-29 01:58:43571 "//device/core",
reillygd77718d2014-09-04 00:57:56572 "//device/usb",
reillyge471fab2014-08-29 01:58:43573 ]
[email protected]dffd8a912014-06-30 23:24:31574 }
575
576 if (is_android) {
scottmga266f952014-12-03 20:47:10577 sources +=
578 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31579 deps += [
James Robinson2ed4d692014-09-17 05:20:58580 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30581 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18582 "//components/enhanced_bookmarks",
583 "//components/history/core/android",
estadee37f8222014-11-07 21:35:22584 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18585 "//components/web_contents_delegate_android",
586 "//third_party/android_opengl/etc1",
[email protected]dffd8a912014-06-30 23:24:31587 ]
588 deps -= [
[email protected]fca567b2014-07-02 17:37:34589 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30590 "//components/feedback",
591 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30592 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31593 ]
[email protected]dffd8a912014-06-30 23:24:31594 }
595
596 if (is_mac) {
597 deps += [
[email protected]6b5d2f92014-07-30 00:40:03598 "//third_party/google_toolbox_for_mac",
[email protected]dffd8a912014-06-30 23:24:31599 #"../third_party/mozilla/mozilla.gyp:mozilla", TODO(GYP)
600 ]
601 libs += [
602 "Accelerate.framework",
603 "AddressBook.framework",
604 "AudioUnit.framework",
605 "DiskArbitration.framework",
606 "IOKit.framework",
607 "ImageCaptureCore.framework",
608 "OpenGL.framework",
609 "QuartzCore.framework",
610 "SecurityInterface.framework",
611 ]
612 }
613
614 if (enable_rlz) {
scottmga266f952014-12-03 20:47:10615 sources +=
616 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31617 deps += [ "//rlz:rlz_lib" ]
618 }
619
620 # TODO(GYP)
621 # Temporary fix to break the browser target into smaller chunks so it
622 # will link with goma builds.
623 #["OS=="win" and chromium_win_pch==0", {
624 # "msvs_shard": 4,
625 #}],
626
627 if (is_win) {
scottmga266f952014-12-03 20:47:10628 sources +=
629 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
grtaa9d8d22014-11-13 19:52:36630 if (!is_chrome_branded) {
631 sources -= [
632 "google/did_run_updater_win.cc",
633 "google/did_run_updater_win.h",
634 ]
635 }
Brett Wilsone53895272014-09-23 23:41:46636 public_deps += [
637 "//ui/views",
638 "//ui/views/controls/webview",
639 ]
[email protected]dffd8a912014-06-30 23:24:31640 deps += [
[email protected]55699f392014-08-20 22:16:30641 "//chrome:version_header",
642 "//chrome/installer/util:strings",
643 "//third_party/iaccessible2",
644 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31645 "//third_party/wtl",
scottmga266f952014-12-03 20:47:10646
[email protected]dffd8a912014-06-30 23:24:31647 #"chrome_process_finder", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31648 #"../chrome_elf/chrome_elf.gyp:chrome_elf", TODO(GYP)
649 #"../chrome_elf/chrome_elf.gyp:chrome_elf_constants", TODO(GYP)
650 #"../chrome_elf/chrome_elf.gyp:dll_hash", TODO(GYP)
651 #"../google_update/google_update.gyp:google_update", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31652 #"../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31653 #"../win8/win8.gyp:metro_viewer", TODO(GYP)
654 ]
[email protected]dffd8a912014-06-30 23:24:31655 } else {
656 # Non-Windows.
scottmga266f952014-12-03 20:47:10657 sources +=
658 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37659 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31660 deps += [
scottmga266f952014-12-03 20:47:10661 "//ui/views",
662 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31663 ]
664 # TODO(GYP) why is this needed? Very susicious.
665 # "include_dirs": [
666 # "<(INTERMEDIATE_DIR)/chrome",
667 # ],
668 }
669 }
670
671 if (is_linux) {
scottmga266f952014-12-03 20:47:10672 sources +=
673 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31674 if (use_aura) {
675 configs += [
676 "//build/config/linux:dbus",
677 "//build/config/linux:fontconfig",
678 ]
scottmga266f952014-12-03 20:47:10679 deps += [ "//dbus" ]
[email protected]dffd8a912014-06-30 23:24:31680 }
681 if (use_x11) {
682 configs += [ "//build/config/linux:x11" ]
683 deps += [ "//ui/gfx/x" ]
684 }
685 }
686
687 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54688 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10689 ".",
690 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31691 }
692 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10693 sources +=
694 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
695 ".",
696 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31697 }
698 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10699 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31700 }
treib87bb89cbb2014-12-01 16:01:47701 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10702 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
703 ".",
704 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31705 }
treib87bb89cbb2014-12-01 16:01:47706 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59707 sources += rebase_path(
scottmga266f952014-12-03 20:47:10708 gypi_values.chrome_browser_supervised_user_and_themes_sources,
709 ".",
710 "//chrome")
thestig169a6362014-11-13 20:47:59711 }
[email protected]dffd8a912014-06-30 23:24:31712 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10713 sources +=
714 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31715 }
716 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10717 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
718 ".",
719 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31720 }
721 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10722 sources +=
723 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31724 }
725 if (!enable_autofill_dialog || is_android || is_ios) {
726 sources -= [
727 "autofill/validation_rules_storage_factory.cc",
728 "autofill/validation_rules_storage_factory.h",
729 ]
730 }
731 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10732 sources +=
733 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
734 ".",
735 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31736 if (is_win || is_mac) {
737 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
738 # and Mac, so this test is meaningless. Can we merge these lists?
739 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11740 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10741 ".",
742 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31743 }
744 }
745}
746
James Robinson2ed4d692014-09-17 05:20:58747if (is_android) {
748 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
749 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10750 sources =
751 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58752 jni_package = "chrome"
753 }
754}
755
[email protected]77ce8022014-06-16 19:29:56756# GYP version: chrome/chrome_resources.gyp:chrome_resources
757# (generate_browser_resources action)
758grit("resources") {
759 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41760 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26761 outputs = [
762 "grit/browser_resources.h",
763 "browser_resources.pak",
764 ]
[email protected]77ce8022014-06-16 19:29:56765
scottmga266f952014-12-03 20:47:10766 omnibox_mojom_file =
767 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
[email protected]77ce8022014-06-16 19:29:56768
769 grit_flags = [
scottmga266f952014-12-03 20:47:10770 "-E",
771 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
772 "-E",
773 "additional_modules_list_file=" +
774 rebase_path(additional_modules_list_file, root_build_dir),
775 "-E",
776 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56777 ]
778
779 deps = [
780 ":about_credits",
781 ":chrome_internal_resources_gen",
[email protected]77ce8022014-06-16 19:29:56782 "//chrome/browser/ui/webui/omnibox:mojo_bindings",
Brett Wilson4263a742014-09-10 00:02:24783 "//mojo/environment:chromium",
[email protected]77ce8022014-06-16 19:29:56784 ]
785}
786
787# GYP version: chrome/chrome_resource.gyp:about_credits
788action("about_credits") {
789 script = "//tools/licenses.py"
790
791 # TODO(phajdan.jr): input dependencies so this can be regenerated
792 # automatically when one of the credits changes. The way this should work is
793 # that licenses.py should write a .d file listing the input dependencies (see
794 # "depfile" in GN).
scottmga266f952014-12-03 20:47:10795 outputs = [
796 about_credits_file,
797 ]
[email protected]77ce8022014-06-16 19:29:56798
799 args = [
800 "credits",
801 rebase_path(about_credits_file, root_build_dir),
802 ]
803}
804
805# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41806if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56807 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41808 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10809 sources = [
810 "internal/resources/additional_modules_list.input",
811 ]
812 outputs = [
813 additional_modules_list_file,
814 ]
engedy99d0e11b2014-09-30 13:32:41815 args = rebase_path(sources, root_build_dir) +
816 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56817 }
818} else {
819 group("chrome_internal_resources_gen") {
820 # Empty placeholder.
821 }
822}
Brett Wilson052ce132014-09-12 19:46:29823
824# In GYP this is part of test_support_common.
825source_set("test_support") {
826 testonly = true
827
828 # Always include this via the main test support target.
829 visibility = [ "//chrome/test:test_support" ]
830
831 sources = [
832 "browsing_data/mock_browsing_data_appcache_helper.cc",
833 "browsing_data/mock_browsing_data_appcache_helper.h",
834 "browsing_data/mock_browsing_data_channel_id_helper.cc",
835 "browsing_data/mock_browsing_data_channel_id_helper.h",
836 "browsing_data/mock_browsing_data_cookie_helper.cc",
837 "browsing_data/mock_browsing_data_cookie_helper.h",
838 "browsing_data/mock_browsing_data_database_helper.cc",
839 "browsing_data/mock_browsing_data_database_helper.h",
840 "browsing_data/mock_browsing_data_file_system_helper.cc",
841 "browsing_data/mock_browsing_data_file_system_helper.h",
842 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
843 "browsing_data/mock_browsing_data_flash_lso_helper.h",
844 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
845 "browsing_data/mock_browsing_data_indexed_db_helper.h",
846 "browsing_data/mock_browsing_data_local_storage_helper.cc",
847 "browsing_data/mock_browsing_data_local_storage_helper.h",
848 "browsing_data/mock_browsing_data_quota_helper.cc",
849 "browsing_data/mock_browsing_data_quota_helper.h",
850 "browsing_data/mock_browsing_data_service_worker_helper.cc",
851 "browsing_data/mock_browsing_data_service_worker_helper.h",
852 "download/download_test_file_activity_observer.cc",
853 "download/download_test_file_activity_observer.h",
854 "download/test_download_shelf.cc",
855 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:29856 "invalidation/fake_invalidation_service.cc",
857 "invalidation/fake_invalidation_service.h",
858 "media/fake_desktop_media_list.cc",
859 "media/fake_desktop_media_list.h",
860 "net/dns_probe_test_util.cc",
861 "net/dns_probe_test_util.h",
862 "net/url_request_mock_util.cc",
863 "net/url_request_mock_util.h",
864 "notifications/notification_test_util.cc",
865 "notifications/notification_test_util.h",
866 "password_manager/mock_password_store_service.cc",
867 "password_manager/mock_password_store_service.h",
868 "password_manager/null_password_store_service.cc",
869 "password_manager/null_password_store_service.h",
870 "password_manager/test_password_store_service.cc",
871 "password_manager/test_password_store_service.h",
872 "prefs/pref_service_mock_factory.cc",
873 "prefs/pref_service_mock_factory.h",
874 "profile_resetter/profile_resetter_test_base.cc",
875 "profile_resetter/profile_resetter_test_base.h",
876 "search_engines/template_url_service_factory_test_util.cc",
877 "search_engines/template_url_service_factory_test_util.h",
878 "search_engines/template_url_service_test_util.cc",
879 "search_engines/template_url_service_test_util.h",
880 "sessions/session_service_test_helper.cc",
881 "sessions/session_service_test_helper.h",
882 "signin/fake_account_reconcilor.cc",
883 "signin/fake_account_reconcilor.h",
884 "signin/fake_account_tracker_service.cc",
885 "signin/fake_account_tracker_service.h",
886 "signin/fake_profile_oauth2_token_service.cc",
887 "signin/fake_profile_oauth2_token_service.h",
888 "signin/fake_profile_oauth2_token_service_builder.cc",
889 "signin/fake_profile_oauth2_token_service_builder.h",
890 "signin/fake_signin_manager.cc",
891 "signin/fake_signin_manager.h",
892 "ssl/ssl_client_auth_requestor_mock.cc",
893 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:29894 "sync/profile_sync_components_factory_mock.cc",
895 "sync/profile_sync_components_factory_mock.h",
896 "sync/profile_sync_service_mock.cc",
897 "sync/profile_sync_service_mock.h",
shadi2f257fc2014-12-03 18:04:12898 "ui/webui/signin/login_ui_test_utils.cc",
899 "ui/webui/signin/login_ui_test_utils.h",
Brett Wilson052ce132014-09-12 19:46:29900 ]
901
Brett Wilsone53895272014-09-23 23:41:46902 public_deps = [
Brett Wilson052ce132014-09-12 19:46:29903 ":browser",
Brett Wilsone53895272014-09-23 23:41:46904 "//chrome/browser/ui:test_support",
905 ]
906 deps = [
Brett Wilson052ce132014-09-12 19:46:29907 "//base:prefs_test_support",
908 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:29909 "//chrome/common",
910 "//chrome/common/safe_browsing:proto",
911 "//components/invalidation",
912 "//components/invalidation:test_support",
913 "//components/password_manager/core/browser:test_support",
914 "//components/search_engines:test_support",
915 "//content/test:test_support",
916 "//chrome/app/theme:theme_resources",
917 "//net:test_support",
918 "//skia",
919 "//testing/gmock",
920 "//testing/gtest",
921 "//ui/gfx",
922 ]
923
Brett Wilson052ce132014-09-12 19:46:29924 if (!is_ios) {
925 deps += [
926 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:29927 "//google_apis:test_support",
928 ]
929 }
930
James Robinson2ed4d692014-09-17 05:20:58931 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:38932 sources += [
933 "extensions/extension_action_test_util.cc",
934 "extensions/extension_action_test_util.h",
935 ]
scottmga266f952014-12-03 20:47:10936 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:58937 }
938
Brett Wilson052ce132014-09-12 19:46:29939 if (is_chromeos) {
940 sources += [
941 "chromeos/app_mode/fake_cws.cc",
942 "chromeos/app_mode/fake_cws.h",
943 "chromeos/file_manager/fake_disk_mount_manager.cc",
944 "chromeos/file_manager/fake_disk_mount_manager.h",
945 "chromeos/input_method/mock_candidate_window_controller.cc",
946 "chromeos/input_method/mock_candidate_window_controller.h",
947 "chromeos/input_method/mock_input_method_engine.cc",
948 "chromeos/input_method/mock_input_method_engine.h",
949 "chromeos/input_method/mock_input_method_manager.cc",
950 "chromeos/input_method/mock_input_method_manager.h",
951 "chromeos/login/fake_login_utils.cc",
952 "chromeos/login/fake_login_utils.h",
953 "chromeos/login/mock_login_utils.cc",
954 "chromeos/login/mock_login_utils.h",
955 "chromeos/login/users/avatar/mock_user_image_manager.cc",
956 "chromeos/login/users/avatar/mock_user_image_manager.h",
957 "chromeos/login/users/fake_supervised_user_manager.cc",
958 "chromeos/login/users/fake_supervised_user_manager.h",
959 "chromeos/login/users/fake_user_manager.cc",
960 "chromeos/login/users/fake_user_manager.h",
961 "chromeos/login/users/mock_user_manager.cc",
962 "chromeos/login/users/mock_user_manager.h",
963 "chromeos/login/test/oobe_screen_waiter.cc",
964 "chromeos/login/test/oobe_screen_waiter.h",
965 "chromeos/login/test/js_checker.cc",
966 "chromeos/login/test/js_checker.h",
967 "chromeos/login/ui/mock_login_display.cc",
968 "chromeos/login/ui/mock_login_display.h",
969 "chromeos/login/ui/mock_login_display_host.cc",
970 "chromeos/login/ui/mock_login_display_host.h",
971 "chromeos/net/network_portal_detector_test_utils.cc",
972 "chromeos/net/network_portal_detector_test_utils.h",
973 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
974 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
975 "chromeos/policy/device_policy_builder.cc",
976 "chromeos/policy/device_policy_builder.h",
977 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
978 "chromeos/policy/fake_device_cloud_policy_initializer.h",
979 "chromeos/policy/stub_enterprise_install_attributes.cc",
980 "chromeos/policy/stub_enterprise_install_attributes.h",
981 "chromeos/settings/device_settings_test_helper.cc",
982 "chromeos/settings/device_settings_test_helper.h",
983 "chromeos/system/fake_input_device_settings.cc",
984 "chromeos/system/fake_input_device_settings.h",
985 ]
986 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:17987 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:29988 }
989
990 if (enable_configuration_policy) {
991 sources += [
992 "policy/test/local_policy_test_server.cc",
993 "policy/test/local_policy_test_server.h",
994 ]
Brett Wilsone53895272014-09-23 23:41:46995 public_deps += [
Brett Wilson052ce132014-09-12 19:46:29996 "//components/policy:policy_component_test_support",
997 "//components/policy:test_support",
998 ]
Brett Wilson052ce132014-09-12 19:46:29999 }
1000
1001 if (safe_browsing_mode == 1) {
1002 sources += [
1003 "extensions/fake_safe_browsing_database_manager.cc",
1004 "extensions/fake_safe_browsing_database_manager.h",
1005 ]
1006 }
1007
1008 if (enable_extensions) {
1009 sources += [
1010 "drive/dummy_drive_service.cc",
1011 "drive/dummy_drive_service.h",
1012 "drive/fake_drive_service.cc",
1013 "drive/fake_drive_service.h",
1014 "drive/test_util.cc",
1015 "drive/test_util.h",
1016 "extensions/api/messaging/native_messaging_test_util.cc",
1017 "extensions/api/messaging/native_messaging_test_util.h",
1018 "extensions/extension_notification_observer.cc",
1019 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:291020 "extensions/mock_extension_special_storage_policy.cc",
1021 "extensions/mock_extension_special_storage_policy.h",
1022 "extensions/test_blacklist.cc",
1023 "extensions/test_blacklist.h",
1024 "extensions/test_blacklist_state_fetcher.cc",
1025 "extensions/test_blacklist_state_fetcher.h",
1026 "extensions/test_extension_environment.cc",
1027 "extensions/test_extension_environment.h",
1028 "extensions/test_extension_prefs.cc",
1029 "extensions/test_extension_prefs.h",
1030 "extensions/test_extension_service.cc",
1031 "extensions/test_extension_service.h",
1032 "extensions/test_extension_system.cc",
1033 "extensions/test_extension_system.h",
1034 "media_galleries/media_galleries_test_util.cc",
1035 "media_galleries/media_galleries_test_util.h",
1036 ]
scottmga266f952014-12-03 20:47:101037 deps += [ "//components/storage_monitor:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291038 }
1039
1040 if (enable_mdns) {
1041 sources += [
1042 "local_discovery/test_service_discovery_client.cc",
1043 "local_discovery/test_service_discovery_client.h",
1044 ]
1045 }
1046
1047 if (enable_app_list) {
1048 sources += [
1049 "ui/app_list/test/chrome_app_list_test_support.cc",
1050 "ui/app_list/test/chrome_app_list_test_support.h",
1051 ]
1052 }
1053
1054 if (enable_wifi_bootstrapping) {
1055 sources += [
1056 "local_discovery/wifi/mock_wifi_manager.cc",
1057 "local_discovery/wifi/mock_wifi_manager.h",
1058 ]
1059 }
1060}