[go: nahoru, domu]

blob: 26e7857faafdb0aceb7457394d293bb1a8a64331 [file] [log] [blame]
brettw@chromium.orgf0e7ff882013-12-26 21:23:091# Copyright (c) 2013 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
5# This is the root build file for GN. GN will start processing by loading this
6# file, and recursively load all dependencies until all dependencies are either
7# resolved or known not to exist (which will cause the build to fail). So if
8# you add a new build file, there must be some path of dependencies from this
9# file to your new one or GN won't know about it.
10
rockot2f1326e2015-02-23 23:53:5111import("//build/config/features.gni")
aizatskyfc46a9f2015-10-09 21:20:0812import("//build/config/sanitizers/sanitizers.gni")
tfarina@chromium.org378b4f02014-06-10 15:58:4513import("//build/config/ui.gni")
dpranked4da5ab2015-10-13 06:20:3314import("//build_overrides/v8.gni")
mostynb2196a462015-08-20 17:22:1015import("//media/media_options.gni")
hbos17a7b4a22015-12-07 10:49:4516import("//third_party/openh264/openh264_args.gni")
dprankee2ef3822015-02-24 21:42:1817
cjhopmanca675d3e2014-10-24 03:50:4518if (is_android) {
19 import("//build/config/android/config.gni")
20}
tfarina@chromium.org378b4f02014-06-10 15:58:4521
brettwb84b2942014-10-22 22:58:4522declare_args() {
23 # A list of extra dependencies to add to the root target. This allows a
24 # checkout to add additional targets without explicitly changing any checked-
25 # in files.
26 root_extra_deps = []
27}
28
dprankeef9c5e582015-11-15 23:22:0829# This file defines the following five main targets:
dpranked62d8512015-03-02 03:06:0330#
dprankeddc174902015-04-29 01:38:3531# "both_gn_and_gyp" should list every root target (target that nothing else
32# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0333#
dprankeddc174902015-04-29 01:38:3534# "gn_all" should (transitively) cause everything to be built; if you run
35# 'ninja gn_all' and then 'ninja all', the second build should do no work.
36#
dprankeef9c5e582015-11-15 23:22:0837# "gn_only" should list every root target that is *not* intended to be built in
38# a GYP build. Because GN has different rules for deciding what an 'all' build
39# is, this may end up including targets that are actually defined in a GYP
40# build but not dependencies of GYP's "all" (and so not actually built).
dprankeddc174902015-04-29 01:38:3541#
dprankeb6128d02015-05-01 16:40:3042# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0843# but are built anyway by "all". Since we don't want any such targets, we have
44# this placeholder to make sure hidden targets that aren't otherwise depended
45# on yet are accounted for.
46#
47# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
48# the iOS bots and the official builders, but should not be generally used
49# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
50# same set of targets as GYP's "All" does, because GYP's "All" supports
51# wildcards.
52#
53# Lastly, none of these targets are guaranteed to be the same as what ninja
54# will build with "all". For more on how "all" works and the differences in how
55# GYP and GN determine "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3056#
dprankeddc174902015-04-29 01:38:3557# TODO(GYP): crbug.com/481694. Make sure that the above is true and there are
dprankeef9c5e582015-11-15 23:22:0858# scripts run on the bots that enforce this. Once the GYP migration is over, we
59# can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3960
dprankee2ef3822015-02-24 21:42:1861group("gn_all") {
62 testonly = true
63
64 deps = [
dprankeddc174902015-04-29 01:38:3565 ":both_gn_and_gyp",
66 ":gn_only",
dprankeb6128d02015-05-01 16:40:3067 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3568 ]
69}
70
dprankeef9c5e582015-11-15 23:22:0871# TODO(GYP): This target exists for compatibility with GYP, specifically
72# for the iOS bots and the official builders.
73group("All") {
74 testonly = true
75
76 deps = [
77 ":gn_all",
78 ]
79}
80
dprankeddc174902015-04-29 01:38:3581# The "both_gn_and_gyp" target should reflect every target that is built
82# in both the GN and GYP builds, and ideally it should match the
83# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
84#
85# TODO(GYP): Add build steps that check and enforce this on the bots.
86group("both_gn_and_gyp") {
87 testonly = true
dprankeddc174902015-04-29 01:38:3588 deps = [
dprankee2ef3822015-02-24 21:42:1889 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:1890 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:3791 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:5992 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:4493 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:1894 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:3395 "//sync:sync_unit_tests",
sherouk4fb74d42015-08-24 15:58:4196 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:3997 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:4198 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1899 ]
dpranke2a294622015-08-07 05:23:01100
slance9d62f2015-11-04 01:15:01101 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35102 deps += [
sherouk53f0f1a2015-08-03 15:59:35103 "//chrome",
104 "//chrome/test:browser_tests",
105 "//chrome/test:interactive_ui_tests",
106 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35107 "//chrome/test/chromedriver:chromedriver_unittests",
sherouk53f0f1a2015-08-03 15:59:35108 "//crypto:crypto_unittests",
sherouk53f0f1a2015-08-03 15:59:35109 "//extensions:extensions_browsertests",
110 "//extensions:extensions_unittests",
111 "//google_apis/gcm:gcm_unit_tests",
dprankedbdd9d82015-08-12 21:18:18112 "//gpu/gles2_conform_support:gles2_conform_test",
sherouk53f0f1a2015-08-03 15:59:35113 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35114 "//net:hpack_example_generator",
115 "//net:hpack_fuzz_mutator",
116 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35117 "//ppapi:ppapi_unittests",
118 "//ppapi/examples/2d",
119 "//ppapi/examples/audio",
120 "//ppapi/examples/audio_input",
121 "//ppapi/examples/compositor",
122 "//ppapi/examples/crxfs",
123 "//ppapi/examples/enumerate_devices",
124 "//ppapi/examples/file_chooser",
125 "//ppapi/examples/flash_topmost",
126 "//ppapi/examples/font",
127 "//ppapi/examples/gamepad",
128 "//ppapi/examples/gles2",
129 "//ppapi/examples/gles2_spinning_cube",
130 "//ppapi/examples/ime",
131 "//ppapi/examples/input",
132 "//ppapi/examples/media_stream_audio",
133 "//ppapi/examples/media_stream_video",
134 "//ppapi/examples/mouse_cursor",
135 "//ppapi/examples/mouse_lock",
136 "//ppapi/examples/printing",
137 "//ppapi/examples/scaling",
138 "//ppapi/examples/scripting",
139 "//ppapi/examples/stub",
140 "//ppapi/examples/threading",
141 "//ppapi/examples/url_loader",
142 "//ppapi/examples/video_capture",
143 "//ppapi/examples/video_decode",
144 "//ppapi/examples/video_effects",
145 "//ppapi/examples/video_encode",
146 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35147 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
148 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55149 "//third_party/pdfium/samples:pdfium_test",
charliea00055282016-01-26 00:15:15150 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25151 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55152 "//tools/gn",
dpranke244f9732015-11-20 05:38:10153 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55154 "//tools/perf/clear_system_cache",
155 "//ui/accessibility:accessibility_unittests",
156 "//ui/app_list:app_list_unittests",
157 ]
158 }
159
160 if (!is_ios) {
161 # TODO(GYP): Figure out which of these should actually build on iOS,
162 # and whether there should be other targets that are iOS-only and missing.
163 deps += [
164 "//cc:cc_unittests",
165 "//chrome/test:unit_tests",
166 "//components:components_browsertests",
167 "//content/shell:content_shell",
168 "//content/test:content_browsertests",
169 "//content/test:content_perftests",
170 "//content/test:content_unittests",
171 "//device:device_unittests",
172 "//gpu:gpu_unittests",
173 "//ipc:ipc_tests",
174 "//ipc/mojo:ipc_mojo_unittests",
175 "//media:media_unittests",
miu45b848fe2015-11-26 01:23:29176 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55177 "//media/midi:midi_unittests",
178 "//mojo",
pkotwicz558d5252015-10-19 21:09:55179 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08180 "//mojo/edk/system:mojo_system_unittests",
181 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08182 "//mojo/edk/test:mojo_public_system_unittests",
ben273c1e32016-01-12 02:44:08183 "//mojo/shell/public/cpp",
pkotwicz558d5252015-10-19 21:09:55184 "//net:net_perftests",
Dirk Pranke49802732015-12-10 01:36:41185 "//third_party/WebKit/Source/platform:blink_heap_unittests",
186 "//third_party/WebKit/Source/platform:blink_platform_unittests",
dpranke244f9732015-11-20 05:38:10187 "//third_party/WebKit/Source/web:webkit_unit_tests",
188 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28189 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35190 "//third_party/smhasher:pmurhash",
191 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35192 "//ui/display:display_unittests",
193 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35194 "//ui/gl:gl_unittests",
195 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03196 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35197 ]
sdefresne998e8582015-10-07 13:36:45198 } else {
sdefresnea378b452015-10-08 09:55:58199 deps += [
dpranke0e5462c2016-02-23 19:57:46200 #"//ios/chrome:ios_chrome_unittests", TODO(GYP)
201 #"//ios/chrome/app", TODO(GYP)
202 #"//ios/chrome/browser", TODO(GYP)
203 "//ios/chrome/common",
sdefresnea378b452015-10-08 09:55:58204 "//ios/net:ios_net_unittests",
dpranke0e5462c2016-02-23 19:57:46205 "//ios/public/provider/chrome/browser",
sdefresne89308c92015-11-16 10:40:34206 "//ios/public/provider/web",
sdefresnec6ddd7ac2015-10-09 17:30:19207 "//ios/testing:ocmock_support_unittest",
baxley33bcc1342016-02-24 20:43:09208 "//ios/third_party/fishhook",
sdefresnea9045f42016-02-23 15:22:45209 "//ios/third_party/ochamcrest",
sdefresneaa7c1cf2015-10-22 00:41:11210 "//ios/web:ios_web_unittests",
dpranke244f9732015-11-20 05:38:10211 "//ios/web/shell:ios_web_shell",
sdefresnea378b452015-10-08 09:55:58212 ]
sherouk53f0f1a2015-08-03 15:59:35213 }
dprankee2ef3822015-02-24 21:42:18214
scottmg34fb7e52014-12-03 23:27:24215 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05216
tfarina4aa9edc2015-10-26 22:14:02217 if (enable_extensions) {
rockot2f1326e2015-02-23 23:53:51218 deps += [ "//extensions/shell:app_shell_unittests" ]
219 }
220
dprankefd1813272015-04-13 23:56:00221 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55222 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00223 }
224
garykac3eddb5b2015-04-17 23:16:38225 if (enable_remoting) {
226 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05227 }
228
dprankee2ef3822015-02-24 21:42:18229 if (toolkit_views) {
230 deps += [ "//ui/views:views_unittests" ]
James Robinson060f2e32014-09-10 22:31:37231 }
232
dprankee2ef3822015-02-24 21:42:18233 if (use_aura) {
mswda0133e62016-02-16 20:50:02234 deps += [
235 "//ash:ash_shell_with_content",
236 "//ash:ash_unittests",
237 "//ui/aura:aura_unittests",
238 "//ui/aura:bench",
239 "//ui/aura:demo",
240 "//ui/wm:wm_unittests",
241 ]
dprankee2ef3822015-02-24 21:42:18242 }
243
244 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47245 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50246 }
247
dprankefd1813272015-04-13 23:56:00248 if (use_x11) {
249 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22250 }
251
tmoniuszkoe5578b922015-04-14 09:38:03252 if (enable_configuration_policy) {
253 deps += [ "//components/policy:policy_templates" ]
254 }
255
dprankefd1813272015-04-13 23:56:00256 if (v8_use_external_startup_data) {
257 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
brettw@chromium.org2d6893a2014-06-02 19:16:36258 }
259
brettw66e3feab2015-07-20 23:52:22260 if (is_win) {
brettwf986f952015-10-07 17:18:15261 deps += [
262 "//chrome/installer/gcapi",
263 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
264 ]
brettw66e3feab2015-07-20 23:52:22265 }
266
dpranke@chromium.org5a8d5162014-04-12 01:19:16267 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03268 deps += [
pkotwicze2dae8b2015-11-03 20:12:55269 "//base:base_junit_tests",
dpranke244f9732015-11-20 05:38:10270 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38271 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02272 "//build/android/rezip",
pkotwicze2dae8b2015-11-03 20:12:55273 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
274 "//components/policy/android:components_policy_junit_tests",
275 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45276 "//content/shell/android:content_shell_apk",
277 "//content/test:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55278 "//net/android:net_junit_tests",
279 "//testing/android/junit:junit_unittests",
pkotwicz8adff4e2015-12-17 21:55:45280 "//third_party/android_tools:uiautomator_java",
agrieve40ba6862015-07-15 02:09:05281 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45282 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10283 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49284 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34285 "//tools/android:push_apps_to_background",
pkotwicz8b9d18c2015-10-05 01:59:33286 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43287 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15288 "//tools/cygprofile:cygprofile_unittests",
dprankee2ef3822015-02-24 21:42:18289 "//tools/imagediff($host_toolchain)",
newt9e226032016-01-26 01:30:15290 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18291 ]
292 deps -= [
rockot9c67e5f2015-03-12 20:01:21293 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18294 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03295 ]
296
pkotwicz92e2e2312015-12-15 22:29:46297 if (!is_component_build) {
298 deps += [
agrievee23386b2016-01-05 04:47:58299 "//components/cronet/android:cronet_package",
pkotwicz92e2e2312015-12-15 22:29:46300 "//components/cronet/android:cronet_sample_apk",
301 "//components/cronet/android:cronet_sample_test_apk",
302 "//components/cronet/android:cronet_test_apk",
303 "//components/cronet/android:cronet_test_instrumentation_apk",
304 "//components/cronet/android:cronet_unittests",
305 ]
306 }
307
pkotwicz061c5a42015-09-30 02:16:54308 if (!is_chromecast) {
309 deps += [
michaelbaicbcc7e62015-11-12 04:29:53310 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30311 "//android_webview/test",
agrieve1a3e9eb2015-12-29 02:07:26312 "//android_webview/tools",
pkotwicze2dae8b2015-11-03 20:12:55313 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54314 "//chrome/android:chrome_public_apk",
315 "//chrome/android:chrome_public_test_apk",
316 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b2015-12-28 20:23:11317 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05318 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54319 ]
320 }
321
pkotwicz06a4b4b42015-10-29 23:11:11322 if (target_cpu != "x64") {
323 deps += [ "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)" ]
324 }
325
cjhopmanca675d3e2014-10-24 03:50:45326 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18327 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45328 }
dprankedb5527d72015-03-08 04:22:47329 }
330
pkotwicza4d233b22015-11-02 18:20:38331 if (is_linux || is_android) { # TODO(GYP): || is_bsd?
dprankefd1813272015-04-13 23:56:00332 deps += [
pkotwicza4d233b22015-11-02 18:20:38333 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00334 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38335 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00336 "//breakpad:minidump-2-core",
337 ]
338 }
339
dpranke6293d252015-04-14 19:12:00340 if (is_chromeos) {
341 deps += [
342 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22343 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00344 "//ui/chromeos:ui_chromeos_unittests",
345 ]
346 }
347
dprankefd1813272015-04-13 23:56:00348 if (is_chromeos || is_mac || is_win) {
349 deps += [
350 "//rlz:rlz_id",
351 "//rlz:rlz_lib",
352 "//rlz:rlz_unittests",
353 ]
354 }
355
dprankedb5527d72015-03-08 04:22:47356 if (is_linux) {
357 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06358 deps += [
dpranke2bc89212015-11-18 00:24:43359 "//chrome:manpage",
360 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47361 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18362 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47363 "//net:disk_cache_memory_test",
364 "//net:flip_in_mem_edsm_server",
365 "//net:flip_in_mem_edsm_server_unittests",
366 "//net:quic_client",
367 "//net:quic_server",
368 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18369 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06370 ]
dnicoara8c6aa8e2015-03-11 23:20:32371
372 if (is_chromeos || use_ash) {
373 deps += [ "//components/session_manager/core" ]
374 }
dpranke2bc89212015-11-18 00:24:43375
376 if (is_chrome_branded && is_official_build) {
377 # TODO(dpranke): add the linux_dump_symbols flag?
378 deps += [ "//chrome:linux_symbols" ]
379 }
dprankedb5527d72015-03-08 04:22:47380 }
381
sherouke1859f92015-08-05 10:19:10382 if (is_ios || is_win || (is_linux && !is_chromeos)) {
383 deps += [
384 "//base:base_i18n_perftests",
385 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58386 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10387 ]
388 }
389
agrieve473155b2015-12-28 20:23:11390 if (is_android || is_win || (is_linux && !is_chromeos)) {
tfarina9e7cf702015-02-23 21:13:44391 deps += [
dprankedb5527d72015-03-08 04:22:47392 "//base:build_utf8_validator_tables",
dpranke244f9732015-11-20 05:38:10393 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47394 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00395 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47396 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47397 "//content/test:content_gl_benchmark",
dpranke244f9732015-11-20 05:38:10398 "//content/test:content_gl_tests",
dprankedb5527d72015-03-08 04:22:47399 "//device:device_unittests",
400 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47401 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47402 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00403 "//gpu:gl_tests",
dpranke244f9732015-11-20 05:38:10404 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47405 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47406 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00407 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47408 "//sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47409 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00410 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47411 "//ui/compositor:compositor_unittests",
412 ]
413
agrieve473155b2015-12-28 20:23:11414 # TODO(GYP): Figure out which of these should (and can) build
415 # for chromeos/mac/ios.
416 if (!is_android) {
417 deps += [
418 "//chrome/test:load_library_perf_tests",
419 "//chrome/test:sync_performance_tests",
420 "//chrome/test/chromedriver:chromedriver",
421 "//chrome/test/chromedriver:chromedriver_tests",
422 "//courgette:courgette",
423 "//courgette:courgette_fuzz",
424 "//courgette:courgette_minimal_tool",
425 "//courgette:courgette_unittests",
426 "//media/cast:generate_barcode_video",
427 "//media/cast:generate_timecode_audio",
428 "//net:crash_cache",
429 "//net:crl_set_dump",
430 "//net:dns_fuzz_stub",
431 "//net:gdig",
432 "//net:get_server_time",
433 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
434 "//net:run_testserver",
435 "//net:stress_cache",
436 "//net:tld_cleanup",
437 "//ppapi:pepper_hash_for_uma",
438 "//ppapi:ppapi_perftests",
439 "//third_party/angle/src/tests:angle_unittests",
440 "//third_party/leveldatabase:env_chromium_unittests",
441 "//third_party/libaddressinput:libaddressinput_unittests",
442 ]
443 }
444 if (!is_android && !is_linux) {
dpranke7e19b472015-11-13 00:49:33445 # TODO(dpranke): Re-enable this once
446 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled
447 # into chromium.
448 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ]
449 }
450
dprankedb5527d72015-03-08 04:22:47451 if (enable_extensions) {
452 deps += [ "//extensions/shell:app_shell" ]
453 }
454
455 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13456 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43457
458 if (is_linux) {
459 # TODO(dpranke): Figure out what platforms should actually have this.
460 deps += [
brettwf4b4a4282015-12-16 00:41:13461 "//components/nacl/loader:helper_nonsfi",
462 "//components/nacl/loader:nacl_helper",
jbudorick3c0ef43092016-02-03 23:40:16463 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
dpranke2bc89212015-11-18 00:24:43464 ]
465 }
dprankedb5527d72015-03-08 04:22:47466 }
467
xhwangfa2d9d472015-12-18 23:31:18468 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10469 deps += [ "//media:ffmpeg_regression_tests" ]
470 }
dprankefd1813272015-04-13 23:56:00471 }
472
agrieve473155b2015-12-28 20:23:11473 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00474 deps += [
475 # TODO(GYP): Figure out which of these should (and can) build
476 # under which other conditions.
agrieve473155b2015-12-28 20:23:11477 "//breakpad:dump_syms($host_toolchain)",
478 "//breakpad:microdump_stackwalk($host_toolchain)",
479 "//breakpad:minidump_dump($host_toolchain)",
480 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00481 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00482 "//content/public/app:browser",
483 "//content/public/app:child",
484
485 # TODO(GYP): Remove this when the gles2 tests work
486 "//gpu/command_buffer/client:gles2_implementation_no_check",
dprankefd1813272015-04-13 23:56:00487 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
rockotc637caf9b2016-02-10 09:57:08488 "//mojo/edk/test:mojo_public_system_perftests",
ben273c1e32016-01-12 02:44:08489 "//mojo/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00490 "//testing/gmock:gmock_main",
dpranke244f9732015-11-20 05:38:10491 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00492 ]
493
agrieve473155b2015-12-28 20:23:11494 if (!is_android) {
495 deps += [
496 "//build/sanitizers:copy_llvm_symbolizer",
497 "//chrome/test:chrome_app_unittests",
498 "//media/cast:cast_benchmarks",
499 "//media/cast:tap_proxy",
500 "//skia:filter_fuzz_stub",
501 "//skia:image_operations_bench",
502 "//sync/tools:sync_client",
503 "//sync/tools:sync_listen_notifications",
504 "//third_party/sqlite:sqlite_shell",
505 "//ui/keyboard:keyboard_unittests",
506 "//ui/message_center:message_center_unittests",
507 "//ui/snapshot:snapshot_unittests",
508 "//ui/views/examples:views_examples_with_content_exe",
509 ]
dprankefd1813272015-04-13 23:56:00510
agrieve473155b2015-12-28 20:23:11511 if (!is_debug && !is_component_build) {
512 deps += [ "//chrome/tools/service_discovery_sniffer" ]
513 }
dprankefd1813272015-04-13 23:56:00514 }
515
516 if (toolkit_views) {
517 deps += [ "//ui/app_list:app_list_demo" ]
518 }
dprankedb5527d72015-03-08 04:22:47519
520 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44521 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59522 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44523 }
dprankedb5527d72015-03-08 04:22:47524 }
525 }
526
527 if (is_mac) {
528 deps += [
529 "//breakpad:crash_inspector",
530 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44531 "//third_party/apple_sample_code",
532 "//third_party/molokocacao",
533 ]
dpranke43760592014-11-08 02:59:57534 deps -= [
brettw011138d2015-10-21 03:05:38535 # Mojo in GN contains some things which are never compiled in GYP on Mac,
536 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10537 "//mojo",
dprankecf8465db72014-11-10 23:51:22538 ]
dprankefd1813272015-04-13 23:56:00539 }
540
541 if (is_win) {
542 deps += [
543 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43544 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00545 "//chrome_elf:chrome_elf_unittests",
546 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00547 "//components/wifi:wifi_test",
548 "//net:quic_client",
549 "//net:quic_server",
550 "//sandbox/win:pocdll",
551 "//sandbox/win:sandbox_poc",
552 "//sandbox/win:sbox_integration_tests",
553 "//sandbox/win:sbox_unittests",
554 "//sandbox/win:sbox_validation_tests",
555 "//testing/gtest:gtest_main",
556 "//third_party/codesighs:msmap2tsv",
557 "//third_party/pdfium/samples:pdfium_diff",
558 "//ui/metro_viewer",
559 ]
dprankee2ef3822015-02-24 21:42:18560 deps -= [
561 "//crypto:crypto_unittests", # TODO(GYP)
562 "//net:net_unittests", # TODO(GYP)
563 ]
sherouk53f0f1a2015-08-03 15:59:35564 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29565 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34566 }
slance9d62f2015-11-04 01:15:01567 if (is_chromecast) {
568 deps += [ "//chromecast:cast_shell" ]
569 }
miu45b848fe2015-11-26 01:23:29570
dpranked43eab42015-12-15 23:10:44571 if (is_mac) { # TODO(GYP) || is_ios
miu45b848fe2015-11-26 01:23:29572 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ]
573 }
hbos17a7b4a22015-12-07 10:49:45574
575 if (use_openh264) {
576 deps += [
577 "//third_party/openh264:common",
578 "//third_party/openh264:encoder",
579 "//third_party/openh264:processing",
580 ]
581 }
brettw@chromium.orgf0e7ff882013-12-26 21:23:09582}
brettw533c50422015-02-26 17:49:16583
sky60a230b2016-01-23 01:04:53584# This group contains all the targets needed to run mojo's apptest_runner.
585group("mojo_apptests") {
586 testonly = true
587
588 deps = []
589
590 if (is_win || is_linux) {
591 deps += [
skyfcde3a42016-02-09 20:27:44592 "//components/filesystem:apptests",
ergb22301f2016-02-17 19:37:54593 "//components/leveldb:apptests",
skyfcde3a42016-02-09 20:27:44594 "//components/resource_provider:apptests",
595 "//components/resource_provider:resource_provider_unittests",
sky60a230b2016-01-23 01:04:53596 "//mash/wm:tests",
jrummell135d61e2016-01-27 19:36:17597 "//media/mojo/services:tests",
msw9a371982016-02-11 01:12:13598 "//mojo/services/network:apptests",
sky60a230b2016-01-23 01:04:53599 "//ui/views/mus:tests",
600 ]
601 }
602}
603
dpranked62d8512015-03-02 03:06:03604group("gn_only") {
dprankedb5527d72015-03-08 04:22:47605 testonly = true
606
dpranke2a294622015-08-07 05:23:01607 deps = []
608
amistry4dcd7c42015-12-16 04:53:10609 if (!is_ios) {
610 deps += [ "//mojo/common:mojo_common_perftests" ]
611 }
612
dpranke244f9732015-11-20 05:38:10613 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45614 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
615 }
616
ben8f4e95ad2015-12-01 18:35:58617 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54618 deps += [
sky60a230b2016-01-23 01:04:53619 ":mojo_apptests",
rockot6a2b0422016-03-09 17:14:59620 "//components/mus/ws:tests",
sky70471b22016-01-14 16:20:54621 "//mash:all",
skyfcde3a42016-02-09 20:27:44622 "//mojo",
sky70471b22016-01-14 16:20:54623 ]
sky97b65592015-11-02 20:08:25624 }
625
zhaoqin756f8572016-01-25 21:41:17626 if (is_win && use_drfuzz) {
627 # build libfuzzer fuzzers on Windows to run with Dr. Fuzz
628 deps += [
629 "//testing/libfuzzer/fuzzers",
630 "//testing/libfuzzer/tests:libfuzzer_tests",
631 ]
632 }
633
slance9d62f2015-11-04 01:15:01634 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47635 # TODO(GYP): Figure out if any of these should be in gn_all
636 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45637 deps += [
dprankedb5527d72015-03-08 04:22:47638 ":gn_mojo_targets",
639 "//chrome/browser/resources:extension_resource_demo",
640 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47641 "//chrome/tools/convert_dict",
642 "//components/constrained_window:unit_tests",
dprankedb5527d72015-03-08 04:22:47643 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45644 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47645 "//components/rappor:unit_tests",
646 "//components/sessions:unit_tests",
647 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47648 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47649 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
650 "//storage/browser:dump_file_system",
aizatskyc562c132016-01-20 00:00:14651 "//testing/libfuzzer/fuzzers",
652 "//testing/libfuzzer/tests:libfuzzer_tests",
dprankedb5527d72015-03-08 04:22:47653 "//third_party/angle:libANGLE",
654 "//third_party/angle:libEGL",
655 "//third_party/angle:libGLESv2",
656 "//third_party/cld_2:cld_2_dynamic_data_tool",
657 "//third_party/leveldatabase:leveldb_arena_test",
658 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47659 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47660 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f9732015-11-20 05:38:10661 "//third_party/leveldatabase:leveldb_crc32c_test",
662 "//third_party/leveldatabase:leveldb_db_bench",
663 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47664 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f9732015-11-20 05:38:10665 "//third_party/leveldatabase:leveldb_env_test",
666 "//third_party/leveldatabase:leveldb_filename_test",
667 "//third_party/leveldatabase:leveldb_filter_block_test",
668 "//third_party/leveldatabase:leveldb_log_test",
669 "//third_party/leveldatabase:leveldb_skiplist_test",
670 "//third_party/leveldatabase:leveldb_table_test",
671 "//third_party/leveldatabase:leveldb_version_edit_test",
672 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47673 "//third_party/libjpeg_turbo:simd",
dpranke244f9732015-11-20 05:38:10674 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47675 "//third_party/libsrtp:replay_driver",
676 "//third_party/libsrtp:roc_driver",
677 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47678 "//third_party/libsrtp:srtp_driver",
679 "//third_party/libsrtp:srtp_driver",
dpranke244f9732015-11-20 05:38:10680 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47681 "//third_party/libsrtp:srtp_test_cipher_driver",
682 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47683 "//third_party/libsrtp:srtp_test_env",
dpranke244f9732015-11-20 05:38:10684 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47685 "//third_party/libsrtp:srtp_test_rand_gen",
686 "//third_party/libsrtp:srtp_test_sha1_driver",
687 "//third_party/libsrtp:srtp_test_stat_driver",
688 "//third_party/opus:opus_compare",
689 "//third_party/opus:opus_demo",
dpranke244f9732015-11-20 05:38:10690 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47691 "//third_party/opus:test_opus_decode",
692 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47693 "//third_party/opus:test_opus_padding",
dpranke244f9732015-11-20 05:38:10694 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47695 "//third_party/webrtc/system_wrappers:field_trial_default",
696 "//third_party/webrtc/system_wrappers:metrics_default",
697 "//ui/display/types",
698 "//ui/shell_dialogs:shell_dialogs_unittests",
699 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47700 ]
dprankeb0713542015-07-31 21:07:21701
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16702 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b2015-12-28 20:23:11703 if (!is_android) {
704 deps += [ "//chrome/test:load_library_perf_tests" ]
705 }
mcgrathr916aafa2015-09-15 00:06:53706 deps += [
mcgrathr916aafa2015-09-15 00:06:53707 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f9732015-11-20 05:38:10708 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53709 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16710 }
dprankedb5527d72015-03-08 04:22:47711 if (use_ozone) {
712 deps += [ "//ui/ozone/demo" ]
713 }
dpranke807f6022015-03-17 23:20:56714
715 if (is_linux && current_toolchain == host_toolchain) {
716 deps += [ "//v8:d8" ]
717 }
dprankedb5527d72015-03-08 04:22:47718 }
dprankeb0713542015-07-31 21:07:21719
sbc92b4d572016-02-18 03:28:23720 if (enable_nacl) {
721 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
722 }
723
agrieve473155b2015-12-28 20:23:11724 if (is_android) {
725 deps += [
726 "//build/android/gyp/test:hello_world",
727 "//build/android/incremental_install:bootstrap_java",
728 ]
nyquistb5f050b2015-09-10 05:10:35729 }
730
skyostilfe116162016-02-26 20:53:33731 if (is_linux && use_ozone) {
732 deps += [
733 "//headless",
734 "//headless:headless_tests",
735 ]
736 }
737
agrieve473155b2015-12-28 20:23:11738 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
739 deps += [
740 "//blimp",
741 "//blimp:blimp_tests",
742 ]
dprankeb0713542015-07-31 21:07:21743 }
dprankedb5527d72015-03-08 04:22:47744}
745
746group("gn_mojo_targets") {
747 testonly = true
748 if (is_linux && !is_chromeos) {
749 # TODO(GYP): Figure out if any of these should be in gn_all
750 # and figure out how cross-platform they are
751 deps = [
dprankedb5527d72015-03-08 04:22:47752 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47753 "//media/mojo:tests",
dpranke244f9732015-11-20 05:38:10754 "//media/mojo/services:cdm_service",
msw1bb9c6c2015-05-06 21:35:44755 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47756 ]
dprankedb5527d72015-03-08 04:22:47757 }
758}
759
760group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03761 deps = [
dprankeb6128d02015-05-01 16:40:30762 "//build/config/sanitizers:options_sources",
763
dprankedb5527d72015-03-08 04:22:47764 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
765 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30766
767 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03768 ]
dpranked2fb5222015-09-10 22:39:05769
770 if (!is_ios) {
771 deps += [
dpranked2fb5222015-09-10 22:39:05772 "//v8:postmortem-metadata",
dpranke244f9732015-11-20 05:38:10773 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05774 ]
775 }
dpranked62d8512015-03-02 03:06:03776}
777
tfarinacb2638b2015-05-12 03:24:15778if (!is_ios) {
779 # This group includes all of the targets needed to build and test Blink,
780 # including running the layout tests (see below).
781 group("blink_tests") {
782 testonly = true
783
784 deps = [
785 "//third_party/WebKit/public:all_blink",
786 ]
787
788 # NOTE: The following deps are needed to run the layout tests
789 # (run-webkit-tests) but there is no GN target for the layout tests,
790 # so we need to specify the dependencies here instead.
791 if (is_android) {
792 deps += [
pkotwicza4d233b22015-11-02 18:20:38793 "//breakpad:breakpad_unittests_deps",
tfarinacb2638b2015-05-12 03:24:15794 "//breakpad:dump_syms($host_toolchain)",
pkotwicza4d233b22015-11-02 18:20:38795 "//breakpad:microdump_stackwalk($host_toolchain)",
796 "//breakpad:minidump_dump($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15797 "//breakpad:minidump_stackwalk($host_toolchain)",
pkotwicza4d233b22015-11-02 18:20:38798 "//breakpad:symupload($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15799 "//content/shell/android:content_shell_apk",
ojan94989c72015-07-17 21:56:42800 "//tools/imagediff($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15801 ]
802 } else {
ojan94989c72015-07-17 21:56:42803 deps += [
804 "//content/shell:content_shell",
805 "//tools/imagediff",
806 ]
tfarinacb2638b2015-05-12 03:24:15807 }
808
809 if (is_win) {
810 deps += [
jochen73e711c2015-06-03 10:01:46811 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01812 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15813 ]
814 }
815
816 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47817 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15818 }
819
820 if (is_mac) {
821 deps += [
822 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46823 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15824 ]
825 }
826
827 if (is_linux) {
828 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
829 }
830 }
831}
832
dpranke6abd8652015-08-28 03:21:11833# Add a dummy target for compatibility w/ GYP
834group("chromium_swarm_tests") {
835}
836
dpranke2302dfa2015-09-29 02:21:52837group("chromium_builder_perf") {
838 testonly = true
839
840 # TODO(GYP): Make this target work on the mac.
841 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
842 deps = [
843 "//cc:cc_perftests",
844 "//chrome",
845 "//chrome/test:load_library_perf_tests",
846 "//chrome/test:sync_performance_tests",
847 "//gpu:gpu_perftests",
848 "//media:media_perftests",
849 "//media/midi:midi_unittests",
nednguyenc42bf912016-01-27 01:39:28850 "//third_party/catapult/telemetry:bitmaptools",
dpranke2302dfa2015-09-29 02:21:52851 ]
852
853 if (!is_chromeos) {
854 deps += [ "//chrome/test:performance_browser_tests" ]
855 }
856 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04857 if (is_official_build) {
858 # In GN builds, this is controlled by the 'linux_dump_symbols'
859 # flag, which defaults to 1 for official builds. For now,
860 # we skip the separate flag and just key off of is_official_build.
861 deps += [ "//chrome:linux_symbols" ]
862 }
dpranke2302dfa2015-09-29 02:21:52863
864 if (!is_chromeos) {
865 deps += [ "//tools/perf/clear_system_cache" ]
866 }
867 }
868
869 if (is_win) {
870 deps += [
brettw0d3b1df2015-12-03 00:10:01871 "//chrome/tools/crash_service",
dpranke2302dfa2015-09-29 02:21:52872 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
873 ]
874
875 if (target_cpu == "x86") {
brettw0d3b1df2015-12-03 00:10:01876 deps += [ "//chrome/tools/crash_service:crash_service_win64" ]
dpranke2302dfa2015-09-29 02:21:52877 }
878 } else {
dprankeec10b3932015-10-02 17:58:23879 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52880 }
881 }
882}
agrieve017b91f2016-02-29 20:15:06883
884# Because of the source assignment filter, many targets end up over-filtering
885# their sources if the output directory contains a platform name. Assert that
886# this doesn't happen. http://crbug.com/548283
887template("assert_valid_out_dir") {
888 # List copied from //build/config/BUILDCONFIG.gn.
889 set_sources_assignment_filter([
890 "*\bandroid/*",
891 "*\bchromeos/*",
892 "*\bcocoa/*",
893 "*\bios/*",
894 "*\blinux/*",
895 "*\bmac/*",
896 "*\bposix/*",
897 "*\bwin/*",
898 ])
899 assert(target_name != "") # Mark as used.
900 sources = invoker.actual_sources
901 assert(
902 sources == invoker.actual_sources,
903 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
904}
905
906assert_valid_out_dir("_unused") {
907 actual_sources = [ "$root_build_dir/foo" ]
908}