blob: b03949022493a1f23539472b6aabdf3712ea9b98 [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
dprankeef9c5e582015-11-15 23:22:0841# This file defines the following five main targets:
dpranked62d8512015-03-02 03:06:0342#
dprankeddc174902015-04-29 01:38:3543# "both_gn_and_gyp" should list every root target (target that nothing else
44# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0345#
dprankeddc174902015-04-29 01:38:3546# "gn_all" should (transitively) cause everything to be built; if you run
47# 'ninja gn_all' and then 'ninja all', the second build should do no work.
48#
dprankeef9c5e582015-11-15 23:22:0849# "gn_only" should list every root target that is *not* intended to be built in
50# a GYP build. Because GN has different rules for deciding what an 'all' build
51# is, this may end up including targets that are actually defined in a GYP
52# build but not dependencies of GYP's "all" (and so not actually built).
dprankeddc174902015-04-29 01:38:3553#
dprankeb6128d02015-05-01 16:40:3054# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0855# but are built anyway by "all". Since we don't want any such targets, we have
56# this placeholder to make sure hidden targets that aren't otherwise depended
57# on yet are accounted for.
58#
59# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
60# the iOS bots and the official builders, but should not be generally used
61# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
62# same set of targets as GYP's "All" does, because GYP's "All" supports
63# wildcards.
64#
65# Lastly, none of these targets are guaranteed to be the same as what ninja
66# will build with "all". For more on how "all" works and the differences in how
67# GYP and GN determine "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3068#
brettwf9427f92016-05-05 23:18:5569# TODO(GYP_GONE): crbug.com/481694. Make sure that the above is true and there
70# are scripts run on the bots that enforce this. Once the GYP migration is
71# over, we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3972
dprankee2ef3822015-02-24 21:42:1873group("gn_all") {
74 testonly = true
75
76 deps = [
dprankeb6128d02015-05-01 16:40:3077 ":gn_visibility",
dprankee2ef3822015-02-24 21:42:1878 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:1879 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:3780 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:5981 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:4482 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:1883 "//sql:sql_unittests",
ochangcc11d0e2016-04-26 19:58:2684 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:4185 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:3986 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:4187 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1888 ]
dpranke2a294622015-08-07 05:23:0189
sdefresne21832bf92016-03-30 22:01:0290 if (!is_android && !is_chromecast) {
91 deps += [
92 "//crypto:crypto_unittests",
93 "//google_apis/gcm:gcm_unit_tests",
94 ]
95 }
96
slance9d62f2015-11-04 01:15:0197 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:3598 deps += [
sherouk53f0f1a2015-08-03 15:59:3599 "//chrome",
100 "//chrome/test:browser_tests",
101 "//chrome/test:interactive_ui_tests",
102 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35103 "//chrome/test/chromedriver:chromedriver_unittests",
Max Boguefef332d2016-07-28 22:09:09104 "//components/sync/tools:sync_client",
105 "//components/sync/tools:sync_listen_notifications",
jamescookfbbf9112016-06-14 16:24:49106 "//extensions:extensions_browsertests",
107 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18108 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26109 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35110 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35111 "//net:hpack_example_generator",
sherouk53f0f1a2015-08-03 15:59:35112 "//ppapi:ppapi_unittests",
113 "//ppapi/examples/2d",
114 "//ppapi/examples/audio",
115 "//ppapi/examples/audio_input",
116 "//ppapi/examples/compositor",
117 "//ppapi/examples/crxfs",
118 "//ppapi/examples/enumerate_devices",
119 "//ppapi/examples/file_chooser",
120 "//ppapi/examples/flash_topmost",
121 "//ppapi/examples/font",
122 "//ppapi/examples/gamepad",
123 "//ppapi/examples/gles2",
124 "//ppapi/examples/gles2_spinning_cube",
125 "//ppapi/examples/ime",
126 "//ppapi/examples/input",
127 "//ppapi/examples/media_stream_audio",
128 "//ppapi/examples/media_stream_video",
129 "//ppapi/examples/mouse_cursor",
130 "//ppapi/examples/mouse_lock",
131 "//ppapi/examples/printing",
132 "//ppapi/examples/scaling",
133 "//ppapi/examples/scripting",
134 "//ppapi/examples/stub",
135 "//ppapi/examples/threading",
136 "//ppapi/examples/url_loader",
137 "//ppapi/examples/video_capture",
138 "//ppapi/examples/video_decode",
139 "//ppapi/examples/video_effects",
140 "//ppapi/examples/video_encode",
141 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35142 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
pkotwicz558d5252015-10-19 21:09:55143 "//third_party/pdfium/samples:pdfium_test",
kjellanderb1ab7b82016-11-01 08:34:21144 "//third_party/webrtc/tools:frame_analyzer",
charliea00055282016-01-26 00:15:15145 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25146 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55147 "//tools/gn",
dpranke244f973d62015-11-20 05:38:10148 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55149 "//tools/perf/clear_system_cache",
150 "//ui/accessibility:accessibility_unittests",
wnwen2c84eb652017-03-20 23:21:27151 "//ui/accessibility/extensions",
pkotwicz558d5252015-10-19 21:09:55152 ]
153 }
154
155 if (!is_ios) {
156 # TODO(GYP): Figure out which of these should actually build on iOS,
157 # and whether there should be other targets that are iOS-only and missing.
158 deps += [
159 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03160 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55161 "//chrome/test:unit_tests",
162 "//components:components_browsertests",
brettw3865a712016-12-10 05:59:08163 "//components/policy:policy_templates",
pkotwicz558d5252015-10-19 21:09:55164 "//content/shell:content_shell",
165 "//content/test:content_browsertests",
166 "//content/test:content_perftests",
167 "//content/test:content_unittests",
168 "//device:device_unittests",
169 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45170 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55171 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55172 "//media:media_unittests",
mcasasd2f53ea2016-06-24 19:24:27173 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29174 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55175 "//media/midi:midi_unittests",
176 "//mojo",
pkotwicz558d5252015-10-19 21:09:55177 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08178 "//mojo/edk/system:mojo_system_unittests",
179 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08180 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55181 "//net:net_perftests",
rockot734fb662016-10-15 16:41:30182 "//services/service_manager/public/cpp",
pwnall008c0272016-10-14 16:54:04183 "//storage//browser:storage_unittests",
Dirk Pranke49802732015-12-10 01:36:41184 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:01185 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
yutak6fbccaf2017-03-31 07:55:13186 "//third_party/WebKit/Source/platform/wtf:wtf_unittests",
dpranke244f973d62015-11-20 05:38:10187 "//third_party/WebKit/Source/web:webkit_unit_tests",
brettwc5fcdd02016-10-12 07:25:12188 "//third_party/angle/src/tests:angle_end2end_tests",
189 "//third_party/angle/src/tests:angle_unittests",
ynovikov55e66c22017-02-16 15:45:37190 "//third_party/angle/src/tests:angle_white_box_tests",
nednguyenc42bf912016-01-27 01:39:28191 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35192 "//third_party/smhasher:pmurhash",
193 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35194 "//ui/display:display_unittests",
195 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35196 "//ui/gl:gl_unittests",
mfomitchev3ba450ad2017-04-03 18:20:40197 "//ui/latency:latency_unittests",
sherouk53f0f1a2015-08-03 15:59:35198 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03199 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35200 ]
sdefresne998e8582015-10-07 13:36:45201 } else {
sdefresne88abe362016-06-01 10:40:11202 deps += [ "//ios:all" ]
sherouk53f0f1a2015-08-03 15:59:35203 }
dprankee2ef3822015-02-24 21:42:18204
scottmg34fb7e52014-12-03 23:27:24205 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05206
tfarina4aa9edc2015-10-26 22:14:02207 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49208 deps += [ "//extensions/shell:app_shell_unittests" ]
rockot2f1326e2015-02-23 23:53:51209 }
210
dprankefd1813272015-04-13 23:56:00211 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55212 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00213 }
214
garykac3eddb5b2015-04-17 23:16:38215 if (enable_remoting) {
216 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05217 }
218
dprankee2ef3822015-02-24 21:42:18219 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19220 deps += [
221 "//ui/views:views_unittests",
222 "//ui/views/examples:views_examples_exe",
223 "//ui/views/examples:views_examples_with_content_exe",
224 ]
James Robinson060f2e32014-09-10 22:31:37225 }
226
jamescook4c02a0b2016-12-02 23:14:42227 if (use_ash) {
mswda0133e62016-02-16 20:50:02228 deps += [
skycf094f672016-09-01 19:40:12229 "//ash:ash_content_unittests",
jamescookfbbf9112016-06-14 16:24:49230 "//ash:ash_shell_with_content",
231 "//ash:ash_unittests",
jamescook4c02a0b2016-12-02 23:14:42232 ]
233 }
234
235 if (use_aura) {
236 deps += [
mswda0133e62016-02-16 20:50:02237 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02238 "//ui/aura:demo",
239 "//ui/wm:wm_unittests",
240 ]
dprankee2ef3822015-02-24 21:42:18241 }
242
243 if (use_ozone) {
kylechar5c9a1fb62016-10-21 13:17:25244 deps += [
245 "//ui/ozone",
246 "//ui/ozone:ozone_unittests",
247 "//ui/ozone/gl:ozone_gl_unittests",
248 ]
[email protected]a306aaa2014-05-24 13:21:50249 }
250
thomasandersonaf830f3a2016-12-07 04:52:02251 if (use_x11 || ozone_platform_x11) {
252 deps += [ "//tools/xdisplaycheck" ]
253 }
254
brettw66e3feab2015-07-20 23:52:22255 if (is_win) {
brettwf986f9572015-10-07 17:18:15256 deps += [
257 "//chrome/installer/gcapi",
258 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
259 ]
brettw66e3feab2015-07-20 23:52:22260 }
261
[email protected]5a8d5162014-04-12 01:19:16262 if (is_android) {
[email protected]26046b52014-07-16 00:11:03263 deps += [
pkotwicze2dae8b2015-11-03 20:12:55264 "//base:base_junit_tests",
dpranke244f973d62015-11-20 05:38:10265 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38266 "//build/android/gyp/test:hello_world",
pkotwicz2dd67962016-05-10 00:21:08267 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55268 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
269 "//components/policy/android:components_policy_junit_tests",
270 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45271 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47272 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55273 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11274 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56275 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05276 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45277 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10278 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49279 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34280 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12281 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
282 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43283 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15284 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15285 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18286 ]
287 deps -= [
rockot9c67e5f2015-03-12 20:01:21288 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18289 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03290 ]
291
pkotwicz92e2e2312015-12-15 22:29:46292 if (!is_component_build) {
293 deps += [
agrievee23386b2016-01-05 04:47:58294 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12295 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46296 "//components/cronet/android:cronet_sample_apk",
297 "//components/cronet/android:cronet_sample_test_apk",
298 "//components/cronet/android:cronet_test_apk",
299 "//components/cronet/android:cronet_test_instrumentation_apk",
300 "//components/cronet/android:cronet_unittests",
301 ]
302 }
303
pkotwicz061c5a42015-09-30 02:16:54304 if (!is_chromecast) {
305 deps += [
michaelbaicbcc7e62015-11-12 04:29:53306 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30307 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44308 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05309 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55310 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54311 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10312 "//chrome/android:chrome_public_test_apk",
313 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54314 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-12-28 20:23:11315 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05316 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54317 ]
318 }
319
pkotwicz06a4b4b42015-10-29 23:11:11320 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12321 deps += [
322 "//content/shell/android:chromium_linker_test_apk",
323 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
324 ]
pkotwicz06a4b4b42015-10-29 23:11:11325 }
326
dgnd1e190d2017-03-17 13:34:49327 if (enable_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55328 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45329 }
dprankedb5527d72015-03-08 04:22:47330 }
331
brettwf9427f92016-05-05 23:18:55332 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00333 deps += [
pkotwicza4d233b22015-11-02 18:20:38334 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00335 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38336 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00337 "//breakpad:minidump-2-core",
338 ]
339 }
340
dpranke6293d252015-04-14 19:12:00341 if (is_chromeos) {
342 deps += [
343 "//chromeos:chromeos_unittests",
khorimoto4c539952016-12-04 02:37:11344 "//chromeos/components:chromeos_components_unittests",
jamescook4c02a0b2016-12-02 23:14:42345 "//components/session_manager/core",
estade835d5502017-01-04 16:44:06346 "//ui/app_list:app_list_unittests",
347 "//ui/app_list/presenter:app_list_presenter_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22348 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00349 "//ui/chromeos:ui_chromeos_unittests",
350 ]
351 }
352
dprankefd1813272015-04-13 23:56:00353 if (is_chromeos || is_mac || is_win) {
354 deps += [
355 "//rlz:rlz_id",
356 "//rlz:rlz_lib",
357 "//rlz:rlz_unittests",
358 ]
359 }
360
dprankedb5527d72015-03-08 04:22:47361 if (is_linux) {
362 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06363 deps += [
dpranke2bc89212015-11-18 00:24:43364 "//chrome:manpage",
365 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47366 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47367 "//net:quic_client",
368 "//net:quic_server",
369 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18370 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06371 ]
dnicoara8c6aa8e2015-03-11 23:20:32372
mbjorgea12e5a52016-05-31 22:15:17373 if (use_dbus) {
374 deps += [
375 "//dbus:dbus_test_server",
376 "//dbus:dbus_unittests",
377 ]
378 }
379
dpranke2bc89212015-11-18 00:24:43380 if (is_chrome_branded && is_official_build) {
381 # TODO(dpranke): add the linux_dump_symbols flag?
382 deps += [ "//chrome:linux_symbols" ]
383 }
dprankedb5527d72015-03-08 04:22:47384 }
385
sherouke1859f92015-08-05 10:19:10386 if (is_ios || is_win || (is_linux && !is_chromeos)) {
387 deps += [
388 "//base:base_i18n_perftests",
389 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58390 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10391 ]
392 }
393
sugoia1b7b922016-12-13 12:52:49394 if ((is_win || is_mac || is_linux) &&
395 (target_cpu == "x86" || target_cpu == "x64")) {
sugoiabe91892016-09-20 12:53:51396 deps += [ "//third_party/swiftshader" ]
397 }
398
thakis507c15c2016-06-01 00:26:01399 # TODO(GYP): Figure out which of these should (and can) build
400 # for chromeos/ios.
401 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44402 deps += [
dprankedb5527d72015-03-08 04:22:47403 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10404 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47405 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00406 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47407 "//components:components_perftests",
Max Boguefef332d2016-07-28 22:09:09408 "//components/sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47409 "//device:device_unittests",
410 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47411 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47412 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00413 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10414 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47415 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47416 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00417 "//net:dump_cache",
dprankefd1813272015-04-13 23:56:00418 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47419 "//ui/compositor:compositor_unittests",
420 ]
421
agrieve473155b42015-12-28 20:23:11422 if (!is_android) {
423 deps += [
424 "//chrome/test:load_library_perf_tests",
425 "//chrome/test:sync_performance_tests",
426 "//chrome/test/chromedriver:chromedriver",
427 "//chrome/test/chromedriver:chromedriver_tests",
428 "//courgette:courgette",
429 "//courgette:courgette_fuzz",
430 "//courgette:courgette_minimal_tool",
431 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30432 "//media/cast:generate_barcode_video",
433 "//media/cast:generate_timecode_audio",
agrieve473155b42015-12-28 20:23:11434 "//net:crash_cache",
435 "//net:crl_set_dump",
436 "//net:dns_fuzz_stub",
437 "//net:gdig",
438 "//net:get_server_time",
439 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
440 "//net:run_testserver",
441 "//net:stress_cache",
442 "//net:tld_cleanup",
443 "//ppapi:pepper_hash_for_uma",
444 "//ppapi:ppapi_perftests",
agrieve473155b42015-12-28 20:23:11445 "//third_party/leveldatabase:env_chromium_unittests",
446 "//third_party/libaddressinput:libaddressinput_unittests",
447 ]
448 }
dpranke7e19b472015-11-13 00:49:33449
jamescookfbbf9112016-06-14 16:24:49450 if (enable_extensions) {
451 deps += [ "//extensions/shell:app_shell" ]
452 }
453
dprankedb5527d72015-03-08 04:22:47454 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13455 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43456
457 if (is_linux) {
458 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37459 deps += [ "//components/nacl/loader:nacl_helper" ]
460
461 if (enable_nacl_nonsfi) {
462 deps += [
463 "//components/nacl/loader:helper_nonsfi",
464 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
465 ]
466 }
dpranke2bc89212015-11-18 00:24:43467 }
dprankedb5527d72015-03-08 04:22:47468 }
469
xhwangfa2d9d472015-12-18 23:31:18470 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10471 deps += [ "//media:ffmpeg_regression_tests" ]
472 }
dprankefd1813272015-04-13 23:56:00473 }
474
agrieve473155b42015-12-28 20:23:11475 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00476 deps += [
agrieve473155b42015-12-28 20:23:11477 "//breakpad:dump_syms($host_toolchain)",
478 "//breakpad:microdump_stackwalk($host_toolchain)",
479 "//breakpad:minidump_dump($host_toolchain)",
480 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00481 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00482 "//content/public/app:browser",
483 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08484 "//mojo/edk/test:mojo_public_system_perftests",
rockot734fb662016-10-15 16:41:30485 "//services/service_manager/public/cpp",
dprankefd1813272015-04-13 23:56:00486 "//testing/gmock:gmock_main",
dprankefd1813272015-04-13 23:56:00487 ]
488
agrieve473155b42015-12-28 20:23:11489 if (!is_android) {
490 deps += [
agrieve473155b42015-12-28 20:23:11491 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55492 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b42015-12-28 20:23:11493 "//media/cast:cast_benchmarks",
494 "//media/cast:tap_proxy",
495 "//skia:filter_fuzz_stub",
496 "//skia:image_operations_bench",
agrieve473155b42015-12-28 20:23:11497 "//third_party/sqlite:sqlite_shell",
498 "//ui/keyboard:keyboard_unittests",
499 "//ui/message_center:message_center_unittests",
500 "//ui/snapshot:snapshot_unittests",
agrieve473155b42015-12-28 20:23:11501 ]
dprankefd1813272015-04-13 23:56:00502
agrieve473155b42015-12-28 20:23:11503 if (!is_debug && !is_component_build) {
504 deps += [ "//chrome/tools/service_discovery_sniffer" ]
505 }
dprankefd1813272015-04-13 23:56:00506 }
507
dprankedb5527d72015-03-08 04:22:47508 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44509 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59510 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44511 }
dprankedb5527d72015-03-08 04:22:47512 }
513 }
514
515 if (is_mac) {
516 deps += [
517 "//breakpad:crash_inspector",
518 "//breakpad:dump_syms",
miguelg765f2212016-10-06 09:02:26519
520 # XPC service is in developement and guarded against the
521 # enable_xpc_notifications, in the meantime however we still
522 # need compile coverage in the bots.
523 "//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service",
tfarina9e7cf702015-02-23 21:13:44524 "//third_party/apple_sample_code",
525 "//third_party/molokocacao",
526 ]
dpranke43760592014-11-08 02:59:57527 deps -= [
brettw011138d2015-10-21 03:05:38528 # Mojo in GN contains some things which are never compiled in GYP on Mac,
529 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10530 "//mojo",
dprankecf8465db72014-11-10 23:51:22531 ]
dprankefd1813272015-04-13 23:56:00532 }
533
534 if (is_win) {
535 deps += [
536 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16537 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43538 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00539 "//chrome_elf:chrome_elf_unittests",
540 "//chrome_elf:dll_hash_main",
pastarmovj02d5cc992016-12-05 17:55:24541 "//cloud_print:cloud_print_unittests",
dprankefd1813272015-04-13 23:56:00542 "//components/wifi:wifi_test",
543 "//net:quic_client",
544 "//net:quic_server",
545 "//sandbox/win:pocdll",
546 "//sandbox/win:sandbox_poc",
547 "//sandbox/win:sbox_integration_tests",
548 "//sandbox/win:sbox_unittests",
549 "//sandbox/win:sbox_validation_tests",
550 "//testing/gtest:gtest_main",
dprankefd1813272015-04-13 23:56:00551 "//third_party/pdfium/samples:pdfium_diff",
ajwongbf193272017-03-16 00:00:44552 "//third_party/tcmalloc:addr2line-pdb",
robliaofd54b5c2017-01-13 00:41:30553 "//tools/win/chromeexts:chromeexts",
dprankefd1813272015-04-13 23:56:00554 ]
dprankee2ef3822015-02-24 21:42:18555 deps -= [
556 "//crypto:crypto_unittests", # TODO(GYP)
557 "//net:net_unittests", # TODO(GYP)
558 ]
fdorayfb048bff2016-04-28 22:07:36559
560 if (!(is_component_build && is_debug && target_cpu == "x86")) {
561 deps +=
562 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
563 }
sherouk53f0f1a2015-08-03 15:59:35564 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29565 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34566 }
rsesek985bd812016-04-26 21:06:15567
slance9d62f2015-11-04 01:15:01568 if (is_chromecast) {
569 deps += [ "//chromecast:cast_shell" ]
570 }
miu45b848fe2015-11-26 01:23:29571
rsesek985bd812016-04-26 21:06:15572 if (is_mac || is_win) {
573 deps += [
574 "//third_party/crashpad/crashpad/handler:crashpad_handler",
575 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
576 ]
577 }
578
hbos17a7b4a22015-12-07 10:49:45579 if (use_openh264) {
580 deps += [
581 "//third_party/openh264:common",
582 "//third_party/openh264:encoder",
583 "//third_party/openh264:processing",
584 ]
585 }
dpranke2a294622015-08-07 05:23:01586
amistry4dcd7c42015-12-16 04:53:10587 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29588 deps += [
589 "//media/mojo:media_mojo_unittests",
rockot8cdd37a2017-01-28 02:53:31590 "//services:service_unittests",
xhwangf69024d12016-06-16 17:52:29591 ]
amistry4dcd7c42015-12-16 04:53:10592 }
593
scheib35dc9202016-04-26 22:35:43594 if (!is_android && !is_ios) {
595 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
596 }
597
dpranke244f973d62015-11-20 05:38:10598 if (!is_android && !is_ios && !is_chromeos) {
xjz9da998022016-10-26 01:22:11599 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
isherman0f89b43eb2015-04-11 00:02:45600 }
601
ben8f4e95ad2015-12-01 18:35:58602 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54603 deps += [
604 "//mash:all",
xhwang9c958fd2016-12-05 23:17:16605 "//media/mojo/services:media_service_unittests",
skyfcde3a42016-02-09 20:27:44606 "//mojo",
benee648f62016-05-12 23:04:50607 "//services/navigation",
ben6b0453d12016-07-02 04:27:19608 "//services/ui/demo",
kylechar5c9a1fb62016-10-21 13:17:25609 "//services/ui/demo:mus_demo_unittests",
610 "//services/ui/public/interfaces:ui_struct_traits_unittests",
ben6b0453d12016-07-02 04:27:19611 "//services/ui/ws:tests",
qyearsley88bc4802016-05-17 18:02:34612 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53613 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54614 ]
kylechar5c9a1fb62016-10-21 13:17:25615
wez0ee841c2016-12-21 20:36:20616 # crbug.com/676055: media_service_unittests fails to link under Windows
617 # component builds, due to duplicate symbol definitions.
618 if (is_win && is_component_build) {
619 deps -= [ "//media/mojo/services:media_service_unittests" ]
620 }
621
kylechar9ee25182016-11-06 03:50:30622 if (use_ozone && is_chromeos) {
kylechar5c9a1fb62016-10-21 13:17:25623 deps += [ "//services/ui/display:display_service_unittests" ]
624 }
sky97b65592015-11-02 20:08:25625 }
626
stevenjb7b6fd642016-05-18 18:15:30627 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47628 # TODO(GYP): Figure out if any of these should be in gn_all
629 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45630 deps += [
dprankedb5527d72015-03-08 04:22:47631 ":gn_mojo_targets",
dprankedb5527d72015-03-08 04:22:47632 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47633 "//chrome/tools/convert_dict",
634 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40635 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20636 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47637 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45638 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47639 "//components/rappor:unit_tests",
640 "//components/sessions:unit_tests",
641 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30642 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47643 "//storage/browser:dump_file_system",
644 "//third_party/angle:libANGLE",
645 "//third_party/angle:libEGL",
646 "//third_party/angle:libGLESv2",
pwnallcfb346f12017-03-02 22:01:37647 "//third_party/leveldatabase:leveldb_test_targets",
dprankedb5527d72015-03-08 04:22:47648 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47649 "//third_party/opus:opus_compare",
650 "//third_party/opus:opus_demo",
dpranke244f973d62015-11-20 05:38:10651 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47652 "//third_party/opus:test_opus_decode",
653 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47654 "//third_party/opus:test_opus_padding",
655 "//third_party/webrtc/system_wrappers:field_trial_default",
656 "//third_party/webrtc/system_wrappers:metrics_default",
657 "//ui/display/types",
658 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47659 ]
dprankeb0713542015-07-31 21:07:21660
ossy.szegedd584dd72016-11-21 11:36:18661 if (enable_nacl) {
662 deps += [ "//native_client/src/trusted/debug_stub:gdb_rsp_unittest" ]
663 }
664
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16665 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b42015-12-28 20:23:11666 if (!is_android) {
667 deps += [ "//chrome/test:load_library_perf_tests" ]
668 }
mcgrathr916aafa2015-09-15 00:06:53669 deps += [
mcgrathr916aafa2015-09-15 00:06:53670 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f973d62015-11-20 05:38:10671 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53672 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16673 }
dpranke807f602b2015-03-17 23:20:56674 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51675 deps += [ "//v8:v8_shell" ]
dpranke807f602b2015-03-17 23:20:56676 }
dprankedb5527d72015-03-08 04:22:47677 }
dprankeb0713542015-07-31 21:07:21678
spang324dc57a2016-04-06 14:54:08679 if (use_ozone) {
680 deps += [ "//ui/ozone/demo" ]
681 }
682
aizatskyaf496112016-04-15 19:26:32683 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
684 (use_libfuzzer && is_mac)) {
685 deps += [
686 "//testing/libfuzzer/fuzzers",
687 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06688 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32689 ]
miu16396172016-09-28 00:05:56690
691 # TODO(miu): Remove this dependency once the build configuration in
692 # chrome/browser/BUILD.gn is migrated to chrome/browser/media/BUILD.gn.
693 # This dependency here only exists to allow GN to discover the
694 # fuzzer_test target there.
695 deps += [ "//chrome/browser/media:cast_remoting_connector_fuzzer" ]
aizatskyaf496112016-04-15 19:26:32696 }
697
sbc92b4d572016-02-18 03:28:23698 if (enable_nacl) {
699 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
700 }
701
agrieve473155b42015-12-28 20:23:11702 if (is_android) {
zpeng00a360e2016-11-21 23:05:02703 deps += [ "//build/android/gyp/test:hello_world" ]
nyquistb5f050b2015-09-10 05:10:35704 }
705
skyostilfe116162016-02-26 20:53:33706 if (is_linux && use_ozone) {
707 deps += [
708 "//headless",
709 "//headless:headless_tests",
710 ]
711 }
tfarinafbc992492017-03-08 22:44:04712
713 if (!is_ios) {
714 deps += [ "//v8:gn_all" ]
715 }
716}
717
718# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
719# for the iOS bots and the official builders.
720group("All") {
721 testonly = true
722
723 deps = [
724 ":gn_all",
725 ]
726}
727
728# TODO(GYP_GONE): This target exists for compatibility with GYP for the
729# builders that specify targets in the recipes directly.
730# Ideally it should not exist, and the builders should be specifying
731# more specific targets (or 'All') via the source-side
732# //testing/buildbot/*.json files. We should simply delete this target
733# and update any recipes that are using it.
734group("chromium_builder_tests") {
735 testonly = true
736 deps = []
737}
738
739# TODO(GYP_GONE): Figure out if we really need this target or if there's
740# some better way to specify things.
741if (is_win) {
742 group("chrome_official_builder_no_unittests") {
743 deps = [
744 "//base/win:eventlog_provider",
745 "//chrome/installer/gcapi",
746 "//chrome/installer/mini_installer",
747 "//cloud_print",
748 "//cloud_print/virtual_driver/win/port_monitor:copy_gcp_portmon_binaries",
749 "//components/policy:pack_policy_templates",
750 "//courgette",
751 "//courgette:copy_courgette_binaries",
752 "//remoting/webapp",
753 ]
754
755 if (target_cpu == "x86") {
756 if (is_clang) {
757 deps += [ "//courgette(//build/toolchain/win:clang_x64)" ]
758 } else {
759 deps += [ "//courgette(//build/toolchain/win:x64)" ]
760 }
761 }
762 if (is_chrome_branded) {
763 deps += [ "//remoting/host:remoting_host_installation" ]
764 }
765 }
766
767 group("chrome_official_builder") {
768 testonly = true
769
770 deps = [
771 ":chrome_official_builder_no_unittests",
772 "//base:base_unittests",
773 "//chrome/test:browser_tests",
774 "//chrome/test:sync_integration_tests",
775 "//ipc:ipc_tests",
776 "//media:media_unittests",
777 "//media/midi:midi_unittests",
778 "//net:net_unittests",
779 "//printing:printing_unittests",
780 "//sql:sql_unittests",
781 "//ui/base:ui_base_unittests",
782 "//ui/gfx:gfx_unittests",
783 "//ui/touch_selection:ui_touch_selection_unittests",
784 "//ui/views:views_unittests",
785 "//url:url_unittests",
786 ]
787 }
788
789 group("All_syzygy") {
790 if (is_syzyasan) {
791 deps = [
792 "//chrome/installer/mini_installer:mini_installer",
793 "//chrome/installer/mini_installer:mini_installer_syzygy",
794 ]
795 }
796 }
797
798 if (is_syzyasan) {
799 group("chrome_official_syzyasan_builder") {
800 deps = [
801 ":All_syzygy",
802 ":chrome_official_builder_no_unittests",
803 ]
804 }
805 }
806}
807
808if (is_chromeos) {
809 group("chromiumos_preflight") {
810 testonly = true
811 deps = [
812 "//breakpad:minidump_stackwalk($host_toolchain)",
813 "//chrome",
814 "//chrome/test/chromedriver",
815 "//media:media_unittests",
816 "//media/gpu:video_decode_accelerator_unittest",
817 "//media/gpu:video_encode_accelerator_unittest",
818 "//ppapi/examples/video_decode",
819 "//sandbox/linux:chrome_sandbox",
820 "//sandbox/linux:sandbox_linux_unittests",
821
822 # Blocked on https://github.com/catapult-project/catapult/issues/2297
823 #"//third_party/catapult/telemetry:bitmaptools",
824 "//tools/perf/clear_system_cache",
825 ]
826 }
dprankedb5527d72015-03-08 04:22:47827}
828
829group("gn_mojo_targets") {
830 testonly = true
831 if (is_linux && !is_chromeos) {
832 # TODO(GYP): Figure out if any of these should be in gn_all
833 # and figure out how cross-platform they are
834 deps = [
amistryd4aa70d2016-06-23 07:52:37835 "//ipc:ipc_tests",
msw1bb9c6c2015-05-06 21:35:44836 "//mojo:tests",
rockot2a0f4fb32016-11-11 18:44:19837 "//services:service_unittests",
dprankedb5527d72015-03-08 04:22:47838 ]
dprankedb5527d72015-03-08 04:22:47839 }
840}
841
842group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03843 deps = [
dprankeb6128d02015-05-01 16:40:30844 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47845 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
846 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03847 ]
dpranked2fb5222015-09-10 22:39:05848
849 if (!is_ios) {
850 deps += [
dpranked2fb5222015-09-10 22:39:05851 "//v8:postmortem-metadata",
dpranke244f973d62015-11-20 05:38:10852 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05853 ]
854 }
dpranked62d8512015-03-02 03:06:03855}
856
tfarinacb2638b2015-05-12 03:24:15857if (!is_ios) {
858 # This group includes all of the targets needed to build and test Blink,
859 # including running the layout tests (see below).
860 group("blink_tests") {
861 testonly = true
862
863 deps = [
tansell88df42592016-11-15 07:22:59864 ":webkit_layout_tests",
tfarinacb2638b2015-05-12 03:24:15865 "//third_party/WebKit/public:all_blink",
tansell88df42592016-11-15 07:22:59866 ]
867 }
868
869 # Layout tests runner
870 # third_party/WebKit/Tools/Scripts/run-webkit-tests
871 group("run_webkit_tests") {
872 testonly = true
873 deps = [
874 ":webkit_layout_tests",
875 ]
876 }
877
878 # https://www.chromium.org/developers/testing/webkit-layout-tests
tansell0e6baaf22017-02-16 09:14:53879
880 # The _exparchive at the end of the name indicates to the isolate recipe
881 # that the isolate should be archived separately using the `exparchive`
882 # command, rather than as part of the normal `batcharchive` command.
883 group("webkit_layout_tests_exparchive") {
884 testonly = true
885 deps = [
886 ":webkit_layout_tests",
887 ]
888 data_deps = [
889 ":webkit_layout_tests",
890 ]
891 }
892
893 # This target contains only a small subset of the layout tests,
894 # and is useful for testing with the regular isolate mechanism.
895 # To run the full layout test suite you need to use
896 # :webkit_layout_tests_exparchive, above, instead.
tansell88df42592016-11-15 07:22:59897 group("webkit_layout_tests") {
898 testonly = true
tansell88df42592016-11-15 07:22:59899 data_deps = [
yzshena0646992017-04-02 22:01:27900 ":layout_test_data_mojo_bindings",
tansell88df42592016-11-15 07:22:59901 "//content/shell:content_shell",
alokp51b900d2017-03-10 18:55:39902 "//mojo/public/interfaces/bindings/tests:test_interfaces",
tansell2bf83ac2017-02-18 04:01:14903 "//third_party/WebKit/public:blink_devtools_frontend_resources_files",
tansellaac85d72017-02-17 05:13:04904 "//third_party/mesa:osmesa",
agrieve993374cf2016-04-13 00:05:39905 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15906 ]
907
tfarinacb2638b2015-05-12 03:24:15908 if (is_android) {
tansell88df42592016-11-15 07:22:59909 data_deps += [
agrieve62ab00282016-04-05 02:03:45910 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39911 "//breakpad:dump_syms",
912 "//breakpad:microdump_stackwalk",
913 "//breakpad:minidump_dump",
914 "//breakpad:minidump_stackwalk",
915 "//breakpad:symupload",
jbudoricke7bcf092016-09-28 18:24:14916 "//tools/android/forwarder2",
ojan94989c72015-07-17 21:56:42917 ]
tfarinacb2638b2015-05-12 03:24:15918 }
919
920 if (is_win) {
tansell88df42592016-11-15 07:22:59921 data_deps += [ "//content/shell:content_shell_crash_service" ]
tfarinacb2638b2015-05-12 03:24:15922 }
923
924 if (!is_win && !is_android) {
tansell88df42592016-11-15 07:22:59925 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15926 }
927
928 if (is_mac) {
tansell88df42592016-11-15 07:22:59929 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15930 }
931
932 if (is_linux) {
tansell88df42592016-11-15 07:22:59933 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15934 }
qyearsley165a17a82016-08-01 17:58:50935
936 data = [
tansell55090912017-02-20 12:54:31937 "$root_build_dir/resources/inspector/",
tansell88df42592016-11-15 07:22:59938 "//testing/scripts/common.py",
tansell0e6baaf22017-02-16 09:14:53939 "//testing/scripts/run_isolated_script_test.py",
tansell55090912017-02-20 12:54:31940 "//testing/xvfb.py",
qyearsley165a17a82016-08-01 17:58:50941 "//third_party/WebKit/LayoutTests/",
tansell2bf83ac2017-02-18 04:01:14942 "//third_party/WebKit/PerformanceTests/",
qyearsley165a17a82016-08-01 17:58:50943 "//third_party/WebKit/Tools/Scripts/",
944 ]
tansell0e6baaf22017-02-16 09:14:53945
tansell820f7df2017-02-16 13:59:15946 if (is_win) {
947 data += [ "//third_party/apache-win32/" ]
948 }
949
tansell0e6baaf22017-02-16 09:14:53950 if (is_android) {
951 data += [
952 "//third_party/catapult/",
953 "//build/android/",
954 ]
955 }
tfarinacb2638b2015-05-12 03:24:15956 }
yzshena0646992017-04-02 22:01:27957
958 copy("layout_test_data_mojo_bindings") {
959 testonly = true
960
961 sources = [
962 "$root_gen_dir/mojo/public/js/mojo_bindings.js",
963 ]
964
965 outputs = [
966 "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings.js",
967 ]
968
969 deps = [
970 "//mojo/public/js:new_bindings",
971 ]
972 }
tfarinacb2638b2015-05-12 03:24:15973}
974
dpranke6abd8652015-08-28 03:21:11975# Add a dummy target for compatibility w/ GYP
976group("chromium_swarm_tests") {
977}
978
dpranke2302dfa2015-09-29 02:21:52979group("chromium_builder_perf") {
980 testonly = true
981
thakisca8a42882016-06-10 17:59:30982 if (!is_ios && !is_android && !is_chromecast) {
malets6b7062402016-09-15 08:14:26983 data_deps = [
dpranke2302dfa2015-09-29 02:21:52984 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52985 "//chrome/test:load_library_perf_tests",
eyaiche1605ca2016-09-14 14:34:05986 "//chrome/test:telemetry_perf_tests",
kraynovc0797582016-10-25 16:45:06987 "//components/tracing:tracing_perftests",
dpranke2302dfa2015-09-29 02:21:52988 "//gpu:gpu_perftests",
989 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19990 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52991 ]
992
993 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:26994 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:52995 }
996 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04997 if (is_official_build) {
998 # In GN builds, this is controlled by the 'linux_dump_symbols'
999 # flag, which defaults to 1 for official builds. For now,
1000 # we skip the separate flag and just key off of is_official_build.
malets6b7062402016-09-15 08:14:261001 data_deps += [ "//chrome:linux_symbols" ]
dpranke9aed5d582015-11-22 23:22:041002 }
dpranke2302dfa2015-09-29 02:21:521003
kraynovc0797582016-10-25 16:45:061004 data_deps += [ "//tools/perf/clear_system_cache" ]
dpranke2302dfa2015-09-29 02:21:521005 }
1006
1007 if (is_win) {
malets6b7062402016-09-15 08:14:261008 data_deps += [
hansa3d3aa4d2016-05-04 22:12:521009 "//chrome/installer/mini_installer:mini_installer",
eyaichd3e023c12016-11-14 22:41:011010 "//chrome/test:angle_perftests",
dpranke2302dfa2015-09-29 02:21:521011 ]
dpranke2302dfa2015-09-29 02:21:521012 } else {
malets6b7062402016-09-15 08:14:261013 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:521014 }
1015 }
1016}
agrieve017b91f2016-02-29 20:15:061017
thakis3f7d4fc2016-06-10 18:47:501018if (!is_ios && !is_android && !is_chromecast) {
1019 group("chromium_builder_asan") {
1020 testonly = true
1021
1022 deps = [
1023 "//chrome:chrome",
1024 "//content/shell:content_shell",
1025 "//v8:d8",
1026 ]
1027 if (!is_win) {
1028 deps += [
1029 "//net:dns_fuzz_stub",
thakis3f7d4fc2016-06-10 18:47:501030 "//skia:filter_fuzz_stub",
1031 ]
1032 }
1033 if (enable_ipc_fuzzer && !is_component_build) {
1034 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
1035 }
1036 if (!is_chromeos) {
1037 deps += [
1038 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371039 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501040 ]
1041 }
thakis3f7d4fc2016-06-10 18:47:501042 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
1043 deps += [
1044 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
sebmarchanda2df3392016-07-13 15:34:591045 "//content/shell:content_shell_syzyasan",
thakis3f7d4fc2016-06-10 18:47:501046 ]
thakis3f7d4fc2016-06-10 18:47:501047 }
1048 }
1049}
1050
brettw6df3e8c42016-04-14 21:07:131051# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
1052# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1053# something to build, but all targets for those bots to compile are set
1054# up differently.
1055# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1056# this group.
1057group("aura_builder") {
1058}
1059
agrieve95ba4442016-04-25 15:47:131060if (is_android) {
1061 group("optimize_gn_gen") {
1062 deps = [
1063 # These run expensive scripts in non-default toolchains. Generally, host
1064 # toolchain targets are loaded in the later part of the run, and the
1065 # result is they push out the end of generation. By preloading these, the
1066 # scripts can be parallelized with the rest of the load.
1067 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1068 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1069
1070 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1071 # generation.
1072 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1073 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1074 ]
1075 }
1076}
1077
agrieve017b91f2016-02-29 20:15:061078# Because of the source assignment filter, many targets end up over-filtering
1079# their sources if the output directory contains a platform name. Assert that
1080# this doesn't happen. http://crbug.com/548283
1081template("assert_valid_out_dir") {
1082 # List copied from //build/config/BUILDCONFIG.gn.
1083 set_sources_assignment_filter([
1084 "*\bandroid/*",
1085 "*\bchromeos/*",
1086 "*\bcocoa/*",
1087 "*\bios/*",
1088 "*\blinux/*",
1089 "*\bmac/*",
1090 "*\bposix/*",
1091 "*\bwin/*",
1092 ])
1093 assert(target_name != "") # Mark as used.
1094 sources = invoker.actual_sources
1095 assert(
1096 sources == invoker.actual_sources,
1097 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1098}
1099
1100assert_valid_out_dir("_unused") {
1101 actual_sources = [ "$root_build_dir/foo" ]
1102}