blob: caebc18abc412f510060c0c0057bce76ff524ce5 [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")
scottmga266f952014-12-03 20:47:108
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
scottmga266f952014-12-03 20:47:1024gypi_values = exec_script("//build/gypi_to_gn.py",
25 [ rebase_path("../chrome_browser.gypi") ],
26 "scope",
27 [ "../chrome_browser.gypi" ])
[email protected]dffd8a912014-06-30 23:24:3128
cmasone0a9e4ca2014-10-16 16:40:4929if (is_desktop_linux) {
brettwa68ea2b2015-02-01 02:54:0730 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
31 # will set this up.
cmasone0a9e4ca2014-10-16 16:40:4932 pkg_config("gnome_keyring") {
33 packages = [ "gnome-keyring-1" ]
brettwa68ea2b2015-02-01 02:54:0734 defines = [
35 "USE_GNOME_KEYRING",
36 "DLOPEN_GNOME_KEYRING",
37 ]
38 ignore_libs = true
39 }
40
41 # If you want to link gnome-keyring directly (use only for unit tests)
42 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
43 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
44 # are just itself and common gnome ones we link already, so we can get away
45 # with additionally just coding the library name here.
46 config("gnome_keyring_direct") {
47 libs = [ "gnome-keyring" ]
cmasone0a9e4ca2014-10-16 16:40:4948 }
49}
50
[email protected]dffd8a912014-06-30 23:24:3151static_library("browser") {
apavlove749bca2014-09-30 11:07:4152 configs += [
53 "//build/config/compiler:wexit_time_destructors",
54 "//third_party/WebKit/public:debug_devtools",
55 ]
[email protected]dffd8a912014-06-30 23:24:3156 defines = []
57 sources = []
58 libs = []
59 ldflags = []
60
61 # iOS/non-iOS shared deps. New dependencies should generally be added in the
62 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:4663 public_deps = [
64 "//components/autofill/core/browser",
65 "//content/public/browser",
66 "//sql",
67 "//sync",
68 ]
[email protected]dffd8a912014-06-30 23:24:3169 deps = [
70 "//base/allocator",
71 "//chrome:extra_resources",
72 "//chrome:resources",
73 "//chrome:strings",
[email protected]797b25042014-07-01 23:54:1774 "//chrome/app:generated_resources_map",
[email protected]855b7de2014-07-08 21:02:4575 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:1776 "//chrome/app/theme:theme_resources",
sdefresne039209fc2015-03-09 15:33:1777 "//chrome/browser/autocomplete:in_memory_url_index_cache_proto",
[email protected]855b7de2014-07-08 21:02:4578 "//chrome/browser/net:cert_logger_proto",
[email protected]797b25042014-07-01 23:54:1779 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:3080 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:3181 "//chrome/common",
82 "//chrome/common/net",
[email protected]604828c2014-07-02 20:39:1283 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:0184 "//components/bookmarks/browser",
[email protected]b9f4c682014-07-10 22:00:3785 "//components/captive_portal",
[email protected]fca567b2014-07-02 17:37:3486 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:0187 "//components/component_updater",
vasiliiac461392014-09-18 11:35:1788 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:5489 "//components/content_settings/core/common",
[email protected]478ed232014-08-19 02:10:5590 "//components/crx_file",
megjablon3476e042014-10-14 19:21:5991 "//components/data_reduction_proxy/core/browser",
reillyg4a849272015-02-20 21:38:4392 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:2593 "//components/domain_reliability",
noyaudaaac3a2014-10-08 11:11:1194 "//components/enhanced_bookmarks",
[email protected]273ae5ab2014-07-09 21:10:2595 "//components/favicon_base",
sdefresnefee69b42015-03-16 16:56:0396 "//components/favicon/core/browser",
[email protected]abd4b682014-07-16 20:26:3097 "//components/gcm_driver",
Brett Wilson1c693992014-08-25 19:10:0198 "//components/google/core/browser",
erikchen332265b2014-11-14 19:59:5299 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25100 "//components/history/core/browser",
101 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01102 "//components/infobars/core",
103 "//components/invalidation",
gunsch1afc65172014-09-16 00:03:32104 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34105 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06106 "//components/metrics:profiler",
Brett Wilson1c693992014-08-25 19:10:01107 "//components/metrics/proto:proto",
[email protected]fca567b2014-07-02 17:37:34108 "//components/navigation_metrics",
Brett Wilson1c693992014-08-25 19:10:01109 "//components/network_time",
[email protected]b1c5ab682014-08-07 11:53:17110 "//components/omnibox",
[email protected]fca567b2014-07-02 17:37:34111 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00112 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01113 "//components/password_manager/core/browser",
114 "//components/password_manager/core/common",
[email protected]fca567b2014-07-02 17:37:34115 "//components/policy:policy_component",
Brett Wilson1c693992014-08-25 19:10:01116 "//components/precache/core",
[email protected]fca567b2014-07-02 17:37:34117 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37118 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01119 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40120 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01121 "//components/search_engines",
122 "//components/search_provider_logos",
[email protected]abd4b682014-07-16 20:26:30123 "//components/signin/core/browser",
124 "//components/startup_metric_utils",
[email protected]797b25042014-07-01 23:54:17125 "//components/strings",
mathp60143a32014-10-08 14:52:45126 "//components/suggestions",
Brett Wilson1c693992014-08-25 19:10:01127 "//components/sync_driver",
[email protected]b9f4c682014-07-10 22:00:37128 "//components/translate/core/browser",
129 "//components/translate/core/common",
wjmaclean7f63c6b2014-12-09 14:59:55130 "//components/ui/zoom:ui_zoom",
sorin39eab2f2015-01-06 01:09:08131 "//components/update_client",
[email protected]273ae5ab2014-07-09 21:10:25132 "//components/url_fixer",
[email protected]fca567b2014-07-02 17:37:34133 "//components/user_prefs",
isherman3be67db2014-10-24 05:57:44134 "//components/variations",
135 "//components/variations/net",
[email protected]bf4545f2014-07-11 19:49:46136 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56137 "//components/webdata_services",
drogerf8479942014-11-21 17:47:53138 "//components/web_resource",
[email protected]dffd8a912014-06-30 23:24:31139 "//content/public/browser",
140 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12141 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31142 "//crypto",
[email protected]604828c2014-07-02 20:39:12143 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56144 "//gpu/config",
ajwongf7b1cb692014-08-23 21:36:22145 "//jingle:notifier",
[email protected]dffd8a912014-06-30 23:24:31146 "//skia",
147 "//sql",
148 "//sync",
[email protected]797b25042014-07-01 23:54:17149 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31150 "//third_party/icu",
151 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22152 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31153 "//third_party/widevine/cdm:version_h",
154 "//third_party/zlib",
155 "//third_party/zlib:minizip",
156 "//third_party/zlib:zip",
157 "//ui/base",
cjhopman09981a92014-10-27 17:11:18158 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31159 "//ui/gfx",
160 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36161 "//ui/message_center",
162 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31163 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17164 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31165 ]
166
scottmga266f952014-12-03 20:47:10167 sources +=
168 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00169
[email protected]dffd8a912014-06-30 23:24:31170 if (!is_ios) {
scottmga266f952014-12-03 20:47:10171 sources +=
172 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59173 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10174 ".",
175 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59176 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10177 ".",
178 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18179 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
180 ".",
181 "//chrome")
182 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
183 ".",
184 "//chrome")
scottmga266f952014-12-03 20:47:10185 sources +=
186 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
187 sources +=
188 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
189 sources +=
190 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
191 sources +=
192 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
193 sources +=
194 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59195 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10196 ".",
197 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59198 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10199 ".",
200 "//chrome")
201 sources +=
202 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59203 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10204 ".",
205 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59206 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10207 ".",
208 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59209 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10210 ".",
211 "//chrome")
212 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18213 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
214 sources +=
scottmga266f952014-12-03 20:47:10215 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
216 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18217 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
218 sources +=
scottmga266f952014-12-03 20:47:10219 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59220 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10221 ".",
222 "//chrome")
223
[email protected]dffd8a912014-06-30 23:24:31224 deps += [
Brett Wilson1c693992014-08-25 19:10:01225 "//apps",
[email protected]dffd8a912014-06-30 23:24:31226 "//cc",
brettwca934582015-02-24 21:50:27227 "//chrome/app:generated_resources_map",
228 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30229 "//chrome/browser/devtools",
brettwca934582015-02-24 21:50:27230 "//chrome/browser/resources:component_extension_resources",
[email protected]55699f392014-08-20 22:16:30231 "//chrome/installer/util",
oshimaf65398422014-11-18 23:30:42232 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37233 "//components/autofill/content/browser",
jeremyim364ac1182015-03-03 18:49:43234 "//components/data_reduction_proxy/content/browser",
[email protected]b9f4c682014-07-10 22:00:37235 "//components/dom_distiller/content",
sdefresne715246622015-01-12 16:24:04236 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34237 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30238 "//components/navigation_interception",
239 "//components/password_manager/content/browser",
240 "//components/precache/content",
rohitraod16f44e2014-10-24 15:34:35241 "//components/sessions:sessions_content",
[email protected]abd4b682014-07-16 20:26:30242 "//components/storage_monitor",
[email protected]b9f4c682014-07-10 22:00:37243 "//components/translate/content/browser",
[email protected]fca567b2014-07-02 17:37:34244 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31245 "//components/visitedlink/browser",
246 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18247 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37248 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08249 "//content/app/resources",
[email protected]55699f392014-08-20 22:16:30250 "//media",
cjhopman09981a92014-10-27 17:11:18251 "//mojo/common",
[email protected]604828c2014-07-02 20:39:12252 "//mojo/environment:chromium",
Brett Wilson83fd4242014-09-02 19:45:33253 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31254 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15255 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24256 "//storage/common",
[email protected]4eebe74d2014-08-13 02:54:46257 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31258 "//third_party/expat",
259 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34260 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31261 "//third_party/libyuv",
blundell70fb547672015-01-19 17:18:33262 "//third_party/mojo/src/mojo/edk/system",
263 "//third_party/mojo/src/mojo/public/cpp/bindings",
264 "//third_party/mojo/src/mojo/public/js",
[email protected]dffd8a912014-06-30 23:24:31265 "//third_party/npapi",
266 "//third_party/re2",
267 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33268 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12269 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31270 "//ui/gl",
brettwca934582015-02-24 21:50:27271 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31272 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12273 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34274 "//v8",
[email protected]dffd8a912014-06-30 23:24:31275 ]
276 } else { # iOS
scottmga266f952014-12-03 20:47:10277 sources +=
278 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
279 sources +=
280 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
281 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31282 libs += [
283 "CoreTelephony.framework",
284 "CoreText.framework",
285 "MobileCoreServices.framework",
286 "QuartzCore.framework",
287 ]
scottmga266f952014-12-03 20:47:10288 ldflags += [
289 "-weak_framework",
290 "CoreImage",
291 ]
[email protected]dffd8a912014-06-30 23:24:31292 }
293
294 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10295 sources +=
296 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31297 }
298 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
299 sources += [
300 "net/disk_cache_dir_policy_handler.cc",
301 "net/disk_cache_dir_policy_handler.h",
302 ]
303 }
304 if (!is_android && !is_ios && enable_configuration_policy) {
305 sources += [
306 "download/download_dir_policy_handler.cc",
307 "download/download_dir_policy_handler.h",
308 ]
309 }
310 if (is_mac) {
scottmga266f952014-12-03 20:47:10311 sources +=
312 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31313 deps += [
314 #"app_shim" TODO(GYP)
tapted63829f72014-09-24 23:50:50315 #"browser_app_shim" TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31316 ]
317 }
[email protected]dffd8a912014-06-30 23:24:31318 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46319 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52320 deps += [
[email protected]cc5b3be2014-08-15 23:24:52321 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30322 "//chrome/common/extensions/api",
323 "//chrome/common/extensions/api:api_registration",
tengs4758c082014-12-19 18:51:44324 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50325 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06326 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52327 ]
[email protected]dffd8a912014-06-30 23:24:31328 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10329 ".",
330 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31331 }
332 if (enable_background) {
333 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10334 ".",
335 "//chrome")
jamesr29ea2d122014-10-23 10:30:27336 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31337 sources -= [ "background/background_mode_manager_aura.cc" ]
338 }
339 }
340 if (enable_task_manager) {
341 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10342 ".",
343 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31344 }
345 if (enable_spellcheck) {
346 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10347 ".",
348 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31349 deps += [ "//third_party/hunspell" ]
350 }
351 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10352 sources +=
353 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
dpranke6065cf72015-02-26 03:30:58354 deps += [ "//components/nacl:nacl_browser" ]
[email protected]dffd8a912014-06-30 23:24:31355 }
apavlove749bca2014-09-30 11:07:41356
[email protected]dffd8a912014-06-30 23:24:31357 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10358 sources +=
359 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
360 ".",
361 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31362 deps += [
[email protected]604828c2014-07-02 20:39:12363 "//components/policy",
[email protected]797b25042014-07-01 23:54:17364 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31365 ]
366 if (!is_ios) {
scottmga266f952014-12-03 20:47:10367 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
368 ".",
369 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31370 }
371 if (!is_chromeos) {
372 sources += rebase_path(
scottmga266f952014-12-03 20:47:10373 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
374 ".",
375 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31376 }
377 if (is_win || is_mac || is_desktop_linux) {
378 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10379 ".",
380 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31381 }
cjhopman09981a92014-10-27 17:11:18382 if (is_android || is_ios) {
383 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10384 ".",
385 "//chrome")
cjhopman09981a92014-10-27 17:11:18386 } else {
amistry6e1ed1b2015-03-12 05:24:01387 deps += [
388 "//chrome/browser/policy:path_parser",
389 "//net:net_browser_services",
390 ]
[email protected]dffd8a912014-06-30 23:24:31391 }
392 } else {
393 # Configuration policy disabled.
394 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10395 ".",
396 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31397 }
398
399 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10400 sources +=
401 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31402 deps += [
James Robinson2ed4d692014-09-17 05:20:58403 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31404 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14405 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31406 ]
407 }
408 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10409 sources +=
stuartmorgan1b3df822014-12-08 14:36:11410 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10411 ".",
412 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31413 deps += [
[email protected]fca567b2014-07-02 17:37:34414 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45415 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34416 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31417 ]
418 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10419 sources +=
stuartmorgan1b3df822014-12-08 14:36:11420 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10421 ".",
422 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31423 defines += [ "FULL_SAFE_BROWSING" ]
scottmga266f952014-12-03 20:47:10424 deps += [ "//chrome/common/safe_browsing:proto" ]
[email protected]dffd8a912014-06-30 23:24:31425 } else if (safe_browsing_mode == 2) {
426 defines += [ "MOBILE_SAFE_BROWSING" ]
427 }
428 }
429
430 if (is_linux) {
thestigee816c272014-11-22 02:47:51431 deps += [
432 "//device/media_transfer_protocol",
scottmga266f952014-12-03 20:47:10433 "//device/udev_linux",
thestigee816c272014-11-22 02:47:51434 ]
[email protected]dffd8a912014-06-30 23:24:31435 }
436 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47437 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31438 }
439
440 if (is_chromeos) {
441 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10442 ".",
443 "//chrome")
444 deps += [ "//chrome/browser/chromeos" ]
[email protected]dffd8a912014-06-30 23:24:31445 } else {
446 # Non-ChromeOS.
447 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
scottmga266f952014-12-03 20:47:10448 ".",
449 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31450 }
451
yiyaoliubcd08dc22014-12-10 05:56:10452 if (is_ios) {
453 sources -= [
454 "metrics/signin_status_metrics_provider_base.cc",
455 "metrics/signin_status_metrics_provider_base.h",
456 ]
457 }
458
mukai8c99b882014-10-15 03:07:59459 if (is_chromeos || is_ios) {
460 sources -= [
461 "metrics/signin_status_metrics_provider.cc",
462 "metrics/signin_status_metrics_provider.h",
463 ]
464 }
465
[email protected]dffd8a912014-06-30 23:24:31466 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12467 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31468 }
469 if (is_desktop_linux) {
470 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10471 ".",
472 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49473 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31474 }
dvadym34532022015-01-22 15:42:51475 if (is_desktop_linux) {
476 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
477 ".",
478 "//chrome")
479 defines += [ "USE_LIBSECRET" ]
480 }
[email protected]dffd8a912014-06-30 23:24:31481 if (use_aura) {
scottmga266f952014-12-03 20:47:10482 sources +=
483 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31484 deps += [
[email protected]fca567b2014-07-02 17:37:34485 "//ui/aura",
486 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12487 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31488 ]
489 }
490 if (ui_compositor_image_transport) {
491 deps += [ "//ui/gl" ]
492 }
493
[email protected]855b7de2014-07-08 21:02:45494 if (use_ash) {
scottmga266f952014-12-03 20:47:10495 sources +=
496 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45497 }
498
[email protected]dffd8a912014-06-30 23:24:31499 if (use_x11) {
scottmga266f952014-12-03 20:47:10500 sources +=
501 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23502 } else {
503 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31504 }
505 if (is_posix && !is_mac && !is_ios) {
506 sources += [
rseseka0a7a042014-09-18 23:59:20507 "//chrome/app/chrome_crash_reporter_client.cc",
508 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31509 ]
510 deps += [
Robert Sesekabcd8102014-08-27 16:12:44511 "//components/crash/app",
512 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31513 ]
514 }
515 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10516 sources +=
517 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59518 if (is_chromeos) {
519 sources -= [ "net/nss_context_linux.cc" ]
520 }
[email protected]dffd8a912014-06-30 23:24:31521 }
522 if (enable_notifications) {
523 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10524 ".",
525 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31526 if (!is_android) {
527 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11528 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10529 ".",
530 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31531 }
532 }
533 if (enable_themes) {
scottmga266f952014-12-03 20:47:10534 sources +=
535 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31536 }
537
vitalybuka93eea402014-11-05 23:47:15538 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31539 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11540 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10541 ".",
542 "//chrome")
543 deps += [ "//printing" ]
vitalybuka36259ca2014-08-28 23:42:24544 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31545 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10546 ".",
547 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31548 }
vitalybuka93eea402014-11-05 23:47:15549 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31550 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11551 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10552 ".",
553 "//chrome")
vitalybuka93eea402014-11-05 23:47:15554 } else {
[email protected]dffd8a912014-06-30 23:24:31555 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10556 sources +=
stuartmorgan1b3df822014-12-08 14:36:11557 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10558 ".",
559 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31560 }
561 }
562 if (enable_captive_portal_detection) {
563 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10564 ".",
565 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31566 }
567 if (enable_session_service) {
568 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10569 ".",
570 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31571 }
572
thestigdc377202014-10-28 22:06:02573 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10574 sources +=
575 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02576 }
577
[email protected]dffd8a912014-06-30 23:24:31578 if (is_android || is_ios) {
579 # Mobile.
scottmga266f952014-12-03 20:47:10580 sources +=
581 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31582 } else {
583 # Non-mobile.
584 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10585 ".",
586 "//chrome")
reillyge471fab2014-08-29 01:58:43587 deps += [
sdefresnebbf563c2015-03-17 11:09:09588 "//components/feedback",
reillyge471fab2014-08-29 01:58:43589 "//device/core",
reillygd77718d2014-09-04 00:57:56590 "//device/usb",
reillyge471fab2014-08-29 01:58:43591 ]
[email protected]dffd8a912014-06-30 23:24:31592 }
593
594 if (is_android) {
scottmga266f952014-12-03 20:47:10595 sources +=
596 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31597 deps += [
James Robinson2ed4d692014-09-17 05:20:58598 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30599 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18600 "//components/enhanced_bookmarks",
estadee37f8222014-11-07 21:35:22601 "//components/resources:components_resources",
cjhopman09981a92014-10-27 17:11:18602 "//components/web_contents_delegate_android",
603 "//third_party/android_opengl/etc1",
twellington0bc61492015-01-30 20:14:13604 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31605 ]
606 deps -= [
[email protected]fca567b2014-07-02 17:37:34607 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30608 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30609 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31610 ]
megjablon5effca2e2015-02-13 23:54:07611 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
rseseke59ea892015-03-19 22:27:44612
613 if (use_seccomp_bpf) {
614 defines += [ "USE_SECCOMP_BPF" ]
615 }
[email protected]dffd8a912014-06-30 23:24:31616 }
617
618 if (is_mac) {
619 deps += [
[email protected]6b5d2f92014-07-30 00:40:03620 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03621 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31622 ]
623 libs += [
624 "Accelerate.framework",
625 "AddressBook.framework",
626 "AudioUnit.framework",
627 "DiskArbitration.framework",
628 "IOKit.framework",
629 "ImageCaptureCore.framework",
630 "OpenGL.framework",
631 "QuartzCore.framework",
632 "SecurityInterface.framework",
633 ]
634 }
635
636 if (enable_rlz) {
scottmga266f952014-12-03 20:47:10637 sources +=
638 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31639 deps += [ "//rlz:rlz_lib" ]
640 }
641
642 # TODO(GYP)
643 # Temporary fix to break the browser target into smaller chunks so it
644 # will link with goma builds.
645 #["OS=="win" and chromium_win_pch==0", {
646 # "msvs_shard": 4,
647 #}],
648
649 if (is_win) {
scottmga266f952014-12-03 20:47:10650 sources +=
651 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
grtaa9d8d22014-11-13 19:52:36652 if (!is_chrome_branded) {
653 sources -= [
654 "google/did_run_updater_win.cc",
655 "google/did_run_updater_win.h",
656 ]
657 }
Brett Wilsone53895272014-09-23 23:41:46658 public_deps += [
659 "//ui/views",
660 "//ui/views/controls/webview",
661 ]
[email protected]dffd8a912014-06-30 23:24:31662 deps += [
vchigrin9593e7a2015-01-27 10:08:19663 ":chrome_process_finder",
[email protected]55699f392014-08-20 22:16:30664 "//chrome:version_header",
665 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19666 "//chrome_elf",
667 "//chrome_elf:constants",
668 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32669 "//components/browser_watcher",
670 "//components/browser_watcher:browser_watcher_client",
vchigrinbbc23e72015-01-21 22:49:23671 "//google_update",
[email protected]55699f392014-08-20 22:16:30672 "//third_party/iaccessible2",
673 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31674 "//third_party/wtl",
vchigrin88ed6f42015-01-17 11:56:42675 "//ui/metro_viewer",
676 "//win8:metro_viewer",
[email protected]dffd8a912014-06-30 23:24:31677 ]
vchigrin61944ae2015-01-30 23:51:32678 libs += [ "credui.lib" ]
[email protected]dffd8a912014-06-30 23:24:31679 } else {
680 # Non-Windows.
scottmga266f952014-12-03 20:47:10681 sources +=
682 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37683 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31684 deps += [
scottmga266f952014-12-03 20:47:10685 "//ui/views",
686 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31687 ]
[email protected]dffd8a912014-06-30 23:24:31688 }
689 }
690
691 if (is_linux) {
scottmga266f952014-12-03 20:47:10692 sources +=
693 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31694 if (use_aura) {
695 configs += [
696 "//build/config/linux:dbus",
697 "//build/config/linux:fontconfig",
698 ]
scottmga266f952014-12-03 20:47:10699 deps += [ "//dbus" ]
[email protected]dffd8a912014-06-30 23:24:31700 }
701 if (use_x11) {
702 configs += [ "//build/config/linux:x11" ]
703 deps += [ "//ui/gfx/x" ]
704 }
705 }
706
707 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54708 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10709 ".",
710 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31711 }
712 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10713 sources +=
714 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
715 ".",
716 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31717 }
718 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10719 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31720 }
treib87bb89cbb2014-12-01 16:01:47721 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10722 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
723 ".",
724 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31725 }
treib87bb89cbb2014-12-01 16:01:47726 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59727 sources += rebase_path(
scottmga266f952014-12-03 20:47:10728 gypi_values.chrome_browser_supervised_user_and_themes_sources,
729 ".",
730 "//chrome")
thestig169a6362014-11-13 20:47:59731 }
[email protected]dffd8a912014-06-30 23:24:31732 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10733 sources +=
734 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31735 }
736 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10737 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
738 ".",
739 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31740 }
741 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10742 sources +=
743 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31744 }
745 if (!enable_autofill_dialog || is_android || is_ios) {
746 sources -= [
747 "autofill/validation_rules_storage_factory.cc",
748 "autofill/validation_rules_storage_factory.h",
749 ]
750 }
751 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10752 sources +=
753 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
754 ".",
755 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31756 if (is_win || is_mac) {
757 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
758 # and Mac, so this test is meaningless. Can we merge these lists?
759 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11760 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10761 ".",
762 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31763 }
764 }
765}
766
James Robinson2ed4d692014-09-17 05:20:58767if (is_android) {
768 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
769 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10770 sources =
771 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58772 jni_package = "chrome"
773 }
774}
775
vchigrin9593e7a2015-01-27 10:08:19776if (is_win) {
777 source_set("chrome_process_finder") {
778 sources = [
779 "chrome_process_finder_win.cc",
780 "chrome_process_finder_win.h",
781 ]
782 deps = [
783 "//base",
784 "//chrome/browser/metro_utils",
785 "//chrome/common:constants",
786 ]
787 if (enable_configuration_policy) {
788 deps += [ "//chrome/browser/policy:path_parser" ]
789 }
790 }
791}
792
[email protected]77ce8022014-06-16 19:29:56793# GYP version: chrome/chrome_resources.gyp:chrome_resources
794# (generate_browser_resources action)
795grit("resources") {
796 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41797 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26798 outputs = [
799 "grit/browser_resources.h",
800 "browser_resources.pak",
801 ]
[email protected]77ce8022014-06-16 19:29:56802
scottmga266f952014-12-03 20:47:10803 omnibox_mojom_file =
804 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
[email protected]77ce8022014-06-16 19:29:56805
806 grit_flags = [
scottmga266f952014-12-03 20:47:10807 "-E",
808 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
809 "-E",
810 "additional_modules_list_file=" +
811 rebase_path(additional_modules_list_file, root_build_dir),
812 "-E",
813 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56814 ]
815
816 deps = [
817 ":about_credits",
818 ":chrome_internal_resources_gen",
vchigrin8eede942015-01-29 09:28:15819 ]
820 inputs = [
821 omnibox_mojom_file,
[email protected]77ce8022014-06-16 19:29:56822 ]
823}
824
825# GYP version: chrome/chrome_resource.gyp:about_credits
826action("about_credits") {
827 script = "//tools/licenses.py"
828
dbeamc7776c72014-12-17 02:24:05829 inputs = [
830 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
831 # generate a .d file with all the licenses/credits that about:credits uses.
832 # Then about:credits will automatically rebuild when one of them changes.
833 # See: depfile in gn's documentation (gn help depfile).
834 "resources/about_credits.tmpl",
835 "resources/about_credits_entry.tmpl",
836 ]
837
scottmga266f952014-12-03 20:47:10838 outputs = [
839 about_credits_file,
840 ]
[email protected]77ce8022014-06-16 19:29:56841
842 args = [
843 "credits",
844 rebase_path(about_credits_file, root_build_dir),
845 ]
846}
847
848# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41849if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56850 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41851 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10852 sources = [
853 "internal/resources/additional_modules_list.input",
854 ]
855 outputs = [
856 additional_modules_list_file,
857 ]
engedy99d0e11b2014-09-30 13:32:41858 args = rebase_path(sources, root_build_dir) +
859 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56860 }
861} else {
862 group("chrome_internal_resources_gen") {
863 # Empty placeholder.
864 }
865}
Brett Wilson052ce132014-09-12 19:46:29866
867# In GYP this is part of test_support_common.
868source_set("test_support") {
869 testonly = true
870
871 # Always include this via the main test support target.
872 visibility = [ "//chrome/test:test_support" ]
873
874 sources = [
875 "browsing_data/mock_browsing_data_appcache_helper.cc",
876 "browsing_data/mock_browsing_data_appcache_helper.h",
877 "browsing_data/mock_browsing_data_channel_id_helper.cc",
878 "browsing_data/mock_browsing_data_channel_id_helper.h",
879 "browsing_data/mock_browsing_data_cookie_helper.cc",
880 "browsing_data/mock_browsing_data_cookie_helper.h",
881 "browsing_data/mock_browsing_data_database_helper.cc",
882 "browsing_data/mock_browsing_data_database_helper.h",
883 "browsing_data/mock_browsing_data_file_system_helper.cc",
884 "browsing_data/mock_browsing_data_file_system_helper.h",
885 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
886 "browsing_data/mock_browsing_data_flash_lso_helper.h",
887 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
888 "browsing_data/mock_browsing_data_indexed_db_helper.h",
889 "browsing_data/mock_browsing_data_local_storage_helper.cc",
890 "browsing_data/mock_browsing_data_local_storage_helper.h",
891 "browsing_data/mock_browsing_data_quota_helper.cc",
892 "browsing_data/mock_browsing_data_quota_helper.h",
893 "browsing_data/mock_browsing_data_service_worker_helper.cc",
894 "browsing_data/mock_browsing_data_service_worker_helper.h",
895 "download/download_test_file_activity_observer.cc",
896 "download/download_test_file_activity_observer.h",
897 "download/test_download_shelf.cc",
898 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:29899 "invalidation/fake_invalidation_service.cc",
900 "invalidation/fake_invalidation_service.h",
901 "media/fake_desktop_media_list.cc",
902 "media/fake_desktop_media_list.h",
903 "net/dns_probe_test_util.cc",
904 "net/dns_probe_test_util.h",
905 "net/url_request_mock_util.cc",
906 "net/url_request_mock_util.h",
907 "notifications/notification_test_util.cc",
908 "notifications/notification_test_util.h",
909 "password_manager/mock_password_store_service.cc",
910 "password_manager/mock_password_store_service.h",
911 "password_manager/null_password_store_service.cc",
912 "password_manager/null_password_store_service.h",
913 "password_manager/test_password_store_service.cc",
914 "password_manager/test_password_store_service.h",
915 "prefs/pref_service_mock_factory.cc",
916 "prefs/pref_service_mock_factory.h",
917 "profile_resetter/profile_resetter_test_base.cc",
918 "profile_resetter/profile_resetter_test_base.h",
919 "search_engines/template_url_service_factory_test_util.cc",
920 "search_engines/template_url_service_factory_test_util.h",
921 "search_engines/template_url_service_test_util.cc",
922 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:45923 "sessions/session_restore_test_helper.cc",
924 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:29925 "sessions/session_service_test_helper.cc",
926 "sessions/session_service_test_helper.h",
927 "signin/fake_account_reconcilor.cc",
928 "signin/fake_account_reconcilor.h",
929 "signin/fake_account_tracker_service.cc",
930 "signin/fake_account_tracker_service.h",
931 "signin/fake_profile_oauth2_token_service.cc",
932 "signin/fake_profile_oauth2_token_service.h",
933 "signin/fake_profile_oauth2_token_service_builder.cc",
934 "signin/fake_profile_oauth2_token_service_builder.h",
935 "signin/fake_signin_manager.cc",
936 "signin/fake_signin_manager.h",
937 "ssl/ssl_client_auth_requestor_mock.cc",
938 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:29939 "sync/profile_sync_components_factory_mock.cc",
940 "sync/profile_sync_components_factory_mock.h",
941 "sync/profile_sync_service_mock.cc",
942 "sync/profile_sync_service_mock.h",
shadi2f257fc2014-12-03 18:04:12943 "ui/webui/signin/login_ui_test_utils.cc",
944 "ui/webui/signin/login_ui_test_utils.h",
Brett Wilson052ce132014-09-12 19:46:29945 ]
946
Brett Wilsone53895272014-09-23 23:41:46947 public_deps = [
Brett Wilson052ce132014-09-12 19:46:29948 ":browser",
Brett Wilsone53895272014-09-23 23:41:46949 "//chrome/browser/ui:test_support",
950 ]
951 deps = [
Brett Wilson052ce132014-09-12 19:46:29952 "//base:prefs_test_support",
953 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:29954 "//chrome/common",
955 "//chrome/common/safe_browsing:proto",
956 "//components/invalidation",
957 "//components/invalidation:test_support",
958 "//components/password_manager/core/browser:test_support",
959 "//components/search_engines:test_support",
960 "//content/test:test_support",
961 "//chrome/app/theme:theme_resources",
962 "//net:test_support",
963 "//skia",
964 "//testing/gmock",
965 "//testing/gtest",
966 "//ui/gfx",
967 ]
968
Brett Wilson052ce132014-09-12 19:46:29969 if (!is_ios) {
970 deps += [
971 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:29972 "//google_apis:test_support",
973 ]
974 }
975
James Robinson2ed4d692014-09-17 05:20:58976 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:38977 sources += [
978 "extensions/extension_action_test_util.cc",
979 "extensions/extension_action_test_util.h",
980 ]
scottmga266f952014-12-03 20:47:10981 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:58982 }
983
Brett Wilson052ce132014-09-12 19:46:29984 if (is_chromeos) {
985 sources += [
986 "chromeos/app_mode/fake_cws.cc",
987 "chromeos/app_mode/fake_cws.h",
988 "chromeos/file_manager/fake_disk_mount_manager.cc",
989 "chromeos/file_manager/fake_disk_mount_manager.h",
990 "chromeos/input_method/mock_candidate_window_controller.cc",
991 "chromeos/input_method/mock_candidate_window_controller.h",
992 "chromeos/input_method/mock_input_method_engine.cc",
993 "chromeos/input_method/mock_input_method_engine.h",
994 "chromeos/input_method/mock_input_method_manager.cc",
995 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:51996 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
997 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:39998 "chromeos/login/session/user_session_manager_test_api.cc",
999 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291000 "chromeos/login/test/js_checker.cc",
1001 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591002 "chromeos/login/test/oobe_screen_waiter.cc",
1003 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291004 "chromeos/login/ui/mock_login_display.cc",
1005 "chromeos/login/ui/mock_login_display.h",
1006 "chromeos/login/ui/mock_login_display_host.cc",
1007 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511008 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1009 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301010 "chromeos/login/users/fake_chrome_user_manager.cc",
1011 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511012 "chromeos/login/users/fake_supervised_user_manager.cc",
1013 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511014 "chromeos/login/users/mock_user_manager.cc",
1015 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291016 "chromeos/net/network_portal_detector_test_utils.cc",
1017 "chromeos/net/network_portal_detector_test_utils.h",
1018 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1019 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1020 "chromeos/policy/device_policy_builder.cc",
1021 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071022 "chromeos/policy/fake_consumer_management_service.cc",
1023 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291024 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1025 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071026 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1027 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291028 "chromeos/policy/stub_enterprise_install_attributes.cc",
1029 "chromeos/policy/stub_enterprise_install_attributes.h",
1030 "chromeos/settings/device_settings_test_helper.cc",
1031 "chromeos/settings/device_settings_test_helper.h",
1032 "chromeos/system/fake_input_device_settings.cc",
1033 "chromeos/system/fake_input_device_settings.h",
1034 ]
1035 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:171036 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291037 }
1038
1039 if (enable_configuration_policy) {
1040 sources += [
1041 "policy/test/local_policy_test_server.cc",
1042 "policy/test/local_policy_test_server.h",
1043 ]
Brett Wilsone53895272014-09-23 23:41:461044 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291045 "//components/policy:policy_component_test_support",
1046 "//components/policy:test_support",
1047 ]
Brett Wilson052ce132014-09-12 19:46:291048 }
1049
1050 if (safe_browsing_mode == 1) {
1051 sources += [
1052 "extensions/fake_safe_browsing_database_manager.cc",
1053 "extensions/fake_safe_browsing_database_manager.h",
1054 ]
1055 }
1056
1057 if (enable_extensions) {
1058 sources += [
1059 "drive/dummy_drive_service.cc",
1060 "drive/dummy_drive_service.h",
1061 "drive/fake_drive_service.cc",
1062 "drive/fake_drive_service.h",
1063 "drive/test_util.cc",
1064 "drive/test_util.h",
1065 "extensions/api/messaging/native_messaging_test_util.cc",
1066 "extensions/api/messaging/native_messaging_test_util.h",
1067 "extensions/extension_notification_observer.cc",
1068 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:291069 "extensions/mock_extension_special_storage_policy.cc",
1070 "extensions/mock_extension_special_storage_policy.h",
1071 "extensions/test_blacklist.cc",
1072 "extensions/test_blacklist.h",
1073 "extensions/test_blacklist_state_fetcher.cc",
1074 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511075 "extensions/test_extension_dir.cc",
1076 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591077 "extensions/test_extension_environment.cc",
1078 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291079 "extensions/test_extension_prefs.cc",
1080 "extensions/test_extension_prefs.h",
1081 "extensions/test_extension_service.cc",
1082 "extensions/test_extension_service.h",
1083 "extensions/test_extension_system.cc",
1084 "extensions/test_extension_system.h",
1085 "media_galleries/media_galleries_test_util.cc",
1086 "media_galleries/media_galleries_test_util.h",
1087 ]
scottmga266f952014-12-03 20:47:101088 deps += [ "//components/storage_monitor:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291089 }
1090
1091 if (enable_mdns) {
1092 sources += [
1093 "local_discovery/test_service_discovery_client.cc",
1094 "local_discovery/test_service_discovery_client.h",
1095 ]
1096 }
1097
1098 if (enable_app_list) {
1099 sources += [
1100 "ui/app_list/test/chrome_app_list_test_support.cc",
1101 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511102 "ui/app_list/test/test_app_list_controller_delegate.cc",
1103 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291104 ]
1105 }
1106
1107 if (enable_wifi_bootstrapping) {
1108 sources += [
1109 "local_discovery/wifi/mock_wifi_manager.cc",
1110 "local_discovery/wifi/mock_wifi_manager.h",
1111 ]
1112 }
1113}