blob: 9af5855d4b283519a3d8b979b3148854c52c8ab6 [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")
James Robinson2ed4d692014-09-17 05:20:589# //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
10# produces a conflict for the "grit" template so we have to only include one.
11if (is_android) {
12 import("//build/config/android/rules.gni")
13} else {
14 import("//tools/grit/grit_rule.gni")
15}
cmasone0a9e4ca2014-10-16 16:40:4916if (is_desktop_linux) {
17 import("//build/config/linux/pkg_config.gni")
18}
[email protected]77ce8022014-06-16 19:29:5619
20about_credits_file = "$target_gen_dir/about_credits.html"
21additional_modules_list_file =
22 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
23
[email protected]797b25042014-07-01 23:54:1724gypi_values = exec_script(
25 "//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",
[email protected]dffd8a912014-06-30 23:24:31120 "//content/public/browser",
121 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12122 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31123 "//crypto",
[email protected]604828c2014-07-02 20:39:12124 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56125 "//gpu/config",
ajwongf7b1cb692014-08-23 21:36:22126 "//jingle:notifier",
[email protected]dffd8a912014-06-30 23:24:31127 "//skia",
128 "//sql",
129 "//sync",
[email protected]797b25042014-07-01 23:54:17130 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31131 "//third_party/icu",
132 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22133 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31134 "//third_party/widevine/cdm:version_h",
135 "//third_party/zlib",
136 "//third_party/zlib:minizip",
137 "//third_party/zlib:zip",
138 "//ui/base",
cjhopman09981a92014-10-27 17:11:18139 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31140 "//ui/gfx",
141 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36142 "//ui/message_center",
143 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31144 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17145 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31146 ]
147
danduongd81789642014-09-23 02:50:00148 sources += rebase_path(gypi_values.chrome_browser_undo_sources,
149 ".", "//chrome")
150
[email protected]dffd8a912014-06-30 23:24:31151 if (!is_ios) {
152 sources += rebase_path(gypi_values.chrome_browser_non_ios_sources,
153 ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59154 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
155 ".", "//chrome")
156 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
157 ".", "//chrome")
158 sources += rebase_path(gypi_values.chrome_browser_favicon_sources,
159 ".", "//chrome")
160 sources += rebase_path(gypi_values.chrome_browser_google_sources,
161 ".", "//chrome")
162 sources += rebase_path(gypi_values.chrome_browser_history_sources,
163 ".", "//chrome")
164 sources += rebase_path(gypi_values.chrome_browser_metrics_sources,
165 ".", "//chrome")
166 sources += rebase_path(gypi_values.chrome_browser_net_sources,
167 ".", "//chrome")
168 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
169 ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59170 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
171 ".", "//chrome")
stuartmorgan79e1dce2014-11-17 18:28:34172 sources += rebase_path(gypi_values.chrome_browser_pref_sources,
173 ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59174 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
175 ".", "//chrome")
176 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
177 ".", "//chrome")
178 sources += rebase_path(gypi_values.chrome_browser_services_sources,
179 ".", "//chrome")
180 sources += rebase_path(gypi_values.chrome_browser_signin_sources,
181 ".", "//chrome")
182 sources += rebase_path(gypi_values.chrome_browser_sync_sources,
183 ".", "//chrome")
184 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
185 ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31186 #TODO(GYP) Add these sources:
187 # # These files are generated by GRIT.
188 # '<(grit_out_dir)/grit/component_extension_resources_map.cc',
189 # '<(grit_out_dir)/grit/theme_resources_map.cc',
[email protected]a3c134352014-07-11 19:23:19190 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/grit/ui_resources_map.cc',
[email protected]dffd8a912014-06-30 23:24:31191 #
192 # # This file is generated by
193 # # chrome/browser/metrics/variations/generate_resources_map.py
194 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/generated_resources_map.cc',
195
[email protected]1bb1a6002014-07-24 23:58:56196 defines = nacl_defines
[email protected]797b25042014-07-01 23:54:17197
[email protected]dffd8a912014-06-30 23:24:31198 deps += [
Brett Wilson1c693992014-08-25 19:10:01199 "//apps",
[email protected]dffd8a912014-06-30 23:24:31200 "//cc",
[email protected]55699f392014-08-20 22:16:30201 "//chrome/browser/devtools",
[email protected]55699f392014-08-20 22:16:30202 "//chrome/installer/util",
oshimaf65398422014-11-18 23:30:42203 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37204 "//components/autofill/content/browser",
205 "//components/dom_distiller/content",
[email protected]fca567b2014-07-02 17:37:34206 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30207 "//components/navigation_interception",
208 "//components/password_manager/content/browser",
209 "//components/precache/content",
rohitraod16f44e2014-10-24 15:34:35210 "//components/sessions:sessions_content",
[email protected]abd4b682014-07-16 20:26:30211 "//components/storage_monitor",
[email protected]b9f4c682014-07-10 22:00:37212 "//components/translate/content/browser",
[email protected]fca567b2014-07-02 17:37:34213 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31214 "//components/visitedlink/browser",
215 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18216 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37217 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08218 "//content/app/resources",
[email protected]55699f392014-08-20 22:16:30219 "//media",
220 "//media/cast:net",
cjhopman09981a92014-10-27 17:11:18221 "//mojo/common",
jamesra03ae492014-10-03 04:26:48222 "//mojo/edk/system",
[email protected]604828c2014-07-02 20:39:12223 "//mojo/environment:chromium",
224 "//mojo/public/cpp/bindings",
jamesr60a7dbf2014-11-07 01:24:51225 "//mojo/public/js",
Brett Wilson83fd4242014-09-02 19:45:33226 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31227 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15228 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24229 "//storage/common",
[email protected]4eebe74d2014-08-13 02:54:46230 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31231 "//third_party/expat",
232 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34233 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31234 "//third_party/libyuv",
235 "//third_party/npapi",
236 "//third_party/re2",
237 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33238 "//third_party/webrtc/modules/desktop_capture",
[email protected]dffd8a912014-06-30 23:24:31239 "//ui/gl",
240 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12241 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34242 "//v8",
[email protected]dffd8a912014-06-30 23:24:31243 ## TODO(tonyg): Remove this dependency (crbug.com/280157).
[email protected]55699f392014-08-20 22:16:30244 #"../testing/perf/perf_test.gyp:*", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31245 ]
246 } else { # iOS
247 sources += rebase_path(gypi_values.chrome_browser_ios_sources,
248 ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59249 sources += rebase_path(gypi_values.chrome_browser_google_sources,
250 ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31251 deps += [
252 "//net",
253 ]
254 libs += [
255 "CoreTelephony.framework",
256 "CoreText.framework",
257 "MobileCoreServices.framework",
258 "QuartzCore.framework",
259 ]
260 ldflags += [ "-weak_framework", "CoreImage" ]
261 }
262
263 if (is_win || is_mac) {
264 sources += rebase_path(gypi_values.chrome_browser_win_mac_sources,
265 ".", "//chrome")
266 }
267 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
268 sources += [
269 "net/disk_cache_dir_policy_handler.cc",
270 "net/disk_cache_dir_policy_handler.h",
271 ]
272 }
273 if (!is_android && !is_ios && enable_configuration_policy) {
274 sources += [
275 "download/download_dir_policy_handler.cc",
276 "download/download_dir_policy_handler.h",
277 ]
278 }
279 if (is_mac) {
280 sources += rebase_path(gypi_values.chrome_browser_mac_sources,
281 ".", "//chrome")
282 deps += [
283 #"app_shim" TODO(GYP)
tapted63829f72014-09-24 23:50:50284 #"browser_app_shim" TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31285 ]
286 }
[email protected]dffd8a912014-06-30 23:24:31287 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46288 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52289 deps += [
[email protected]cc5b3be2014-08-15 23:24:52290 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30291 "//chrome/common/extensions/api",
292 "//chrome/common/extensions/api:api_registration",
oshima758abebc2014-11-06 10:55:50293 "//extensions/components/javascript_dialog_extensions_client",
[email protected]cc5b3be2014-08-15 23:24:52294 ]
[email protected]dffd8a912014-06-30 23:24:31295 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
296 ".", "//chrome")
297 }
298 if (enable_background) {
299 sources += rebase_path(gypi_values.chrome_browser_background_sources,
300 ".", "//chrome")
jamesr29ea2d122014-10-23 10:30:27301 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31302 sources -= [ "background/background_mode_manager_aura.cc" ]
303 }
thestig52a87b3b2014-10-23 22:02:38304 defines += [ "ENABLE_BACKGROUND=1" ]
[email protected]dffd8a912014-06-30 23:24:31305 }
306 if (enable_task_manager) {
307 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
308 ".", "//chrome")
309 }
310 if (enable_spellcheck) {
311 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
312 ".", "//chrome")
313 deps += [ "//third_party/hunspell" ]
314 }
315 if (enable_nacl) {
316 sources += rebase_path(gypi_values.chrome_browser_nacl_sources,
317 ".", "//chrome")
318 #deps += [ "//components/nacl:nacl_browser" ] TODO(GYP)
319 }
apavlove749bca2014-09-30 11:07:41320
[email protected]dffd8a912014-06-30 23:24:31321 if (enable_configuration_policy) {
322 sources += rebase_path(
323 gypi_values.chrome_browser_policy_shared_with_ios_sources,
324 ".", "//chrome")
325 deps += [
[email protected]604828c2014-07-02 20:39:12326 "//components/policy",
[email protected]797b25042014-07-01 23:54:17327 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31328 ]
329 if (!is_ios) {
330 sources += rebase_path(
331 gypi_values.chrome_browser_policy_non_ios_sources,
332 ".", "//chrome")
333 }
334 if (!is_chromeos) {
335 sources += rebase_path(
336 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
337 ".", "//chrome")
338 }
339 if (is_win || is_mac || is_desktop_linux) {
340 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
341 ".", "//chrome")
342 }
cjhopman09981a92014-10-27 17:11:18343 if (is_android || is_ios) {
344 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
345 ".", "//chrome")
346 } else {
[email protected]dffd8a912014-06-30 23:24:31347 deps += [
Brett Wilson642752142014-08-26 19:05:21348 "//chrome/browser/policy:path_parser",
[email protected]dffd8a912014-06-30 23:24:31349 ]
350 }
351 } else {
352 # Configuration policy disabled.
353 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
354 ".", "//chrome")
355 }
356
357 if (enable_plugins) {
358 sources += rebase_path(gypi_values.chrome_browser_plugins_sources,
359 ".", "//chrome")
360 deps += [
James Robinson2ed4d692014-09-17 05:20:58361 "//components/pdf/browser",
[email protected]dffd8a912014-06-30 23:24:31362 "//ppapi:ppapi_ipc",
thestig11b815e92014-08-26 00:32:14363 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31364 ]
365 }
366 if (safe_browsing_mode != 0) {
367 sources += rebase_path(
368 gypi_values.chrome_browser_basic_safe_browsing_sources,
369 ".", "//chrome")
370 deps += [
[email protected]fca567b2014-07-02 17:37:34371 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45372 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34373 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31374 ]
375 if (safe_browsing_mode == 1) {
376 sources += rebase_path(
377 gypi_values.chrome_browser_full_safe_browsing_sources,
378 ".", "//chrome")
379 defines += [ "FULL_SAFE_BROWSING" ]
380 deps += [
[email protected]fca567b2014-07-02 17:37:34381 "//chrome/common/safe_browsing:proto",
[email protected]dffd8a912014-06-30 23:24:31382 ]
383 } else if (safe_browsing_mode == 2) {
384 defines += [ "MOBILE_SAFE_BROWSING" ]
385 }
386 }
387
388 if (is_linux) {
[email protected]797b25042014-07-01 23:54:17389 configs += [ "//build/config/linux:udev" ]
390 deps += [ "//device/media_transfer_protocol" ]
[email protected]dffd8a912014-06-30 23:24:31391 }
392 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47393 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31394 }
395
396 if (is_chromeos) {
397 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
398 ".", "//chrome")
399 deps += [
mukai8c99b882014-10-15 03:07:59400 "//chrome/browser/chromeos",
[email protected]dffd8a912014-06-30 23:24:31401 ]
402 } else {
403 # Non-ChromeOS.
404 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
405 ".", "//chrome")
406 }
407
mukai8c99b882014-10-15 03:07:59408 if (is_chromeos || is_ios) {
409 sources -= [
410 "metrics/signin_status_metrics_provider.cc",
411 "metrics/signin_status_metrics_provider.h",
412 ]
413 }
414
[email protected]dffd8a912014-06-30 23:24:31415 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12416 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31417 }
418 if (is_desktop_linux) {
419 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
420 ".", "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49421 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31422 }
423 if (use_aura) {
424 sources += rebase_path(gypi_values.chrome_browser_aura_sources,
425 ".", "//chrome")
426 deps += [
[email protected]fca567b2014-07-02 17:37:34427 "//ui/aura",
428 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12429 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31430 ]
431 }
432 if (ui_compositor_image_transport) {
433 deps += [ "//ui/gl" ]
434 }
435
[email protected]855b7de2014-07-08 21:02:45436 if (use_ash) {
437 sources += rebase_path(gypi_values.chrome_browser_ash_sources,
438 ".", "//chrome")
439 }
440
[email protected]dffd8a912014-06-30 23:24:31441 if (use_x11) {
442 sources += rebase_path(gypi_values.chrome_browser_x11_sources,
443 ".", "//chrome")
444 if (!is_chromeos) {
[email protected]fca567b2014-07-02 17:37:34445 configs += [ "//build/config/linux:xscrnsaver" ]
[email protected]dffd8a912014-06-30 23:24:31446 }
447 }
448 if (is_posix && !is_mac && !is_ios) {
449 sources += [
rseseka0a7a042014-09-18 23:59:20450 "//chrome/app/chrome_crash_reporter_client.cc",
451 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31452 ]
453 deps += [
Robert Sesekabcd8102014-08-27 16:12:44454 "//components/crash/app",
455 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31456 ]
457 }
458 if (use_nss_certs) {
459 sources += rebase_path(gypi_values.chrome_browser_nss_sources,
460 ".", "//chrome")
mukai8c99b882014-10-15 03:07:59461 if (is_chromeos) {
462 sources -= [ "net/nss_context_linux.cc" ]
463 }
[email protected]dffd8a912014-06-30 23:24:31464 }
465 if (enable_notifications) {
466 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
467 ".", "//chrome")
468 if (!is_android) {
469 sources += rebase_path(
470 gypi_values.chrome_browser_non_android_notifications_sources,
471 ".", "//chrome")
472 }
473 }
474 if (enable_themes) {
475 sources += rebase_path(gypi_values.chrome_browser_themes_sources,
476 ".", "//chrome")
477 }
478
vitalybuka93eea402014-11-05 23:47:15479 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31480 # Some form of printing support.
481 sources += rebase_path(gypi_values.chrome_browser_basic_printing_sources,
482 ".", "//chrome")
483 deps += [
[email protected]55699f392014-08-20 22:16:30484 "//printing",
[email protected]dffd8a912014-06-30 23:24:31485 ]
vitalybuka36259ca2014-08-28 23:42:24486 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31487 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
488 ".", "//chrome")
489 }
vitalybuka93eea402014-11-05 23:47:15490 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31491 # Full printing on top of the above.
492 sources += rebase_path(gypi_values.chrome_browser_full_printing_sources,
493 ".", "//chrome")
vitalybuka93eea402014-11-05 23:47:15494 } else {
[email protected]dffd8a912014-06-30 23:24:31495 # Partial-only printing support.
496 sources += rebase_path(
497 gypi_values.chrome_browser_basic_only_printing_sources,
498 ".", "//chrome")
499 }
500 }
501 if (enable_captive_portal_detection) {
502 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
503 ".", "//chrome")
504 }
505 if (enable_session_service) {
506 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
507 ".", "//chrome")
508 }
509
thestigdc377202014-10-28 22:06:02510 if (!is_android && !is_ios && !is_chromeos) {
511 sources += rebase_path(gypi_values.chrome_browser_desktop_sources,
512 ".", "//chrome")
513 }
514
[email protected]dffd8a912014-06-30 23:24:31515 if (is_android || is_ios) {
516 # Mobile.
517 sources += rebase_path(gypi_values.chrome_browser_mobile_sources,
518 ".", "//chrome")
519 } else {
520 # Non-mobile.
521 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
522 ".", "//chrome")
reillyge471fab2014-08-29 01:58:43523 deps += [
reillyge471fab2014-08-29 01:58:43524 "//device/core",
reillygd77718d2014-09-04 00:57:56525 "//device/usb",
reillyge471fab2014-08-29 01:58:43526 ]
[email protected]dffd8a912014-06-30 23:24:31527 }
528
529 if (is_android) {
530 sources += rebase_path(gypi_values.chrome_browser_android_sources,
531 ".", "//chrome")
532 deps += [
James Robinson2ed4d692014-09-17 05:20:58533 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30534 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18535 "//components/enhanced_bookmarks",
536 "//components/history/core/android",
estadee37f8222014-11-07 21:35:22537 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18538 "//components/web_contents_delegate_android",
539 "//third_party/android_opengl/etc1",
[email protected]dffd8a912014-06-30 23:24:31540 ]
541 deps -= [
[email protected]fca567b2014-07-02 17:37:34542 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30543 "//components/feedback",
544 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30545 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31546 ]
547 } else {
548 sources += rebase_path(gypi_values.chrome_browser_non_android_sources,
549 ".", "//chrome")
550 }
551
552 if (is_mac) {
553 deps += [
[email protected]6b5d2f92014-07-30 00:40:03554 "//third_party/google_toolbox_for_mac",
[email protected]dffd8a912014-06-30 23:24:31555 #"../third_party/mozilla/mozilla.gyp:mozilla", TODO(GYP)
556 ]
557 libs += [
558 "Accelerate.framework",
559 "AddressBook.framework",
560 "AudioUnit.framework",
561 "DiskArbitration.framework",
562 "IOKit.framework",
563 "ImageCaptureCore.framework",
564 "OpenGL.framework",
565 "QuartzCore.framework",
566 "SecurityInterface.framework",
567 ]
568 }
569
570 if (enable_rlz) {
571 sources += rebase_path(gypi_values.chrome_browser_rlz_sources,
572 ".", "//chrome")
573 deps += [ "//rlz:rlz_lib" ]
574 }
575
576 # TODO(GYP)
577 # Temporary fix to break the browser target into smaller chunks so it
578 # will link with goma builds.
579 #["OS=="win" and chromium_win_pch==0", {
580 # "msvs_shard": 4,
581 #}],
582
583 if (is_win) {
584 sources += rebase_path(gypi_values.chrome_browser_win_sources,
585 ".", "//chrome")
grtaa9d8d22014-11-13 19:52:36586 if (!is_chrome_branded) {
587 sources -= [
588 "google/did_run_updater_win.cc",
589 "google/did_run_updater_win.h",
590 ]
591 }
Brett Wilsone53895272014-09-23 23:41:46592 public_deps += [
593 "//ui/views",
594 "//ui/views/controls/webview",
595 ]
[email protected]dffd8a912014-06-30 23:24:31596 deps += [
[email protected]55699f392014-08-20 22:16:30597 "//chrome:version_header",
598 "//chrome/installer/util:strings",
599 "//third_party/iaccessible2",
600 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31601 "//third_party/wtl",
602 #"chrome_process_finder", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31603 #"../chrome_elf/chrome_elf.gyp:chrome_elf", TODO(GYP)
604 #"../chrome_elf/chrome_elf.gyp:chrome_elf_constants", TODO(GYP)
605 #"../chrome_elf/chrome_elf.gyp:dll_hash", TODO(GYP)
606 #"../google_update/google_update.gyp:google_update", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31607 #"../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages", TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31608 #"../win8/win8.gyp:metro_viewer", TODO(GYP)
609 ]
[email protected]dffd8a912014-06-30 23:24:31610 } else {
611 # Non-Windows.
612 sources += rebase_path(gypi_values.chrome_browser_non_win_sources,
613 ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37614 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31615 deps += [
[email protected]55699f392014-08-20 22:16:30616 "//ui/views",
617 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31618 ]
619 # TODO(GYP) why is this needed? Very susicious.
620 # "include_dirs": [
621 # "<(INTERMEDIATE_DIR)/chrome",
622 # ],
623 }
624 }
625
626 if (is_linux) {
627 sources += rebase_path(gypi_values.chrome_browser_linux_sources,
628 ".", "//chrome")
629 if (use_aura) {
630 configs += [
631 "//build/config/linux:dbus",
632 "//build/config/linux:fontconfig",
633 ]
634 deps += [
635 "//dbus",
636 ]
637 }
638 if (use_x11) {
639 configs += [ "//build/config/linux:x11" ]
640 deps += [ "//ui/gfx/x" ]
641 }
642 }
643
644 if (is_desktop_linux) {
645 sources += rebase_path(gypi_values.chrome_browser_desktop_linux_sources,
646 ".", "//chrome")
647 }
648 if (enable_plugin_installation) {
649 sources += rebase_path(
650 gypi_values.chrome_browser_plugin_installation_sources,
651 ".", "//chrome")
652 }
653 if (enable_app_list) {
654 deps += [
[email protected]55699f392014-08-20 22:16:30655 "//ui/app_list",
[email protected]dffd8a912014-06-30 23:24:31656 ]
657 }
658 if (enable_managed_users) {
659 sources += rebase_path(
660 gypi_values.chrome_browser_supervised_user_sources,
661 ".", "//chrome")
662 }
thestig169a6362014-11-13 20:47:59663 if (enable_managed_users && enable_themes) {
664 sources += rebase_path(
665 gypi_values.chrome_browser_supervised_user_and_themes_sources,
666 ".", "//chrome")
667 }
[email protected]dffd8a912014-06-30 23:24:31668 if (enable_webrtc) {
669 sources += rebase_path(
670 gypi_values.chrome_browser_webrtc_sources,
671 ".", "//chrome")
672 }
673 if (enable_service_discovery) {
674 sources += rebase_path(
675 gypi_values.chrome_browser_service_discovery_sources,
676 ".", "//chrome")
677 }
678 if (enable_mdns) {
679 sources += rebase_path(
680 gypi_values.chrome_browser_mdns_sources,
681 ".", "//chrome")
682 }
683 if (!enable_autofill_dialog || is_android || is_ios) {
684 sources -= [
685 "autofill/validation_rules_storage_factory.cc",
686 "autofill/validation_rules_storage_factory.h",
687 ]
688 }
689 if (enable_wifi_bootstrapping) {
690 sources += rebase_path(
691 gypi_values.chrome_browser_wifi_bootstrapping_sources,
692 ".", "//chrome")
693 if (is_win || is_mac) {
694 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
695 # and Mac, so this test is meaningless. Can we merge these lists?
696 sources += rebase_path(
697 gypi_values.chrome_browser_win_mac_wifi_bootstrapping_sources,
698 ".", "//chrome")
699 }
700 }
701}
702
James Robinson2ed4d692014-09-17 05:20:58703if (is_android) {
704 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
705 generate_jni("jni_headers") {
706 sources = rebase_path(
707 gypi_values.chrome_browser_jni_sources, ".", "//chrome")
708 jni_package = "chrome"
709 }
710}
711
[email protected]77ce8022014-06-16 19:29:56712# GYP version: chrome/chrome_resources.gyp:chrome_resources
713# (generate_browser_resources action)
714grit("resources") {
715 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41716 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26717 outputs = [
718 "grit/browser_resources.h",
719 "browser_resources.pak",
720 ]
[email protected]77ce8022014-06-16 19:29:56721
722 omnibox_mojom_file = "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
723
724 grit_flags = [
725 "-E", "about_credits_file=" +
726 rebase_path(about_credits_file, root_build_dir),
727 "-E", "additional_modules_list_file=" +
728 rebase_path(additional_modules_list_file, root_build_dir),
729 "-E", "omnibox_mojom_file=" +
730 rebase_path(omnibox_mojom_file, root_build_dir),
731 ]
732
733 deps = [
734 ":about_credits",
735 ":chrome_internal_resources_gen",
[email protected]77ce8022014-06-16 19:29:56736 "//chrome/browser/ui/webui/omnibox:mojo_bindings",
Brett Wilson4263a742014-09-10 00:02:24737 "//mojo/environment:chromium",
[email protected]77ce8022014-06-16 19:29:56738 ]
739}
740
741# GYP version: chrome/chrome_resource.gyp:about_credits
742action("about_credits") {
743 script = "//tools/licenses.py"
744
745 # TODO(phajdan.jr): input dependencies so this can be regenerated
746 # automatically when one of the credits changes. The way this should work is
747 # that licenses.py should write a .d file listing the input dependencies (see
748 # "depfile" in GN).
749 outputs = [ about_credits_file ]
750
751 args = [
752 "credits",
753 rebase_path(about_credits_file, root_build_dir),
754 ]
755}
756
757# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41758if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56759 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41760 script = "internal/transform_additional_modules_list.py"
761 sources = [ "internal/resources/additional_modules_list.input" ]
762 outputs = [ additional_modules_list_file ]
763 args = rebase_path(sources, root_build_dir) +
764 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56765 }
766} else {
767 group("chrome_internal_resources_gen") {
768 # Empty placeholder.
769 }
770}
Brett Wilson052ce132014-09-12 19:46:29771
772# In GYP this is part of test_support_common.
773source_set("test_support") {
774 testonly = true
775
776 # Always include this via the main test support target.
777 visibility = [ "//chrome/test:test_support" ]
778
779 sources = [
780 "browsing_data/mock_browsing_data_appcache_helper.cc",
781 "browsing_data/mock_browsing_data_appcache_helper.h",
782 "browsing_data/mock_browsing_data_channel_id_helper.cc",
783 "browsing_data/mock_browsing_data_channel_id_helper.h",
784 "browsing_data/mock_browsing_data_cookie_helper.cc",
785 "browsing_data/mock_browsing_data_cookie_helper.h",
786 "browsing_data/mock_browsing_data_database_helper.cc",
787 "browsing_data/mock_browsing_data_database_helper.h",
788 "browsing_data/mock_browsing_data_file_system_helper.cc",
789 "browsing_data/mock_browsing_data_file_system_helper.h",
790 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
791 "browsing_data/mock_browsing_data_flash_lso_helper.h",
792 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
793 "browsing_data/mock_browsing_data_indexed_db_helper.h",
794 "browsing_data/mock_browsing_data_local_storage_helper.cc",
795 "browsing_data/mock_browsing_data_local_storage_helper.h",
796 "browsing_data/mock_browsing_data_quota_helper.cc",
797 "browsing_data/mock_browsing_data_quota_helper.h",
798 "browsing_data/mock_browsing_data_service_worker_helper.cc",
799 "browsing_data/mock_browsing_data_service_worker_helper.h",
800 "download/download_test_file_activity_observer.cc",
801 "download/download_test_file_activity_observer.h",
802 "download/test_download_shelf.cc",
803 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:29804 "invalidation/fake_invalidation_service.cc",
805 "invalidation/fake_invalidation_service.h",
806 "media/fake_desktop_media_list.cc",
807 "media/fake_desktop_media_list.h",
808 "net/dns_probe_test_util.cc",
809 "net/dns_probe_test_util.h",
810 "net/url_request_mock_util.cc",
811 "net/url_request_mock_util.h",
812 "notifications/notification_test_util.cc",
813 "notifications/notification_test_util.h",
814 "password_manager/mock_password_store_service.cc",
815 "password_manager/mock_password_store_service.h",
816 "password_manager/null_password_store_service.cc",
817 "password_manager/null_password_store_service.h",
818 "password_manager/test_password_store_service.cc",
819 "password_manager/test_password_store_service.h",
820 "prefs/pref_service_mock_factory.cc",
821 "prefs/pref_service_mock_factory.h",
822 "profile_resetter/profile_resetter_test_base.cc",
823 "profile_resetter/profile_resetter_test_base.h",
824 "search_engines/template_url_service_factory_test_util.cc",
825 "search_engines/template_url_service_factory_test_util.h",
826 "search_engines/template_url_service_test_util.cc",
827 "search_engines/template_url_service_test_util.h",
828 "sessions/session_service_test_helper.cc",
829 "sessions/session_service_test_helper.h",
830 "signin/fake_account_reconcilor.cc",
831 "signin/fake_account_reconcilor.h",
832 "signin/fake_account_tracker_service.cc",
833 "signin/fake_account_tracker_service.h",
834 "signin/fake_profile_oauth2_token_service.cc",
835 "signin/fake_profile_oauth2_token_service.h",
836 "signin/fake_profile_oauth2_token_service_builder.cc",
837 "signin/fake_profile_oauth2_token_service_builder.h",
838 "signin/fake_signin_manager.cc",
839 "signin/fake_signin_manager.h",
840 "ssl/ssl_client_auth_requestor_mock.cc",
841 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:29842 "sync/profile_sync_components_factory_mock.cc",
843 "sync/profile_sync_components_factory_mock.h",
844 "sync/profile_sync_service_mock.cc",
845 "sync/profile_sync_service_mock.h",
846 ]
847
Brett Wilsone53895272014-09-23 23:41:46848 public_deps = [
Brett Wilson052ce132014-09-12 19:46:29849 ":browser",
Brett Wilsone53895272014-09-23 23:41:46850 "//chrome/browser/ui:test_support",
851 ]
852 deps = [
Brett Wilson052ce132014-09-12 19:46:29853 "//base:prefs_test_support",
854 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:29855 "//chrome/common",
856 "//chrome/common/safe_browsing:proto",
857 "//components/invalidation",
858 "//components/invalidation:test_support",
859 "//components/password_manager/core/browser:test_support",
860 "//components/search_engines:test_support",
861 "//content/test:test_support",
862 "//chrome/app/theme:theme_resources",
863 "//net:test_support",
864 "//skia",
865 "//testing/gmock",
866 "//testing/gtest",
867 "//ui/gfx",
868 ]
869
Brett Wilson052ce132014-09-12 19:46:29870 if (!is_ios) {
871 deps += [
872 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:29873 "//google_apis:test_support",
874 ]
875 }
876
James Robinson2ed4d692014-09-17 05:20:58877 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:38878 sources += [
879 "extensions/extension_action_test_util.cc",
880 "extensions/extension_action_test_util.h",
881 ]
James Robinson2ed4d692014-09-17 05:20:58882 deps += [
883 "//extensions:test_support",
884 ]
885 }
886
Brett Wilson052ce132014-09-12 19:46:29887 if (is_chromeos) {
888 sources += [
889 "chromeos/app_mode/fake_cws.cc",
890 "chromeos/app_mode/fake_cws.h",
891 "chromeos/file_manager/fake_disk_mount_manager.cc",
892 "chromeos/file_manager/fake_disk_mount_manager.h",
893 "chromeos/input_method/mock_candidate_window_controller.cc",
894 "chromeos/input_method/mock_candidate_window_controller.h",
895 "chromeos/input_method/mock_input_method_engine.cc",
896 "chromeos/input_method/mock_input_method_engine.h",
897 "chromeos/input_method/mock_input_method_manager.cc",
898 "chromeos/input_method/mock_input_method_manager.h",
899 "chromeos/login/fake_login_utils.cc",
900 "chromeos/login/fake_login_utils.h",
901 "chromeos/login/mock_login_utils.cc",
902 "chromeos/login/mock_login_utils.h",
903 "chromeos/login/users/avatar/mock_user_image_manager.cc",
904 "chromeos/login/users/avatar/mock_user_image_manager.h",
905 "chromeos/login/users/fake_supervised_user_manager.cc",
906 "chromeos/login/users/fake_supervised_user_manager.h",
907 "chromeos/login/users/fake_user_manager.cc",
908 "chromeos/login/users/fake_user_manager.h",
909 "chromeos/login/users/mock_user_manager.cc",
910 "chromeos/login/users/mock_user_manager.h",
911 "chromeos/login/test/oobe_screen_waiter.cc",
912 "chromeos/login/test/oobe_screen_waiter.h",
913 "chromeos/login/test/js_checker.cc",
914 "chromeos/login/test/js_checker.h",
915 "chromeos/login/ui/mock_login_display.cc",
916 "chromeos/login/ui/mock_login_display.h",
917 "chromeos/login/ui/mock_login_display_host.cc",
918 "chromeos/login/ui/mock_login_display_host.h",
919 "chromeos/net/network_portal_detector_test_utils.cc",
920 "chromeos/net/network_portal_detector_test_utils.h",
921 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
922 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
923 "chromeos/policy/device_policy_builder.cc",
924 "chromeos/policy/device_policy_builder.h",
925 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
926 "chromeos/policy/fake_device_cloud_policy_initializer.h",
927 "chromeos/policy/stub_enterprise_install_attributes.cc",
928 "chromeos/policy/stub_enterprise_install_attributes.h",
929 "chromeos/settings/device_settings_test_helper.cc",
930 "chromeos/settings/device_settings_test_helper.h",
931 "chromeos/system/fake_input_device_settings.cc",
932 "chromeos/system/fake_input_device_settings.h",
933 ]
934 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:17935 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:29936 }
937
938 if (enable_configuration_policy) {
939 sources += [
940 "policy/test/local_policy_test_server.cc",
941 "policy/test/local_policy_test_server.h",
942 ]
Brett Wilsone53895272014-09-23 23:41:46943 public_deps += [
Brett Wilson052ce132014-09-12 19:46:29944 "//components/policy:policy_component_test_support",
945 "//components/policy:test_support",
946 ]
Brett Wilson052ce132014-09-12 19:46:29947 }
948
949 if (safe_browsing_mode == 1) {
950 sources += [
951 "extensions/fake_safe_browsing_database_manager.cc",
952 "extensions/fake_safe_browsing_database_manager.h",
953 ]
954 }
955
956 if (enable_extensions) {
957 sources += [
958 "drive/dummy_drive_service.cc",
959 "drive/dummy_drive_service.h",
960 "drive/fake_drive_service.cc",
961 "drive/fake_drive_service.h",
962 "drive/test_util.cc",
963 "drive/test_util.h",
964 "extensions/api/messaging/native_messaging_test_util.cc",
965 "extensions/api/messaging/native_messaging_test_util.h",
966 "extensions/extension_notification_observer.cc",
967 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:29968 "extensions/mock_extension_special_storage_policy.cc",
969 "extensions/mock_extension_special_storage_policy.h",
970 "extensions/test_blacklist.cc",
971 "extensions/test_blacklist.h",
972 "extensions/test_blacklist_state_fetcher.cc",
973 "extensions/test_blacklist_state_fetcher.h",
974 "extensions/test_extension_environment.cc",
975 "extensions/test_extension_environment.h",
976 "extensions/test_extension_prefs.cc",
977 "extensions/test_extension_prefs.h",
978 "extensions/test_extension_service.cc",
979 "extensions/test_extension_service.h",
980 "extensions/test_extension_system.cc",
981 "extensions/test_extension_system.h",
982 "media_galleries/media_galleries_test_util.cc",
983 "media_galleries/media_galleries_test_util.h",
984 ]
985 deps += [
986 "//components/storage_monitor:test_support",
987 ]
988 }
989
990 if (enable_mdns) {
991 sources += [
992 "local_discovery/test_service_discovery_client.cc",
993 "local_discovery/test_service_discovery_client.h",
994 ]
995 }
996
997 if (enable_app_list) {
998 sources += [
999 "ui/app_list/test/chrome_app_list_test_support.cc",
1000 "ui/app_list/test/chrome_app_list_test_support.h",
1001 ]
1002 }
1003
1004 if (enable_wifi_bootstrapping) {
1005 sources += [
1006 "local_discovery/wifi/mock_wifi_manager.cc",
1007 "local_discovery/wifi/mock_wifi_manager.h",
1008 ]
1009 }
1010}