blob: 105c12cf2b192d864e2369fe83b41df79135f4a3 [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",
[email protected]273ae5ab2014-07-09 21:10:25115 "//components/url_fixer",
[email protected]fca567b2014-07-02 17:37:34116 "//components/user_prefs",
isherman3be67db2014-10-24 05:57:44117 "//components/variations",
118 "//components/variations/net",
[email protected]bf4545f2014-07-11 19:49:46119 "//components/webdata/common",
drogerf8479942014-11-21 17:47:53120 "//components/web_resource",
[email protected]dffd8a912014-06-30 23:24:31121 "//content/public/browser",
122 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12123 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31124 "//crypto",
[email protected]604828c2014-07-02 20:39:12125 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56126 "//gpu/config",
ajwongf7b1cb692014-08-23 21:36:22127 "//jingle:notifier",
[email protected]dffd8a912014-06-30 23:24:31128 "//skia",
129 "//sql",
130 "//sync",
[email protected]797b25042014-07-01 23:54:17131 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31132 "//third_party/icu",
133 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22134 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31135 "//third_party/widevine/cdm:version_h",
136 "//third_party/zlib",
137 "//third_party/zlib:minizip",
138 "//third_party/zlib:zip",
139 "//ui/base",
cjhopman09981a92014-10-27 17:11:18140 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31141 "//ui/gfx",
142 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36143 "//ui/message_center",
144 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31145 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17146 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31147 ]
148
scottmga266f952014-12-03 20:47:10149 sources +=
150 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00151
[email protected]dffd8a912014-06-30 23:24:31152 if (!is_ios) {
scottmga266f952014-12-03 20:47:10153 sources +=
154 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59155 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10156 ".",
157 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59158 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10159 ".",
160 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18161 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
162 ".",
163 "//chrome")
164 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
165 ".",
166 "//chrome")
scottmga266f952014-12-03 20:47:10167 sources +=
168 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
169 sources +=
170 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
171 sources +=
172 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
173 sources +=
174 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
175 sources +=
176 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59177 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10178 ".",
179 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59180 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10181 ".",
182 "//chrome")
183 sources +=
184 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59185 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10186 ".",
187 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59188 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10189 ".",
190 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59191 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10192 ".",
193 "//chrome")
194 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18195 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
196 sources +=
scottmga266f952014-12-03 20:47:10197 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
198 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18199 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
200 sources +=
scottmga266f952014-12-03 20:47:10201 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59202 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10203 ".",
204 "//chrome")
205
[email protected]dffd8a912014-06-30 23:24:31206 #TODO(GYP) Add these sources:
207 # # These files are generated by GRIT.
208 # '<(grit_out_dir)/grit/component_extension_resources_map.cc',
209 # '<(grit_out_dir)/grit/theme_resources_map.cc',
[email protected]a3c134352014-07-11 19:23:19210 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/grit/ui_resources_map.cc',
[email protected]dffd8a912014-06-30 23:24:31211 #
212 # # This file is generated by
213 # # chrome/browser/metrics/variations/generate_resources_map.py
214 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/generated_resources_map.cc',
215
[email protected]1bb1a6002014-07-24 23:58:56216 defines = nacl_defines
[email protected]797b25042014-07-01 23:54:17217
[email protected]dffd8a912014-06-30 23:24:31218 deps += [
Brett Wilson1c693992014-08-25 19:10:01219 "//apps",
[email protected]dffd8a912014-06-30 23:24:31220 "//cc",
[email protected]55699f392014-08-20 22:16:30221 "//chrome/browser/devtools",
[email protected]55699f392014-08-20 22:16:30222 "//chrome/installer/util",
oshimaf65398422014-11-18 23:30:42223 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37224 "//components/autofill/content/browser",
225 "//components/dom_distiller/content",
[email protected]fca567b2014-07-02 17:37:34226 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30227 "//components/navigation_interception",
228 "//components/password_manager/content/browser",
229 "//components/precache/content",
rohitraod16f44e2014-10-24 15:34:35230 "//components/sessions:sessions_content",
[email protected]abd4b682014-07-16 20:26:30231 "//components/storage_monitor",
[email protected]b9f4c682014-07-10 22:00:37232 "//components/translate/content/browser",
[email protected]fca567b2014-07-02 17:37:34233 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31234 "//components/visitedlink/browser",
235 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18236 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37237 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08238 "//content/app/resources",
[email protected]55699f392014-08-20 22:16:30239 "//media",
240 "//media/cast:net",
cjhopman09981a92014-10-27 17:11:18241 "//mojo/common",
jamesra03ae492014-10-03 04:26:48242 "//mojo/edk/system",
[email protected]604828c2014-07-02 20:39:12243 "//mojo/environment:chromium",
244 "//mojo/public/cpp/bindings",
jamesr60a7dbf2014-11-07 01:24:51245 "//mojo/public/js",
Brett Wilson83fd4242014-09-02 19:45:33246 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31247 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15248 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24249 "//storage/common",
[email protected]4eebe74d2014-08-13 02:54:46250 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31251 "//third_party/expat",
252 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34253 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31254 "//third_party/libyuv",
255 "//third_party/npapi",
256 "//third_party/re2",
257 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33258 "//third_party/webrtc/modules/desktop_capture",
[email protected]dffd8a912014-06-30 23:24:31259 "//ui/gl",
260 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12261 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34262 "//v8",
scottmga266f952014-12-03 20:47:10263
[email protected]dffd8a912014-06-30 23:24:31264 ## TODO(tonyg): Remove this dependency (crbug.com/280157).
[email protected]55699f392014-08-20 22:16:30265 #"../testing/perf/perf_test.gyp:*", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31266 ]
267 } else { # iOS
scottmga266f952014-12-03 20:47:10268 sources +=
269 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
270 sources +=
271 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
272 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31273 libs += [
274 "CoreTelephony.framework",
275 "CoreText.framework",
276 "MobileCoreServices.framework",
277 "QuartzCore.framework",
278 ]
scottmga266f952014-12-03 20:47:10279 ldflags += [
280 "-weak_framework",
281 "CoreImage",
282 ]
[email protected]dffd8a912014-06-30 23:24:31283 }
284
285 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10286 sources +=
287 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31288 }
289 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
290 sources += [
291 "net/disk_cache_dir_policy_handler.cc",
292 "net/disk_cache_dir_policy_handler.h",
293 ]
294 }
295 if (!is_android && !is_ios && enable_configuration_policy) {
296 sources += [
297 "download/download_dir_policy_handler.cc",
298 "download/download_dir_policy_handler.h",
299 ]
300 }
301 if (is_mac) {
scottmga266f952014-12-03 20:47:10302 sources +=
303 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31304 deps += [
305 #"app_shim" TODO(GYP)
tapted63829f72014-09-24 23:50:50306 #"browser_app_shim" TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31307 ]
308 }
[email protected]dffd8a912014-06-30 23:24:31309 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46310 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52311 deps += [
[email protected]cc5b3be2014-08-15 23:24:52312 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30313 "//chrome/common/extensions/api",
314 "//chrome/common/extensions/api:api_registration",
oshima758abebc2014-11-06 10:55:50315 "//extensions/components/javascript_dialog_extensions_client",
[email protected]cc5b3be2014-08-15 23:24:52316 ]
[email protected]dffd8a912014-06-30 23:24:31317 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10318 ".",
319 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31320 }
321 if (enable_background) {
322 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10323 ".",
324 "//chrome")
jamesr29ea2d122014-10-23 10:30:27325 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31326 sources -= [ "background/background_mode_manager_aura.cc" ]
327 }
thestig52a87b3b2014-10-23 22:02:38328 defines += [ "ENABLE_BACKGROUND=1" ]
[email protected]dffd8a912014-06-30 23:24:31329 }
330 if (enable_task_manager) {
331 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10332 ".",
333 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31334 }
335 if (enable_spellcheck) {
336 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10337 ".",
338 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31339 deps += [ "//third_party/hunspell" ]
340 }
341 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10342 sources +=
343 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31344 #deps += [ "//components/nacl:nacl_browser" ] TODO(GYP)
345 }
apavlove749bca2014-09-30 11:07:41346
[email protected]dffd8a912014-06-30 23:24:31347 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10348 sources +=
349 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
350 ".",
351 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31352 deps += [
[email protected]604828c2014-07-02 20:39:12353 "//components/policy",
[email protected]797b25042014-07-01 23:54:17354 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31355 ]
356 if (!is_ios) {
scottmga266f952014-12-03 20:47:10357 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
358 ".",
359 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31360 }
361 if (!is_chromeos) {
362 sources += rebase_path(
scottmga266f952014-12-03 20:47:10363 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
364 ".",
365 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31366 }
367 if (is_win || is_mac || is_desktop_linux) {
368 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10369 ".",
370 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31371 }
cjhopman09981a92014-10-27 17:11:18372 if (is_android || is_ios) {
373 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10374 ".",
375 "//chrome")
cjhopman09981a92014-10-27 17:11:18376 } else {
scottmga266f952014-12-03 20:47:10377 deps += [ "//chrome/browser/policy:path_parser" ]
[email protected]dffd8a912014-06-30 23:24:31378 }
379 } else {
380 # Configuration policy disabled.
381 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10382 ".",
383 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31384 }
385
386 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10387 sources +=
388 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31389 deps += [
James Robinson2ed4d692014-09-17 05:20:58390 "//components/pdf/browser",
[email protected]dffd8a912014-06-30 23:24:31391 "//ppapi:ppapi_ipc",
thestig11b815e92014-08-26 00:32:14392 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31393 ]
394 }
395 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10396 sources +=
stuartmorgan1b3df822014-12-08 14:36:11397 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10398 ".",
399 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31400 deps += [
[email protected]fca567b2014-07-02 17:37:34401 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45402 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34403 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31404 ]
405 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10406 sources +=
stuartmorgan1b3df822014-12-08 14:36:11407 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10408 ".",
409 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31410 defines += [ "FULL_SAFE_BROWSING" ]
scottmga266f952014-12-03 20:47:10411 deps += [ "//chrome/common/safe_browsing:proto" ]
[email protected]dffd8a912014-06-30 23:24:31412 } else if (safe_browsing_mode == 2) {
413 defines += [ "MOBILE_SAFE_BROWSING" ]
414 }
415 }
416
417 if (is_linux) {
thestigee816c272014-11-22 02:47:51418 deps += [
419 "//device/media_transfer_protocol",
scottmga266f952014-12-03 20:47:10420 "//device/udev_linux",
thestigee816c272014-11-22 02:47:51421 ]
[email protected]dffd8a912014-06-30 23:24:31422 }
423 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47424 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31425 }
426
427 if (is_chromeos) {
428 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10429 ".",
430 "//chrome")
431 deps += [ "//chrome/browser/chromeos" ]
[email protected]dffd8a912014-06-30 23:24:31432 } else {
433 # Non-ChromeOS.
434 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
scottmga266f952014-12-03 20:47:10435 ".",
436 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31437 }
438
mukai8c99b882014-10-15 03:07:59439 if (is_chromeos || is_ios) {
440 sources -= [
441 "metrics/signin_status_metrics_provider.cc",
442 "metrics/signin_status_metrics_provider.h",
443 ]
444 }
445
[email protected]dffd8a912014-06-30 23:24:31446 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12447 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31448 }
449 if (is_desktop_linux) {
450 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10451 ".",
452 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49453 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31454 }
455 if (use_aura) {
scottmga266f952014-12-03 20:47:10456 sources +=
457 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31458 deps += [
[email protected]fca567b2014-07-02 17:37:34459 "//ui/aura",
460 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12461 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31462 ]
463 }
464 if (ui_compositor_image_transport) {
465 deps += [ "//ui/gl" ]
466 }
467
[email protected]855b7de2014-07-08 21:02:45468 if (use_ash) {
scottmga266f952014-12-03 20:47:10469 sources +=
470 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45471 }
472
[email protected]dffd8a912014-06-30 23:24:31473 if (use_x11) {
scottmga266f952014-12-03 20:47:10474 sources +=
475 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31476 if (!is_chromeos) {
[email protected]fca567b2014-07-02 17:37:34477 configs += [ "//build/config/linux:xscrnsaver" ]
[email protected]dffd8a912014-06-30 23:24:31478 }
479 }
480 if (is_posix && !is_mac && !is_ios) {
481 sources += [
rseseka0a7a042014-09-18 23:59:20482 "//chrome/app/chrome_crash_reporter_client.cc",
483 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31484 ]
485 deps += [
Robert Sesekabcd8102014-08-27 16:12:44486 "//components/crash/app",
487 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31488 ]
489 }
490 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10491 sources +=
492 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59493 if (is_chromeos) {
494 sources -= [ "net/nss_context_linux.cc" ]
495 }
[email protected]dffd8a912014-06-30 23:24:31496 }
497 if (enable_notifications) {
498 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10499 ".",
500 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31501 if (!is_android) {
502 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11503 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10504 ".",
505 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31506 }
507 }
508 if (enable_themes) {
scottmga266f952014-12-03 20:47:10509 sources +=
510 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31511 }
512
vitalybuka93eea402014-11-05 23:47:15513 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31514 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11515 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10516 ".",
517 "//chrome")
518 deps += [ "//printing" ]
vitalybuka36259ca2014-08-28 23:42:24519 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31520 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10521 ".",
522 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31523 }
vitalybuka93eea402014-11-05 23:47:15524 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31525 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11526 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10527 ".",
528 "//chrome")
vitalybuka93eea402014-11-05 23:47:15529 } else {
[email protected]dffd8a912014-06-30 23:24:31530 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10531 sources +=
stuartmorgan1b3df822014-12-08 14:36:11532 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10533 ".",
534 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31535 }
536 }
537 if (enable_captive_portal_detection) {
538 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10539 ".",
540 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31541 }
542 if (enable_session_service) {
543 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10544 ".",
545 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31546 }
547
thestigdc377202014-10-28 22:06:02548 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10549 sources +=
550 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02551 }
552
[email protected]dffd8a912014-06-30 23:24:31553 if (is_android || is_ios) {
554 # Mobile.
scottmga266f952014-12-03 20:47:10555 sources +=
556 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31557 } else {
558 # Non-mobile.
559 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10560 ".",
561 "//chrome")
reillyge471fab2014-08-29 01:58:43562 deps += [
reillyge471fab2014-08-29 01:58:43563 "//device/core",
reillygd77718d2014-09-04 00:57:56564 "//device/usb",
reillyge471fab2014-08-29 01:58:43565 ]
[email protected]dffd8a912014-06-30 23:24:31566 }
567
568 if (is_android) {
scottmga266f952014-12-03 20:47:10569 sources +=
570 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31571 deps += [
James Robinson2ed4d692014-09-17 05:20:58572 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30573 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18574 "//components/enhanced_bookmarks",
575 "//components/history/core/android",
estadee37f8222014-11-07 21:35:22576 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18577 "//components/web_contents_delegate_android",
578 "//third_party/android_opengl/etc1",
[email protected]dffd8a912014-06-30 23:24:31579 ]
580 deps -= [
[email protected]fca567b2014-07-02 17:37:34581 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30582 "//components/feedback",
583 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30584 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31585 ]
586 } else {
587 sources += rebase_path(gypi_values.chrome_browser_non_android_sources,
scottmga266f952014-12-03 20:47:10588 ".",
589 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31590 }
591
592 if (is_mac) {
593 deps += [
[email protected]6b5d2f92014-07-30 00:40:03594 "//third_party/google_toolbox_for_mac",
[email protected]dffd8a912014-06-30 23:24:31595 #"../third_party/mozilla/mozilla.gyp:mozilla", TODO(GYP)
596 ]
597 libs += [
598 "Accelerate.framework",
599 "AddressBook.framework",
600 "AudioUnit.framework",
601 "DiskArbitration.framework",
602 "IOKit.framework",
603 "ImageCaptureCore.framework",
604 "OpenGL.framework",
605 "QuartzCore.framework",
606 "SecurityInterface.framework",
607 ]
608 }
609
610 if (enable_rlz) {
scottmga266f952014-12-03 20:47:10611 sources +=
612 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31613 deps += [ "//rlz:rlz_lib" ]
614 }
615
616 # TODO(GYP)
617 # Temporary fix to break the browser target into smaller chunks so it
618 # will link with goma builds.
619 #["OS=="win" and chromium_win_pch==0", {
620 # "msvs_shard": 4,
621 #}],
622
623 if (is_win) {
scottmga266f952014-12-03 20:47:10624 sources +=
625 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
grtaa9d8d22014-11-13 19:52:36626 if (!is_chrome_branded) {
627 sources -= [
628 "google/did_run_updater_win.cc",
629 "google/did_run_updater_win.h",
630 ]
631 }
Brett Wilsone53895272014-09-23 23:41:46632 public_deps += [
633 "//ui/views",
634 "//ui/views/controls/webview",
635 ]
[email protected]dffd8a912014-06-30 23:24:31636 deps += [
[email protected]55699f392014-08-20 22:16:30637 "//chrome:version_header",
638 "//chrome/installer/util:strings",
639 "//third_party/iaccessible2",
640 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31641 "//third_party/wtl",
scottmga266f952014-12-03 20:47:10642
[email protected]dffd8a912014-06-30 23:24:31643 #"chrome_process_finder", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31644 #"../chrome_elf/chrome_elf.gyp:chrome_elf", TODO(GYP)
645 #"../chrome_elf/chrome_elf.gyp:chrome_elf_constants", TODO(GYP)
646 #"../chrome_elf/chrome_elf.gyp:dll_hash", TODO(GYP)
647 #"../google_update/google_update.gyp:google_update", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31648 #"../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31649 #"../win8/win8.gyp:metro_viewer", TODO(GYP)
650 ]
[email protected]dffd8a912014-06-30 23:24:31651 } else {
652 # Non-Windows.
scottmga266f952014-12-03 20:47:10653 sources +=
654 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37655 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31656 deps += [
scottmga266f952014-12-03 20:47:10657 "//ui/views",
658 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31659 ]
660 # TODO(GYP) why is this needed? Very susicious.
661 # "include_dirs": [
662 # "<(INTERMEDIATE_DIR)/chrome",
663 # ],
664 }
665 }
666
667 if (is_linux) {
scottmga266f952014-12-03 20:47:10668 sources +=
669 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31670 if (use_aura) {
671 configs += [
672 "//build/config/linux:dbus",
673 "//build/config/linux:fontconfig",
674 ]
scottmga266f952014-12-03 20:47:10675 deps += [ "//dbus" ]
[email protected]dffd8a912014-06-30 23:24:31676 }
677 if (use_x11) {
678 configs += [ "//build/config/linux:x11" ]
679 deps += [ "//ui/gfx/x" ]
680 }
681 }
682
683 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54684 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10685 ".",
686 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31687 }
688 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10689 sources +=
690 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
691 ".",
692 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31693 }
694 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10695 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31696 }
treib87bb89cbb2014-12-01 16:01:47697 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10698 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
699 ".",
700 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31701 }
treib87bb89cbb2014-12-01 16:01:47702 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59703 sources += rebase_path(
scottmga266f952014-12-03 20:47:10704 gypi_values.chrome_browser_supervised_user_and_themes_sources,
705 ".",
706 "//chrome")
thestig169a6362014-11-13 20:47:59707 }
[email protected]dffd8a912014-06-30 23:24:31708 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10709 sources +=
710 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31711 }
712 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10713 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
714 ".",
715 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31716 }
717 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10718 sources +=
719 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31720 }
721 if (!enable_autofill_dialog || is_android || is_ios) {
722 sources -= [
723 "autofill/validation_rules_storage_factory.cc",
724 "autofill/validation_rules_storage_factory.h",
725 ]
726 }
727 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10728 sources +=
729 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
730 ".",
731 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31732 if (is_win || is_mac) {
733 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
734 # and Mac, so this test is meaningless. Can we merge these lists?
735 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11736 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10737 ".",
738 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31739 }
740 }
741}
742
James Robinson2ed4d692014-09-17 05:20:58743if (is_android) {
744 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
745 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10746 sources =
747 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58748 jni_package = "chrome"
749 }
750}
751
[email protected]77ce8022014-06-16 19:29:56752# GYP version: chrome/chrome_resources.gyp:chrome_resources
753# (generate_browser_resources action)
754grit("resources") {
755 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41756 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26757 outputs = [
758 "grit/browser_resources.h",
759 "browser_resources.pak",
760 ]
[email protected]77ce8022014-06-16 19:29:56761
scottmga266f952014-12-03 20:47:10762 omnibox_mojom_file =
763 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
[email protected]77ce8022014-06-16 19:29:56764
765 grit_flags = [
scottmga266f952014-12-03 20:47:10766 "-E",
767 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
768 "-E",
769 "additional_modules_list_file=" +
770 rebase_path(additional_modules_list_file, root_build_dir),
771 "-E",
772 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56773 ]
774
775 deps = [
776 ":about_credits",
777 ":chrome_internal_resources_gen",
[email protected]77ce8022014-06-16 19:29:56778 "//chrome/browser/ui/webui/omnibox:mojo_bindings",
Brett Wilson4263a742014-09-10 00:02:24779 "//mojo/environment:chromium",
[email protected]77ce8022014-06-16 19:29:56780 ]
781}
782
783# GYP version: chrome/chrome_resource.gyp:about_credits
784action("about_credits") {
785 script = "//tools/licenses.py"
786
787 # TODO(phajdan.jr): input dependencies so this can be regenerated
788 # automatically when one of the credits changes. The way this should work is
789 # that licenses.py should write a .d file listing the input dependencies (see
790 # "depfile" in GN).
scottmga266f952014-12-03 20:47:10791 outputs = [
792 about_credits_file,
793 ]
[email protected]77ce8022014-06-16 19:29:56794
795 args = [
796 "credits",
797 rebase_path(about_credits_file, root_build_dir),
798 ]
799}
800
801# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41802if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56803 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41804 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10805 sources = [
806 "internal/resources/additional_modules_list.input",
807 ]
808 outputs = [
809 additional_modules_list_file,
810 ]
engedy99d0e11b2014-09-30 13:32:41811 args = rebase_path(sources, root_build_dir) +
812 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56813 }
814} else {
815 group("chrome_internal_resources_gen") {
816 # Empty placeholder.
817 }
818}
Brett Wilson052ce132014-09-12 19:46:29819
820# In GYP this is part of test_support_common.
821source_set("test_support") {
822 testonly = true
823
824 # Always include this via the main test support target.
825 visibility = [ "//chrome/test:test_support" ]
826
827 sources = [
828 "browsing_data/mock_browsing_data_appcache_helper.cc",
829 "browsing_data/mock_browsing_data_appcache_helper.h",
830 "browsing_data/mock_browsing_data_channel_id_helper.cc",
831 "browsing_data/mock_browsing_data_channel_id_helper.h",
832 "browsing_data/mock_browsing_data_cookie_helper.cc",
833 "browsing_data/mock_browsing_data_cookie_helper.h",
834 "browsing_data/mock_browsing_data_database_helper.cc",
835 "browsing_data/mock_browsing_data_database_helper.h",
836 "browsing_data/mock_browsing_data_file_system_helper.cc",
837 "browsing_data/mock_browsing_data_file_system_helper.h",
838 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
839 "browsing_data/mock_browsing_data_flash_lso_helper.h",
840 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
841 "browsing_data/mock_browsing_data_indexed_db_helper.h",
842 "browsing_data/mock_browsing_data_local_storage_helper.cc",
843 "browsing_data/mock_browsing_data_local_storage_helper.h",
844 "browsing_data/mock_browsing_data_quota_helper.cc",
845 "browsing_data/mock_browsing_data_quota_helper.h",
846 "browsing_data/mock_browsing_data_service_worker_helper.cc",
847 "browsing_data/mock_browsing_data_service_worker_helper.h",
848 "download/download_test_file_activity_observer.cc",
849 "download/download_test_file_activity_observer.h",
850 "download/test_download_shelf.cc",
851 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:29852 "invalidation/fake_invalidation_service.cc",
853 "invalidation/fake_invalidation_service.h",
854 "media/fake_desktop_media_list.cc",
855 "media/fake_desktop_media_list.h",
856 "net/dns_probe_test_util.cc",
857 "net/dns_probe_test_util.h",
858 "net/url_request_mock_util.cc",
859 "net/url_request_mock_util.h",
860 "notifications/notification_test_util.cc",
861 "notifications/notification_test_util.h",
862 "password_manager/mock_password_store_service.cc",
863 "password_manager/mock_password_store_service.h",
864 "password_manager/null_password_store_service.cc",
865 "password_manager/null_password_store_service.h",
866 "password_manager/test_password_store_service.cc",
867 "password_manager/test_password_store_service.h",
868 "prefs/pref_service_mock_factory.cc",
869 "prefs/pref_service_mock_factory.h",
870 "profile_resetter/profile_resetter_test_base.cc",
871 "profile_resetter/profile_resetter_test_base.h",
872 "search_engines/template_url_service_factory_test_util.cc",
873 "search_engines/template_url_service_factory_test_util.h",
874 "search_engines/template_url_service_test_util.cc",
875 "search_engines/template_url_service_test_util.h",
876 "sessions/session_service_test_helper.cc",
877 "sessions/session_service_test_helper.h",
878 "signin/fake_account_reconcilor.cc",
879 "signin/fake_account_reconcilor.h",
880 "signin/fake_account_tracker_service.cc",
881 "signin/fake_account_tracker_service.h",
882 "signin/fake_profile_oauth2_token_service.cc",
883 "signin/fake_profile_oauth2_token_service.h",
884 "signin/fake_profile_oauth2_token_service_builder.cc",
885 "signin/fake_profile_oauth2_token_service_builder.h",
886 "signin/fake_signin_manager.cc",
887 "signin/fake_signin_manager.h",
888 "ssl/ssl_client_auth_requestor_mock.cc",
889 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:29890 "sync/profile_sync_components_factory_mock.cc",
891 "sync/profile_sync_components_factory_mock.h",
892 "sync/profile_sync_service_mock.cc",
893 "sync/profile_sync_service_mock.h",
shadi2f257fc2014-12-03 18:04:12894 "ui/webui/signin/login_ui_test_utils.cc",
895 "ui/webui/signin/login_ui_test_utils.h",
Brett Wilson052ce132014-09-12 19:46:29896 ]
897
Brett Wilsone53895272014-09-23 23:41:46898 public_deps = [
Brett Wilson052ce132014-09-12 19:46:29899 ":browser",
Brett Wilsone53895272014-09-23 23:41:46900 "//chrome/browser/ui:test_support",
901 ]
902 deps = [
Brett Wilson052ce132014-09-12 19:46:29903 "//base:prefs_test_support",
904 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:29905 "//chrome/common",
906 "//chrome/common/safe_browsing:proto",
907 "//components/invalidation",
908 "//components/invalidation:test_support",
909 "//components/password_manager/core/browser:test_support",
910 "//components/search_engines:test_support",
911 "//content/test:test_support",
912 "//chrome/app/theme:theme_resources",
913 "//net:test_support",
914 "//skia",
915 "//testing/gmock",
916 "//testing/gtest",
917 "//ui/gfx",
918 ]
919
Brett Wilson052ce132014-09-12 19:46:29920 if (!is_ios) {
921 deps += [
922 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:29923 "//google_apis:test_support",
924 ]
925 }
926
James Robinson2ed4d692014-09-17 05:20:58927 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:38928 sources += [
929 "extensions/extension_action_test_util.cc",
930 "extensions/extension_action_test_util.h",
931 ]
scottmga266f952014-12-03 20:47:10932 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:58933 }
934
Brett Wilson052ce132014-09-12 19:46:29935 if (is_chromeos) {
936 sources += [
937 "chromeos/app_mode/fake_cws.cc",
938 "chromeos/app_mode/fake_cws.h",
939 "chromeos/file_manager/fake_disk_mount_manager.cc",
940 "chromeos/file_manager/fake_disk_mount_manager.h",
941 "chromeos/input_method/mock_candidate_window_controller.cc",
942 "chromeos/input_method/mock_candidate_window_controller.h",
943 "chromeos/input_method/mock_input_method_engine.cc",
944 "chromeos/input_method/mock_input_method_engine.h",
945 "chromeos/input_method/mock_input_method_manager.cc",
946 "chromeos/input_method/mock_input_method_manager.h",
947 "chromeos/login/fake_login_utils.cc",
948 "chromeos/login/fake_login_utils.h",
949 "chromeos/login/mock_login_utils.cc",
950 "chromeos/login/mock_login_utils.h",
951 "chromeos/login/users/avatar/mock_user_image_manager.cc",
952 "chromeos/login/users/avatar/mock_user_image_manager.h",
953 "chromeos/login/users/fake_supervised_user_manager.cc",
954 "chromeos/login/users/fake_supervised_user_manager.h",
955 "chromeos/login/users/fake_user_manager.cc",
956 "chromeos/login/users/fake_user_manager.h",
957 "chromeos/login/users/mock_user_manager.cc",
958 "chromeos/login/users/mock_user_manager.h",
959 "chromeos/login/test/oobe_screen_waiter.cc",
960 "chromeos/login/test/oobe_screen_waiter.h",
961 "chromeos/login/test/js_checker.cc",
962 "chromeos/login/test/js_checker.h",
963 "chromeos/login/ui/mock_login_display.cc",
964 "chromeos/login/ui/mock_login_display.h",
965 "chromeos/login/ui/mock_login_display_host.cc",
966 "chromeos/login/ui/mock_login_display_host.h",
967 "chromeos/net/network_portal_detector_test_utils.cc",
968 "chromeos/net/network_portal_detector_test_utils.h",
969 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
970 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
971 "chromeos/policy/device_policy_builder.cc",
972 "chromeos/policy/device_policy_builder.h",
973 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
974 "chromeos/policy/fake_device_cloud_policy_initializer.h",
975 "chromeos/policy/stub_enterprise_install_attributes.cc",
976 "chromeos/policy/stub_enterprise_install_attributes.h",
977 "chromeos/settings/device_settings_test_helper.cc",
978 "chromeos/settings/device_settings_test_helper.h",
979 "chromeos/system/fake_input_device_settings.cc",
980 "chromeos/system/fake_input_device_settings.h",
981 ]
982 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:17983 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:29984 }
985
986 if (enable_configuration_policy) {
987 sources += [
988 "policy/test/local_policy_test_server.cc",
989 "policy/test/local_policy_test_server.h",
990 ]
Brett Wilsone53895272014-09-23 23:41:46991 public_deps += [
Brett Wilson052ce132014-09-12 19:46:29992 "//components/policy:policy_component_test_support",
993 "//components/policy:test_support",
994 ]
Brett Wilson052ce132014-09-12 19:46:29995 }
996
997 if (safe_browsing_mode == 1) {
998 sources += [
999 "extensions/fake_safe_browsing_database_manager.cc",
1000 "extensions/fake_safe_browsing_database_manager.h",
1001 ]
1002 }
1003
1004 if (enable_extensions) {
1005 sources += [
1006 "drive/dummy_drive_service.cc",
1007 "drive/dummy_drive_service.h",
1008 "drive/fake_drive_service.cc",
1009 "drive/fake_drive_service.h",
1010 "drive/test_util.cc",
1011 "drive/test_util.h",
1012 "extensions/api/messaging/native_messaging_test_util.cc",
1013 "extensions/api/messaging/native_messaging_test_util.h",
1014 "extensions/extension_notification_observer.cc",
1015 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:291016 "extensions/mock_extension_special_storage_policy.cc",
1017 "extensions/mock_extension_special_storage_policy.h",
1018 "extensions/test_blacklist.cc",
1019 "extensions/test_blacklist.h",
1020 "extensions/test_blacklist_state_fetcher.cc",
1021 "extensions/test_blacklist_state_fetcher.h",
1022 "extensions/test_extension_environment.cc",
1023 "extensions/test_extension_environment.h",
1024 "extensions/test_extension_prefs.cc",
1025 "extensions/test_extension_prefs.h",
1026 "extensions/test_extension_service.cc",
1027 "extensions/test_extension_service.h",
1028 "extensions/test_extension_system.cc",
1029 "extensions/test_extension_system.h",
1030 "media_galleries/media_galleries_test_util.cc",
1031 "media_galleries/media_galleries_test_util.h",
1032 ]
scottmga266f952014-12-03 20:47:101033 deps += [ "//components/storage_monitor:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291034 }
1035
1036 if (enable_mdns) {
1037 sources += [
1038 "local_discovery/test_service_discovery_client.cc",
1039 "local_discovery/test_service_discovery_client.h",
1040 ]
1041 }
1042
1043 if (enable_app_list) {
1044 sources += [
1045 "ui/app_list/test/chrome_app_list_test_support.cc",
1046 "ui/app_list/test/chrome_app_list_test_support.h",
1047 ]
1048 }
1049
1050 if (enable_wifi_bootstrapping) {
1051 sources += [
1052 "local_discovery/wifi/mock_wifi_manager.cc",
1053 "local_discovery/wifi/mock_wifi_manager.h",
1054 ]
1055 }
1056}