blob: fc384b769d9f923f3161677c3d53ef6a6ebc1cb1 [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
brettw2b2364b2015-05-01 22:36:235import("//build/config/chrome_build.gni")
[email protected]dffd8a912014-06-30 23:24:316import("//build/config/crypto.gni")
7import("//build/config/features.gni")
8import("//build/config/ui.gni")
scottmga266f952014-12-03 20:47:109
James Robinson2ed4d692014-09-17 05:20:5810# //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
11# produces a conflict for the "grit" template so we have to only include one.
12if (is_android) {
13 import("//build/config/android/rules.gni")
14} else {
15 import("//tools/grit/grit_rule.gni")
16}
cmasone0a9e4ca2014-10-16 16:40:4917if (is_desktop_linux) {
18 import("//build/config/linux/pkg_config.gni")
19}
[email protected]77ce8022014-06-16 19:29:5620
21about_credits_file = "$target_gen_dir/about_credits.html"
22additional_modules_list_file =
23 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
24
scottmga266f952014-12-03 20:47:1025gypi_values = exec_script("//build/gypi_to_gn.py",
26 [ rebase_path("../chrome_browser.gypi") ],
27 "scope",
28 [ "../chrome_browser.gypi" ])
[email protected]dffd8a912014-06-30 23:24:3129
cmasone0a9e4ca2014-10-16 16:40:4930if (is_desktop_linux) {
brettwa68ea2b2015-02-01 02:54:0731 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
32 # will set this up.
cmasone0a9e4ca2014-10-16 16:40:4933 pkg_config("gnome_keyring") {
34 packages = [ "gnome-keyring-1" ]
brettwa68ea2b2015-02-01 02:54:0735 defines = [
36 "USE_GNOME_KEYRING",
37 "DLOPEN_GNOME_KEYRING",
38 ]
39 ignore_libs = true
40 }
41
42 # If you want to link gnome-keyring directly (use only for unit tests)
43 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
44 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
45 # are just itself and common gnome ones we link already, so we can get away
46 # with additionally just coding the library name here.
47 config("gnome_keyring_direct") {
48 libs = [ "gnome-keyring" ]
cmasone0a9e4ca2014-10-16 16:40:4949 }
50}
51
brettw44a5cf82015-04-08 19:48:2252source_set("browser") {
apavlove749bca2014-09-30 11:07:4153 configs += [
54 "//build/config/compiler:wexit_time_destructors",
55 "//third_party/WebKit/public:debug_devtools",
56 ]
[email protected]dffd8a912014-06-30 23:24:3157 defines = []
58 sources = []
59 libs = []
60 ldflags = []
61
62 # iOS/non-iOS shared deps. New dependencies should generally be added in the
63 # non-iOS deps below.
Brett Wilsone53895272014-09-23 23:41:4664 public_deps = [
65 "//components/autofill/core/browser",
66 "//content/public/browser",
67 "//sql",
68 "//sync",
69 ]
[email protected]dffd8a912014-06-30 23:24:3170 deps = [
71 "//base/allocator",
72 "//chrome:extra_resources",
73 "//chrome:resources",
74 "//chrome:strings",
[email protected]797b25042014-07-01 23:54:1775 "//chrome/app:generated_resources_map",
[email protected]855b7de2014-07-08 21:02:4576 "//chrome/app/resources:platform_locale_settings",
[email protected]797b25042014-07-01 23:54:1777 "//chrome/app/theme:theme_resources",
sdefresne039209fc2015-03-09 15:33:1778 "//chrome/browser/autocomplete:in_memory_url_index_cache_proto",
[email protected]855b7de2014-07-08 21:02:4579 "//chrome/browser/net:cert_logger_proto",
[email protected]797b25042014-07-01 23:54:1780 "//chrome/browser/net:probe_message_proto",
[email protected]abd4b682014-07-16 20:26:3081 "//chrome/browser/ui",
[email protected]dffd8a912014-06-30 23:24:3182 "//chrome/common",
83 "//chrome/common/net",
[email protected]604828c2014-07-02 20:39:1284 "//components/autofill/core/browser",
Brett Wilson1c693992014-08-25 19:10:0185 "//components/bookmarks/browser",
treiba9ea2fb2015-03-20 10:06:0386 "//components/bookmarks/managed",
[email protected]b9f4c682014-07-10 22:00:3787 "//components/captive_portal",
[email protected]fca567b2014-07-02 17:37:3488 "//components/cloud_devices/common",
Brett Wilson1c693992014-08-25 19:10:0189 "//components/component_updater",
vabrfc325fa2015-04-10 16:24:4590 "//components/content_settings/content/common",
vasiliiac461392014-09-18 11:35:1791 "//components/content_settings/core/browser",
[email protected]08f71012014-07-25 10:27:5492 "//components/content_settings/core/common",
[email protected]478ed232014-08-19 02:10:5593 "//components/crx_file",
megjablon3476e042014-10-14 19:21:5994 "//components/data_reduction_proxy/core/browser",
reillyg4a849272015-02-20 21:38:4395 "//components/device_event_log",
[email protected]273ae5ab2014-07-09 21:10:2596 "//components/domain_reliability",
noyaudaaac3a2014-10-08 11:11:1197 "//components/enhanced_bookmarks",
sdefresnecbacfd72015-03-20 12:11:3298 "//components/favicon/core",
sdefresne001b10de2015-03-20 18:41:4699 "//components/favicon_base",
[email protected]abd4b682014-07-16 20:26:30100 "//components/gcm_driver",
Brett Wilson1c693992014-08-25 19:10:01101 "//components/google/core/browser",
erikchen332265b2014-11-14 19:59:52102 "//components/handoff",
[email protected]273ae5ab2014-07-09 21:10:25103 "//components/history/core/browser",
104 "//components/history/core/common",
Brett Wilson1c693992014-08-25 19:10:01105 "//components/infobars/core",
106 "//components/invalidation",
gunsch1afc65172014-09-16 00:03:32107 "//components/metrics:gpu",
[email protected]fca567b2014-07-02 17:37:34108 "//components/metrics:net",
gunsch840bc412014-09-18 19:38:06109 "//components/metrics:profiler",
Brett Wilson1c693992014-08-25 19:10:01110 "//components/metrics/proto:proto",
rsleevic327b48f82015-04-30 02:03:25111 "//components/mime_util",
[email protected]fca567b2014-07-02 17:37:34112 "//components/navigation_metrics",
Brett Wilson1c693992014-08-25 19:10:01113 "//components/network_time",
[email protected]b1c5ab682014-08-07 11:53:17114 "//components/omnibox",
[email protected]fca567b2014-07-02 17:37:34115 "//components/os_crypt",
haavardmdfdf28f2015-01-08 21:05:00116 "//components/packed_ct_ev_whitelist",
Brett Wilson1c693992014-08-25 19:10:01117 "//components/password_manager/core/browser",
118 "//components/password_manager/core/common",
[email protected]fca567b2014-07-02 17:37:34119 "//components/policy:policy_component",
Brett Wilson1c693992014-08-25 19:10:01120 "//components/precache/core",
[email protected]fca567b2014-07-02 17:37:34121 "//components/query_parser",
[email protected]b9f4c682014-07-10 22:00:37122 "//components/rappor",
Brett Wilson1c693992014-08-25 19:10:01123 "//components/renderer_context_menu",
[email protected]720b10492014-07-23 08:48:40124 "//components/search",
Brett Wilson1c693992014-08-25 19:10:01125 "//components/search_engines",
126 "//components/search_provider_logos",
[email protected]abd4b682014-07-16 20:26:30127 "//components/signin/core/browser",
128 "//components/startup_metric_utils",
[email protected]797b25042014-07-01 23:54:17129 "//components/strings",
mathp60143a32014-10-08 14:52:45130 "//components/suggestions",
Brett Wilson1c693992014-08-25 19:10:01131 "//components/sync_driver",
[email protected]b9f4c682014-07-10 22:00:37132 "//components/translate/core/browser",
133 "//components/translate/core/common",
wjmaclean7f63c6b2014-12-09 14:59:55134 "//components/ui/zoom:ui_zoom",
sdefresnec083d1f2015-04-17 21:12:18135 "//components/undo",
sorin39eab2f2015-01-06 01:09:08136 "//components/update_client",
[email protected]273ae5ab2014-07-09 21:10:25137 "//components/url_fixer",
[email protected]fca567b2014-07-02 17:37:34138 "//components/user_prefs",
isherman3be67db2014-10-24 05:57:44139 "//components/variations",
140 "//components/variations/net",
[email protected]bf4545f2014-07-11 19:49:46141 "//components/webdata/common",
sdefresnecb955cd2014-12-15 23:21:56142 "//components/webdata_services",
drogerf8479942014-11-21 17:47:53143 "//components/web_resource",
[email protected]dffd8a912014-06-30 23:24:31144 "//content/public/browser",
145 "//content/public/common",
[email protected]604828c2014-07-02 20:39:12146 "//courgette:courgette_lib",
[email protected]dffd8a912014-06-30 23:24:31147 "//crypto",
[email protected]604828c2014-07-02 20:39:12148 "//google_apis",
Brett Wilson8f1323042014-09-11 16:58:56149 "//gpu/config",
ajwongf7b1cb692014-08-23 21:36:22150 "//jingle:notifier",
[email protected]dffd8a912014-06-30 23:24:31151 "//skia",
152 "//sql",
153 "//sync",
[email protected]797b25042014-07-01 23:54:17154 "//third_party/cacheinvalidation",
[email protected]dffd8a912014-06-30 23:24:31155 "//third_party/icu",
156 "//third_party/libxml",
ajwongf7b1cb692014-08-23 21:36:22157 "//third_party/libjingle",
[email protected]dffd8a912014-06-30 23:24:31158 "//third_party/widevine/cdm:version_h",
159 "//third_party/zlib",
160 "//third_party/zlib:minizip",
161 "//third_party/zlib:zip",
162 "//ui/base",
cjhopman09981a92014-10-27 17:11:18163 "//ui/events:events_base",
[email protected]dffd8a912014-06-30 23:24:31164 "//ui/gfx",
165 "//ui/gfx/geometry",
[email protected]a1d7d4f2014-07-16 21:33:36166 "//ui/message_center",
167 "//ui/shell_dialogs",
[email protected]dffd8a912014-06-30 23:24:31168 "//ui/strings",
[email protected]797b25042014-07-01 23:54:17169 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31170 ]
171
scottmga266f952014-12-03 20:47:10172 sources +=
173 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
danduongd81789642014-09-23 02:50:00174
[email protected]dffd8a912014-06-30 23:24:31175 if (!is_ios) {
scottmga266f952014-12-03 20:47:10176 sources +=
177 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59178 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
scottmga266f952014-12-03 20:47:10179 ".",
180 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59181 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
scottmga266f952014-12-03 20:47:10182 ".",
183 "//chrome")
stuartmorgan997cf23d2014-12-04 21:01:18184 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
185 ".",
186 "//chrome")
187 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
188 ".",
189 "//chrome")
benwellsedf5e082015-04-23 02:45:14190 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
191 ".",
192 "//chrome")
scottmga266f952014-12-03 20:47:10193 sources +=
194 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
195 sources +=
196 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
197 sources +=
198 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
199 sources +=
200 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
201 sources +=
202 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59203 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
scottmga266f952014-12-03 20:47:10204 ".",
205 "//chrome")
mlamouri4e372022015-03-29 14:51:06206 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
207 ".",
208 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59209 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
scottmga266f952014-12-03 20:47:10210 ".",
211 "//chrome")
212 sources +=
213 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59214 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
scottmga266f952014-12-03 20:47:10215 ".",
216 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59217 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
scottmga266f952014-12-03 20:47:10218 ".",
219 "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59220 sources += rebase_path(gypi_values.chrome_browser_services_sources,
scottmga266f952014-12-03 20:47:10221 ".",
222 "//chrome")
223 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18224 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
225 sources +=
scottmga266f952014-12-03 20:47:10226 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
227 sources +=
stuartmorgan997cf23d2014-12-04 21:01:18228 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
229 sources +=
scottmga266f952014-12-03 20:47:10230 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
stuartmorgancd5b6042014-11-17 16:52:59231 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
scottmga266f952014-12-03 20:47:10232 ".",
233 "//chrome")
234
[email protected]dffd8a912014-06-30 23:24:31235 deps += [
Brett Wilson1c693992014-08-25 19:10:01236 "//apps",
[email protected]dffd8a912014-06-30 23:24:31237 "//cc",
brettwca934582015-02-24 21:50:27238 "//chrome/app:generated_resources_map",
239 "//chrome/app/theme:theme_resources",
[email protected]55699f392014-08-20 22:16:30240 "//chrome/browser/devtools",
brettwca934582015-02-24 21:50:27241 "//chrome/browser/resources:component_extension_resources",
[email protected]55699f392014-08-20 22:16:30242 "//chrome/installer/util",
oshimaf65398422014-11-18 23:30:42243 "//components/app_modal",
[email protected]b9f4c682014-07-10 22:00:37244 "//components/autofill/content/browser",
lazyboy14082d22015-04-02 01:04:58245 "//components/browsing_data",
jeremyim364ac1182015-03-03 18:49:43246 "//components/data_reduction_proxy/content/browser",
dgozmanec2b982a2015-04-28 10:36:39247 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46248 "//components/devtools_http_handler",
[email protected]b9f4c682014-07-10 22:00:37249 "//components/dom_distiller/content",
sdefresne001b10de2015-03-20 18:41:46250 "//components/favicon/content",
sdefresne715246622015-01-12 16:24:04251 "//components/history/content/browser",
[email protected]fca567b2014-07-02 17:37:34252 "//components/keyed_service/content",
[email protected]55699f392014-08-20 22:16:30253 "//components/navigation_interception",
254 "//components/password_manager/content/browser",
dbeam155ac972015-04-20 15:34:48255 "//components/plugins/common",
[email protected]55699f392014-08-20 22:16:30256 "//components/precache/content",
brettwa22cb3b2015-04-30 20:23:12257 "//components/sessions",
[email protected]abd4b682014-07-16 20:26:30258 "//components/storage_monitor",
[email protected]b9f4c682014-07-10 22:00:37259 "//components/translate/content/browser",
[email protected]fca567b2014-07-02 17:37:34260 "//components/url_matcher",
[email protected]dffd8a912014-06-30 23:24:31261 "//components/visitedlink/browser",
262 "//components/visitedlink/common",
hanxi149b92d2014-09-11 21:57:18263 "//components/web_cache/browser",
[email protected]b9f4c682014-07-10 22:00:37264 "//components/web_modal",
[email protected]a9ca8d52014-08-22 10:21:08265 "//content/app/resources",
[email protected]55699f392014-08-20 22:16:30266 "//media",
cjhopman09981a92014-10-27 17:11:18267 "//mojo/common",
[email protected]604828c2014-07-02 20:39:12268 "//mojo/environment:chromium",
Brett Wilson83fd4242014-09-02 19:45:33269 "//net:extras",
[email protected]dffd8a912014-06-30 23:24:31270 "//net:net_with_v8",
pilgrim4af8c212014-09-05 17:30:15271 "//storage/browser",
pilgrimf55d19fc2014-09-04 00:05:24272 "//storage/common",
erga3c614c92015-04-03 17:47:51273 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46274 "//third_party/WebKit/public:resources",
[email protected]dffd8a912014-06-30 23:24:31275 "//third_party/expat",
276 "//third_party/leveldatabase",
[email protected]fca567b2014-07-02 17:37:34277 "//third_party/libaddressinput",
[email protected]dffd8a912014-06-30 23:24:31278 "//third_party/libyuv",
blundell70fb547672015-01-19 17:18:33279 "//third_party/mojo/src/mojo/edk/system",
280 "//third_party/mojo/src/mojo/public/cpp/bindings",
281 "//third_party/mojo/src/mojo/public/js",
[email protected]dffd8a912014-06-30 23:24:31282 "//third_party/npapi",
283 "//third_party/re2",
284 "//third_party/smhasher:cityhash",
Brett Wilson83fd4242014-09-02 19:45:33285 "//third_party/webrtc/modules/desktop_capture",
spang1c36fac2015-02-05 19:55:12286 "//ui/base/ime",
[email protected]dffd8a912014-06-30 23:24:31287 "//ui/gl",
brettwca934582015-02-24 21:50:27288 "//ui/resources",
[email protected]dffd8a912014-06-30 23:24:31289 "//ui/surface",
[email protected]604828c2014-07-02 20:39:12290 "//ui/web_dialogs",
[email protected]fca567b2014-07-02 17:37:34291 "//v8",
[email protected]dffd8a912014-06-30 23:24:31292 ]
293 } else { # iOS
scottmga266f952014-12-03 20:47:10294 sources +=
295 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
296 sources +=
297 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
298 deps += [ "//net" ]
[email protected]dffd8a912014-06-30 23:24:31299 libs += [
300 "CoreTelephony.framework",
301 "CoreText.framework",
302 "MobileCoreServices.framework",
303 "QuartzCore.framework",
304 ]
scottmga266f952014-12-03 20:47:10305 ldflags += [
306 "-weak_framework",
307 "CoreImage",
308 ]
[email protected]dffd8a912014-06-30 23:24:31309 }
310
311 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:10312 sources +=
313 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31314 }
315 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
316 sources += [
317 "net/disk_cache_dir_policy_handler.cc",
318 "net/disk_cache_dir_policy_handler.h",
319 ]
320 }
321 if (!is_android && !is_ios && enable_configuration_policy) {
322 sources += [
323 "download/download_dir_policy_handler.cc",
324 "download/download_dir_policy_handler.h",
325 ]
326 }
327 if (is_mac) {
scottmga266f952014-12-03 20:47:10328 sources +=
329 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31330 deps += [
331 #"app_shim" TODO(GYP)
tapted63829f72014-09-24 23:50:50332 #"browser_app_shim" TODO(GYP)
[email protected]dffd8a912014-06-30 23:24:31333 ]
334 }
[email protected]dffd8a912014-06-30 23:24:31335 if (enable_extensions) {
Brett Wilsone53895272014-09-23 23:41:46336 public_deps += [ "//chrome/browser/extensions" ]
[email protected]cc5b3be2014-08-15 23:24:52337 deps += [
[email protected]cc5b3be2014-08-15 23:24:52338 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
thestige33aa2422014-09-22 22:16:30339 "//chrome/common/extensions/api",
340 "//chrome/common/extensions/api:api_registration",
msarda4c408ff2015-04-22 14:27:56341 "//components/proximity_auth/ble",
tengs4758c082014-12-19 18:51:44342 "//components/proximity_auth/cryptauth",
oshima758abebc2014-11-06 10:55:50343 "//extensions/components/javascript_dialog_extensions_client",
thestig73f4cdc2015-01-15 01:51:06344 "//media/cast:net",
[email protected]cc5b3be2014-08-15 23:24:52345 ]
[email protected]dffd8a912014-06-30 23:24:31346 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
scottmga266f952014-12-03 20:47:10347 ".",
348 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31349 }
350 if (enable_background) {
351 sources += rebase_path(gypi_values.chrome_browser_background_sources,
scottmga266f952014-12-03 20:47:10352 ".",
353 "//chrome")
jamesr29ea2d122014-10-23 10:30:27354 if (!use_aura || is_win || is_chromeos) {
[email protected]dffd8a912014-06-30 23:24:31355 sources -= [ "background/background_mode_manager_aura.cc" ]
356 }
357 }
358 if (enable_task_manager) {
359 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
scottmga266f952014-12-03 20:47:10360 ".",
361 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31362 }
363 if (enable_spellcheck) {
364 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
scottmga266f952014-12-03 20:47:10365 ".",
366 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31367 deps += [ "//third_party/hunspell" ]
368 }
369 if (enable_nacl) {
scottmga266f952014-12-03 20:47:10370 sources +=
371 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
dpranke6065cf72015-02-26 03:30:58372 deps += [ "//components/nacl:nacl_browser" ]
[email protected]dffd8a912014-06-30 23:24:31373 }
apavlove749bca2014-09-30 11:07:41374
[email protected]dffd8a912014-06-30 23:24:31375 if (enable_configuration_policy) {
scottmga266f952014-12-03 20:47:10376 sources +=
377 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
378 ".",
379 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31380 deps += [
[email protected]604828c2014-07-02 20:39:12381 "//components/policy",
[email protected]797b25042014-07-01 23:54:17382 "//components/policy/proto",
[email protected]dffd8a912014-06-30 23:24:31383 ]
384 if (!is_ios) {
scottmga266f952014-12-03 20:47:10385 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
386 ".",
387 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31388 }
389 if (!is_chromeos) {
390 sources += rebase_path(
scottmga266f952014-12-03 20:47:10391 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
392 ".",
393 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31394 }
395 if (is_win || is_mac || is_desktop_linux) {
396 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
scottmga266f952014-12-03 20:47:10397 ".",
398 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31399 }
wfh26d09db2015-04-11 02:24:00400 if (enable_plugins) {
401 sources += rebase_path(gypi_values.chrome_browser_policy_plugin_sources,
402 ".",
403 "//chrome")
404 }
cjhopman09981a92014-10-27 17:11:18405 if (is_android || is_ios) {
406 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
scottmga266f952014-12-03 20:47:10407 ".",
408 "//chrome")
cjhopman09981a92014-10-27 17:11:18409 } else {
amistry6e1ed1b2015-03-12 05:24:01410 deps += [
411 "//chrome/browser/policy:path_parser",
412 "//net:net_browser_services",
413 ]
[email protected]dffd8a912014-06-30 23:24:31414 }
415 } else {
416 # Configuration policy disabled.
417 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
scottmga266f952014-12-03 20:47:10418 ".",
419 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31420 }
421
422 if (enable_plugins) {
scottmga266f952014-12-03 20:47:10423 sources +=
424 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31425 deps += [
James Robinson2ed4d692014-09-17 05:20:58426 "//components/pdf/browser",
brettwf7eb6ca2015-02-14 01:37:31427 "//ppapi/proxy:ipc",
thestig11b815e92014-08-26 00:32:14428 "//third_party/adobe/flash:flapper_version_h",
[email protected]dffd8a912014-06-30 23:24:31429 ]
430 }
431 if (safe_browsing_mode != 0) {
scottmga266f952014-12-03 20:47:10432 sources +=
stuartmorgan1b3df822014-12-08 14:36:11433 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
scottmga266f952014-12-03 20:47:10434 ".",
435 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31436 deps += [
[email protected]fca567b2014-07-02 17:37:34437 "//chrome/browser/safe_browsing:chunk_proto",
mattm022138b52014-09-23 01:05:45438 "//chrome/browser/safe_browsing:metadata_proto",
[email protected]fca567b2014-07-02 17:37:34439 "//chrome/browser/safe_browsing:report_proto",
[email protected]dffd8a912014-06-30 23:24:31440 ]
441 if (safe_browsing_mode == 1) {
scottmga266f952014-12-03 20:47:10442 sources +=
stuartmorgan1b3df822014-12-08 14:36:11443 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
scottmga266f952014-12-03 20:47:10444 ".",
445 "//chrome")
scottmga266f952014-12-03 20:47:10446 deps += [ "//chrome/common/safe_browsing:proto" ]
[email protected]dffd8a912014-06-30 23:24:31447 }
448 }
449
450 if (is_linux) {
thestigee816c272014-11-22 02:47:51451 deps += [
452 "//device/media_transfer_protocol",
scottmga266f952014-12-03 20:47:10453 "//device/udev_linux",
thestigee816c272014-11-22 02:47:51454 ]
[email protected]dffd8a912014-06-30 23:24:31455 }
456 if (is_linux && !is_chromeos) {
[email protected]fd98b612014-07-09 22:11:47457 deps += [ "//third_party/speech-dispatcher" ]
[email protected]dffd8a912014-06-30 23:24:31458 }
459
460 if (is_chromeos) {
461 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
scottmga266f952014-12-03 20:47:10462 ".",
463 "//chrome")
464 deps += [ "//chrome/browser/chromeos" ]
[email protected]dffd8a912014-06-30 23:24:31465 } else {
466 # Non-ChromeOS.
467 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
scottmga266f952014-12-03 20:47:10468 ".",
469 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31470 }
471
yiyaoliubcd08dc22014-12-10 05:56:10472 if (is_ios) {
473 sources -= [
474 "metrics/signin_status_metrics_provider_base.cc",
475 "metrics/signin_status_metrics_provider_base.h",
476 ]
477 }
478
mukai8c99b882014-10-15 03:07:59479 if (is_chromeos || is_ios) {
480 sources -= [
481 "metrics/signin_status_metrics_provider.cc",
482 "metrics/signin_status_metrics_provider.h",
483 ]
484 }
485
[email protected]dffd8a912014-06-30 23:24:31486 if (use_cups) {
[email protected]604828c2014-07-02 20:39:12487 configs += [ "//printing:cups" ]
[email protected]dffd8a912014-06-30 23:24:31488 }
489 if (is_desktop_linux) {
490 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
scottmga266f952014-12-03 20:47:10491 ".",
492 "//chrome")
cmasone0a9e4ca2014-10-16 16:40:49493 configs += [ ":gnome_keyring" ]
[email protected]dffd8a912014-06-30 23:24:31494 }
dvadym34532022015-01-22 15:42:51495 if (is_desktop_linux) {
496 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
497 ".",
498 "//chrome")
499 defines += [ "USE_LIBSECRET" ]
500 }
[email protected]dffd8a912014-06-30 23:24:31501 if (use_aura) {
scottmga266f952014-12-03 20:47:10502 sources +=
503 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31504 deps += [
[email protected]fca567b2014-07-02 17:37:34505 "//ui/aura",
506 "//ui/compositor",
[email protected]604828c2014-07-02 20:39:12507 "//ui/keyboard",
[email protected]dffd8a912014-06-30 23:24:31508 ]
509 }
510 if (ui_compositor_image_transport) {
511 deps += [ "//ui/gl" ]
512 }
513
[email protected]855b7de2014-07-08 21:02:45514 if (use_ash) {
scottmga266f952014-12-03 20:47:10515 sources +=
516 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
[email protected]855b7de2014-07-08 21:02:45517 }
518
[email protected]dffd8a912014-06-30 23:24:31519 if (use_x11) {
scottmga266f952014-12-03 20:47:10520 sources +=
521 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
vchigrinbbc23e72015-01-21 22:49:23522 } else {
523 sources -= [ "password_manager/password_store_x.cc" ]
[email protected]dffd8a912014-06-30 23:24:31524 }
525 if (is_posix && !is_mac && !is_ios) {
526 sources += [
rseseka0a7a042014-09-18 23:59:20527 "//chrome/app/chrome_crash_reporter_client.cc",
528 "//chrome/app/chrome_crash_reporter_client.h",
[email protected]dffd8a912014-06-30 23:24:31529 ]
530 deps += [
Robert Sesekabcd8102014-08-27 16:12:44531 "//components/crash/app",
532 "//components/crash/browser",
[email protected]dffd8a912014-06-30 23:24:31533 ]
534 }
535 if (use_nss_certs) {
scottmga266f952014-12-03 20:47:10536 sources +=
537 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
mukai8c99b882014-10-15 03:07:59538 if (is_chromeos) {
539 sources -= [ "net/nss_context_linux.cc" ]
540 }
[email protected]dffd8a912014-06-30 23:24:31541 }
542 if (enable_notifications) {
543 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
scottmga266f952014-12-03 20:47:10544 ".",
545 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31546 if (!is_android) {
547 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11548 gypi_values.chrome_browser_notifications_non_android_sources,
scottmga266f952014-12-03 20:47:10549 ".",
550 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31551 }
552 }
553 if (enable_themes) {
scottmga266f952014-12-03 20:47:10554 sources +=
555 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31556 }
557
vitalybuka93eea402014-11-05 23:47:15558 if (enable_basic_printing || enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31559 # Some form of printing support.
stuartmorgan1b3df822014-12-08 14:36:11560 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
scottmga266f952014-12-03 20:47:10561 ".",
562 "//chrome")
563 deps += [ "//printing" ]
vitalybuka36259ca2014-08-28 23:42:24564 if (is_win) {
[email protected]dffd8a912014-06-30 23:24:31565 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
scottmga266f952014-12-03 20:47:10566 ".",
567 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31568 }
vitalybuka93eea402014-11-05 23:47:15569 if (enable_print_preview) {
[email protected]dffd8a912014-06-30 23:24:31570 # Full printing on top of the above.
stuartmorgan1b3df822014-12-08 14:36:11571 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
scottmga266f952014-12-03 20:47:10572 ".",
573 "//chrome")
vitalybuka93eea402014-11-05 23:47:15574 } else {
[email protected]dffd8a912014-06-30 23:24:31575 # Partial-only printing support.
scottmga266f952014-12-03 20:47:10576 sources +=
stuartmorgan1b3df822014-12-08 14:36:11577 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
scottmga266f952014-12-03 20:47:10578 ".",
579 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31580 }
581 }
582 if (enable_captive_portal_detection) {
583 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
scottmga266f952014-12-03 20:47:10584 ".",
585 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31586 }
587 if (enable_session_service) {
588 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
scottmga266f952014-12-03 20:47:10589 ".",
590 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31591 }
592
thestigdc377202014-10-28 22:06:02593 if (!is_android && !is_ios && !is_chromeos) {
scottmga266f952014-12-03 20:47:10594 sources +=
595 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
thestigdc377202014-10-28 22:06:02596 }
597
[email protected]dffd8a912014-06-30 23:24:31598 if (is_android || is_ios) {
599 # Mobile.
scottmga266f952014-12-03 20:47:10600 sources +=
601 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31602 } else {
603 # Non-mobile.
604 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
scottmga266f952014-12-03 20:47:10605 ".",
606 "//chrome")
reillyge471fab2014-08-29 01:58:43607 deps += [
sdefresnebbf563c2015-03-17 11:09:09608 "//components/feedback",
reillyge471fab2014-08-29 01:58:43609 "//device/core",
reillygd77718d2014-09-04 00:57:56610 "//device/usb",
reillyge471fab2014-08-29 01:58:43611 ]
[email protected]dffd8a912014-06-30 23:24:31612 }
613
614 if (is_android) {
scottmga266f952014-12-03 20:47:10615 sources +=
616 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31617 deps += [
James Robinson2ed4d692014-09-17 05:20:58618 ":jni_headers",
[email protected]55699f392014-08-20 22:16:30619 "//components/cdm/browser",
cjhopman09981a92014-10-27 17:11:18620 "//components/enhanced_bookmarks",
estadee37f8222014-11-07 21:35:22621 "//components/resources:components_resources",
mathiash3ecfdfa2015-04-13 15:06:07622 "//components/service_tab_launcher",
cjhopman09981a92014-10-27 17:11:18623 "//components/web_contents_delegate_android",
624 "//third_party/android_opengl/etc1",
twellington0bc61492015-01-30 20:14:13625 "//third_party/libaddressinput:util",
[email protected]dffd8a912014-06-30 23:24:31626 ]
627 deps -= [
[email protected]fca567b2014-07-02 17:37:34628 "//third_party/libaddressinput",
[email protected]abd4b682014-07-16 20:26:30629 "//components/storage_monitor",
[email protected]abd4b682014-07-16 20:26:30630 "//components/web_modal",
[email protected]dffd8a912014-06-30 23:24:31631 ]
megjablon5effca2e2015-02-13 23:54:07632 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
rseseke59ea892015-03-19 22:27:44633
634 if (use_seccomp_bpf) {
635 defines += [ "USE_SECCOMP_BPF" ]
636 }
[email protected]dffd8a912014-06-30 23:24:31637 }
638
639 if (is_mac) {
640 deps += [
[email protected]6b5d2f92014-07-30 00:40:03641 "//third_party/google_toolbox_for_mac",
tfarina22896302015-02-23 21:18:03642 "//third_party/mozilla",
[email protected]dffd8a912014-06-30 23:24:31643 ]
644 libs += [
645 "Accelerate.framework",
646 "AddressBook.framework",
647 "AudioUnit.framework",
648 "DiskArbitration.framework",
649 "IOKit.framework",
650 "ImageCaptureCore.framework",
651 "OpenGL.framework",
652 "QuartzCore.framework",
653 "SecurityInterface.framework",
654 ]
655 }
656
657 if (enable_rlz) {
scottmga266f952014-12-03 20:47:10658 sources +=
659 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31660 deps += [ "//rlz:rlz_lib" ]
661 }
662
663 # TODO(GYP)
664 # Temporary fix to break the browser target into smaller chunks so it
665 # will link with goma builds.
666 #["OS=="win" and chromium_win_pch==0", {
667 # "msvs_shard": 4,
668 #}],
669
670 if (is_win) {
scottmga266f952014-12-03 20:47:10671 sources +=
672 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
grtaa9d8d22014-11-13 19:52:36673 if (!is_chrome_branded) {
674 sources -= [
675 "google/did_run_updater_win.cc",
676 "google/did_run_updater_win.h",
677 ]
678 }
Brett Wilsone53895272014-09-23 23:41:46679 public_deps += [
680 "//ui/views",
681 "//ui/views/controls/webview",
682 ]
[email protected]dffd8a912014-06-30 23:24:31683 deps += [
vchigrin9593e7a2015-01-27 10:08:19684 ":chrome_process_finder",
[email protected]55699f392014-08-20 22:16:30685 "//chrome:version_header",
686 "//chrome/installer/util:strings",
vchigrinf2b90aa2015-01-23 11:12:19687 "//chrome_elf",
688 "//chrome_elf:constants",
689 "//chrome_elf:dll_hash",
vchigrin61944ae2015-01-30 23:51:32690 "//components/browser_watcher",
691 "//components/browser_watcher:browser_watcher_client",
vchigrinbbc23e72015-01-21 22:49:23692 "//google_update",
[email protected]55699f392014-08-20 22:16:30693 "//third_party/iaccessible2",
694 "//third_party/isimpledom",
[email protected]dffd8a912014-06-30 23:24:31695 "//third_party/wtl",
vchigrin88ed6f42015-01-17 11:56:42696 "//ui/metro_viewer",
697 "//win8:metro_viewer",
[email protected]dffd8a912014-06-30 23:24:31698 ]
brettw44a5cf82015-04-08 19:48:22699 libs += [
700 "credui.lib",
701 "netapi32.lib",
702 ]
[email protected]dffd8a912014-06-30 23:24:31703 } else {
704 # Non-Windows.
scottmga266f952014-12-03 20:47:10705 sources +=
706 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
[email protected]f6dc4ae2014-07-30 00:10:37707 if (toolkit_views) {
[email protected]dffd8a912014-06-30 23:24:31708 deps += [
scottmga266f952014-12-03 20:47:10709 "//ui/views",
710 "//ui/views/controls/webview",
[email protected]dffd8a912014-06-30 23:24:31711 ]
[email protected]dffd8a912014-06-30 23:24:31712 }
713 }
714
715 if (is_linux) {
scottmga266f952014-12-03 20:47:10716 sources +=
717 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31718 if (use_aura) {
719 configs += [
720 "//build/config/linux:dbus",
721 "//build/config/linux:fontconfig",
722 ]
scottmga266f952014-12-03 20:47:10723 deps += [ "//dbus" ]
[email protected]dffd8a912014-06-30 23:24:31724 }
725 if (use_x11) {
726 configs += [ "//build/config/linux:x11" ]
727 deps += [ "//ui/gfx/x" ]
728 }
729 }
730
731 if (is_desktop_linux) {
stuartmorgan7f569a822014-12-08 20:10:54732 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
scottmga266f952014-12-03 20:47:10733 ".",
734 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31735 }
736 if (enable_plugin_installation) {
scottmga266f952014-12-03 20:47:10737 sources +=
738 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
739 ".",
740 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31741 }
742 if (enable_app_list) {
scottmga266f952014-12-03 20:47:10743 deps += [ "//ui/app_list" ]
[email protected]dffd8a912014-06-30 23:24:31744 }
treib87bb89cbb2014-12-01 16:01:47745 if (enable_supervised_users) {
scottmga266f952014-12-03 20:47:10746 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
747 ".",
748 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31749 }
treib87bb89cbb2014-12-01 16:01:47750 if (enable_supervised_users && enable_themes) {
thestig169a6362014-11-13 20:47:59751 sources += rebase_path(
scottmga266f952014-12-03 20:47:10752 gypi_values.chrome_browser_supervised_user_and_themes_sources,
753 ".",
754 "//chrome")
thestig169a6362014-11-13 20:47:59755 }
[email protected]dffd8a912014-06-30 23:24:31756 if (enable_webrtc) {
scottmga266f952014-12-03 20:47:10757 sources +=
758 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31759 }
760 if (enable_service_discovery) {
scottmga266f952014-12-03 20:47:10761 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
762 ".",
763 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31764 }
765 if (enable_mdns) {
scottmga266f952014-12-03 20:47:10766 sources +=
767 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
[email protected]dffd8a912014-06-30 23:24:31768 }
769 if (!enable_autofill_dialog || is_android || is_ios) {
770 sources -= [
771 "autofill/validation_rules_storage_factory.cc",
772 "autofill/validation_rules_storage_factory.h",
773 ]
774 }
775 if (enable_wifi_bootstrapping) {
scottmga266f952014-12-03 20:47:10776 sources +=
777 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
778 ".",
779 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31780 if (is_win || is_mac) {
781 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
782 # and Mac, so this test is meaningless. Can we merge these lists?
783 sources += rebase_path(
stuartmorgan1b3df822014-12-08 14:36:11784 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
scottmga266f952014-12-03 20:47:10785 ".",
786 "//chrome")
[email protected]dffd8a912014-06-30 23:24:31787 }
788 }
mfoltz150bb8b2015-04-09 22:30:05789 if (enable_media_router) {
790 defines += [ "ENABLE_MEDIA_ROUTER=1" ]
791 }
[email protected]dffd8a912014-06-30 23:24:31792}
793
James Robinson2ed4d692014-09-17 05:20:58794if (is_android) {
795 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
796 generate_jni("jni_headers") {
scottmga266f952014-12-03 20:47:10797 sources =
798 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
James Robinson2ed4d692014-09-17 05:20:58799 jni_package = "chrome"
800 }
801}
802
vchigrin9593e7a2015-01-27 10:08:19803if (is_win) {
804 source_set("chrome_process_finder") {
805 sources = [
806 "chrome_process_finder_win.cc",
807 "chrome_process_finder_win.h",
808 ]
809 deps = [
810 "//base",
811 "//chrome/browser/metro_utils",
812 "//chrome/common:constants",
813 ]
814 if (enable_configuration_policy) {
815 deps += [ "//chrome/browser/policy:path_parser" ]
816 }
817 }
818}
819
[email protected]77ce8022014-06-16 19:29:56820# GYP version: chrome/chrome_resources.gyp:chrome_resources
821# (generate_browser_resources action)
822grit("resources") {
823 source = "browser_resources.grd"
[email protected]48885492014-08-13 11:22:41824 output_dir = "$root_gen_dir/chrome"
[email protected]cb0c67a2014-07-22 16:37:26825 outputs = [
826 "grit/browser_resources.h",
827 "browser_resources.pak",
828 ]
[email protected]77ce8022014-06-16 19:29:56829
scottmga266f952014-12-03 20:47:10830 omnibox_mojom_file =
831 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
[email protected]77ce8022014-06-16 19:29:56832
833 grit_flags = [
scottmga266f952014-12-03 20:47:10834 "-E",
835 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
836 "-E",
837 "additional_modules_list_file=" +
838 rebase_path(additional_modules_list_file, root_build_dir),
839 "-E",
840 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
[email protected]77ce8022014-06-16 19:29:56841 ]
842
843 deps = [
844 ":about_credits",
845 ":chrome_internal_resources_gen",
vchigrin8eede942015-01-29 09:28:15846 ]
847 inputs = [
848 omnibox_mojom_file,
[email protected]77ce8022014-06-16 19:29:56849 ]
850}
851
852# GYP version: chrome/chrome_resource.gyp:about_credits
853action("about_credits") {
854 script = "//tools/licenses.py"
855
dbeamc7776c72014-12-17 02:24:05856 inputs = [
857 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
858 # generate a .d file with all the licenses/credits that about:credits uses.
859 # Then about:credits will automatically rebuild when one of them changes.
860 # See: depfile in gn's documentation (gn help depfile).
861 "resources/about_credits.tmpl",
862 "resources/about_credits_entry.tmpl",
863 ]
864
scottmga266f952014-12-03 20:47:10865 outputs = [
866 about_credits_file,
867 ]
[email protected]77ce8022014-06-16 19:29:56868
869 args = [
870 "credits",
871 rebase_path(about_credits_file, root_build_dir),
872 ]
873}
874
875# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
engedy99d0e11b2014-09-30 13:32:41876if (is_chrome_branded) {
[email protected]77ce8022014-06-16 19:29:56877 action("chrome_internal_resources_gen") {
engedy99d0e11b2014-09-30 13:32:41878 script = "internal/transform_additional_modules_list.py"
scottmga266f952014-12-03 20:47:10879 sources = [
880 "internal/resources/additional_modules_list.input",
881 ]
882 outputs = [
883 additional_modules_list_file,
884 ]
engedy99d0e11b2014-09-30 13:32:41885 args = rebase_path(sources, root_build_dir) +
886 rebase_path(outputs, root_build_dir)
[email protected]77ce8022014-06-16 19:29:56887 }
888} else {
889 group("chrome_internal_resources_gen") {
890 # Empty placeholder.
891 }
892}
Brett Wilson052ce132014-09-12 19:46:29893
894# In GYP this is part of test_support_common.
895source_set("test_support") {
896 testonly = true
897
898 # Always include this via the main test support target.
899 visibility = [ "//chrome/test:test_support" ]
900
901 sources = [
902 "browsing_data/mock_browsing_data_appcache_helper.cc",
903 "browsing_data/mock_browsing_data_appcache_helper.h",
904 "browsing_data/mock_browsing_data_channel_id_helper.cc",
905 "browsing_data/mock_browsing_data_channel_id_helper.h",
906 "browsing_data/mock_browsing_data_cookie_helper.cc",
907 "browsing_data/mock_browsing_data_cookie_helper.h",
908 "browsing_data/mock_browsing_data_database_helper.cc",
909 "browsing_data/mock_browsing_data_database_helper.h",
910 "browsing_data/mock_browsing_data_file_system_helper.cc",
911 "browsing_data/mock_browsing_data_file_system_helper.h",
912 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
913 "browsing_data/mock_browsing_data_flash_lso_helper.h",
914 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
915 "browsing_data/mock_browsing_data_indexed_db_helper.h",
916 "browsing_data/mock_browsing_data_local_storage_helper.cc",
917 "browsing_data/mock_browsing_data_local_storage_helper.h",
918 "browsing_data/mock_browsing_data_quota_helper.cc",
919 "browsing_data/mock_browsing_data_quota_helper.h",
920 "browsing_data/mock_browsing_data_service_worker_helper.cc",
921 "browsing_data/mock_browsing_data_service_worker_helper.h",
922 "download/download_test_file_activity_observer.cc",
923 "download/download_test_file_activity_observer.h",
924 "download/test_download_shelf.cc",
925 "download/test_download_shelf.h",
Brett Wilson052ce132014-09-12 19:46:29926 "invalidation/fake_invalidation_service.cc",
927 "invalidation/fake_invalidation_service.h",
928 "media/fake_desktop_media_list.cc",
929 "media/fake_desktop_media_list.h",
930 "net/dns_probe_test_util.cc",
931 "net/dns_probe_test_util.h",
932 "net/url_request_mock_util.cc",
933 "net/url_request_mock_util.h",
934 "notifications/notification_test_util.cc",
935 "notifications/notification_test_util.h",
936 "password_manager/mock_password_store_service.cc",
937 "password_manager/mock_password_store_service.h",
938 "password_manager/null_password_store_service.cc",
939 "password_manager/null_password_store_service.h",
940 "password_manager/test_password_store_service.cc",
941 "password_manager/test_password_store_service.h",
942 "prefs/pref_service_mock_factory.cc",
943 "prefs/pref_service_mock_factory.h",
944 "profile_resetter/profile_resetter_test_base.cc",
945 "profile_resetter/profile_resetter_test_base.h",
946 "search_engines/template_url_service_factory_test_util.cc",
947 "search_engines/template_url_service_factory_test_util.h",
948 "search_engines/template_url_service_test_util.cc",
949 "search_engines/template_url_service_test_util.h",
squef7d723a2015-01-26 22:13:45950 "sessions/session_restore_test_helper.cc",
951 "sessions/session_restore_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:29952 "sessions/session_service_test_helper.cc",
953 "sessions/session_service_test_helper.h",
Brett Wilson052ce132014-09-12 19:46:29954 "signin/fake_account_tracker_service.cc",
955 "signin/fake_account_tracker_service.h",
mlerman2933d012015-04-24 18:34:27956 "signin/fake_gaia_cookie_manager_service.cc",
957 "signin/fake_gaia_cookie_manager_service.h",
Brett Wilson052ce132014-09-12 19:46:29958 "signin/fake_profile_oauth2_token_service.cc",
959 "signin/fake_profile_oauth2_token_service.h",
960 "signin/fake_profile_oauth2_token_service_builder.cc",
961 "signin/fake_profile_oauth2_token_service_builder.h",
962 "signin/fake_signin_manager.cc",
963 "signin/fake_signin_manager.h",
964 "ssl/ssl_client_auth_requestor_mock.cc",
965 "ssl/ssl_client_auth_requestor_mock.h",
Brett Wilson052ce132014-09-12 19:46:29966 "sync/profile_sync_components_factory_mock.cc",
967 "sync/profile_sync_components_factory_mock.h",
968 "sync/profile_sync_service_mock.cc",
969 "sync/profile_sync_service_mock.h",
shadi2f257fc2014-12-03 18:04:12970 "ui/webui/signin/login_ui_test_utils.cc",
971 "ui/webui/signin/login_ui_test_utils.h",
Brett Wilson052ce132014-09-12 19:46:29972 ]
973
Brett Wilsone53895272014-09-23 23:41:46974 public_deps = [
Brett Wilson052ce132014-09-12 19:46:29975 ":browser",
Brett Wilsone53895272014-09-23 23:41:46976 "//chrome/browser/ui:test_support",
977 ]
978 deps = [
Brett Wilson052ce132014-09-12 19:46:29979 "//base:prefs_test_support",
980 "//chrome/browser",
Brett Wilson052ce132014-09-12 19:46:29981 "//chrome/common",
982 "//chrome/common/safe_browsing:proto",
983 "//components/invalidation",
984 "//components/invalidation:test_support",
985 "//components/password_manager/core/browser:test_support",
986 "//components/search_engines:test_support",
987 "//content/test:test_support",
988 "//chrome/app/theme:theme_resources",
989 "//net:test_support",
990 "//skia",
991 "//testing/gmock",
992 "//testing/gtest",
993 "//ui/gfx",
994 ]
995
Brett Wilson052ce132014-09-12 19:46:29996 if (!is_ios) {
997 deps += [
998 "//components/sessions:test_support",
Brett Wilson052ce132014-09-12 19:46:29999 "//google_apis:test_support",
1000 ]
1001 }
1002
James Robinson2ed4d692014-09-17 05:20:581003 if (enable_extensions) {
thestig52a87b3b2014-10-23 22:02:381004 sources += [
1005 "extensions/extension_action_test_util.cc",
1006 "extensions/extension_action_test_util.h",
1007 ]
scottmga266f952014-12-03 20:47:101008 deps += [ "//extensions:test_support" ]
James Robinson2ed4d692014-09-17 05:20:581009 }
1010
Brett Wilson052ce132014-09-12 19:46:291011 if (is_chromeos) {
1012 sources += [
1013 "chromeos/app_mode/fake_cws.cc",
1014 "chromeos/app_mode/fake_cws.h",
1015 "chromeos/file_manager/fake_disk_mount_manager.cc",
1016 "chromeos/file_manager/fake_disk_mount_manager.h",
1017 "chromeos/input_method/mock_candidate_window_controller.cc",
1018 "chromeos/input_method/mock_candidate_window_controller.h",
1019 "chromeos/input_method/mock_input_method_engine.cc",
1020 "chromeos/input_method/mock_input_method_engine.h",
1021 "chromeos/input_method/mock_input_method_manager.cc",
1022 "chromeos/input_method/mock_input_method_manager.h",
brettw7d6ec2462015-01-07 13:00:511023 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1024 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
nkostylev393309f2015-02-05 13:57:391025 "chromeos/login/session/user_session_manager_test_api.cc",
1026 "chromeos/login/session/user_session_manager_test_api.h",
Brett Wilson052ce132014-09-12 19:46:291027 "chromeos/login/test/js_checker.cc",
1028 "chromeos/login/test/js_checker.h",
satoruxb7a72ea2015-02-13 07:19:591029 "chromeos/login/test/oobe_screen_waiter.cc",
1030 "chromeos/login/test/oobe_screen_waiter.h",
Brett Wilson052ce132014-09-12 19:46:291031 "chromeos/login/ui/mock_login_display.cc",
1032 "chromeos/login/ui/mock_login_display.h",
1033 "chromeos/login/ui/mock_login_display_host.cc",
1034 "chromeos/login/ui/mock_login_display_host.h",
brettw7d6ec2462015-01-07 13:00:511035 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1036 "chromeos/login/users/avatar/mock_user_image_manager.h",
merkulova793f3022015-02-04 10:18:301037 "chromeos/login/users/fake_chrome_user_manager.cc",
1038 "chromeos/login/users/fake_chrome_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511039 "chromeos/login/users/fake_supervised_user_manager.cc",
1040 "chromeos/login/users/fake_supervised_user_manager.h",
brettw7d6ec2462015-01-07 13:00:511041 "chromeos/login/users/mock_user_manager.cc",
1042 "chromeos/login/users/mock_user_manager.h",
Brett Wilson052ce132014-09-12 19:46:291043 "chromeos/net/network_portal_detector_test_utils.cc",
1044 "chromeos/net/network_portal_detector_test_utils.h",
1045 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1046 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1047 "chromeos/policy/device_policy_builder.cc",
1048 "chromeos/policy/device_policy_builder.h",
brettwa68ea2b2015-02-01 02:54:071049 "chromeos/policy/fake_consumer_management_service.cc",
1050 "chromeos/policy/fake_consumer_management_service.h",
Brett Wilson052ce132014-09-12 19:46:291051 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1052 "chromeos/policy/fake_device_cloud_policy_initializer.h",
brettwa68ea2b2015-02-01 02:54:071053 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1054 "chromeos/policy/fake_device_cloud_policy_manager.h",
Brett Wilson052ce132014-09-12 19:46:291055 "chromeos/policy/stub_enterprise_install_attributes.cc",
1056 "chromeos/policy/stub_enterprise_install_attributes.h",
1057 "chromeos/settings/device_settings_test_helper.cc",
1058 "chromeos/settings/device_settings_test_helper.h",
1059 "chromeos/system/fake_input_device_settings.cc",
1060 "chromeos/system/fake_input_device_settings.h",
1061 ]
1062 configs += [ "//build/config/linux:dbus" ]
mukai6ba73552014-10-09 19:05:171063 deps += [ "//chromeos:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291064 }
1065
1066 if (enable_configuration_policy) {
1067 sources += [
1068 "policy/test/local_policy_test_server.cc",
1069 "policy/test/local_policy_test_server.h",
1070 ]
Brett Wilsone53895272014-09-23 23:41:461071 public_deps += [
Brett Wilson052ce132014-09-12 19:46:291072 "//components/policy:policy_component_test_support",
1073 "//components/policy:test_support",
1074 ]
Brett Wilson052ce132014-09-12 19:46:291075 }
1076
1077 if (safe_browsing_mode == 1) {
1078 sources += [
1079 "extensions/fake_safe_browsing_database_manager.cc",
1080 "extensions/fake_safe_browsing_database_manager.h",
1081 ]
1082 }
1083
1084 if (enable_extensions) {
1085 sources += [
1086 "drive/dummy_drive_service.cc",
1087 "drive/dummy_drive_service.h",
1088 "drive/fake_drive_service.cc",
1089 "drive/fake_drive_service.h",
1090 "drive/test_util.cc",
1091 "drive/test_util.h",
1092 "extensions/api/messaging/native_messaging_test_util.cc",
1093 "extensions/api/messaging/native_messaging_test_util.h",
1094 "extensions/extension_notification_observer.cc",
1095 "extensions/extension_notification_observer.h",
Brett Wilson052ce132014-09-12 19:46:291096 "extensions/mock_extension_special_storage_policy.cc",
1097 "extensions/mock_extension_special_storage_policy.h",
1098 "extensions/test_blacklist.cc",
1099 "extensions/test_blacklist.h",
1100 "extensions/test_blacklist_state_fetcher.cc",
1101 "extensions/test_blacklist_state_fetcher.h",
brettw7d6ec2462015-01-07 13:00:511102 "extensions/test_extension_dir.cc",
1103 "extensions/test_extension_dir.h",
satoruxb7a72ea2015-02-13 07:19:591104 "extensions/test_extension_environment.cc",
1105 "extensions/test_extension_environment.h",
Brett Wilson052ce132014-09-12 19:46:291106 "extensions/test_extension_prefs.cc",
1107 "extensions/test_extension_prefs.h",
1108 "extensions/test_extension_service.cc",
1109 "extensions/test_extension_service.h",
1110 "extensions/test_extension_system.cc",
1111 "extensions/test_extension_system.h",
1112 "media_galleries/media_galleries_test_util.cc",
1113 "media_galleries/media_galleries_test_util.h",
1114 ]
scottmga266f952014-12-03 20:47:101115 deps += [ "//components/storage_monitor:test_support" ]
Brett Wilson052ce132014-09-12 19:46:291116 }
1117
1118 if (enable_mdns) {
1119 sources += [
1120 "local_discovery/test_service_discovery_client.cc",
1121 "local_discovery/test_service_discovery_client.h",
1122 ]
1123 }
1124
1125 if (enable_app_list) {
1126 sources += [
1127 "ui/app_list/test/chrome_app_list_test_support.cc",
1128 "ui/app_list/test/chrome_app_list_test_support.h",
brettw7d6ec2462015-01-07 13:00:511129 "ui/app_list/test/test_app_list_controller_delegate.cc",
1130 "ui/app_list/test/test_app_list_controller_delegate.h",
Brett Wilson052ce132014-09-12 19:46:291131 ]
1132 }
1133
1134 if (enable_wifi_bootstrapping) {
1135 sources += [
1136 "local_discovery/wifi/mock_wifi_manager.cc",
1137 "local_discovery/wifi/mock_wifi_manager.h",
1138 ]
1139 }
1140}