blob: 0687919afe31f298faf2fc618e3f3ce0d060abca [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",
sheroukdc35ba272015-09-22 14:09:3772 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:5973 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:4474 "//skia:skia_unittests",
brettwa874dccb2015-08-28 23:59:1875 "//sql:sql_unittests",
ochangcc11d0e2016-04-26 19:58:2676 "//tools/ipc_fuzzer:ipc_fuzzer_all",
holtebef6eb322017-04-04 20:41:2577 "//tools/metrics:metrics_metadata",
sherouk4fb74d42015-08-24 15:58:4178 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:3979 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:4180 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1881 ]
dpranke2a294622015-08-07 05:23:0182
sdefresne21832bf92016-03-30 22:01:0283 if (!is_android && !is_chromecast) {
84 deps += [
85 "//crypto:crypto_unittests",
86 "//google_apis/gcm:gcm_unit_tests",
87 ]
88 }
89
slance9d62f2015-11-04 01:15:0190 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:3591 deps += [
sherouk53f0f1a2015-08-03 15:59:3592 "//chrome",
93 "//chrome/test:browser_tests",
94 "//chrome/test:interactive_ui_tests",
95 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:3596 "//chrome/test/chromedriver:chromedriver_unittests",
Max Boguefef332d2016-07-28 22:09:0997 "//components/sync/tools:sync_client",
98 "//components/sync/tools:sync_listen_notifications",
jamescookfbbf9112016-06-14 16:24:4999 "//extensions:extensions_browsertests",
100 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18101 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26102 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35103 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35104 "//net:hpack_example_generator",
sherouk53f0f1a2015-08-03 15:59:35105 "//ppapi:ppapi_unittests",
106 "//ppapi/examples/2d",
107 "//ppapi/examples/audio",
108 "//ppapi/examples/audio_input",
109 "//ppapi/examples/compositor",
110 "//ppapi/examples/crxfs",
111 "//ppapi/examples/enumerate_devices",
112 "//ppapi/examples/file_chooser",
113 "//ppapi/examples/flash_topmost",
114 "//ppapi/examples/font",
115 "//ppapi/examples/gamepad",
116 "//ppapi/examples/gles2",
117 "//ppapi/examples/gles2_spinning_cube",
118 "//ppapi/examples/ime",
119 "//ppapi/examples/input",
120 "//ppapi/examples/media_stream_audio",
121 "//ppapi/examples/media_stream_video",
122 "//ppapi/examples/mouse_cursor",
123 "//ppapi/examples/mouse_lock",
124 "//ppapi/examples/printing",
125 "//ppapi/examples/scaling",
126 "//ppapi/examples/scripting",
127 "//ppapi/examples/stub",
128 "//ppapi/examples/threading",
129 "//ppapi/examples/url_loader",
130 "//ppapi/examples/video_capture",
131 "//ppapi/examples/video_decode",
132 "//ppapi/examples/video_effects",
133 "//ppapi/examples/video_encode",
134 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35135 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
pkotwicz558d5252015-10-19 21:09:55136 "//third_party/pdfium/samples:pdfium_test",
kjellanderb1ab7b82016-11-01 08:34:21137 "//third_party/webrtc/tools:frame_analyzer",
charliea00055282016-01-26 00:15:15138 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25139 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55140 "//tools/gn",
dpranke244f973d62015-11-20 05:38:10141 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55142 "//tools/perf/clear_system_cache",
rhalavati3051a402017-04-21 07:12:41143 "//tools/traffic_annotation/auditor:traffic_annotation_auditor",
pkotwicz558d5252015-10-19 21:09:55144 "//ui/accessibility:accessibility_unittests",
wnwen2c84eb652017-03-20 23:21:27145 "//ui/accessibility/extensions",
pkotwicz558d5252015-10-19 21:09:55146 ]
147 }
148
149 if (!is_ios) {
pkotwicz558d5252015-10-19 21:09:55150 deps += [
151 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03152 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55153 "//chrome/test:unit_tests",
154 "//components:components_browsertests",
brettw3865a712016-12-10 05:59:08155 "//components/policy:policy_templates",
pkotwicz558d5252015-10-19 21:09:55156 "//content/shell:content_shell",
157 "//content/test:content_browsertests",
158 "//content/test:content_perftests",
159 "//content/test:content_unittests",
160 "//device:device_unittests",
161 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45162 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55163 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55164 "//media:media_unittests",
mcasasd2f53ea2016-06-24 19:24:27165 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29166 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55167 "//media/midi:midi_unittests",
tfarina79acccf2017-05-10 13:04:16168 "//media/mojo:media_mojo_unittests",
pkotwicz558d5252015-10-19 21:09:55169 "//mojo",
pkotwicz558d5252015-10-19 21:09:55170 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08171 "//mojo/edk/system:mojo_system_unittests",
172 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08173 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55174 "//net:net_perftests",
tfarina79acccf2017-05-10 13:04:16175 "//services:service_unittests",
rockot734fb662016-10-15 16:41:30176 "//services/service_manager/public/cpp",
pwnall9f1622a2017-04-21 09:39:02177 "//storage:storage_unittests",
Dirk Pranke49802732015-12-10 01:36:41178 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:01179 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
yutak6fbccaf2017-03-31 07:55:13180 "//third_party/WebKit/Source/platform/wtf:wtf_unittests",
dpranke244f973d62015-11-20 05:38:10181 "//third_party/WebKit/Source/web:webkit_unit_tests",
brettwc5fcdd02016-10-12 07:25:12182 "//third_party/angle/src/tests:angle_end2end_tests",
183 "//third_party/angle/src/tests:angle_unittests",
ynovikov55e66c22017-02-16 15:45:37184 "//third_party/angle/src/tests:angle_white_box_tests",
nednguyenc42bf912016-01-27 01:39:28185 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35186 "//third_party/smhasher:pmurhash",
187 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35188 "//ui/display:display_unittests",
189 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35190 "//ui/gl:gl_unittests",
mfomitchev3ba450ad2017-04-03 18:20:40191 "//ui/latency:latency_unittests",
sherouk53f0f1a2015-08-03 15:59:35192 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03193 "//url/ipc:url_ipc_unittests",
tfarina79acccf2017-05-10 13:04:16194 "//v8:gn_all",
sherouk53f0f1a2015-08-03 15:59:35195 ]
sdefresne998e8582015-10-07 13:36:45196 } else {
sdefresne88abe362016-06-01 10:40:11197 deps += [ "//ios:all" ]
sherouk53f0f1a2015-08-03 15:59:35198 }
dprankee2ef3822015-02-24 21:42:18199
scottmg34fb7e52014-12-03 23:27:24200 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05201
tfarina4aa9edc2015-10-26 22:14:02202 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49203 deps += [ "//extensions/shell:app_shell_unittests" ]
rockot2f1326e2015-02-23 23:53:51204 }
205
garykac3eddb5b2015-04-17 23:16:38206 if (enable_remoting) {
207 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05208 }
209
dprankee2ef3822015-02-24 21:42:18210 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19211 deps += [
212 "//ui/views:views_unittests",
213 "//ui/views/examples:views_examples_exe",
214 "//ui/views/examples:views_examples_with_content_exe",
215 ]
James Robinson060f2e32014-09-10 22:31:37216 }
217
jamescook4c02a0b2016-12-02 23:14:42218 if (use_ash) {
mswda0133e62016-02-16 20:50:02219 deps += [
skycf094f672016-09-01 19:40:12220 "//ash:ash_content_unittests",
jamescookfbbf9112016-06-14 16:24:49221 "//ash:ash_shell_with_content",
222 "//ash:ash_unittests",
jamescook4c02a0b2016-12-02 23:14:42223 ]
224 }
225
226 if (use_aura) {
227 deps += [
mswda0133e62016-02-16 20:50:02228 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02229 "//ui/aura:demo",
230 "//ui/wm:wm_unittests",
231 ]
dprankee2ef3822015-02-24 21:42:18232 }
233
234 if (use_ozone) {
kylechar5c9a1fb62016-10-21 13:17:25235 deps += [
236 "//ui/ozone",
237 "//ui/ozone:ozone_unittests",
tfarina79acccf2017-05-10 13:04:16238 "//ui/ozone/demo",
kylechar5c9a1fb62016-10-21 13:17:25239 "//ui/ozone/gl:ozone_gl_unittests",
240 ]
[email protected]a306aaa2014-05-24 13:21:50241 }
242
thomasandersonaf830f3a2016-12-07 04:52:02243 if (use_x11 || ozone_platform_x11) {
244 deps += [ "//tools/xdisplaycheck" ]
245 }
246
brettw66e3feab2015-07-20 23:52:22247 if (is_win) {
brettwf986f9572015-10-07 17:18:15248 deps += [
249 "//chrome/installer/gcapi",
250 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
251 ]
brettw66e3feab2015-07-20 23:52:22252 }
253
thakisdc11faf52017-04-25 21:49:42254 if (is_mac) {
255 deps += [ "//chrome/installer/gcapi_mac:gcapi_example" ]
256 }
257
[email protected]5a8d5162014-04-12 01:19:16258 if (is_android) {
[email protected]26046b52014-07-16 00:11:03259 deps += [
pkotwicze2dae8b2015-11-03 20:12:55260 "//base:base_junit_tests",
dpranke244f973d62015-11-20 05:38:10261 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38262 "//build/android/gyp/test:hello_world",
tfarina79acccf2017-05-10 13:04:16263 "//build/android/gyp/test:hello_world",
pkotwicz2dd67962016-05-10 00:21:08264 "//chrome/android/webapk/shell_apk:webapk",
tfarina79acccf2017-05-10 13:04:16265 "//chrome/test/vr/perf:motopho_latency_test",
pkotwicze2dae8b2015-11-03 20:12:55266 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
267 "//components/policy/android:components_policy_junit_tests",
268 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45269 "//content/shell/android:content_shell_apk",
mcasaseddfbeb2017-05-10 04:47:49270 "//device:device_junit_tests",
markdittmer6e70beb82016-05-02 05:40:47271 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55272 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11273 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56274 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05275 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45276 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10277 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49278 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34279 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12280 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
281 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43282 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15283 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15284 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18285 ]
286 deps -= [
rockot9c67e5f2015-03-12 20:01:21287 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18288 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03289 ]
290
pkotwicz92e2e2312015-12-15 22:29:46291 if (!is_component_build) {
292 deps += [
agrievee23386b2016-01-05 04:47:58293 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12294 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46295 "//components/cronet/android:cronet_sample_apk",
296 "//components/cronet/android:cronet_sample_test_apk",
297 "//components/cronet/android:cronet_test_apk",
298 "//components/cronet/android:cronet_test_instrumentation_apk",
299 "//components/cronet/android:cronet_unittests",
300 ]
301 }
302
pkotwicz061c5a42015-09-30 02:16:54303 if (!is_chromecast) {
304 deps += [
michaelbaicbcc7e62015-11-12 04:29:53305 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30306 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44307 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05308 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55309 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54310 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10311 "//chrome/android:chrome_public_test_apk",
312 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54313 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-12-28 20:23:11314 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05315 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54316 ]
317 }
318
pkotwicz06a4b4b42015-10-29 23:11:11319 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12320 deps += [
321 "//content/shell/android:chromium_linker_test_apk",
322 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
323 ]
pkotwicz06a4b4b42015-10-29 23:11:11324 }
325
dgnd1e190d2017-03-17 13:34:49326 if (enable_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55327 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45328 }
dprankedb5527d72015-03-08 04:22:47329 }
330
brettwf9427f92016-05-05 23:18:55331 if (is_linux || is_android) {
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",
khorimoto4c539952016-12-04 02:37:11343 "//chromeos/components:chromeos_components_unittests",
jamescook4c02a0b2016-12-02 23:14:42344 "//components/session_manager/core",
estade835d5502017-01-04 16:44:06345 "//ui/app_list:app_list_unittests",
346 "//ui/app_list/presenter:app_list_presenter_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22347 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00348 "//ui/chromeos:ui_chromeos_unittests",
349 ]
350 }
351
dprankefd1813272015-04-13 23:56:00352 if (is_chromeos || is_mac || is_win) {
353 deps += [
354 "//rlz:rlz_id",
355 "//rlz:rlz_lib",
356 "//rlz:rlz_unittests",
357 ]
358 }
359
dprankedb5527d72015-03-08 04:22:47360 if (is_linux) {
361 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06362 deps += [
dpranke2bc89212015-11-18 00:24:43363 "//chrome:manpage",
364 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47365 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47366 "//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
mbjorgea12e5a52016-05-31 22:15:17372 if (use_dbus) {
373 deps += [
374 "//dbus:dbus_test_server",
375 "//dbus:dbus_unittests",
376 ]
377 }
378
dpranke2bc89212015-11-18 00:24:43379 if (is_chrome_branded && is_official_build) {
380 # TODO(dpranke): add the linux_dump_symbols flag?
381 deps += [ "//chrome:linux_symbols" ]
382 }
dprankedb5527d72015-03-08 04:22:47383 }
384
sherouke1859f92015-08-05 10:19:10385 if (is_ios || is_win || (is_linux && !is_chromeos)) {
386 deps += [
387 "//base:base_i18n_perftests",
388 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58389 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10390 ]
391 }
392
sugoia1b7b922016-12-13 12:52:49393 if ((is_win || is_mac || is_linux) &&
394 (target_cpu == "x86" || target_cpu == "x64")) {
sugoiabe918902016-09-20 12:53:51395 deps += [ "//third_party/swiftshader" ]
396 }
397
thakis507c15c2016-06-01 00:26:01398 # TODO(GYP): Figure out which of these should (and can) build
399 # for chromeos/ios.
400 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44401 deps += [
dprankedb5527d72015-03-08 04:22:47402 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10403 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47404 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00405 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47406 "//components:components_perftests",
Max Boguefef332d2016-07-28 22:09:09407 "//components/sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47408 "//device:device_unittests",
409 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47410 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47411 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00412 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10413 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47414 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47415 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00416 "//net:dump_cache",
dprankefd1813272015-04-13 23:56:00417 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47418 "//ui/compositor:compositor_unittests",
419 ]
420
agrieve473155b42015-12-28 20:23:11421 if (!is_android) {
422 deps += [
423 "//chrome/test:load_library_perf_tests",
424 "//chrome/test:sync_performance_tests",
425 "//chrome/test/chromedriver:chromedriver",
426 "//chrome/test/chromedriver:chromedriver_tests",
427 "//courgette:courgette",
428 "//courgette:courgette_fuzz",
429 "//courgette:courgette_minimal_tool",
430 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30431 "//media/cast:generate_barcode_video",
432 "//media/cast:generate_timecode_audio",
agrieve473155b42015-12-28 20:23:11433 "//net:crash_cache",
434 "//net:crl_set_dump",
435 "//net:dns_fuzz_stub",
436 "//net:gdig",
437 "//net:get_server_time",
438 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
439 "//net:run_testserver",
440 "//net:stress_cache",
441 "//net:tld_cleanup",
442 "//ppapi:pepper_hash_for_uma",
443 "//ppapi:ppapi_perftests",
agrieve473155b42015-12-28 20:23:11444 "//third_party/leveldatabase:env_chromium_unittests",
445 "//third_party/libaddressinput:libaddressinput_unittests",
446 ]
447 }
dpranke7e19b472015-11-13 00:49:33448
jamescookfbbf9112016-06-14 16:24:49449 if (enable_extensions) {
450 deps += [ "//extensions/shell:app_shell" ]
451 }
452
dprankedb5527d72015-03-08 04:22:47453 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13454 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43455
456 if (is_linux) {
457 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37458 deps += [ "//components/nacl/loader:nacl_helper" ]
459
460 if (enable_nacl_nonsfi) {
461 deps += [
462 "//components/nacl/loader:helper_nonsfi",
463 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
464 ]
465 }
dpranke2bc89212015-11-18 00:24:43466 }
dprankedb5527d72015-03-08 04:22:47467 }
468
xhwangfa2d9d472015-12-18 23:31:18469 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10470 deps += [ "//media:ffmpeg_regression_tests" ]
471 }
dprankefd1813272015-04-13 23:56:00472 }
473
agrieve473155b42015-12-28 20:23:11474 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00475 deps += [
agrieve473155b42015-12-28 20:23:11476 "//breakpad:dump_syms($host_toolchain)",
477 "//breakpad:microdump_stackwalk($host_toolchain)",
478 "//breakpad:minidump_dump($host_toolchain)",
479 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00480 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00481 "//content/public/app:browser",
482 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08483 "//mojo/edk/test:mojo_public_system_perftests",
rockot734fb662016-10-15 16:41:30484 "//services/service_manager/public/cpp",
dprankefd1813272015-04-13 23:56:00485 "//testing/gmock:gmock_main",
dprankefd1813272015-04-13 23:56:00486 ]
487
agrieve473155b42015-12-28 20:23:11488 if (!is_android) {
489 deps += [
agrieve473155b42015-12-28 20:23:11490 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55491 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b42015-12-28 20:23:11492 "//media/cast:cast_benchmarks",
493 "//media/cast:tap_proxy",
494 "//skia:filter_fuzz_stub",
495 "//skia:image_operations_bench",
agrieve473155b42015-12-28 20:23:11496 "//third_party/sqlite:sqlite_shell",
497 "//ui/keyboard:keyboard_unittests",
498 "//ui/message_center:message_center_unittests",
499 "//ui/snapshot:snapshot_unittests",
agrieve473155b42015-12-28 20:23:11500 ]
dprankefd1813272015-04-13 23:56:00501
agrieve473155b42015-12-28 20:23:11502 if (!is_debug && !is_component_build) {
503 deps += [ "//chrome/tools/service_discovery_sniffer" ]
504 }
dprankefd1813272015-04-13 23:56:00505 }
506
dprankedb5527d72015-03-08 04:22:47507 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44508 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59509 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44510 }
dprankedb5527d72015-03-08 04:22:47511 }
512 }
513
514 if (is_mac) {
515 deps += [
516 "//breakpad:crash_inspector",
517 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44518 "//third_party/apple_sample_code",
519 "//third_party/molokocacao",
520 ]
dpranke43760592014-11-08 02:59:57521 deps -= [
brettw011138d2015-10-21 03:05:38522 # Mojo in GN contains some things which are never compiled in GYP on Mac,
523 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10524 "//mojo",
dprankecf8465db72014-11-10 23:51:22525 ]
dprankefd1813272015-04-13 23:56:00526 }
527
528 if (is_win) {
529 deps += [
530 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16531 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43532 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00533 "//chrome_elf:chrome_elf_unittests",
534 "//chrome_elf:dll_hash_main",
pastarmovj02d5cc992016-12-05 17:55:24535 "//cloud_print:cloud_print_unittests",
dprankefd1813272015-04-13 23:56:00536 "//components/wifi:wifi_test",
537 "//net:quic_client",
538 "//net:quic_server",
539 "//sandbox/win:pocdll",
540 "//sandbox/win:sandbox_poc",
541 "//sandbox/win:sbox_integration_tests",
542 "//sandbox/win:sbox_unittests",
543 "//sandbox/win:sbox_validation_tests",
544 "//testing/gtest:gtest_main",
dprankefd1813272015-04-13 23:56:00545 "//third_party/pdfium/samples:pdfium_diff",
ajwongbf193272017-03-16 00:00:44546 "//third_party/tcmalloc:addr2line-pdb",
robliaofd54b5c2017-01-13 00:41:30547 "//tools/win/chromeexts:chromeexts",
dprankefd1813272015-04-13 23:56:00548 ]
fdorayfb048bff2016-04-28 22:07:36549
550 if (!(is_component_build && is_debug && target_cpu == "x86")) {
551 deps +=
552 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
553 }
sherouk53f0f1a2015-08-03 15:59:35554 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29555 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34556 }
rsesek985bd812016-04-26 21:06:15557
slance9d62f2015-11-04 01:15:01558 if (is_chromecast) {
559 deps += [ "//chromecast:cast_shell" ]
560 }
miu45b848fe2015-11-26 01:23:29561
rsesek985bd812016-04-26 21:06:15562 if (is_mac || is_win) {
563 deps += [
564 "//third_party/crashpad/crashpad/handler:crashpad_handler",
565 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
566 ]
567 }
568
hbos17a7b4a22015-12-07 10:49:45569 if (use_openh264) {
570 deps += [
571 "//third_party/openh264:common",
572 "//third_party/openh264:encoder",
573 "//third_party/openh264:processing",
574 ]
575 }
dpranke2a294622015-08-07 05:23:01576
scheib35dc9202016-04-26 22:35:43577 if (!is_android && !is_ios) {
578 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
579 }
580
dpranke244f973d62015-11-20 05:38:10581 if (!is_android && !is_ios && !is_chromeos) {
xjz9da998022016-10-26 01:22:11582 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
isherman0f89b43eb2015-04-11 00:02:45583 }
584
ben8f4e95ad2015-12-01 18:35:58585 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54586 deps += [
587 "//mash:all",
xhwang9c958fd2016-12-05 23:17:16588 "//media/mojo/services:media_service_unittests",
skyfcde3a42016-02-09 20:27:44589 "//mojo",
benee648f62016-05-12 23:04:50590 "//services/navigation",
ben6b0453d12016-07-02 04:27:19591 "//services/ui/demo",
kylechar5c9a1fb62016-10-21 13:17:25592 "//services/ui/demo:mus_demo_unittests",
593 "//services/ui/public/interfaces:ui_struct_traits_unittests",
ben6b0453d12016-07-02 04:27:19594 "//services/ui/ws:tests",
qyearsley88bc4802016-05-17 18:02:34595 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53596 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54597 ]
kylechar5c9a1fb62016-10-21 13:17:25598
wez0ee841c2016-12-21 20:36:20599 # crbug.com/676055: media_service_unittests fails to link under Windows
600 # component builds, due to duplicate symbol definitions.
601 if (is_win && is_component_build) {
602 deps -= [ "//media/mojo/services:media_service_unittests" ]
603 }
604
kylechar9ee25182016-11-06 03:50:30605 if (use_ozone && is_chromeos) {
kylechar5c9a1fb62016-10-21 13:17:25606 deps += [ "//services/ui/display:display_service_unittests" ]
607 }
sky97b65592015-11-02 20:08:25608 }
609
stevenjb7b6fd642016-05-18 18:15:30610 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47611 # TODO(GYP): Figure out if any of these should be in gn_all
612 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45613 deps += [
dprankedb5527d72015-03-08 04:22:47614 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47615 "//chrome/tools/convert_dict",
616 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40617 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20618 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47619 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45620 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47621 "//components/rappor:unit_tests",
622 "//components/sessions:unit_tests",
623 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30624 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47625 "//storage/browser:dump_file_system",
626 "//third_party/angle:libANGLE",
627 "//third_party/angle:libEGL",
628 "//third_party/angle:libGLESv2",
pwnallcfb346f12017-03-02 22:01:37629 "//third_party/leveldatabase:leveldb_test_targets",
dprankedb5527d72015-03-08 04:22:47630 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47631 "//third_party/opus:opus_compare",
632 "//third_party/opus:opus_demo",
dpranke244f973d62015-11-20 05:38:10633 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47634 "//third_party/opus:test_opus_decode",
635 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47636 "//third_party/opus:test_opus_padding",
637 "//third_party/webrtc/system_wrappers:field_trial_default",
638 "//third_party/webrtc/system_wrappers:metrics_default",
639 "//ui/display/types",
640 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47641 ]
dprankeb0713542015-07-31 21:07:21642
ossy.szegedd584dd72016-11-21 11:36:18643 if (enable_nacl) {
644 deps += [ "//native_client/src/trusted/debug_stub:gdb_rsp_unittest" ]
645 }
646
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16647 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b42015-12-28 20:23:11648 if (!is_android) {
649 deps += [ "//chrome/test:load_library_perf_tests" ]
650 }
mcgrathr916aafa2015-09-15 00:06:53651 deps += [
mcgrathr916aafa2015-09-15 00:06:53652 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f973d62015-11-20 05:38:10653 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53654 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16655 }
dpranke807f602b2015-03-17 23:20:56656 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51657 deps += [ "//v8:v8_shell" ]
dpranke807f602b2015-03-17 23:20:56658 }
dprankedb5527d72015-03-08 04:22:47659 }
dprankeb0713542015-07-31 21:07:21660
aizatskyaf496112016-04-15 19:26:32661 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
662 (use_libfuzzer && is_mac)) {
663 deps += [
664 "//testing/libfuzzer/fuzzers",
665 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06666 "//third_party/icu/fuzzers",
noel6997c5c2017-04-13 14:12:18667 "//third_party/qcms:fuzzers",
aizatskyaf496112016-04-15 19:26:32668 ]
miu16396172016-09-28 00:05:56669
670 # TODO(miu): Remove this dependency once the build configuration in
671 # chrome/browser/BUILD.gn is migrated to chrome/browser/media/BUILD.gn.
672 # This dependency here only exists to allow GN to discover the
673 # fuzzer_test target there.
674 deps += [ "//chrome/browser/media:cast_remoting_connector_fuzzer" ]
aizatskyaf496112016-04-15 19:26:32675 }
676
sbc92b4d572016-02-18 03:28:23677 if (enable_nacl) {
678 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
679 }
680
skyostilfe116162016-02-26 20:53:33681 if (is_linux && use_ozone) {
682 deps += [
683 "//headless",
684 "//headless:headless_tests",
685 ]
686 }
tfarinafbc992492017-03-08 22:44:04687}
688
689# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
690# for the iOS bots and the official builders.
691group("All") {
692 testonly = true
693
694 deps = [
695 ":gn_all",
696 ]
697}
698
699# TODO(GYP_GONE): This target exists for compatibility with GYP for the
700# builders that specify targets in the recipes directly.
701# Ideally it should not exist, and the builders should be specifying
702# more specific targets (or 'All') via the source-side
703# //testing/buildbot/*.json files. We should simply delete this target
704# and update any recipes that are using it.
705group("chromium_builder_tests") {
706 testonly = true
707 deps = []
708}
709
710# TODO(GYP_GONE): Figure out if we really need this target or if there's
711# some better way to specify things.
712if (is_win) {
713 group("chrome_official_builder_no_unittests") {
714 deps = [
715 "//base/win:eventlog_provider",
716 "//chrome/installer/gcapi",
717 "//chrome/installer/mini_installer",
718 "//cloud_print",
719 "//cloud_print/virtual_driver/win/port_monitor:copy_gcp_portmon_binaries",
720 "//components/policy:pack_policy_templates",
721 "//courgette",
722 "//courgette:copy_courgette_binaries",
723 "//remoting/webapp",
holteb87f01f52017-04-10 20:45:53724 "//tools/metrics:metrics_metadata",
tfarinafbc992492017-03-08 22:44:04725 ]
726
727 if (target_cpu == "x86") {
728 if (is_clang) {
729 deps += [ "//courgette(//build/toolchain/win:clang_x64)" ]
730 } else {
731 deps += [ "//courgette(//build/toolchain/win:x64)" ]
732 }
733 }
734 if (is_chrome_branded) {
735 deps += [ "//remoting/host:remoting_host_installation" ]
736 }
737 }
738
739 group("chrome_official_builder") {
740 testonly = true
741
742 deps = [
743 ":chrome_official_builder_no_unittests",
744 "//base:base_unittests",
745 "//chrome/test:browser_tests",
tfarinafbc992492017-03-08 22:44:04746 "//ipc:ipc_tests",
747 "//media:media_unittests",
748 "//media/midi:midi_unittests",
749 "//net:net_unittests",
750 "//printing:printing_unittests",
751 "//sql:sql_unittests",
752 "//ui/base:ui_base_unittests",
753 "//ui/gfx:gfx_unittests",
754 "//ui/touch_selection:ui_touch_selection_unittests",
755 "//ui/views:views_unittests",
756 "//url:url_unittests",
757 ]
758 }
759
760 group("All_syzygy") {
761 if (is_syzyasan) {
762 deps = [
763 "//chrome/installer/mini_installer:mini_installer",
764 "//chrome/installer/mini_installer:mini_installer_syzygy",
765 ]
766 }
767 }
768
769 if (is_syzyasan) {
770 group("chrome_official_syzyasan_builder") {
771 deps = [
772 ":All_syzygy",
773 ":chrome_official_builder_no_unittests",
774 ]
775 }
776 }
777}
778
779if (is_chromeos) {
780 group("chromiumos_preflight") {
781 testonly = true
782 deps = [
783 "//breakpad:minidump_stackwalk($host_toolchain)",
784 "//chrome",
785 "//chrome/test/chromedriver",
786 "//media:media_unittests",
787 "//media/gpu:video_decode_accelerator_unittest",
788 "//media/gpu:video_encode_accelerator_unittest",
789 "//ppapi/examples/video_decode",
790 "//sandbox/linux:chrome_sandbox",
791 "//sandbox/linux:sandbox_linux_unittests",
792
793 # Blocked on https://github.com/catapult-project/catapult/issues/2297
794 #"//third_party/catapult/telemetry:bitmaptools",
795 "//tools/perf/clear_system_cache",
796 ]
797 }
dprankedb5527d72015-03-08 04:22:47798}
799
dprankedb5527d72015-03-08 04:22:47800group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03801 deps = [
dprankeb6128d02015-05-01 16:40:30802 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47803 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
804 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03805 ]
dpranked2fb5222015-09-10 22:39:05806
807 if (!is_ios) {
808 deps += [
dpranked2fb5222015-09-10 22:39:05809 "//v8:postmortem-metadata",
dpranke244f973d62015-11-20 05:38:10810 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05811 ]
812 }
dpranked62d8512015-03-02 03:06:03813}
814
tfarinacb2638b2015-05-12 03:24:15815if (!is_ios) {
816 # This group includes all of the targets needed to build and test Blink,
817 # including running the layout tests (see below).
818 group("blink_tests") {
819 testonly = true
820
821 deps = [
tansell88df42592016-11-15 07:22:59822 ":webkit_layout_tests",
tfarinacb2638b2015-05-12 03:24:15823 "//third_party/WebKit/public:all_blink",
tansell88df42592016-11-15 07:22:59824 ]
825 }
826
827 # Layout tests runner
828 # third_party/WebKit/Tools/Scripts/run-webkit-tests
829 group("run_webkit_tests") {
830 testonly = true
831 deps = [
832 ":webkit_layout_tests",
833 ]
834 }
835
836 # https://www.chromium.org/developers/testing/webkit-layout-tests
tansell0e6baaf22017-02-16 09:14:53837
838 # The _exparchive at the end of the name indicates to the isolate recipe
839 # that the isolate should be archived separately using the `exparchive`
840 # command, rather than as part of the normal `batcharchive` command.
841 group("webkit_layout_tests_exparchive") {
842 testonly = true
843 deps = [
844 ":webkit_layout_tests",
845 ]
846 data_deps = [
847 ":webkit_layout_tests",
848 ]
849 }
850
851 # This target contains only a small subset of the layout tests,
852 # and is useful for testing with the regular isolate mechanism.
853 # To run the full layout test suite you need to use
854 # :webkit_layout_tests_exparchive, above, instead.
tansell88df42592016-11-15 07:22:59855 group("webkit_layout_tests") {
856 testonly = true
tansell88df42592016-11-15 07:22:59857 data_deps = [
yzshena0646992017-04-02 22:01:27858 ":layout_test_data_mojo_bindings",
tansell88df42592016-11-15 07:22:59859 "//content/shell:content_shell",
alokp577b29e2017-05-04 23:10:09860 "//mojo/public/interfaces/bindings/tests",
wangjimmy6aabe532017-04-22 03:06:11861 "//mojo/public/interfaces/bindings/tests:test_associated_interfaces",
tansell2bf83ac2017-02-18 04:01:14862 "//third_party/WebKit/public:blink_devtools_frontend_resources_files",
tansellaac85d72017-02-17 05:13:04863 "//third_party/mesa:osmesa",
agrieve993374cf2016-04-13 00:05:39864 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15865 ]
866
tfarinacb2638b2015-05-12 03:24:15867 if (is_android) {
tansell88df42592016-11-15 07:22:59868 data_deps += [
agrieve62ab00282016-04-05 02:03:45869 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39870 "//breakpad:dump_syms",
871 "//breakpad:microdump_stackwalk",
872 "//breakpad:minidump_dump",
873 "//breakpad:minidump_stackwalk",
874 "//breakpad:symupload",
jbudoricke7bcf092016-09-28 18:24:14875 "//tools/android/forwarder2",
ojan94989c72015-07-17 21:56:42876 ]
tfarinacb2638b2015-05-12 03:24:15877 }
878
879 if (is_win) {
tansell88df42592016-11-15 07:22:59880 data_deps += [ "//content/shell:content_shell_crash_service" ]
tfarinacb2638b2015-05-12 03:24:15881 }
882
883 if (!is_win && !is_android) {
tansell88df42592016-11-15 07:22:59884 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15885 }
886
887 if (is_mac) {
tansell88df42592016-11-15 07:22:59888 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15889 }
890
891 if (is_linux) {
tansell88df42592016-11-15 07:22:59892 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15893 }
qyearsley165a17a82016-08-01 17:58:50894
895 data = [
tansell55090912017-02-20 12:54:31896 "$root_build_dir/resources/inspector/",
tansell88df42592016-11-15 07:22:59897 "//testing/scripts/common.py",
tansell0e6baaf22017-02-16 09:14:53898 "//testing/scripts/run_isolated_script_test.py",
tansell55090912017-02-20 12:54:31899 "//testing/xvfb.py",
qyearsley165a17a82016-08-01 17:58:50900 "//third_party/WebKit/LayoutTests/",
tansell2bf83ac2017-02-18 04:01:14901 "//third_party/WebKit/PerformanceTests/",
qyearsley165a17a82016-08-01 17:58:50902 "//third_party/WebKit/Tools/Scripts/",
903 ]
tansell0e6baaf22017-02-16 09:14:53904
tansell820f7df2017-02-16 13:59:15905 if (is_win) {
tansell1b05bbd2017-05-04 09:30:32906 data += [
907 "//third_party/apache-win32/",
908 "//third_party/cygwin/",
909 "//third_party/perl/",
910 ]
tansell820f7df2017-02-16 13:59:15911 }
912
tansell0e6baaf22017-02-16 09:14:53913 if (is_android) {
914 data += [
915 "//third_party/catapult/",
916 "//build/android/",
917 ]
918 }
tfarinacb2638b2015-05-12 03:24:15919 }
yzshena0646992017-04-02 22:01:27920
921 copy("layout_test_data_mojo_bindings") {
922 testonly = true
923
924 sources = [
925 "$root_gen_dir/mojo/public/js/mojo_bindings.js",
926 ]
927
928 outputs = [
929 "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings.js",
930 ]
931
932 deps = [
933 "//mojo/public/js:new_bindings",
934 ]
935 }
tfarinacb2638b2015-05-12 03:24:15936}
937
dpranke6abd8652015-08-28 03:21:11938# Add a dummy target for compatibility w/ GYP
939group("chromium_swarm_tests") {
940}
941
dpranke2302dfa2015-09-29 02:21:52942group("chromium_builder_perf") {
943 testonly = true
944
thakisca8a42882016-06-10 17:59:30945 if (!is_ios && !is_android && !is_chromecast) {
malets6b7062402016-09-15 08:14:26946 data_deps = [
dpranke2302dfa2015-09-29 02:21:52947 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52948 "//chrome/test:load_library_perf_tests",
eyaiche1605ca2016-09-14 14:34:05949 "//chrome/test:telemetry_perf_tests",
kraynovc0797582016-10-25 16:45:06950 "//components/tracing:tracing_perftests",
dpranke2302dfa2015-09-29 02:21:52951 "//gpu:gpu_perftests",
952 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19953 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52954 ]
955
nednguyen6451d7d2017-05-09 14:37:54956 if (is_android) {
957 data += [ "//third_party/android_tools/sdk/platform-tools/adb" ]
958 }
959
dpranke2302dfa2015-09-29 02:21:52960 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:26961 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:52962 }
963 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04964 if (is_official_build) {
965 # In GN builds, this is controlled by the 'linux_dump_symbols'
966 # flag, which defaults to 1 for official builds. For now,
967 # we skip the separate flag and just key off of is_official_build.
malets6b7062402016-09-15 08:14:26968 data_deps += [ "//chrome:linux_symbols" ]
dpranke9aed5d582015-11-22 23:22:04969 }
dpranke2302dfa2015-09-29 02:21:52970
kraynovc0797582016-10-25 16:45:06971 data_deps += [ "//tools/perf/clear_system_cache" ]
dpranke2302dfa2015-09-29 02:21:52972 }
973
974 if (is_win) {
malets6b7062402016-09-15 08:14:26975 data_deps += [
hansa3d3aa4d2016-05-04 22:12:52976 "//chrome/installer/mini_installer:mini_installer",
eyaichd3e023c12016-11-14 22:41:01977 "//chrome/test:angle_perftests",
dpranke2302dfa2015-09-29 02:21:52978 ]
dpranke2302dfa2015-09-29 02:21:52979 } else {
malets6b7062402016-09-15 08:14:26980 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52981 }
982 }
983}
agrieve017b91f2016-02-29 20:15:06984
thakis3f7d4fc2016-06-10 18:47:50985if (!is_ios && !is_android && !is_chromecast) {
986 group("chromium_builder_asan") {
987 testonly = true
988
989 deps = [
990 "//chrome:chrome",
991 "//content/shell:content_shell",
992 "//v8:d8",
993 ]
994 if (!is_win) {
995 deps += [
996 "//net:dns_fuzz_stub",
thakis3f7d4fc2016-06-10 18:47:50997 "//skia:filter_fuzz_stub",
998 ]
999 }
1000 if (enable_ipc_fuzzer && !is_component_build) {
1001 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
1002 }
1003 if (!is_chromeos) {
1004 deps += [
1005 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371006 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501007 ]
1008 }
thakis3f7d4fc2016-06-10 18:47:501009 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
1010 deps += [
1011 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
sebmarchanda2df3392016-07-13 15:34:591012 "//content/shell:content_shell_syzyasan",
thakis3f7d4fc2016-06-10 18:47:501013 ]
thakis3f7d4fc2016-06-10 18:47:501014 }
1015 }
1016}
1017
brettw6df3e8c42016-04-14 21:07:131018# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
1019# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1020# something to build, but all targets for those bots to compile are set
1021# up differently.
1022# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1023# this group.
1024group("aura_builder") {
1025}
1026
agrieve95ba4442016-04-25 15:47:131027if (is_android) {
1028 group("optimize_gn_gen") {
1029 deps = [
1030 # These run expensive scripts in non-default toolchains. Generally, host
1031 # toolchain targets are loaded in the later part of the run, and the
1032 # result is they push out the end of generation. By preloading these, the
1033 # scripts can be parallelized with the rest of the load.
1034 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1035 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1036
1037 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1038 # generation.
1039 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1040 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1041 ]
1042 }
1043}
1044
agrieve017b91f2016-02-29 20:15:061045# Because of the source assignment filter, many targets end up over-filtering
1046# their sources if the output directory contains a platform name. Assert that
1047# this doesn't happen. http://crbug.com/548283
1048template("assert_valid_out_dir") {
1049 # List copied from //build/config/BUILDCONFIG.gn.
1050 set_sources_assignment_filter([
1051 "*\bandroid/*",
1052 "*\bchromeos/*",
1053 "*\bcocoa/*",
1054 "*\bios/*",
1055 "*\blinux/*",
1056 "*\bmac/*",
1057 "*\bposix/*",
1058 "*\bwin/*",
1059 ])
1060 assert(target_name != "") # Mark as used.
1061 sources = invoker.actual_sources
1062 assert(
1063 sources == invoker.actual_sources,
1064 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1065}
1066
1067assert_valid_out_dir("_unused") {
1068 actual_sources = [ "$root_build_dir/foo" ]
1069}