blob: 2f5e69308252234b1a53a12bb5259ef7bb051627 [file] [log] [blame]
[email protected]f0e7ff882013-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
dprankead249c72016-06-11 18:01:2211import("//build/config/compiler/compiler.gni")
rockot2f1326e2015-02-23 23:53:5112import("//build/config/features.gni")
aizatskyfc46a9f2015-10-09 21:20:0813import("//build/config/sanitizers/sanitizers.gni")
[email protected]378b4f02014-06-10 15:58:4514import("//build/config/ui.gni")
brettw00899e62016-11-12 02:10:1715import("//extensions/features/features.gni")
mostynb2196a462015-08-20 17:22:1016import("//media/media_options.gni")
brettw2b112cd2016-10-12 19:35:3617import("//remoting/remoting_enable.gni")
hbos17a7b4a22015-12-07 10:49:4518import("//third_party/openh264/openh264_args.gni")
thakis3f7d4fc2016-06-10 18:47:5019import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
kylechar50abf5a2016-11-29 16:03:0720import("//ui/ozone/ozone.gni")
machenbachd65ec5c2016-07-22 09:05:2321import("//v8/gni/v8.gni")
dpranke8a2de902016-07-14 20:08:3722import("//v8/snapshot_toolchain.gni")
dprankee2ef3822015-02-24 21:42:1823
cjhopmanca675d3e2014-10-24 03:50:4524if (is_android) {
25 import("//build/config/android/config.gni")
26}
[email protected]378b4f02014-06-10 15:58:4527
brettwb84b29472014-10-22 22:58:4528declare_args() {
29 # A list of extra dependencies to add to the root target. This allows a
30 # checkout to add additional targets without explicitly changing any checked-
31 # in files.
32 root_extra_deps = []
33}
34
brucedawsonc8d6d652016-09-02 19:43:1835if (is_official_build) {
36 # An official (maximally optimized!) component (optimized for build times)
37 # build doesn't make sense and usually doesn't work.
38 assert(!is_component_build)
39}
40
thakis75b3b452017-04-25 22:27:3741# This file defines the following three main targets:
dpranked62d8512015-03-02 03:06:0342#
dprankeddc174902015-04-29 01:38:3543# "gn_all" should (transitively) cause everything to be built; if you run
44# 'ninja gn_all' and then 'ninja all', the second build should do no work.
45#
dprankeb6128d02015-05-01 16:40:3046# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0847# but are built anyway by "all". Since we don't want any such targets, we have
48# this placeholder to make sure hidden targets that aren't otherwise depended
49# on yet are accounted for.
50#
51# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
52# the iOS bots and the official builders, but should not be generally used
53# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
54# same set of targets as GYP's "All" does, because GYP's "All" supports
55# wildcards.
56#
57# Lastly, none of these targets are guaranteed to be the same as what ninja
thakis75b3b452017-04-25 22:27:3758# will build with "all". For more on how "all" works and how GN determines
59# "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3060#
brettwf9427f92016-05-05 23:18:5561# TODO(GYP_GONE): crbug.com/481694. Make sure that the above is true and there
62# are scripts run on the bots that enforce this. Once the GYP migration is
63# over, we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3964
dprankee2ef3822015-02-24 21:42:1865group("gn_all") {
66 testonly = true
67
68 deps = [
dprankeb6128d02015-05-01 16:40:3069 ":gn_visibility",
dprankee2ef3822015-02-24 21:42:1870 "//base:base_unittests",
brettwa874dccb2015-08-28 23:59:1871 "//chrome/installer",
sheroukce1c7d72015-08-24 15:21:5972 "//net:net_unittests",
brettwa874dccb2015-08-28 23:59:1873 "//sql:sql_unittests",
ochangcc11d0e2016-04-26 19:58:2674 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:4175 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1876 ]
dpranke2a294622015-08-07 05:23:0177
sdefresne21832bf92016-03-30 22:01:0278 if (!is_android && !is_chromecast) {
79 deps += [
80 "//crypto:crypto_unittests",
81 "//google_apis/gcm:gcm_unit_tests",
82 ]
83 }
84
scottmg2f97ee122017-05-12 17:50:3785 if (!is_fuchsia) {
86 deps += [
87 "//components:components_unittests",
88 "//skia:skia_unittests",
89 "//tools/metrics:metrics_metadata",
90 "//ui/base:ui_base_unittests",
91 "//ui/gfx:gfx_unittests",
92 ]
93 }
94
95 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) {
sherouk53f0f1a2015-08-03 15:59:3596 deps += [
sherouk53f0f1a2015-08-03 15:59:3597 "//chrome",
98 "//chrome/test:browser_tests",
99 "//chrome/test:interactive_ui_tests",
100 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35101 "//chrome/test/chromedriver:chromedriver_unittests",
Max Boguefef332d2016-07-28 22:09:09102 "//components/sync/tools:sync_client",
103 "//components/sync/tools:sync_listen_notifications",
jamescookfbbf9112016-06-14 16:24:49104 "//extensions:extensions_browsertests",
105 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18106 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26107 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35108 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35109 "//net:hpack_example_generator",
sherouk53f0f1a2015-08-03 15:59:35110 "//ppapi:ppapi_unittests",
111 "//ppapi/examples/2d",
112 "//ppapi/examples/audio",
113 "//ppapi/examples/audio_input",
114 "//ppapi/examples/compositor",
115 "//ppapi/examples/crxfs",
116 "//ppapi/examples/enumerate_devices",
117 "//ppapi/examples/file_chooser",
118 "//ppapi/examples/flash_topmost",
119 "//ppapi/examples/font",
120 "//ppapi/examples/gamepad",
121 "//ppapi/examples/gles2",
122 "//ppapi/examples/gles2_spinning_cube",
123 "//ppapi/examples/ime",
124 "//ppapi/examples/input",
125 "//ppapi/examples/media_stream_audio",
126 "//ppapi/examples/media_stream_video",
127 "//ppapi/examples/mouse_cursor",
128 "//ppapi/examples/mouse_lock",
129 "//ppapi/examples/printing",
130 "//ppapi/examples/scaling",
131 "//ppapi/examples/scripting",
132 "//ppapi/examples/stub",
133 "//ppapi/examples/threading",
134 "//ppapi/examples/url_loader",
135 "//ppapi/examples/video_capture",
136 "//ppapi/examples/video_decode",
137 "//ppapi/examples/video_effects",
138 "//ppapi/examples/video_encode",
139 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35140 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
pkotwicz558d5252015-10-19 21:09:55141 "//third_party/pdfium/samples:pdfium_test",
kjellanderb1ab7b82016-11-01 08:34:21142 "//third_party/webrtc/tools:frame_analyzer",
charliea00055282016-01-26 00:15:15143 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25144 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55145 "//tools/gn",
dpranke244f973d62015-11-20 05:38:10146 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55147 "//tools/perf/clear_system_cache",
rhalavati3051a402017-04-21 07:12:41148 "//tools/traffic_annotation/auditor:traffic_annotation_auditor",
pkotwicz558d5252015-10-19 21:09:55149 "//ui/accessibility:accessibility_unittests",
wnwen2c84eb652017-03-20 23:21:27150 "//ui/accessibility/extensions",
pkotwicz558d5252015-10-19 21:09:55151 ]
152 }
153
scottmg2f97ee122017-05-12 17:50:37154 if (!is_ios && !is_fuchsia) {
pkotwicz558d5252015-10-19 21:09:55155 deps += [
156 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03157 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55158 "//chrome/test:unit_tests",
159 "//components:components_browsertests",
brettw3865a712016-12-10 05:59:08160 "//components/policy:policy_templates",
pkotwicz558d5252015-10-19 21:09:55161 "//content/shell:content_shell",
162 "//content/test:content_browsertests",
163 "//content/test:content_perftests",
164 "//content/test:content_unittests",
165 "//device:device_unittests",
varkha5aa18a02017-05-31 22:39:50166 "//google_apis/gcm:mcs_probe",
pkotwicz558d5252015-10-19 21:09:55167 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45168 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55169 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55170 "//media:media_unittests",
mcasasd2f53ea2016-06-24 19:24:27171 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29172 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55173 "//media/midi:midi_unittests",
tfarina79acccf2017-05-10 13:04:16174 "//media/mojo:media_mojo_unittests",
pkotwicz558d5252015-10-19 21:09:55175 "//mojo",
pkotwicz558d5252015-10-19 21:09:55176 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08177 "//mojo/edk/system:mojo_system_unittests",
178 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08179 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55180 "//net:net_perftests",
ergcd559ca2017-05-26 23:43:38181 "//services:services_unittests",
rockot734fb662016-10-15 16:41:30182 "//services/service_manager/public/cpp",
pwnall9f1622a2017-04-21 09:39:02183 "//storage:storage_unittests",
Dirk Pranke49802732015-12-10 01:36:41184 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:01185 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
yutak6fbccaf2017-03-31 07:55:13186 "//third_party/WebKit/Source/platform/wtf:wtf_unittests",
dpranke244f973d62015-11-20 05:38:10187 "//third_party/WebKit/Source/web:webkit_unit_tests",
brettwc5fcdd02016-10-12 07:25:12188 "//third_party/angle/src/tests:angle_end2end_tests",
189 "//third_party/angle/src/tests:angle_unittests",
ynovikov55e66c22017-02-16 15:45:37190 "//third_party/angle/src/tests:angle_white_box_tests",
nednguyenc42bf912016-01-27 01:39:28191 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35192 "//third_party/smhasher:pmurhash",
193 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35194 "//ui/display:display_unittests",
195 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35196 "//ui/gl:gl_unittests",
mfomitchev3ba450ad2017-04-03 18:20:40197 "//ui/latency:latency_unittests",
sherouk53f0f1a2015-08-03 15:59:35198 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03199 "//url/ipc:url_ipc_unittests",
tfarina79acccf2017-05-10 13:04:16200 "//v8:gn_all",
sherouk53f0f1a2015-08-03 15:59:35201 ]
scottmg2f97ee122017-05-12 17:50:37202 } else if (is_ios) {
sdefresne88abe362016-06-01 10:40:11203 deps += [ "//ios:all" ]
sherouk53f0f1a2015-08-03 15:59:35204 }
dprankee2ef3822015-02-24 21:42:18205
scottmg34fb7e52014-12-03 23:27:24206 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05207
tfarina4aa9edc2015-10-26 22:14:02208 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49209 deps += [ "//extensions/shell:app_shell_unittests" ]
rockot2f1326e2015-02-23 23:53:51210 }
211
garykac3eddb5b2015-04-17 23:16:38212 if (enable_remoting) {
213 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05214 }
215
dprankee2ef3822015-02-24 21:42:18216 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19217 deps += [
218 "//ui/views:views_unittests",
219 "//ui/views/examples:views_examples_exe",
220 "//ui/views/examples:views_examples_with_content_exe",
221 ]
James Robinson060f2e32014-09-10 22:31:37222 }
223
jamescook4c02a0b2016-12-02 23:14:42224 if (use_ash) {
mswda0133e62016-02-16 20:50:02225 deps += [
skycf094f672016-09-01 19:40:12226 "//ash:ash_content_unittests",
jamescookfbbf9112016-06-14 16:24:49227 "//ash:ash_shell_with_content",
228 "//ash:ash_unittests",
jamescook4c02a0b2016-12-02 23:14:42229 ]
230 }
231
232 if (use_aura) {
233 deps += [
mswda0133e62016-02-16 20:50:02234 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02235 "//ui/aura:demo",
236 "//ui/wm:wm_unittests",
237 ]
dprankee2ef3822015-02-24 21:42:18238 }
239
240 if (use_ozone) {
kylechar5c9a1fb62016-10-21 13:17:25241 deps += [
242 "//ui/ozone",
243 "//ui/ozone:ozone_unittests",
tfarina79acccf2017-05-10 13:04:16244 "//ui/ozone/demo",
kylechar5c9a1fb62016-10-21 13:17:25245 "//ui/ozone/gl:ozone_gl_unittests",
246 ]
[email protected]a306aaa2014-05-24 13:21:50247 }
248
thomasandersonaf830f3a2016-12-07 04:52:02249 if (use_x11 || ozone_platform_x11) {
250 deps += [ "//tools/xdisplaycheck" ]
251 }
252
brettw66e3feab2015-07-20 23:52:22253 if (is_win) {
brettwf986f9572015-10-07 17:18:15254 deps += [
255 "//chrome/installer/gcapi",
256 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
257 ]
brettw66e3feab2015-07-20 23:52:22258 }
259
thakisdc11faf52017-04-25 21:49:42260 if (is_mac) {
261 deps += [ "//chrome/installer/gcapi_mac:gcapi_example" ]
262 }
263
[email protected]5a8d5162014-04-12 01:19:16264 if (is_android) {
[email protected]26046b52014-07-16 00:11:03265 deps += [
pkotwicze2dae8b2015-11-03 20:12:55266 "//base:base_junit_tests",
dpranke244f973d62015-11-20 05:38:10267 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38268 "//build/android/gyp/test:hello_world",
tfarina79acccf2017-05-10 13:04:16269 "//build/android/gyp/test:hello_world",
pkotwicz2dd67962016-05-10 00:21:08270 "//chrome/android/webapk/shell_apk:webapk",
tfarina79acccf2017-05-10 13:04:16271 "//chrome/test/vr/perf:motopho_latency_test",
pkotwicze2dae8b2015-11-03 20:12:55272 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
273 "//components/policy/android:components_policy_junit_tests",
274 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45275 "//content/shell/android:content_shell_apk",
mcasaseddfbeb2017-05-10 04:47:49276 "//device:device_junit_tests",
markdittmer6e70beb82016-05-02 05:40:47277 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55278 "//net/android:net_junit_tests",
ke.heaf8ead22017-05-13 03:54:30279 "//services:service_junit_tests",
jbudorick5ef42902016-04-07 04:17:11280 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56281 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05282 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45283 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10284 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49285 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34286 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12287 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
288 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43289 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15290 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15291 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18292 ]
293 deps -= [
rockot9c67e5f2015-03-12 20:01:21294 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18295 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03296 ]
297
pkotwicz92e2e2312015-12-15 22:29:46298 if (!is_component_build) {
299 deps += [
agrievee23386b2016-01-05 04:47:58300 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12301 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46302 "//components/cronet/android:cronet_sample_apk",
303 "//components/cronet/android:cronet_sample_test_apk",
304 "//components/cronet/android:cronet_test_apk",
305 "//components/cronet/android:cronet_test_instrumentation_apk",
306 "//components/cronet/android:cronet_unittests",
307 ]
308 }
309
pkotwicz061c5a42015-09-30 02:16:54310 if (!is_chromecast) {
311 deps += [
michaelbaicbcc7e62015-11-12 04:29:53312 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30313 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44314 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05315 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55316 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54317 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10318 "//chrome/android:chrome_public_test_apk",
319 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54320 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-12-28 20:23:11321 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05322 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54323 ]
324 }
325
pkotwicz06a4b4b42015-10-29 23:11:11326 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12327 deps += [
328 "//content/shell/android:chromium_linker_test_apk",
329 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
330 ]
pkotwicz06a4b4b42015-10-29 23:11:11331 }
332
dgnd1e190d2017-03-17 13:34:49333 if (enable_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55334 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45335 }
dprankedb5527d72015-03-08 04:22:47336 }
337
brettwf9427f92016-05-05 23:18:55338 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00339 deps += [
pkotwicza4d233b22015-11-02 18:20:38340 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00341 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38342 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00343 "//breakpad:minidump-2-core",
344 ]
345 }
346
dpranke6293d252015-04-14 19:12:00347 if (is_chromeos) {
348 deps += [
349 "//chromeos:chromeos_unittests",
khorimoto4c539952016-12-04 02:37:11350 "//chromeos/components:chromeos_components_unittests",
jamescook4c02a0b2016-12-02 23:14:42351 "//components/session_manager/core",
estade835d5502017-01-04 16:44:06352 "//ui/app_list:app_list_unittests",
353 "//ui/app_list/presenter:app_list_presenter_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22354 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00355 "//ui/chromeos:ui_chromeos_unittests",
356 ]
357 }
358
dprankefd1813272015-04-13 23:56:00359 if (is_chromeos || is_mac || is_win) {
360 deps += [
361 "//rlz:rlz_id",
362 "//rlz:rlz_lib",
363 "//rlz:rlz_unittests",
364 ]
365 }
366
dprankedb5527d72015-03-08 04:22:47367 if (is_linux) {
368 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06369 deps += [
dpranke2bc89212015-11-18 00:24:43370 "//chrome:manpage",
371 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47372 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47373 "//net:quic_client",
374 "//net:quic_server",
375 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18376 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06377 ]
dnicoara8c6aa8e2015-03-11 23:20:32378
mbjorgea12e5a52016-05-31 22:15:17379 if (use_dbus) {
380 deps += [
381 "//dbus:dbus_test_server",
382 "//dbus:dbus_unittests",
383 ]
384 }
385
dpranke2bc89212015-11-18 00:24:43386 if (is_chrome_branded && is_official_build) {
387 # TODO(dpranke): add the linux_dump_symbols flag?
388 deps += [ "//chrome:linux_symbols" ]
389 }
dprankedb5527d72015-03-08 04:22:47390 }
391
sherouke1859f92015-08-05 10:19:10392 if (is_ios || is_win || (is_linux && !is_chromeos)) {
393 deps += [
394 "//base:base_i18n_perftests",
395 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58396 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10397 ]
398 }
399
sugoia1b7b922016-12-13 12:52:49400 if ((is_win || is_mac || is_linux) &&
401 (target_cpu == "x86" || target_cpu == "x64")) {
sugoiabe918902016-09-20 12:53:51402 deps += [ "//third_party/swiftshader" ]
403 }
404
thakis507c15c2016-06-01 00:26:01405 # TODO(GYP): Figure out which of these should (and can) build
406 # for chromeos/ios.
scottmg2f97ee122017-05-12 17:50:37407 if (!is_chromeos && !is_ios && !is_fuchsia) {
tfarina9e7cf702015-02-23 21:13:44408 deps += [
dprankedb5527d72015-03-08 04:22:47409 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10410 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47411 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00412 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47413 "//components:components_perftests",
Max Boguefef332d2016-07-28 22:09:09414 "//components/sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47415 "//device:device_unittests",
416 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47417 "//gin:gin_unittests",
dprankefd1813272015-04-13 23:56:00418 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10419 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47420 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47421 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00422 "//net:dump_cache",
dprankefd1813272015-04-13 23:56:00423 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47424 "//ui/compositor:compositor_unittests",
425 ]
426
agrieve473155b42015-12-28 20:23:11427 if (!is_android) {
428 deps += [
429 "//chrome/test:load_library_perf_tests",
430 "//chrome/test:sync_performance_tests",
431 "//chrome/test/chromedriver:chromedriver",
432 "//chrome/test/chromedriver:chromedriver_tests",
433 "//courgette:courgette",
434 "//courgette:courgette_fuzz",
435 "//courgette:courgette_minimal_tool",
436 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30437 "//media/cast:generate_barcode_video",
438 "//media/cast:generate_timecode_audio",
agrieve473155b42015-12-28 20:23:11439 "//net:crash_cache",
440 "//net:crl_set_dump",
441 "//net:dns_fuzz_stub",
442 "//net:gdig",
443 "//net:get_server_time",
444 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
445 "//net:run_testserver",
446 "//net:stress_cache",
447 "//net:tld_cleanup",
448 "//ppapi:pepper_hash_for_uma",
449 "//ppapi:ppapi_perftests",
agrieve473155b42015-12-28 20:23:11450 "//third_party/leveldatabase:env_chromium_unittests",
451 "//third_party/libaddressinput:libaddressinput_unittests",
452 ]
453 }
dpranke7e19b472015-11-13 00:49:33454
jamescookfbbf9112016-06-14 16:24:49455 if (enable_extensions) {
456 deps += [ "//extensions/shell:app_shell" ]
457 }
458
dprankedb5527d72015-03-08 04:22:47459 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13460 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43461
462 if (is_linux) {
463 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37464 deps += [ "//components/nacl/loader:nacl_helper" ]
465
466 if (enable_nacl_nonsfi) {
467 deps += [
468 "//components/nacl/loader:helper_nonsfi",
469 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
470 ]
471 }
dpranke2bc89212015-11-18 00:24:43472 }
dprankedb5527d72015-03-08 04:22:47473 }
474
xhwangfa2d9d472015-12-18 23:31:18475 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10476 deps += [ "//media:ffmpeg_regression_tests" ]
477 }
dprankefd1813272015-04-13 23:56:00478 }
479
agrieve473155b42015-12-28 20:23:11480 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00481 deps += [
agrieve473155b42015-12-28 20:23:11482 "//breakpad:dump_syms($host_toolchain)",
483 "//breakpad:microdump_stackwalk($host_toolchain)",
484 "//breakpad:minidump_dump($host_toolchain)",
485 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00486 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00487 "//content/public/app:browser",
488 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08489 "//mojo/edk/test:mojo_public_system_perftests",
rockot734fb662016-10-15 16:41:30490 "//services/service_manager/public/cpp",
dprankefd1813272015-04-13 23:56:00491 "//testing/gmock:gmock_main",
dprankefd1813272015-04-13 23:56:00492 ]
493
agrieve473155b42015-12-28 20:23:11494 if (!is_android) {
495 deps += [
agrieve473155b42015-12-28 20:23:11496 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55497 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b42015-12-28 20:23:11498 "//media/cast:cast_benchmarks",
499 "//media/cast:tap_proxy",
500 "//skia:filter_fuzz_stub",
501 "//skia:image_operations_bench",
agrieve473155b42015-12-28 20:23:11502 "//third_party/sqlite:sqlite_shell",
503 "//ui/keyboard:keyboard_unittests",
504 "//ui/message_center:message_center_unittests",
505 "//ui/snapshot:snapshot_unittests",
agrieve473155b42015-12-28 20:23:11506 ]
dprankefd1813272015-04-13 23:56:00507
agrieve473155b42015-12-28 20:23:11508 if (!is_debug && !is_component_build) {
509 deps += [ "//chrome/tools/service_discovery_sniffer" ]
510 }
dprankefd1813272015-04-13 23:56:00511 }
512
dprankedb5527d72015-03-08 04:22:47513 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44514 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59515 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44516 }
dprankedb5527d72015-03-08 04:22:47517 }
518 }
519
520 if (is_mac) {
521 deps += [
522 "//breakpad:crash_inspector",
523 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44524 "//third_party/apple_sample_code",
525 "//third_party/molokocacao",
526 ]
dpranke43760592014-11-08 02:59:57527 deps -= [
brettw011138d2015-10-21 03:05:38528 # Mojo in GN contains some things which are never compiled in GYP on Mac,
529 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10530 "//mojo",
dprankecf8465db72014-11-10 23:51:22531 ]
dprankefd1813272015-04-13 23:56:00532 }
533
534 if (is_win) {
535 deps += [
536 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16537 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43538 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00539 "//chrome_elf:chrome_elf_unittests",
540 "//chrome_elf:dll_hash_main",
pastarmovj02d5cc992016-12-05 17:55:24541 "//cloud_print:cloud_print_unittests",
dprankefd1813272015-04-13 23:56:00542 "//components/wifi:wifi_test",
543 "//net:quic_client",
544 "//net:quic_server",
545 "//sandbox/win:pocdll",
546 "//sandbox/win:sandbox_poc",
547 "//sandbox/win:sbox_integration_tests",
548 "//sandbox/win:sbox_unittests",
549 "//sandbox/win:sbox_validation_tests",
550 "//testing/gtest:gtest_main",
dprankefd1813272015-04-13 23:56:00551 "//third_party/pdfium/samples:pdfium_diff",
ajwongbf193272017-03-16 00:00:44552 "//third_party/tcmalloc:addr2line-pdb",
robliaofd54b5c2017-01-13 00:41:30553 "//tools/win/chromeexts:chromeexts",
dprankefd1813272015-04-13 23:56:00554 ]
fdorayfb048bff2016-04-28 22:07:36555
556 if (!(is_component_build && is_debug && target_cpu == "x86")) {
557 deps +=
558 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
559 }
scottmg6ea9ff3e2017-05-19 00:08:16560 } else if (!is_android && !is_ios && !is_fuchsia) {
miu45b848fe2015-11-26 01:23:29561 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34562 }
rsesek985bd812016-04-26 21:06:15563
slance9d62f2015-11-04 01:15:01564 if (is_chromecast) {
565 deps += [ "//chromecast:cast_shell" ]
566 }
miu45b848fe2015-11-26 01:23:29567
rsesek985bd812016-04-26 21:06:15568 if (is_mac || is_win) {
569 deps += [
570 "//third_party/crashpad/crashpad/handler:crashpad_handler",
571 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
572 ]
573 }
574
hbos17a7b4a22015-12-07 10:49:45575 if (use_openh264) {
576 deps += [
577 "//third_party/openh264:common",
578 "//third_party/openh264:encoder",
579 "//third_party/openh264:processing",
580 ]
581 }
dpranke2a294622015-08-07 05:23:01582
scottmg2f97ee122017-05-12 17:50:37583 if (!is_android && !is_ios && !is_fuchsia) {
scheib35dc9202016-04-26 22:35:43584 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
585 }
586
scottmg2f97ee122017-05-12 17:50:37587 if (!is_android && !is_ios && !is_chromeos && !is_fuchsia) {
xjz9da998022016-10-26 01:22:11588 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
isherman0f89b43eb2015-04-11 00:02:45589 }
590
ben8f4e95ad2015-12-01 18:35:58591 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54592 deps += [
593 "//mash:all",
xhwang9c958fd2016-12-05 23:17:16594 "//media/mojo/services:media_service_unittests",
skyfcde3a42016-02-09 20:27:44595 "//mojo",
ben6b0453d12016-07-02 04:27:19596 "//services/ui/demo",
597 "//services/ui/ws:tests",
qyearsley88bc4802016-05-17 18:02:34598 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53599 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54600 ]
kylechar5c9a1fb62016-10-21 13:17:25601
wez0ee841c2016-12-21 20:36:20602 # crbug.com/676055: media_service_unittests fails to link under Windows
603 # component builds, due to duplicate symbol definitions.
604 if (is_win && is_component_build) {
605 deps -= [ "//media/mojo/services:media_service_unittests" ]
606 }
sky97b65592015-11-02 20:08:25607 }
608
stevenjb7b6fd642016-05-18 18:15:30609 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47610 # TODO(GYP): Figure out if any of these should be in gn_all
611 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45612 deps += [
dprankedb5527d72015-03-08 04:22:47613 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47614 "//chrome/tools/convert_dict",
615 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40616 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20617 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47618 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45619 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47620 "//components/rappor:unit_tests",
621 "//components/sessions:unit_tests",
622 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30623 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47624 "//storage/browser:dump_file_system",
625 "//third_party/angle:libANGLE",
626 "//third_party/angle:libEGL",
627 "//third_party/angle:libGLESv2",
pwnallcfb346f12017-03-02 22:01:37628 "//third_party/leveldatabase:leveldb_test_targets",
dprankedb5527d72015-03-08 04:22:47629 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47630 "//third_party/opus:opus_compare",
631 "//third_party/opus:opus_demo",
dpranke244f973d62015-11-20 05:38:10632 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47633 "//third_party/opus:test_opus_decode",
634 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47635 "//third_party/opus:test_opus_padding",
636 "//third_party/webrtc/system_wrappers:field_trial_default",
637 "//third_party/webrtc/system_wrappers:metrics_default",
638 "//ui/display/types",
639 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47640 ]
dprankeb0713542015-07-31 21:07:21641
ossy.szegedd584dd72016-11-21 11:36:18642 if (enable_nacl) {
643 deps += [ "//native_client/src/trusted/debug_stub:gdb_rsp_unittest" ]
644 }
645
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16646 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b42015-12-28 20:23:11647 if (!is_android) {
648 deps += [ "//chrome/test:load_library_perf_tests" ]
649 }
mcgrathr916aafa2015-09-15 00:06:53650 deps += [
mcgrathr916aafa2015-09-15 00:06:53651 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f973d62015-11-20 05:38:10652 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53653 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16654 }
dpranke807f602b2015-03-17 23:20:56655 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51656 deps += [ "//v8:v8_shell" ]
dpranke807f602b2015-03-17 23:20:56657 }
dprankedb5527d72015-03-08 04:22:47658 }
dprankeb0713542015-07-31 21:07:21659
aizatskyaf496112016-04-15 19:26:32660 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
661 (use_libfuzzer && is_mac)) {
662 deps += [
663 "//testing/libfuzzer/fuzzers",
664 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06665 "//third_party/icu/fuzzers",
noel6997c5c2017-04-13 14:12:18666 "//third_party/qcms:fuzzers",
aizatskyaf496112016-04-15 19:26:32667 ]
miu16396172016-09-28 00:05:56668
669 # TODO(miu): Remove this dependency once the build configuration in
670 # chrome/browser/BUILD.gn is migrated to chrome/browser/media/BUILD.gn.
671 # This dependency here only exists to allow GN to discover the
672 # fuzzer_test target there.
673 deps += [ "//chrome/browser/media:cast_remoting_connector_fuzzer" ]
aizatskyaf496112016-04-15 19:26:32674 }
675
sbc92b4d572016-02-18 03:28:23676 if (enable_nacl) {
677 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
678 }
679
skyostilfe116162016-02-26 20:53:33680 if (is_linux && use_ozone) {
681 deps += [
682 "//headless",
683 "//headless:headless_tests",
684 ]
685 }
tfarinafbc992492017-03-08 22:44:04686}
687
688# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
689# for the iOS bots and the official builders.
690group("All") {
691 testonly = true
692
693 deps = [
694 ":gn_all",
695 ]
696}
697
698# TODO(GYP_GONE): This target exists for compatibility with GYP for the
699# builders that specify targets in the recipes directly.
700# Ideally it should not exist, and the builders should be specifying
701# more specific targets (or 'All') via the source-side
702# //testing/buildbot/*.json files. We should simply delete this target
703# and update any recipes that are using it.
704group("chromium_builder_tests") {
705 testonly = true
706 deps = []
707}
708
709# TODO(GYP_GONE): Figure out if we really need this target or if there's
710# some better way to specify things.
711if (is_win) {
712 group("chrome_official_builder_no_unittests") {
713 deps = [
714 "//base/win:eventlog_provider",
715 "//chrome/installer/gcapi",
716 "//chrome/installer/mini_installer",
717 "//cloud_print",
718 "//cloud_print/virtual_driver/win/port_monitor:copy_gcp_portmon_binaries",
719 "//components/policy:pack_policy_templates",
720 "//courgette",
721 "//courgette:copy_courgette_binaries",
722 "//remoting/webapp",
holteb87f01f52017-04-10 20:45:53723 "//tools/metrics:metrics_metadata",
tfarinafbc992492017-03-08 22:44:04724 ]
725
726 if (target_cpu == "x86") {
727 if (is_clang) {
728 deps += [ "//courgette(//build/toolchain/win:clang_x64)" ]
729 } else {
730 deps += [ "//courgette(//build/toolchain/win:x64)" ]
731 }
732 }
733 if (is_chrome_branded) {
734 deps += [ "//remoting/host:remoting_host_installation" ]
735 }
736 }
737
738 group("chrome_official_builder") {
739 testonly = true
740
741 deps = [
742 ":chrome_official_builder_no_unittests",
743 "//base:base_unittests",
744 "//chrome/test:browser_tests",
tfarinafbc992492017-03-08 22:44:04745 "//ipc:ipc_tests",
746 "//media:media_unittests",
747 "//media/midi:midi_unittests",
748 "//net:net_unittests",
749 "//printing:printing_unittests",
750 "//sql:sql_unittests",
751 "//ui/base:ui_base_unittests",
752 "//ui/gfx:gfx_unittests",
753 "//ui/touch_selection:ui_touch_selection_unittests",
754 "//ui/views:views_unittests",
755 "//url:url_unittests",
756 ]
757 }
758
759 group("All_syzygy") {
760 if (is_syzyasan) {
761 deps = [
762 "//chrome/installer/mini_installer:mini_installer",
763 "//chrome/installer/mini_installer:mini_installer_syzygy",
764 ]
765 }
766 }
767
768 if (is_syzyasan) {
769 group("chrome_official_syzyasan_builder") {
770 deps = [
771 ":All_syzygy",
772 ":chrome_official_builder_no_unittests",
773 ]
774 }
775 }
776}
777
778if (is_chromeos) {
779 group("chromiumos_preflight") {
780 testonly = true
781 deps = [
782 "//breakpad:minidump_stackwalk($host_toolchain)",
783 "//chrome",
784 "//chrome/test/chromedriver",
785 "//media:media_unittests",
786 "//media/gpu:video_decode_accelerator_unittest",
787 "//media/gpu:video_encode_accelerator_unittest",
788 "//ppapi/examples/video_decode",
789 "//sandbox/linux:chrome_sandbox",
790 "//sandbox/linux:sandbox_linux_unittests",
791
792 # Blocked on https://github.com/catapult-project/catapult/issues/2297
793 #"//third_party/catapult/telemetry:bitmaptools",
794 "//tools/perf/clear_system_cache",
795 ]
796 }
dprankedb5527d72015-03-08 04:22:47797}
798
dprankedb5527d72015-03-08 04:22:47799group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03800 deps = [
dprankeb6128d02015-05-01 16:40:30801 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47802 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
803 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03804 ]
dpranked2fb5222015-09-10 22:39:05805
806 if (!is_ios) {
807 deps += [
dpranked2fb5222015-09-10 22:39:05808 "//v8:postmortem-metadata",
dpranke244f973d62015-11-20 05:38:10809 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05810 ]
811 }
dpranked62d8512015-03-02 03:06:03812}
813
scottmg2f97ee122017-05-12 17:50:37814if (!is_ios && !is_fuchsia) {
tfarinacb2638b2015-05-12 03:24:15815 # This group includes all of the targets needed to build and test Blink,
816 # including running the layout tests (see below).
817 group("blink_tests") {
818 testonly = true
819
820 deps = [
tansell88df42592016-11-15 07:22:59821 ":webkit_layout_tests",
tfarinacb2638b2015-05-12 03:24:15822 "//third_party/WebKit/public:all_blink",
tansell88df42592016-11-15 07:22:59823 ]
824 }
825
826 # Layout tests runner
827 # third_party/WebKit/Tools/Scripts/run-webkit-tests
828 group("run_webkit_tests") {
829 testonly = true
830 deps = [
831 ":webkit_layout_tests",
832 ]
833 }
834
835 # https://www.chromium.org/developers/testing/webkit-layout-tests
tansell0e6baaf22017-02-16 09:14:53836
837 # The _exparchive at the end of the name indicates to the isolate recipe
838 # that the isolate should be archived separately using the `exparchive`
839 # command, rather than as part of the normal `batcharchive` command.
840 group("webkit_layout_tests_exparchive") {
841 testonly = true
842 deps = [
843 ":webkit_layout_tests",
844 ]
845 data_deps = [
846 ":webkit_layout_tests",
847 ]
848 }
849
850 # This target contains only a small subset of the layout tests,
851 # and is useful for testing with the regular isolate mechanism.
852 # To run the full layout test suite you need to use
853 # :webkit_layout_tests_exparchive, above, instead.
tansell88df42592016-11-15 07:22:59854 group("webkit_layout_tests") {
855 testonly = true
tansell88df42592016-11-15 07:22:59856 data_deps = [
yzshena0646992017-04-02 22:01:27857 ":layout_test_data_mojo_bindings",
tansell88df42592016-11-15 07:22:59858 "//content/shell:content_shell",
alokp577b29e2017-05-04 23:10:09859 "//mojo/public/interfaces/bindings/tests",
wangjimmy6aabe532017-04-22 03:06:11860 "//mojo/public/interfaces/bindings/tests:test_associated_interfaces",
tansell2bf83ac2017-02-18 04:01:14861 "//third_party/WebKit/public:blink_devtools_frontend_resources_files",
tansellaac85d72017-02-17 05:13:04862 "//third_party/mesa:osmesa",
agrieve993374cf2016-04-13 00:05:39863 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15864 ]
865
tfarinacb2638b2015-05-12 03:24:15866 if (is_android) {
tansell88df42592016-11-15 07:22:59867 data_deps += [
agrieve62ab00282016-04-05 02:03:45868 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39869 "//breakpad:dump_syms",
870 "//breakpad:microdump_stackwalk",
871 "//breakpad:minidump_dump",
872 "//breakpad:minidump_stackwalk",
873 "//breakpad:symupload",
jbudoricke7bcf092016-09-28 18:24:14874 "//tools/android/forwarder2",
ojan94989c72015-07-17 21:56:42875 ]
tfarinacb2638b2015-05-12 03:24:15876 }
877
878 if (is_win) {
tansell88df42592016-11-15 07:22:59879 data_deps += [ "//content/shell:content_shell_crash_service" ]
tfarinacb2638b2015-05-12 03:24:15880 }
881
882 if (!is_win && !is_android) {
tansell88df42592016-11-15 07:22:59883 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15884 }
885
886 if (is_mac) {
tansell88df42592016-11-15 07:22:59887 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15888 }
889
890 if (is_linux) {
tansell88df42592016-11-15 07:22:59891 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15892 }
qyearsley165a17a82016-08-01 17:58:50893
894 data = [
tansell55090912017-02-20 12:54:31895 "$root_build_dir/resources/inspector/",
tansell88df42592016-11-15 07:22:59896 "//testing/scripts/common.py",
tansell0e6baaf22017-02-16 09:14:53897 "//testing/scripts/run_isolated_script_test.py",
tansell55090912017-02-20 12:54:31898 "//testing/xvfb.py",
qyearsley165a17a82016-08-01 17:58:50899 "//third_party/WebKit/LayoutTests/",
tansell2bf83ac2017-02-18 04:01:14900 "//third_party/WebKit/PerformanceTests/",
qyearsley165a17a82016-08-01 17:58:50901 "//third_party/WebKit/Tools/Scripts/",
902 ]
tansell0e6baaf22017-02-16 09:14:53903
tansell820f7df2017-02-16 13:59:15904 if (is_win) {
tansell1b05bbd2017-05-04 09:30:32905 data += [
906 "//third_party/apache-win32/",
907 "//third_party/cygwin/",
908 "//third_party/perl/",
909 ]
tansell820f7df2017-02-16 13:59:15910 }
911
tansell0e6baaf22017-02-16 09:14:53912 if (is_android) {
913 data += [
914 "//third_party/catapult/",
915 "//build/android/",
916 ]
917 }
tfarinacb2638b2015-05-12 03:24:15918 }
yzshena0646992017-04-02 22:01:27919
920 copy("layout_test_data_mojo_bindings") {
921 testonly = true
922
923 sources = [
924 "$root_gen_dir/mojo/public/js/mojo_bindings.js",
925 ]
926
927 outputs = [
928 "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings.js",
929 ]
930
931 deps = [
932 "//mojo/public/js:new_bindings",
933 ]
934 }
tfarinacb2638b2015-05-12 03:24:15935}
936
dpranke6abd8652015-08-28 03:21:11937# Add a dummy target for compatibility w/ GYP
938group("chromium_swarm_tests") {
939}
940
dpranke2302dfa2015-09-29 02:21:52941group("chromium_builder_perf") {
942 testonly = true
943
scottmg2f97ee122017-05-12 17:50:37944 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) {
malets6b7062402016-09-15 08:14:26945 data_deps = [
dpranke2302dfa2015-09-29 02:21:52946 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52947 "//chrome/test:load_library_perf_tests",
eyaiche1605ca2016-09-14 14:34:05948 "//chrome/test:telemetry_perf_tests",
kraynovc0797582016-10-25 16:45:06949 "//components/tracing:tracing_perftests",
dpranke2302dfa2015-09-29 02:21:52950 "//gpu:gpu_perftests",
951 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19952 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52953 ]
954
nednguyen6451d7d2017-05-09 14:37:54955 if (is_android) {
956 data += [ "//third_party/android_tools/sdk/platform-tools/adb" ]
957 }
958
dpranke2302dfa2015-09-29 02:21:52959 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:26960 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:52961 }
962 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04963 if (is_official_build) {
964 # In GN builds, this is controlled by the 'linux_dump_symbols'
965 # flag, which defaults to 1 for official builds. For now,
966 # we skip the separate flag and just key off of is_official_build.
malets6b7062402016-09-15 08:14:26967 data_deps += [ "//chrome:linux_symbols" ]
dpranke9aed5d582015-11-22 23:22:04968 }
dpranke2302dfa2015-09-29 02:21:52969
kraynovc0797582016-10-25 16:45:06970 data_deps += [ "//tools/perf/clear_system_cache" ]
dpranke2302dfa2015-09-29 02:21:52971 }
972
973 if (is_win) {
malets6b7062402016-09-15 08:14:26974 data_deps += [
hansa3d3aa4d2016-05-04 22:12:52975 "//chrome/installer/mini_installer:mini_installer",
eyaichd3e023c12016-11-14 22:41:01976 "//chrome/test:angle_perftests",
dpranke2302dfa2015-09-29 02:21:52977 ]
dpranke2302dfa2015-09-29 02:21:52978 } else {
malets6b7062402016-09-15 08:14:26979 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52980 }
981 }
982}
agrieve017b91f2016-02-29 20:15:06983
scottmg2f97ee122017-05-12 17:50:37984if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) {
thakis3f7d4fc2016-06-10 18:47:50985 group("chromium_builder_asan") {
986 testonly = true
987
988 deps = [
989 "//chrome:chrome",
990 "//content/shell:content_shell",
991 "//v8:d8",
992 ]
993 if (!is_win) {
994 deps += [
995 "//net:dns_fuzz_stub",
thakis3f7d4fc2016-06-10 18:47:50996 "//skia:filter_fuzz_stub",
997 ]
998 }
999 if (enable_ipc_fuzzer && !is_component_build) {
1000 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
1001 }
1002 if (!is_chromeos) {
1003 deps += [
1004 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371005 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501006 ]
1007 }
thakis3f7d4fc2016-06-10 18:47:501008 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
1009 deps += [
1010 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
sebmarchanda2df3392016-07-13 15:34:591011 "//content/shell:content_shell_syzyasan",
thakis3f7d4fc2016-06-10 18:47:501012 ]
thakis3f7d4fc2016-06-10 18:47:501013 }
1014 }
1015}
1016
brettw6df3e8c42016-04-14 21:07:131017# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
1018# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1019# something to build, but all targets for those bots to compile are set
1020# up differently.
1021# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1022# this group.
1023group("aura_builder") {
1024}
1025
agrieve95ba4442016-04-25 15:47:131026if (is_android) {
1027 group("optimize_gn_gen") {
1028 deps = [
1029 # These run expensive scripts in non-default toolchains. Generally, host
1030 # toolchain targets are loaded in the later part of the run, and the
1031 # result is they push out the end of generation. By preloading these, the
1032 # scripts can be parallelized with the rest of the load.
1033 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1034 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1035
1036 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1037 # generation.
1038 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1039 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1040 ]
1041 }
1042}
1043
agrieve017b91f2016-02-29 20:15:061044# Because of the source assignment filter, many targets end up over-filtering
1045# their sources if the output directory contains a platform name. Assert that
1046# this doesn't happen. http://crbug.com/548283
1047template("assert_valid_out_dir") {
1048 # List copied from //build/config/BUILDCONFIG.gn.
1049 set_sources_assignment_filter([
1050 "*\bandroid/*",
1051 "*\bchromeos/*",
1052 "*\bcocoa/*",
1053 "*\bios/*",
1054 "*\blinux/*",
1055 "*\bmac/*",
1056 "*\bposix/*",
1057 "*\bwin/*",
1058 ])
1059 assert(target_name != "") # Mark as used.
1060 sources = invoker.actual_sources
1061 assert(
1062 sources == invoker.actual_sources,
1063 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1064}
1065
1066assert_valid_out_dir("_unused") {
1067 actual_sources = [ "$root_build_dir/foo" ]
1068}