blob: 3c4534f8ced28fe2f2a37cae1d12e1553bb38147 [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",
brettwa874dcc2015-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",
brettwa874dcc2015-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",
168 "//mojo",
pkotwicz558d5252015-10-19 21:09:55169 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08170 "//mojo/edk/system:mojo_system_unittests",
171 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08172 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55173 "//net:net_perftests",
rockot734fb662016-10-15 16:41:30174 "//services/service_manager/public/cpp",
pwnall9f1622a2017-04-21 09:39:02175 "//storage:storage_unittests",
Dirk Pranke49802732015-12-10 01:36:41176 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:01177 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
yutak6fbccaf2017-03-31 07:55:13178 "//third_party/WebKit/Source/platform/wtf:wtf_unittests",
dpranke244f973d62015-11-20 05:38:10179 "//third_party/WebKit/Source/web:webkit_unit_tests",
brettwc5fcdd02016-10-12 07:25:12180 "//third_party/angle/src/tests:angle_end2end_tests",
181 "//third_party/angle/src/tests:angle_unittests",
ynovikov55e66c22017-02-16 15:45:37182 "//third_party/angle/src/tests:angle_white_box_tests",
nednguyenc42bf912016-01-27 01:39:28183 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35184 "//third_party/smhasher:pmurhash",
185 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35186 "//ui/display:display_unittests",
187 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35188 "//ui/gl:gl_unittests",
mfomitchev3ba450ad2017-04-03 18:20:40189 "//ui/latency:latency_unittests",
sherouk53f0f1a2015-08-03 15:59:35190 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03191 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35192 ]
sdefresne998e8582015-10-07 13:36:45193 } else {
sdefresne88abe362016-06-01 10:40:11194 deps += [ "//ios:all" ]
sherouk53f0f1a2015-08-03 15:59:35195 }
dprankee2ef3822015-02-24 21:42:18196
scottmg34fb7e52014-12-03 23:27:24197 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05198
tfarina4aa9edc2015-10-26 22:14:02199 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49200 deps += [ "//extensions/shell:app_shell_unittests" ]
rockot2f1326e2015-02-23 23:53:51201 }
202
garykac3eddb5b2015-04-17 23:16:38203 if (enable_remoting) {
204 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05205 }
206
dprankee2ef3822015-02-24 21:42:18207 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19208 deps += [
209 "//ui/views:views_unittests",
210 "//ui/views/examples:views_examples_exe",
211 "//ui/views/examples:views_examples_with_content_exe",
212 ]
James Robinson060f2e32014-09-10 22:31:37213 }
214
jamescook4c02a0b2016-12-02 23:14:42215 if (use_ash) {
mswda0133e62016-02-16 20:50:02216 deps += [
skycf094f672016-09-01 19:40:12217 "//ash:ash_content_unittests",
jamescookfbbf9112016-06-14 16:24:49218 "//ash:ash_shell_with_content",
219 "//ash:ash_unittests",
jamescook4c02a0b2016-12-02 23:14:42220 ]
221 }
222
223 if (use_aura) {
224 deps += [
mswda0133e62016-02-16 20:50:02225 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02226 "//ui/aura:demo",
227 "//ui/wm:wm_unittests",
228 ]
dprankee2ef3822015-02-24 21:42:18229 }
230
231 if (use_ozone) {
kylechar5c9a1fb62016-10-21 13:17:25232 deps += [
233 "//ui/ozone",
234 "//ui/ozone:ozone_unittests",
235 "//ui/ozone/gl:ozone_gl_unittests",
236 ]
[email protected]a306aaa2014-05-24 13:21:50237 }
238
thomasandersonaf830f3a2016-12-07 04:52:02239 if (use_x11 || ozone_platform_x11) {
240 deps += [ "//tools/xdisplaycheck" ]
241 }
242
brettw66e3feab2015-07-20 23:52:22243 if (is_win) {
brettwf986f9572015-10-07 17:18:15244 deps += [
245 "//chrome/installer/gcapi",
246 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
247 ]
brettw66e3feab2015-07-20 23:52:22248 }
249
thakisdc11faf52017-04-25 21:49:42250 if (is_mac) {
251 deps += [ "//chrome/installer/gcapi_mac:gcapi_example" ]
252 }
253
[email protected]5a8d5162014-04-12 01:19:16254 if (is_android) {
[email protected]26046b52014-07-16 00:11:03255 deps += [
pkotwicze2dae8b2015-11-03 20:12:55256 "//base:base_junit_tests",
dpranke244f973d62015-11-20 05:38:10257 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38258 "//build/android/gyp/test:hello_world",
pkotwicz2dd67962016-05-10 00:21:08259 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55260 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
261 "//components/policy/android:components_policy_junit_tests",
262 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45263 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47264 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55265 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11266 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56267 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05268 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45269 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10270 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49271 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34272 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12273 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
274 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43275 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15276 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15277 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18278 ]
279 deps -= [
rockot9c67e5f2015-03-12 20:01:21280 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18281 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03282 ]
283
pkotwicz92e2e2312015-12-15 22:29:46284 if (!is_component_build) {
285 deps += [
agrievee23386b2016-01-05 04:47:58286 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12287 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46288 "//components/cronet/android:cronet_sample_apk",
289 "//components/cronet/android:cronet_sample_test_apk",
290 "//components/cronet/android:cronet_test_apk",
291 "//components/cronet/android:cronet_test_instrumentation_apk",
292 "//components/cronet/android:cronet_unittests",
293 ]
294 }
295
pkotwicz061c5a42015-09-30 02:16:54296 if (!is_chromecast) {
297 deps += [
michaelbaicbcc7e62015-11-12 04:29:53298 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30299 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44300 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05301 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55302 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54303 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10304 "//chrome/android:chrome_public_test_apk",
305 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54306 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-12-28 20:23:11307 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05308 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54309 ]
310 }
311
pkotwicz06a4b4b42015-10-29 23:11:11312 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12313 deps += [
314 "//content/shell/android:chromium_linker_test_apk",
315 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
316 ]
pkotwicz06a4b4b42015-10-29 23:11:11317 }
318
dgnd1e190d2017-03-17 13:34:49319 if (enable_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55320 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45321 }
dprankedb5527d72015-03-08 04:22:47322 }
323
brettwf9427f92016-05-05 23:18:55324 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00325 deps += [
pkotwicza4d233b22015-11-02 18:20:38326 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00327 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38328 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00329 "//breakpad:minidump-2-core",
330 ]
331 }
332
dpranke6293d252015-04-14 19:12:00333 if (is_chromeos) {
334 deps += [
335 "//chromeos:chromeos_unittests",
khorimoto4c539952016-12-04 02:37:11336 "//chromeos/components:chromeos_components_unittests",
jamescook4c02a0b2016-12-02 23:14:42337 "//components/session_manager/core",
estade835d5502017-01-04 16:44:06338 "//ui/app_list:app_list_unittests",
339 "//ui/app_list/presenter:app_list_presenter_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22340 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00341 "//ui/chromeos:ui_chromeos_unittests",
342 ]
343 }
344
dprankefd1813272015-04-13 23:56:00345 if (is_chromeos || is_mac || is_win) {
346 deps += [
347 "//rlz:rlz_id",
348 "//rlz:rlz_lib",
349 "//rlz:rlz_unittests",
350 ]
351 }
352
dprankedb5527d72015-03-08 04:22:47353 if (is_linux) {
354 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06355 deps += [
dpranke2bc89212015-11-18 00:24:43356 "//chrome:manpage",
357 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47358 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47359 "//net:quic_client",
360 "//net:quic_server",
361 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18362 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06363 ]
dnicoara8c6aa8e2015-03-11 23:20:32364
mbjorgea12e5a52016-05-31 22:15:17365 if (use_dbus) {
366 deps += [
367 "//dbus:dbus_test_server",
368 "//dbus:dbus_unittests",
369 ]
370 }
371
dpranke2bc89212015-11-18 00:24:43372 if (is_chrome_branded && is_official_build) {
373 # TODO(dpranke): add the linux_dump_symbols flag?
374 deps += [ "//chrome:linux_symbols" ]
375 }
dprankedb5527d72015-03-08 04:22:47376 }
377
sherouke1859f92015-08-05 10:19:10378 if (is_ios || is_win || (is_linux && !is_chromeos)) {
379 deps += [
380 "//base:base_i18n_perftests",
381 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58382 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10383 ]
384 }
385
sugoia1b7b922016-12-13 12:52:49386 if ((is_win || is_mac || is_linux) &&
387 (target_cpu == "x86" || target_cpu == "x64")) {
sugoiabe91892016-09-20 12:53:51388 deps += [ "//third_party/swiftshader" ]
389 }
390
thakis507c15c2016-06-01 00:26:01391 # TODO(GYP): Figure out which of these should (and can) build
392 # for chromeos/ios.
393 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44394 deps += [
dprankedb5527d72015-03-08 04:22:47395 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10396 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47397 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00398 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47399 "//components:components_perftests",
Max Boguefef332d2016-07-28 22:09:09400 "//components/sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47401 "//device:device_unittests",
402 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47403 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47404 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00405 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10406 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47407 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47408 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00409 "//net:dump_cache",
dprankefd1813272015-04-13 23:56:00410 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47411 "//ui/compositor:compositor_unittests",
412 ]
413
agrieve473155b42015-12-28 20:23:11414 if (!is_android) {
415 deps += [
416 "//chrome/test:load_library_perf_tests",
417 "//chrome/test:sync_performance_tests",
418 "//chrome/test/chromedriver:chromedriver",
419 "//chrome/test/chromedriver:chromedriver_tests",
420 "//courgette:courgette",
421 "//courgette:courgette_fuzz",
422 "//courgette:courgette_minimal_tool",
423 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30424 "//media/cast:generate_barcode_video",
425 "//media/cast:generate_timecode_audio",
agrieve473155b42015-12-28 20:23:11426 "//net:crash_cache",
427 "//net:crl_set_dump",
428 "//net:dns_fuzz_stub",
429 "//net:gdig",
430 "//net:get_server_time",
431 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
432 "//net:run_testserver",
433 "//net:stress_cache",
434 "//net:tld_cleanup",
435 "//ppapi:pepper_hash_for_uma",
436 "//ppapi:ppapi_perftests",
agrieve473155b42015-12-28 20:23:11437 "//third_party/leveldatabase:env_chromium_unittests",
438 "//third_party/libaddressinput:libaddressinput_unittests",
439 ]
440 }
dpranke7e19b472015-11-13 00:49:33441
jamescookfbbf9112016-06-14 16:24:49442 if (enable_extensions) {
443 deps += [ "//extensions/shell:app_shell" ]
444 }
445
dprankedb5527d72015-03-08 04:22:47446 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13447 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43448
449 if (is_linux) {
450 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37451 deps += [ "//components/nacl/loader:nacl_helper" ]
452
453 if (enable_nacl_nonsfi) {
454 deps += [
455 "//components/nacl/loader:helper_nonsfi",
456 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
457 ]
458 }
dpranke2bc89212015-11-18 00:24:43459 }
dprankedb5527d72015-03-08 04:22:47460 }
461
xhwangfa2d9d472015-12-18 23:31:18462 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10463 deps += [ "//media:ffmpeg_regression_tests" ]
464 }
dprankefd1813272015-04-13 23:56:00465 }
466
agrieve473155b42015-12-28 20:23:11467 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00468 deps += [
agrieve473155b42015-12-28 20:23:11469 "//breakpad:dump_syms($host_toolchain)",
470 "//breakpad:microdump_stackwalk($host_toolchain)",
471 "//breakpad:minidump_dump($host_toolchain)",
472 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00473 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00474 "//content/public/app:browser",
475 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08476 "//mojo/edk/test:mojo_public_system_perftests",
rockot734fb662016-10-15 16:41:30477 "//services/service_manager/public/cpp",
dprankefd1813272015-04-13 23:56:00478 "//testing/gmock:gmock_main",
dprankefd1813272015-04-13 23:56:00479 ]
480
agrieve473155b42015-12-28 20:23:11481 if (!is_android) {
482 deps += [
agrieve473155b42015-12-28 20:23:11483 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55484 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b42015-12-28 20:23:11485 "//media/cast:cast_benchmarks",
486 "//media/cast:tap_proxy",
487 "//skia:filter_fuzz_stub",
488 "//skia:image_operations_bench",
agrieve473155b42015-12-28 20:23:11489 "//third_party/sqlite:sqlite_shell",
490 "//ui/keyboard:keyboard_unittests",
491 "//ui/message_center:message_center_unittests",
492 "//ui/snapshot:snapshot_unittests",
agrieve473155b42015-12-28 20:23:11493 ]
dprankefd1813272015-04-13 23:56:00494
agrieve473155b42015-12-28 20:23:11495 if (!is_debug && !is_component_build) {
496 deps += [ "//chrome/tools/service_discovery_sniffer" ]
497 }
dprankefd1813272015-04-13 23:56:00498 }
499
dprankedb5527d72015-03-08 04:22:47500 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44501 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59502 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44503 }
dprankedb5527d72015-03-08 04:22:47504 }
505 }
506
507 if (is_mac) {
508 deps += [
509 "//breakpad:crash_inspector",
510 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44511 "//third_party/apple_sample_code",
512 "//third_party/molokocacao",
513 ]
dpranke43760592014-11-08 02:59:57514 deps -= [
brettw011138d2015-10-21 03:05:38515 # Mojo in GN contains some things which are never compiled in GYP on Mac,
516 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10517 "//mojo",
dprankecf8465db72014-11-10 23:51:22518 ]
dprankefd1813272015-04-13 23:56:00519 }
520
521 if (is_win) {
522 deps += [
523 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16524 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43525 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00526 "//chrome_elf:chrome_elf_unittests",
527 "//chrome_elf:dll_hash_main",
pastarmovj02d5cc992016-12-05 17:55:24528 "//cloud_print:cloud_print_unittests",
dprankefd1813272015-04-13 23:56:00529 "//components/wifi:wifi_test",
530 "//net:quic_client",
531 "//net:quic_server",
532 "//sandbox/win:pocdll",
533 "//sandbox/win:sandbox_poc",
534 "//sandbox/win:sbox_integration_tests",
535 "//sandbox/win:sbox_unittests",
536 "//sandbox/win:sbox_validation_tests",
537 "//testing/gtest:gtest_main",
dprankefd1813272015-04-13 23:56:00538 "//third_party/pdfium/samples:pdfium_diff",
ajwongbf193272017-03-16 00:00:44539 "//third_party/tcmalloc:addr2line-pdb",
robliaofd54b5c2017-01-13 00:41:30540 "//tools/win/chromeexts:chromeexts",
dprankefd1813272015-04-13 23:56:00541 ]
fdorayfb048bff2016-04-28 22:07:36542
543 if (!(is_component_build && is_debug && target_cpu == "x86")) {
544 deps +=
545 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
546 }
sherouk53f0f1a2015-08-03 15:59:35547 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29548 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34549 }
rsesek985bd812016-04-26 21:06:15550
slance9d62f2015-11-04 01:15:01551 if (is_chromecast) {
552 deps += [ "//chromecast:cast_shell" ]
553 }
miu45b848fe2015-11-26 01:23:29554
rsesek985bd812016-04-26 21:06:15555 if (is_mac || is_win) {
556 deps += [
557 "//third_party/crashpad/crashpad/handler:crashpad_handler",
558 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
559 ]
560 }
561
hbos17a7b4a22015-12-07 10:49:45562 if (use_openh264) {
563 deps += [
564 "//third_party/openh264:common",
565 "//third_party/openh264:encoder",
566 "//third_party/openh264:processing",
567 ]
568 }
dpranke2a294622015-08-07 05:23:01569
amistry4dcd7c42015-12-16 04:53:10570 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29571 deps += [
572 "//media/mojo:media_mojo_unittests",
rockot8cdd37a2017-01-28 02:53:31573 "//services:service_unittests",
xhwangf69024d12016-06-16 17:52:29574 ]
amistry4dcd7c42015-12-16 04:53:10575 }
576
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
spang324dc57a2016-04-06 14:54:08661 if (use_ozone) {
662 deps += [ "//ui/ozone/demo" ]
663 }
664
aizatskyaf496112016-04-15 19:26:32665 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
666 (use_libfuzzer && is_mac)) {
667 deps += [
668 "//testing/libfuzzer/fuzzers",
669 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06670 "//third_party/icu/fuzzers",
noel6997c5c2017-04-13 14:12:18671 "//third_party/qcms:fuzzers",
aizatskyaf496112016-04-15 19:26:32672 ]
miu16396172016-09-28 00:05:56673
674 # TODO(miu): Remove this dependency once the build configuration in
675 # chrome/browser/BUILD.gn is migrated to chrome/browser/media/BUILD.gn.
676 # This dependency here only exists to allow GN to discover the
677 # fuzzer_test target there.
678 deps += [ "//chrome/browser/media:cast_remoting_connector_fuzzer" ]
aizatskyaf496112016-04-15 19:26:32679 }
680
sbc92b4d572016-02-18 03:28:23681 if (enable_nacl) {
682 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
683 }
684
agrieve473155b42015-12-28 20:23:11685 if (is_android) {
bsheedy84541d552017-04-13 01:24:37686 deps += [
687 "//build/android/gyp/test:hello_world",
bsheedya1584812017-04-20 21:35:27688 "//chrome/test/vr/perf:motopho_latency_test",
bsheedy84541d552017-04-13 01:24:37689 ]
nyquistb5f050b2015-09-10 05:10:35690 }
691
skyostilfe116162016-02-26 20:53:33692 if (is_linux && use_ozone) {
693 deps += [
694 "//headless",
695 "//headless:headless_tests",
696 ]
697 }
tfarinafbc992492017-03-08 22:44:04698
699 if (!is_ios) {
700 deps += [ "//v8:gn_all" ]
701 }
702}
703
704# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
705# for the iOS bots and the official builders.
706group("All") {
707 testonly = true
708
709 deps = [
710 ":gn_all",
711 ]
712}
713
714# TODO(GYP_GONE): This target exists for compatibility with GYP for the
715# builders that specify targets in the recipes directly.
716# Ideally it should not exist, and the builders should be specifying
717# more specific targets (or 'All') via the source-side
718# //testing/buildbot/*.json files. We should simply delete this target
719# and update any recipes that are using it.
720group("chromium_builder_tests") {
721 testonly = true
722 deps = []
723}
724
725# TODO(GYP_GONE): Figure out if we really need this target or if there's
726# some better way to specify things.
727if (is_win) {
728 group("chrome_official_builder_no_unittests") {
729 deps = [
730 "//base/win:eventlog_provider",
731 "//chrome/installer/gcapi",
732 "//chrome/installer/mini_installer",
733 "//cloud_print",
734 "//cloud_print/virtual_driver/win/port_monitor:copy_gcp_portmon_binaries",
735 "//components/policy:pack_policy_templates",
736 "//courgette",
737 "//courgette:copy_courgette_binaries",
738 "//remoting/webapp",
holteb87f01f52017-04-10 20:45:53739 "//tools/metrics:metrics_metadata",
tfarinafbc992492017-03-08 22:44:04740 ]
741
742 if (target_cpu == "x86") {
743 if (is_clang) {
744 deps += [ "//courgette(//build/toolchain/win:clang_x64)" ]
745 } else {
746 deps += [ "//courgette(//build/toolchain/win:x64)" ]
747 }
748 }
749 if (is_chrome_branded) {
750 deps += [ "//remoting/host:remoting_host_installation" ]
751 }
752 }
753
754 group("chrome_official_builder") {
755 testonly = true
756
757 deps = [
758 ":chrome_official_builder_no_unittests",
759 "//base:base_unittests",
760 "//chrome/test:browser_tests",
761 "//chrome/test:sync_integration_tests",
762 "//ipc:ipc_tests",
763 "//media:media_unittests",
764 "//media/midi:midi_unittests",
765 "//net:net_unittests",
766 "//printing:printing_unittests",
767 "//sql:sql_unittests",
768 "//ui/base:ui_base_unittests",
769 "//ui/gfx:gfx_unittests",
770 "//ui/touch_selection:ui_touch_selection_unittests",
771 "//ui/views:views_unittests",
772 "//url:url_unittests",
773 ]
774 }
775
776 group("All_syzygy") {
777 if (is_syzyasan) {
778 deps = [
779 "//chrome/installer/mini_installer:mini_installer",
780 "//chrome/installer/mini_installer:mini_installer_syzygy",
781 ]
782 }
783 }
784
785 if (is_syzyasan) {
786 group("chrome_official_syzyasan_builder") {
787 deps = [
788 ":All_syzygy",
789 ":chrome_official_builder_no_unittests",
790 ]
791 }
792 }
793}
794
795if (is_chromeos) {
796 group("chromiumos_preflight") {
797 testonly = true
798 deps = [
799 "//breakpad:minidump_stackwalk($host_toolchain)",
800 "//chrome",
801 "//chrome/test/chromedriver",
802 "//media:media_unittests",
803 "//media/gpu:video_decode_accelerator_unittest",
804 "//media/gpu:video_encode_accelerator_unittest",
805 "//ppapi/examples/video_decode",
806 "//sandbox/linux:chrome_sandbox",
807 "//sandbox/linux:sandbox_linux_unittests",
808
809 # Blocked on https://github.com/catapult-project/catapult/issues/2297
810 #"//third_party/catapult/telemetry:bitmaptools",
811 "//tools/perf/clear_system_cache",
812 ]
813 }
dprankedb5527d72015-03-08 04:22:47814}
815
dprankedb5527d72015-03-08 04:22:47816group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03817 deps = [
dprankeb6128d02015-05-01 16:40:30818 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47819 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
820 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03821 ]
dpranked2fb5222015-09-10 22:39:05822
823 if (!is_ios) {
824 deps += [
dpranked2fb5222015-09-10 22:39:05825 "//v8:postmortem-metadata",
dpranke244f973d62015-11-20 05:38:10826 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05827 ]
828 }
dpranked62d8512015-03-02 03:06:03829}
830
tfarinacb2638b2015-05-12 03:24:15831if (!is_ios) {
832 # This group includes all of the targets needed to build and test Blink,
833 # including running the layout tests (see below).
834 group("blink_tests") {
835 testonly = true
836
837 deps = [
tansell88df42592016-11-15 07:22:59838 ":webkit_layout_tests",
tfarinacb2638b2015-05-12 03:24:15839 "//third_party/WebKit/public:all_blink",
tansell88df42592016-11-15 07:22:59840 ]
841 }
842
843 # Layout tests runner
844 # third_party/WebKit/Tools/Scripts/run-webkit-tests
845 group("run_webkit_tests") {
846 testonly = true
847 deps = [
848 ":webkit_layout_tests",
849 ]
850 }
851
852 # https://www.chromium.org/developers/testing/webkit-layout-tests
tansell0e6baaf22017-02-16 09:14:53853
854 # The _exparchive at the end of the name indicates to the isolate recipe
855 # that the isolate should be archived separately using the `exparchive`
856 # command, rather than as part of the normal `batcharchive` command.
857 group("webkit_layout_tests_exparchive") {
858 testonly = true
859 deps = [
860 ":webkit_layout_tests",
861 ]
862 data_deps = [
863 ":webkit_layout_tests",
864 ]
865 }
866
867 # This target contains only a small subset of the layout tests,
868 # and is useful for testing with the regular isolate mechanism.
869 # To run the full layout test suite you need to use
870 # :webkit_layout_tests_exparchive, above, instead.
tansell88df42592016-11-15 07:22:59871 group("webkit_layout_tests") {
872 testonly = true
tansell88df42592016-11-15 07:22:59873 data_deps = [
yzshena0646992017-04-02 22:01:27874 ":layout_test_data_mojo_bindings",
tansell88df42592016-11-15 07:22:59875 "//content/shell:content_shell",
wangjimmy6aabe532017-04-22 03:06:11876 "//mojo/public/interfaces/bindings/tests:test_associated_interfaces",
alokp51b900d2017-03-10 18:55:39877 "//mojo/public/interfaces/bindings/tests:test_interfaces",
tansell2bf83ac2017-02-18 04:01:14878 "//third_party/WebKit/public:blink_devtools_frontend_resources_files",
tansellaac85d72017-02-17 05:13:04879 "//third_party/mesa:osmesa",
agrieve993374cf2016-04-13 00:05:39880 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15881 ]
882
tfarinacb2638b2015-05-12 03:24:15883 if (is_android) {
tansell88df42592016-11-15 07:22:59884 data_deps += [
agrieve62ab00282016-04-05 02:03:45885 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39886 "//breakpad:dump_syms",
887 "//breakpad:microdump_stackwalk",
888 "//breakpad:minidump_dump",
889 "//breakpad:minidump_stackwalk",
890 "//breakpad:symupload",
jbudoricke7bcf092016-09-28 18:24:14891 "//tools/android/forwarder2",
ojan94989c72015-07-17 21:56:42892 ]
tfarinacb2638b2015-05-12 03:24:15893 }
894
895 if (is_win) {
tansell88df42592016-11-15 07:22:59896 data_deps += [ "//content/shell:content_shell_crash_service" ]
tfarinacb2638b2015-05-12 03:24:15897 }
898
899 if (!is_win && !is_android) {
tansell88df42592016-11-15 07:22:59900 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15901 }
902
903 if (is_mac) {
tansell88df42592016-11-15 07:22:59904 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15905 }
906
907 if (is_linux) {
tansell88df42592016-11-15 07:22:59908 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15909 }
qyearsley165a17a82016-08-01 17:58:50910
911 data = [
tansell55090912017-02-20 12:54:31912 "$root_build_dir/resources/inspector/",
tansell88df42592016-11-15 07:22:59913 "//testing/scripts/common.py",
tansell0e6baaf22017-02-16 09:14:53914 "//testing/scripts/run_isolated_script_test.py",
tansell55090912017-02-20 12:54:31915 "//testing/xvfb.py",
qyearsley165a17a82016-08-01 17:58:50916 "//third_party/WebKit/LayoutTests/",
tansell2bf83ac2017-02-18 04:01:14917 "//third_party/WebKit/PerformanceTests/",
qyearsley165a17a82016-08-01 17:58:50918 "//third_party/WebKit/Tools/Scripts/",
919 ]
tansell0e6baaf22017-02-16 09:14:53920
tansell820f7df2017-02-16 13:59:15921 if (is_win) {
922 data += [ "//third_party/apache-win32/" ]
923 }
924
tansell0e6baaf22017-02-16 09:14:53925 if (is_android) {
926 data += [
927 "//third_party/catapult/",
928 "//build/android/",
929 ]
930 }
tfarinacb2638b2015-05-12 03:24:15931 }
yzshena0646992017-04-02 22:01:27932
933 copy("layout_test_data_mojo_bindings") {
934 testonly = true
935
936 sources = [
937 "$root_gen_dir/mojo/public/js/mojo_bindings.js",
938 ]
939
940 outputs = [
941 "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings.js",
942 ]
943
944 deps = [
945 "//mojo/public/js:new_bindings",
946 ]
947 }
tfarinacb2638b2015-05-12 03:24:15948}
949
dpranke6abd8652015-08-28 03:21:11950# Add a dummy target for compatibility w/ GYP
951group("chromium_swarm_tests") {
952}
953
dpranke2302dfa2015-09-29 02:21:52954group("chromium_builder_perf") {
955 testonly = true
956
thakisca8a42882016-06-10 17:59:30957 if (!is_ios && !is_android && !is_chromecast) {
malets6b7062402016-09-15 08:14:26958 data_deps = [
dpranke2302dfa2015-09-29 02:21:52959 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52960 "//chrome/test:load_library_perf_tests",
eyaiche1605ca2016-09-14 14:34:05961 "//chrome/test:telemetry_perf_tests",
kraynovc0797582016-10-25 16:45:06962 "//components/tracing:tracing_perftests",
dpranke2302dfa2015-09-29 02:21:52963 "//gpu:gpu_perftests",
964 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19965 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52966 ]
967
968 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:26969 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:52970 }
971 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04972 if (is_official_build) {
973 # In GN builds, this is controlled by the 'linux_dump_symbols'
974 # flag, which defaults to 1 for official builds. For now,
975 # we skip the separate flag and just key off of is_official_build.
malets6b7062402016-09-15 08:14:26976 data_deps += [ "//chrome:linux_symbols" ]
dpranke9aed5d582015-11-22 23:22:04977 }
dpranke2302dfa2015-09-29 02:21:52978
kraynovc0797582016-10-25 16:45:06979 data_deps += [ "//tools/perf/clear_system_cache" ]
dpranke2302dfa2015-09-29 02:21:52980 }
981
982 if (is_win) {
malets6b7062402016-09-15 08:14:26983 data_deps += [
hansa3d3aa4d2016-05-04 22:12:52984 "//chrome/installer/mini_installer:mini_installer",
eyaichd3e023c12016-11-14 22:41:01985 "//chrome/test:angle_perftests",
dpranke2302dfa2015-09-29 02:21:52986 ]
dpranke2302dfa2015-09-29 02:21:52987 } else {
malets6b7062402016-09-15 08:14:26988 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52989 }
990 }
991}
agrieve017b91f2016-02-29 20:15:06992
thakis3f7d4fc2016-06-10 18:47:50993if (!is_ios && !is_android && !is_chromecast) {
994 group("chromium_builder_asan") {
995 testonly = true
996
997 deps = [
998 "//chrome:chrome",
999 "//content/shell:content_shell",
1000 "//v8:d8",
1001 ]
1002 if (!is_win) {
1003 deps += [
1004 "//net:dns_fuzz_stub",
thakis3f7d4fc2016-06-10 18:47:501005 "//skia:filter_fuzz_stub",
1006 ]
1007 }
1008 if (enable_ipc_fuzzer && !is_component_build) {
1009 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
1010 }
1011 if (!is_chromeos) {
1012 deps += [
1013 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371014 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501015 ]
1016 }
thakis3f7d4fc2016-06-10 18:47:501017 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
1018 deps += [
1019 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
sebmarchanda2df3392016-07-13 15:34:591020 "//content/shell:content_shell_syzyasan",
thakis3f7d4fc2016-06-10 18:47:501021 ]
thakis3f7d4fc2016-06-10 18:47:501022 }
1023 }
1024}
1025
brettw6df3e8c42016-04-14 21:07:131026# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
1027# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1028# something to build, but all targets for those bots to compile are set
1029# up differently.
1030# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1031# this group.
1032group("aura_builder") {
1033}
1034
agrieve95ba4442016-04-25 15:47:131035if (is_android) {
1036 group("optimize_gn_gen") {
1037 deps = [
1038 # These run expensive scripts in non-default toolchains. Generally, host
1039 # toolchain targets are loaded in the later part of the run, and the
1040 # result is they push out the end of generation. By preloading these, the
1041 # scripts can be parallelized with the rest of the load.
1042 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1043 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1044
1045 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1046 # generation.
1047 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1048 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1049 ]
1050 }
1051}
1052
agrieve017b91f2016-02-29 20:15:061053# Because of the source assignment filter, many targets end up over-filtering
1054# their sources if the output directory contains a platform name. Assert that
1055# this doesn't happen. http://crbug.com/548283
1056template("assert_valid_out_dir") {
1057 # List copied from //build/config/BUILDCONFIG.gn.
1058 set_sources_assignment_filter([
1059 "*\bandroid/*",
1060 "*\bchromeos/*",
1061 "*\bcocoa/*",
1062 "*\bios/*",
1063 "*\blinux/*",
1064 "*\bmac/*",
1065 "*\bposix/*",
1066 "*\bwin/*",
1067 ])
1068 assert(target_name != "") # Mark as used.
1069 sources = invoker.actual_sources
1070 assert(
1071 sources == invoker.actual_sources,
1072 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1073}
1074
1075assert_valid_out_dir("_unused") {
1076 actual_sources = [ "$root_build_dir/foo" ]
1077}