[go: nahoru, domu]

blob: ea78b36e8bde22da253599eabe17646789f10c7c [file] [log] [blame]
brettw@chromium.orgf0e7ff882013-12-26 21:23:091# Copyright (c) 2013 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# This is the root build file for GN. GN will start processing by loading this
6# file, and recursively load all dependencies until all dependencies are either
7# resolved or known not to exist (which will cause the build to fail). So if
8# you add a new build file, there must be some path of dependencies from this
9# file to your new one or GN won't know about it.
10
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")
tfarina@chromium.org378b4f02014-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}
tfarina@chromium.org378b4f02014-06-10 15:58:4527
brettwb84b2942014-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",
holtebef6eb322017-04-04 20:41:2585 "//tools/metrics:metrics_metadata",
sherouk4fb74d42015-08-24 15:58:4186 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:3987 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:4188 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1889 ]
dpranke2a294622015-08-07 05:23:0190
sdefresne21832bf92016-03-30 22:01:0291 if (!is_android && !is_chromecast) {
92 deps += [
93 "//crypto:crypto_unittests",
94 "//google_apis/gcm:gcm_unit_tests",
95 ]
96 }
97
slance9d62f2015-11-04 01:15:0198 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:3599 deps += [
sherouk53f0f1a2015-08-03 15:59:35100 "//chrome",
101 "//chrome/test:browser_tests",
102 "//chrome/test:interactive_ui_tests",
103 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35104 "//chrome/test/chromedriver:chromedriver_unittests",
Max Boguefef332d2016-07-28 22:09:09105 "//components/sync/tools:sync_client",
106 "//components/sync/tools:sync_listen_notifications",
jamescookfbbf9112016-06-14 16:24:49107 "//extensions:extensions_browsertests",
108 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18109 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26110 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35111 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35112 "//net:hpack_example_generator",
sherouk53f0f1a2015-08-03 15:59:35113 "//ppapi:ppapi_unittests",
114 "//ppapi/examples/2d",
115 "//ppapi/examples/audio",
116 "//ppapi/examples/audio_input",
117 "//ppapi/examples/compositor",
118 "//ppapi/examples/crxfs",
119 "//ppapi/examples/enumerate_devices",
120 "//ppapi/examples/file_chooser",
121 "//ppapi/examples/flash_topmost",
122 "//ppapi/examples/font",
123 "//ppapi/examples/gamepad",
124 "//ppapi/examples/gles2",
125 "//ppapi/examples/gles2_spinning_cube",
126 "//ppapi/examples/ime",
127 "//ppapi/examples/input",
128 "//ppapi/examples/media_stream_audio",
129 "//ppapi/examples/media_stream_video",
130 "//ppapi/examples/mouse_cursor",
131 "//ppapi/examples/mouse_lock",
132 "//ppapi/examples/printing",
133 "//ppapi/examples/scaling",
134 "//ppapi/examples/scripting",
135 "//ppapi/examples/stub",
136 "//ppapi/examples/threading",
137 "//ppapi/examples/url_loader",
138 "//ppapi/examples/video_capture",
139 "//ppapi/examples/video_decode",
140 "//ppapi/examples/video_effects",
141 "//ppapi/examples/video_encode",
142 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35143 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
pkotwicz558d5252015-10-19 21:09:55144 "//third_party/pdfium/samples:pdfium_test",
kjellanderb1ab7b82016-11-01 08:34:21145 "//third_party/webrtc/tools:frame_analyzer",
charliea00055282016-01-26 00:15:15146 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25147 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55148 "//tools/gn",
dpranke244f9732015-11-20 05:38:10149 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55150 "//tools/perf/clear_system_cache",
rhalavati3051a402017-04-21 07:12:41151 "//tools/traffic_annotation/auditor:traffic_annotation_auditor",
pkotwicz558d5252015-10-19 21:09:55152 "//ui/accessibility:accessibility_unittests",
wnwen2c84eb652017-03-20 23:21:27153 "//ui/accessibility/extensions",
pkotwicz558d5252015-10-19 21:09:55154 ]
155 }
156
157 if (!is_ios) {
158 # TODO(GYP): Figure out which of these should actually build on iOS,
159 # and whether there should be other targets that are iOS-only and missing.
160 deps += [
161 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03162 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55163 "//chrome/test:unit_tests",
164 "//components:components_browsertests",
brettw3865a712016-12-10 05:59:08165 "//components/policy:policy_templates",
pkotwicz558d5252015-10-19 21:09:55166 "//content/shell:content_shell",
167 "//content/test:content_browsertests",
168 "//content/test:content_perftests",
169 "//content/test:content_unittests",
170 "//device:device_unittests",
171 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45172 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55173 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55174 "//media:media_unittests",
mcasasd2f53ea2016-06-24 19:24:27175 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29176 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55177 "//media/midi:midi_unittests",
178 "//mojo",
pkotwicz558d5252015-10-19 21:09:55179 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08180 "//mojo/edk/system:mojo_system_unittests",
181 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08182 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55183 "//net:net_perftests",
rockot734fb662016-10-15 16:41:30184 "//services/service_manager/public/cpp",
pwnall008c0272016-10-14 16:54:04185 "//storage//browser:storage_unittests",
Dirk Pranke49802732015-12-10 01:36:41186 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:01187 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
yutak6fbccaf2017-03-31 07:55:13188 "//third_party/WebKit/Source/platform/wtf:wtf_unittests",
dpranke244f9732015-11-20 05:38:10189 "//third_party/WebKit/Source/web:webkit_unit_tests",
brettwc5fcdd02016-10-12 07:25:12190 "//third_party/angle/src/tests:angle_end2end_tests",
191 "//third_party/angle/src/tests:angle_unittests",
ynovikov55e66c22017-02-16 15:45:37192 "//third_party/angle/src/tests:angle_white_box_tests",
nednguyenc42bf912016-01-27 01:39:28193 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35194 "//third_party/smhasher:pmurhash",
195 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35196 "//ui/display:display_unittests",
197 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35198 "//ui/gl:gl_unittests",
mfomitchev3ba450ad2017-04-03 18:20:40199 "//ui/latency:latency_unittests",
sherouk53f0f1a2015-08-03 15:59:35200 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03201 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35202 ]
sdefresne998e8582015-10-07 13:36:45203 } else {
sdefresne88abe362016-06-01 10:40:11204 deps += [ "//ios:all" ]
sherouk53f0f1a2015-08-03 15:59:35205 }
dprankee2ef3822015-02-24 21:42:18206
scottmg34fb7e52014-12-03 23:27:24207 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05208
tfarina4aa9edc2015-10-26 22:14:02209 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49210 deps += [ "//extensions/shell:app_shell_unittests" ]
rockot2f1326e2015-02-23 23:53:51211 }
212
garykac3eddb5b2015-04-17 23:16:38213 if (enable_remoting) {
214 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05215 }
216
dprankee2ef3822015-02-24 21:42:18217 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19218 deps += [
219 "//ui/views:views_unittests",
220 "//ui/views/examples:views_examples_exe",
221 "//ui/views/examples:views_examples_with_content_exe",
222 ]
James Robinson060f2e32014-09-10 22:31:37223 }
224
jamescook4c02a0b2016-12-02 23:14:42225 if (use_ash) {
mswda0133e62016-02-16 20:50:02226 deps += [
skycf094f672016-09-01 19:40:12227 "//ash:ash_content_unittests",
jamescookfbbf9112016-06-14 16:24:49228 "//ash:ash_shell_with_content",
229 "//ash:ash_unittests",
jamescook4c02a0b2016-12-02 23:14:42230 ]
231 }
232
233 if (use_aura) {
234 deps += [
mswda0133e62016-02-16 20:50:02235 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02236 "//ui/aura:demo",
237 "//ui/wm:wm_unittests",
238 ]
dprankee2ef3822015-02-24 21:42:18239 }
240
241 if (use_ozone) {
kylechar5c9a1fb2016-10-21 13:17:25242 deps += [
243 "//ui/ozone",
244 "//ui/ozone:ozone_unittests",
245 "//ui/ozone/gl:ozone_gl_unittests",
246 ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50247 }
248
thomasandersonaf830f3a2016-12-07 04:52:02249 if (use_x11 || ozone_platform_x11) {
250 deps += [ "//tools/xdisplaycheck" ]
251 }
252
brettw66e3feab2015-07-20 23:52:22253 if (is_win) {
brettwf986f952015-10-07 17:18:15254 deps += [
255 "//chrome/installer/gcapi",
256 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
257 ]
brettw66e3feab2015-07-20 23:52:22258 }
259
dpranke@chromium.org5a8d5162014-04-12 01:19:16260 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03261 deps += [
pkotwicze2dae8b2015-11-03 20:12:55262 "//base:base_junit_tests",
dpranke244f9732015-11-20 05:38:10263 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38264 "//build/android/gyp/test:hello_world",
pkotwicz2dd67962016-05-10 00:21:08265 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55266 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
267 "//components/policy/android:components_policy_junit_tests",
268 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45269 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47270 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55271 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11272 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56273 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05274 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45275 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10276 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49277 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34278 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12279 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
280 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43281 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15282 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15283 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18284 ]
285 deps -= [
rockot9c67e5f2015-03-12 20:01:21286 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18287 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03288 ]
289
pkotwicz92e2e2312015-12-15 22:29:46290 if (!is_component_build) {
291 deps += [
agrievee23386b2016-01-05 04:47:58292 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12293 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46294 "//components/cronet/android:cronet_sample_apk",
295 "//components/cronet/android:cronet_sample_test_apk",
296 "//components/cronet/android:cronet_test_apk",
297 "//components/cronet/android:cronet_test_instrumentation_apk",
298 "//components/cronet/android:cronet_unittests",
299 ]
300 }
301
pkotwicz061c5a42015-09-30 02:16:54302 if (!is_chromecast) {
303 deps += [
michaelbaicbcc7e62015-11-12 04:29:53304 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30305 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44306 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05307 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55308 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54309 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10310 "//chrome/android:chrome_public_test_apk",
311 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54312 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b2015-12-28 20:23:11313 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05314 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54315 ]
316 }
317
pkotwicz06a4b4b42015-10-29 23:11:11318 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12319 deps += [
320 "//content/shell/android:chromium_linker_test_apk",
321 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
322 ]
pkotwicz06a4b4b42015-10-29 23:11:11323 }
324
dgnd1e190d2017-03-17 13:34:49325 if (enable_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55326 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45327 }
dprankedb5527d72015-03-08 04:22:47328 }
329
brettwf9427f92016-05-05 23:18:55330 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00331 deps += [
pkotwicza4d233b22015-11-02 18:20:38332 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00333 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38334 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00335 "//breakpad:minidump-2-core",
336 ]
337 }
338
dpranke6293d252015-04-14 19:12:00339 if (is_chromeos) {
340 deps += [
341 "//chromeos:chromeos_unittests",
khorimoto4c539952016-12-04 02:37:11342 "//chromeos/components:chromeos_components_unittests",
jamescook4c02a0b2016-12-02 23:14:42343 "//components/session_manager/core",
estade835d5502017-01-04 16:44:06344 "//ui/app_list:app_list_unittests",
345 "//ui/app_list/presenter:app_list_presenter_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22346 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00347 "//ui/chromeos:ui_chromeos_unittests",
348 ]
349 }
350
dprankefd1813272015-04-13 23:56:00351 if (is_chromeos || is_mac || is_win) {
352 deps += [
353 "//rlz:rlz_id",
354 "//rlz:rlz_lib",
355 "//rlz:rlz_unittests",
356 ]
357 }
358
dprankedb5527d72015-03-08 04:22:47359 if (is_linux) {
360 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06361 deps += [
dpranke2bc89212015-11-18 00:24:43362 "//chrome:manpage",
363 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47364 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47365 "//net:quic_client",
366 "//net:quic_server",
367 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18368 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06369 ]
dnicoara8c6aa8e2015-03-11 23:20:32370
mbjorgea12e5a52016-05-31 22:15:17371 if (use_dbus) {
372 deps += [
373 "//dbus:dbus_test_server",
374 "//dbus:dbus_unittests",
375 ]
376 }
377
dpranke2bc89212015-11-18 00:24:43378 if (is_chrome_branded && is_official_build) {
379 # TODO(dpranke): add the linux_dump_symbols flag?
380 deps += [ "//chrome:linux_symbols" ]
381 }
dprankedb5527d72015-03-08 04:22:47382 }
383
sherouke1859f92015-08-05 10:19:10384 if (is_ios || is_win || (is_linux && !is_chromeos)) {
385 deps += [
386 "//base:base_i18n_perftests",
387 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58388 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10389 ]
390 }
391
sugoia1b7b922016-12-13 12:52:49392 if ((is_win || is_mac || is_linux) &&
393 (target_cpu == "x86" || target_cpu == "x64")) {
sugoiabe91892016-09-20 12:53:51394 deps += [ "//third_party/swiftshader" ]
395 }
396
thakis507c15c2016-06-01 00:26:01397 # TODO(GYP): Figure out which of these should (and can) build
398 # for chromeos/ios.
399 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44400 deps += [
dprankedb5527d72015-03-08 04:22:47401 "//base:build_utf8_validator_tables",
dpranke244f9732015-11-20 05:38:10402 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47403 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00404 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47405 "//components:components_perftests",
Max Boguefef332d2016-07-28 22:09:09406 "//components/sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47407 "//device:device_unittests",
408 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47409 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47410 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00411 "//gpu:gl_tests",
dpranke244f9732015-11-20 05:38:10412 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47413 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47414 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00415 "//net:dump_cache",
dprankefd1813272015-04-13 23:56:00416 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47417 "//ui/compositor:compositor_unittests",
418 ]
419
agrieve473155b2015-12-28 20:23:11420 if (!is_android) {
421 deps += [
422 "//chrome/test:load_library_perf_tests",
423 "//chrome/test:sync_performance_tests",
424 "//chrome/test/chromedriver:chromedriver",
425 "//chrome/test/chromedriver:chromedriver_tests",
426 "//courgette:courgette",
427 "//courgette:courgette_fuzz",
428 "//courgette:courgette_minimal_tool",
429 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30430 "//media/cast:generate_barcode_video",
431 "//media/cast:generate_timecode_audio",
agrieve473155b2015-12-28 20:23:11432 "//net:crash_cache",
433 "//net:crl_set_dump",
434 "//net:dns_fuzz_stub",
435 "//net:gdig",
436 "//net:get_server_time",
437 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
438 "//net:run_testserver",
439 "//net:stress_cache",
440 "//net:tld_cleanup",
441 "//ppapi:pepper_hash_for_uma",
442 "//ppapi:ppapi_perftests",
agrieve473155b2015-12-28 20:23:11443 "//third_party/leveldatabase:env_chromium_unittests",
444 "//third_party/libaddressinput:libaddressinput_unittests",
445 ]
446 }
dpranke7e19b472015-11-13 00:49:33447
jamescookfbbf9112016-06-14 16:24:49448 if (enable_extensions) {
449 deps += [ "//extensions/shell:app_shell" ]
450 }
451
dprankedb5527d72015-03-08 04:22:47452 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13453 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43454
455 if (is_linux) {
456 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37457 deps += [ "//components/nacl/loader:nacl_helper" ]
458
459 if (enable_nacl_nonsfi) {
460 deps += [
461 "//components/nacl/loader:helper_nonsfi",
462 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
463 ]
464 }
dpranke2bc89212015-11-18 00:24:43465 }
dprankedb5527d72015-03-08 04:22:47466 }
467
xhwangfa2d9d472015-12-18 23:31:18468 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10469 deps += [ "//media:ffmpeg_regression_tests" ]
470 }
dprankefd1813272015-04-13 23:56:00471 }
472
agrieve473155b2015-12-28 20:23:11473 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00474 deps += [
agrieve473155b2015-12-28 20:23:11475 "//breakpad:dump_syms($host_toolchain)",
476 "//breakpad:microdump_stackwalk($host_toolchain)",
477 "//breakpad:minidump_dump($host_toolchain)",
478 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00479 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00480 "//content/public/app:browser",
481 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08482 "//mojo/edk/test:mojo_public_system_perftests",
rockot734fb662016-10-15 16:41:30483 "//services/service_manager/public/cpp",
dprankefd1813272015-04-13 23:56:00484 "//testing/gmock:gmock_main",
dprankefd1813272015-04-13 23:56:00485 ]
486
agrieve473155b2015-12-28 20:23:11487 if (!is_android) {
488 deps += [
agrieve473155b2015-12-28 20:23:11489 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55490 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b2015-12-28 20:23:11491 "//media/cast:cast_benchmarks",
492 "//media/cast:tap_proxy",
493 "//skia:filter_fuzz_stub",
494 "//skia:image_operations_bench",
agrieve473155b2015-12-28 20:23:11495 "//third_party/sqlite:sqlite_shell",
496 "//ui/keyboard:keyboard_unittests",
497 "//ui/message_center:message_center_unittests",
498 "//ui/snapshot:snapshot_unittests",
agrieve473155b2015-12-28 20:23:11499 ]
dprankefd1813272015-04-13 23:56:00500
agrieve473155b2015-12-28 20:23:11501 if (!is_debug && !is_component_build) {
502 deps += [ "//chrome/tools/service_discovery_sniffer" ]
503 }
dprankefd1813272015-04-13 23:56:00504 }
505
dprankedb5527d72015-03-08 04:22:47506 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44507 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59508 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44509 }
dprankedb5527d72015-03-08 04:22:47510 }
511 }
512
513 if (is_mac) {
514 deps += [
515 "//breakpad:crash_inspector",
516 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44517 "//third_party/apple_sample_code",
518 "//third_party/molokocacao",
519 ]
dpranke43760592014-11-08 02:59:57520 deps -= [
brettw011138d2015-10-21 03:05:38521 # Mojo in GN contains some things which are never compiled in GYP on Mac,
522 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10523 "//mojo",
dprankecf8465db72014-11-10 23:51:22524 ]
dprankefd1813272015-04-13 23:56:00525 }
526
527 if (is_win) {
528 deps += [
529 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16530 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43531 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00532 "//chrome_elf:chrome_elf_unittests",
533 "//chrome_elf:dll_hash_main",
pastarmovj02d5cc992016-12-05 17:55:24534 "//cloud_print:cloud_print_unittests",
dprankefd1813272015-04-13 23:56:00535 "//components/wifi:wifi_test",
536 "//net:quic_client",
537 "//net:quic_server",
538 "//sandbox/win:pocdll",
539 "//sandbox/win:sandbox_poc",
540 "//sandbox/win:sbox_integration_tests",
541 "//sandbox/win:sbox_unittests",
542 "//sandbox/win:sbox_validation_tests",
543 "//testing/gtest:gtest_main",
dprankefd1813272015-04-13 23:56:00544 "//third_party/pdfium/samples:pdfium_diff",
ajwongbf193272017-03-16 00:00:44545 "//third_party/tcmalloc:addr2line-pdb",
robliaofd54b5c2017-01-13 00:41:30546 "//tools/win/chromeexts:chromeexts",
dprankefd1813272015-04-13 23:56:00547 ]
dprankee2ef3822015-02-24 21:42:18548 deps -= [
549 "//crypto:crypto_unittests", # TODO(GYP)
550 "//net:net_unittests", # TODO(GYP)
551 ]
fdorayfb048bff2016-04-28 22:07:36552
553 if (!(is_component_build && is_debug && target_cpu == "x86")) {
554 deps +=
555 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
556 }
sherouk53f0f1a2015-08-03 15:59:35557 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29558 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34559 }
rsesek985bd812016-04-26 21:06:15560
slance9d62f2015-11-04 01:15:01561 if (is_chromecast) {
562 deps += [ "//chromecast:cast_shell" ]
563 }
miu45b848fe2015-11-26 01:23:29564
rsesek985bd812016-04-26 21:06:15565 if (is_mac || is_win) {
566 deps += [
567 "//third_party/crashpad/crashpad/handler:crashpad_handler",
568 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
569 ]
570 }
571
hbos17a7b4a22015-12-07 10:49:45572 if (use_openh264) {
573 deps += [
574 "//third_party/openh264:common",
575 "//third_party/openh264:encoder",
576 "//third_party/openh264:processing",
577 ]
578 }
dpranke2a294622015-08-07 05:23:01579
amistry4dcd7c42015-12-16 04:53:10580 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29581 deps += [
582 "//media/mojo:media_mojo_unittests",
rockot8cdd37a2017-01-28 02:53:31583 "//services:service_unittests",
xhwangf69024d12016-06-16 17:52:29584 ]
amistry4dcd7c42015-12-16 04:53:10585 }
586
scheib35dc9202016-04-26 22:35:43587 if (!is_android && !is_ios) {
588 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
589 }
590
dpranke244f9732015-11-20 05:38:10591 if (!is_android && !is_ios && !is_chromeos) {
xjz9da998022016-10-26 01:22:11592 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
isherman0f89b43eb2015-04-11 00:02:45593 }
594
ben8f4e95ad2015-12-01 18:35:58595 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54596 deps += [
597 "//mash:all",
xhwang9c958fd2016-12-05 23:17:16598 "//media/mojo/services:media_service_unittests",
skyfcde3a42016-02-09 20:27:44599 "//mojo",
benee648f62016-05-12 23:04:50600 "//services/navigation",
ben6b0453d2016-07-02 04:27:19601 "//services/ui/demo",
kylechar5c9a1fb2016-10-21 13:17:25602 "//services/ui/demo:mus_demo_unittests",
603 "//services/ui/public/interfaces:ui_struct_traits_unittests",
ben6b0453d2016-07-02 04:27:19604 "//services/ui/ws:tests",
qyearsley88bc4802016-05-17 18:02:34605 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53606 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54607 ]
kylechar5c9a1fb2016-10-21 13:17:25608
wez0ee841c2016-12-21 20:36:20609 # crbug.com/676055: media_service_unittests fails to link under Windows
610 # component builds, due to duplicate symbol definitions.
611 if (is_win && is_component_build) {
612 deps -= [ "//media/mojo/services:media_service_unittests" ]
613 }
614
kylechar9ee25182016-11-06 03:50:30615 if (use_ozone && is_chromeos) {
kylechar5c9a1fb2016-10-21 13:17:25616 deps += [ "//services/ui/display:display_service_unittests" ]
617 }
sky97b65592015-11-02 20:08:25618 }
619
stevenjb7b6fd642016-05-18 18:15:30620 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47621 # TODO(GYP): Figure out if any of these should be in gn_all
622 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45623 deps += [
dprankedb5527d72015-03-08 04:22:47624 ":gn_mojo_targets",
dprankedb5527d72015-03-08 04:22:47625 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47626 "//chrome/tools/convert_dict",
627 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40628 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20629 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47630 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45631 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47632 "//components/rappor:unit_tests",
633 "//components/sessions:unit_tests",
634 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30635 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47636 "//storage/browser:dump_file_system",
637 "//third_party/angle:libANGLE",
638 "//third_party/angle:libEGL",
639 "//third_party/angle:libGLESv2",
pwnallcfb346f12017-03-02 22:01:37640 "//third_party/leveldatabase:leveldb_test_targets",
dprankedb5527d72015-03-08 04:22:47641 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47642 "//third_party/opus:opus_compare",
643 "//third_party/opus:opus_demo",
dpranke244f9732015-11-20 05:38:10644 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47645 "//third_party/opus:test_opus_decode",
646 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47647 "//third_party/opus:test_opus_padding",
648 "//third_party/webrtc/system_wrappers:field_trial_default",
649 "//third_party/webrtc/system_wrappers:metrics_default",
650 "//ui/display/types",
651 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47652 ]
dprankeb0713542015-07-31 21:07:21653
ossy.szegedd584dd72016-11-21 11:36:18654 if (enable_nacl) {
655 deps += [ "//native_client/src/trusted/debug_stub:gdb_rsp_unittest" ]
656 }
657
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16658 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b2015-12-28 20:23:11659 if (!is_android) {
660 deps += [ "//chrome/test:load_library_perf_tests" ]
661 }
mcgrathr916aafa2015-09-15 00:06:53662 deps += [
mcgrathr916aafa2015-09-15 00:06:53663 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f9732015-11-20 05:38:10664 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53665 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16666 }
dpranke807f6022015-03-17 23:20:56667 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51668 deps += [ "//v8:v8_shell" ]
dpranke807f6022015-03-17 23:20:56669 }
dprankedb5527d72015-03-08 04:22:47670 }
dprankeb0713542015-07-31 21:07:21671
spang324dc57a2016-04-06 14:54:08672 if (use_ozone) {
673 deps += [ "//ui/ozone/demo" ]
674 }
675
aizatskyaf496112016-04-15 19:26:32676 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
677 (use_libfuzzer && is_mac)) {
678 deps += [
679 "//testing/libfuzzer/fuzzers",
680 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06681 "//third_party/icu/fuzzers",
noel6997c5c2017-04-13 14:12:18682 "//third_party/qcms:fuzzers",
aizatskyaf496112016-04-15 19:26:32683 ]
miu16396172016-09-28 00:05:56684
685 # TODO(miu): Remove this dependency once the build configuration in
686 # chrome/browser/BUILD.gn is migrated to chrome/browser/media/BUILD.gn.
687 # This dependency here only exists to allow GN to discover the
688 # fuzzer_test target there.
689 deps += [ "//chrome/browser/media:cast_remoting_connector_fuzzer" ]
aizatskyaf496112016-04-15 19:26:32690 }
691
sbc92b4d572016-02-18 03:28:23692 if (enable_nacl) {
693 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
694 }
695
agrieve473155b2015-12-28 20:23:11696 if (is_android) {
bsheedy84541d552017-04-13 01:24:37697 deps += [
698 "//build/android/gyp/test:hello_world",
bsheedya1584812017-04-20 21:35:27699 "//chrome/test/vr/perf:motopho_latency_test",
bsheedy84541d552017-04-13 01:24:37700 ]
nyquistb5f050b2015-09-10 05:10:35701 }
702
skyostilfe116162016-02-26 20:53:33703 if (is_linux && use_ozone) {
704 deps += [
705 "//headless",
706 "//headless:headless_tests",
707 ]
708 }
tfarinafbc992492017-03-08 22:44:04709
710 if (!is_ios) {
711 deps += [ "//v8:gn_all" ]
712 }
713}
714
715# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
716# for the iOS bots and the official builders.
717group("All") {
718 testonly = true
719
720 deps = [
721 ":gn_all",
722 ]
723}
724
725# TODO(GYP_GONE): This target exists for compatibility with GYP for the
726# builders that specify targets in the recipes directly.
727# Ideally it should not exist, and the builders should be specifying
728# more specific targets (or 'All') via the source-side
729# //testing/buildbot/*.json files. We should simply delete this target
730# and update any recipes that are using it.
731group("chromium_builder_tests") {
732 testonly = true
733 deps = []
734}
735
736# TODO(GYP_GONE): Figure out if we really need this target or if there's
737# some better way to specify things.
738if (is_win) {
739 group("chrome_official_builder_no_unittests") {
740 deps = [
741 "//base/win:eventlog_provider",
742 "//chrome/installer/gcapi",
743 "//chrome/installer/mini_installer",
744 "//cloud_print",
745 "//cloud_print/virtual_driver/win/port_monitor:copy_gcp_portmon_binaries",
746 "//components/policy:pack_policy_templates",
747 "//courgette",
748 "//courgette:copy_courgette_binaries",
749 "//remoting/webapp",
holteb87f01f52017-04-10 20:45:53750 "//tools/metrics:metrics_metadata",
tfarinafbc992492017-03-08 22:44:04751 ]
752
753 if (target_cpu == "x86") {
754 if (is_clang) {
755 deps += [ "//courgette(//build/toolchain/win:clang_x64)" ]
756 } else {
757 deps += [ "//courgette(//build/toolchain/win:x64)" ]
758 }
759 }
760 if (is_chrome_branded) {
761 deps += [ "//remoting/host:remoting_host_installation" ]
762 }
763 }
764
765 group("chrome_official_builder") {
766 testonly = true
767
768 deps = [
769 ":chrome_official_builder_no_unittests",
770 "//base:base_unittests",
771 "//chrome/test:browser_tests",
772 "//chrome/test:sync_integration_tests",
773 "//ipc:ipc_tests",
774 "//media:media_unittests",
775 "//media/midi:midi_unittests",
776 "//net:net_unittests",
777 "//printing:printing_unittests",
778 "//sql:sql_unittests",
779 "//ui/base:ui_base_unittests",
780 "//ui/gfx:gfx_unittests",
781 "//ui/touch_selection:ui_touch_selection_unittests",
782 "//ui/views:views_unittests",
783 "//url:url_unittests",
784 ]
785 }
786
787 group("All_syzygy") {
788 if (is_syzyasan) {
789 deps = [
790 "//chrome/installer/mini_installer:mini_installer",
791 "//chrome/installer/mini_installer:mini_installer_syzygy",
792 ]
793 }
794 }
795
796 if (is_syzyasan) {
797 group("chrome_official_syzyasan_builder") {
798 deps = [
799 ":All_syzygy",
800 ":chrome_official_builder_no_unittests",
801 ]
802 }
803 }
804}
805
806if (is_chromeos) {
807 group("chromiumos_preflight") {
808 testonly = true
809 deps = [
810 "//breakpad:minidump_stackwalk($host_toolchain)",
811 "//chrome",
812 "//chrome/test/chromedriver",
813 "//media:media_unittests",
814 "//media/gpu:video_decode_accelerator_unittest",
815 "//media/gpu:video_encode_accelerator_unittest",
816 "//ppapi/examples/video_decode",
817 "//sandbox/linux:chrome_sandbox",
818 "//sandbox/linux:sandbox_linux_unittests",
819
820 # Blocked on https://github.com/catapult-project/catapult/issues/2297
821 #"//third_party/catapult/telemetry:bitmaptools",
822 "//tools/perf/clear_system_cache",
823 ]
824 }
dprankedb5527d72015-03-08 04:22:47825}
826
827group("gn_mojo_targets") {
828 testonly = true
829 if (is_linux && !is_chromeos) {
830 # TODO(GYP): Figure out if any of these should be in gn_all
831 # and figure out how cross-platform they are
832 deps = [
amistryd4aa70d2016-06-23 07:52:37833 "//ipc:ipc_tests",
msw1bb9c6c2015-05-06 21:35:44834 "//mojo:tests",
rockot2a0f4fb32016-11-11 18:44:19835 "//services:service_unittests",
dprankedb5527d72015-03-08 04:22:47836 ]
dprankedb5527d72015-03-08 04:22:47837 }
838}
839
840group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03841 deps = [
dprankeb6128d02015-05-01 16:40:30842 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47843 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
844 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03845 ]
dpranked2fb5222015-09-10 22:39:05846
847 if (!is_ios) {
848 deps += [
dpranked2fb5222015-09-10 22:39:05849 "//v8:postmortem-metadata",
dpranke244f9732015-11-20 05:38:10850 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05851 ]
852 }
dpranked62d8512015-03-02 03:06:03853}
854
tfarinacb2638b2015-05-12 03:24:15855if (!is_ios) {
856 # This group includes all of the targets needed to build and test Blink,
857 # including running the layout tests (see below).
858 group("blink_tests") {
859 testonly = true
860
861 deps = [
tansell88df42592016-11-15 07:22:59862 ":webkit_layout_tests",
tfarinacb2638b2015-05-12 03:24:15863 "//third_party/WebKit/public:all_blink",
tansell88df42592016-11-15 07:22:59864 ]
865 }
866
867 # Layout tests runner
868 # third_party/WebKit/Tools/Scripts/run-webkit-tests
869 group("run_webkit_tests") {
870 testonly = true
871 deps = [
872 ":webkit_layout_tests",
873 ]
874 }
875
876 # https://www.chromium.org/developers/testing/webkit-layout-tests
tansell0e6baaf22017-02-16 09:14:53877
878 # The _exparchive at the end of the name indicates to the isolate recipe
879 # that the isolate should be archived separately using the `exparchive`
880 # command, rather than as part of the normal `batcharchive` command.
881 group("webkit_layout_tests_exparchive") {
882 testonly = true
883 deps = [
884 ":webkit_layout_tests",
885 ]
886 data_deps = [
887 ":webkit_layout_tests",
888 ]
889 }
890
891 # This target contains only a small subset of the layout tests,
892 # and is useful for testing with the regular isolate mechanism.
893 # To run the full layout test suite you need to use
894 # :webkit_layout_tests_exparchive, above, instead.
tansell88df42592016-11-15 07:22:59895 group("webkit_layout_tests") {
896 testonly = true
tansell88df42592016-11-15 07:22:59897 data_deps = [
yzshena0646992017-04-02 22:01:27898 ":layout_test_data_mojo_bindings",
tansell88df42592016-11-15 07:22:59899 "//content/shell:content_shell",
alokp51b900d2017-03-10 18:55:39900 "//mojo/public/interfaces/bindings/tests:test_interfaces",
tansell2bf83ac2017-02-18 04:01:14901 "//third_party/WebKit/public:blink_devtools_frontend_resources_files",
tansellaac85d72017-02-17 05:13:04902 "//third_party/mesa:osmesa",
agrieve993374cf2016-04-13 00:05:39903 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15904 ]
905
tfarinacb2638b2015-05-12 03:24:15906 if (is_android) {
tansell88df42592016-11-15 07:22:59907 data_deps += [
agrieve62ab00282016-04-05 02:03:45908 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39909 "//breakpad:dump_syms",
910 "//breakpad:microdump_stackwalk",
911 "//breakpad:minidump_dump",
912 "//breakpad:minidump_stackwalk",
913 "//breakpad:symupload",
jbudoricke7bcf092016-09-28 18:24:14914 "//tools/android/forwarder2",
ojan94989c72015-07-17 21:56:42915 ]
tfarinacb2638b2015-05-12 03:24:15916 }
917
918 if (is_win) {
tansell88df42592016-11-15 07:22:59919 data_deps += [ "//content/shell:content_shell_crash_service" ]
tfarinacb2638b2015-05-12 03:24:15920 }
921
922 if (!is_win && !is_android) {
tansell88df42592016-11-15 07:22:59923 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15924 }
925
926 if (is_mac) {
tansell88df42592016-11-15 07:22:59927 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15928 }
929
930 if (is_linux) {
tansell88df42592016-11-15 07:22:59931 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15932 }
qyearsley165a17a82016-08-01 17:58:50933
934 data = [
tansell55090912017-02-20 12:54:31935 "$root_build_dir/resources/inspector/",
tansell88df42592016-11-15 07:22:59936 "//testing/scripts/common.py",
tansell0e6baaf22017-02-16 09:14:53937 "//testing/scripts/run_isolated_script_test.py",
tansell55090912017-02-20 12:54:31938 "//testing/xvfb.py",
qyearsley165a17a82016-08-01 17:58:50939 "//third_party/WebKit/LayoutTests/",
tansell2bf83ac2017-02-18 04:01:14940 "//third_party/WebKit/PerformanceTests/",
qyearsley165a17a82016-08-01 17:58:50941 "//third_party/WebKit/Tools/Scripts/",
942 ]
tansell0e6baaf22017-02-16 09:14:53943
tansell820f7df2017-02-16 13:59:15944 if (is_win) {
945 data += [ "//third_party/apache-win32/" ]
946 }
947
tansell0e6baaf22017-02-16 09:14:53948 if (is_android) {
949 data += [
950 "//third_party/catapult/",
951 "//build/android/",
952 ]
953 }
tfarinacb2638b2015-05-12 03:24:15954 }
yzshena0646992017-04-02 22:01:27955
956 copy("layout_test_data_mojo_bindings") {
957 testonly = true
958
959 sources = [
960 "$root_gen_dir/mojo/public/js/mojo_bindings.js",
961 ]
962
963 outputs = [
964 "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings.js",
965 ]
966
967 deps = [
968 "//mojo/public/js:new_bindings",
969 ]
970 }
tfarinacb2638b2015-05-12 03:24:15971}
972
dpranke6abd8652015-08-28 03:21:11973# Add a dummy target for compatibility w/ GYP
974group("chromium_swarm_tests") {
975}
976
dpranke2302dfa2015-09-29 02:21:52977group("chromium_builder_perf") {
978 testonly = true
979
thakisca8a4282016-06-10 17:59:30980 if (!is_ios && !is_android && !is_chromecast) {
malets6b7062402016-09-15 08:14:26981 data_deps = [
dpranke2302dfa2015-09-29 02:21:52982 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52983 "//chrome/test:load_library_perf_tests",
eyaiche1605ca2016-09-14 14:34:05984 "//chrome/test:telemetry_perf_tests",
kraynovc0797582016-10-25 16:45:06985 "//components/tracing:tracing_perftests",
dpranke2302dfa2015-09-29 02:21:52986 "//gpu:gpu_perftests",
987 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19988 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52989 ]
990
991 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:26992 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:52993 }
994 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04995 if (is_official_build) {
996 # In GN builds, this is controlled by the 'linux_dump_symbols'
997 # flag, which defaults to 1 for official builds. For now,
998 # we skip the separate flag and just key off of is_official_build.
malets6b7062402016-09-15 08:14:26999 data_deps += [ "//chrome:linux_symbols" ]
dpranke9aed5d582015-11-22 23:22:041000 }
dpranke2302dfa2015-09-29 02:21:521001
kraynovc0797582016-10-25 16:45:061002 data_deps += [ "//tools/perf/clear_system_cache" ]
dpranke2302dfa2015-09-29 02:21:521003 }
1004
1005 if (is_win) {
malets6b7062402016-09-15 08:14:261006 data_deps += [
hansa3d3aa4d2016-05-04 22:12:521007 "//chrome/installer/mini_installer:mini_installer",
eyaichd3e023c12016-11-14 22:41:011008 "//chrome/test:angle_perftests",
dpranke2302dfa2015-09-29 02:21:521009 ]
dpranke2302dfa2015-09-29 02:21:521010 } else {
malets6b7062402016-09-15 08:14:261011 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:521012 }
1013 }
1014}
agrieve017b91f2016-02-29 20:15:061015
thakis3f7d4fc2016-06-10 18:47:501016if (!is_ios && !is_android && !is_chromecast) {
1017 group("chromium_builder_asan") {
1018 testonly = true
1019
1020 deps = [
1021 "//chrome:chrome",
1022 "//content/shell:content_shell",
1023 "//v8:d8",
1024 ]
1025 if (!is_win) {
1026 deps += [
1027 "//net:dns_fuzz_stub",
thakis3f7d4fc2016-06-10 18:47:501028 "//skia:filter_fuzz_stub",
1029 ]
1030 }
1031 if (enable_ipc_fuzzer && !is_component_build) {
1032 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
1033 }
1034 if (!is_chromeos) {
1035 deps += [
1036 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371037 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501038 ]
1039 }
thakis3f7d4fc2016-06-10 18:47:501040 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
1041 deps += [
1042 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
sebmarchanda2df3392016-07-13 15:34:591043 "//content/shell:content_shell_syzyasan",
thakis3f7d4fc2016-06-10 18:47:501044 ]
thakis3f7d4fc2016-06-10 18:47:501045 }
1046 }
1047}
1048
brettw6df3e8c2016-04-14 21:07:131049# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
1050# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1051# something to build, but all targets for those bots to compile are set
1052# up differently.
1053# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1054# this group.
1055group("aura_builder") {
1056}
1057
agrieve95ba4442016-04-25 15:47:131058if (is_android) {
1059 group("optimize_gn_gen") {
1060 deps = [
1061 # These run expensive scripts in non-default toolchains. Generally, host
1062 # toolchain targets are loaded in the later part of the run, and the
1063 # result is they push out the end of generation. By preloading these, the
1064 # scripts can be parallelized with the rest of the load.
1065 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1066 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1067
1068 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1069 # generation.
1070 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1071 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1072 ]
1073 }
1074}
1075
agrieve017b91f2016-02-29 20:15:061076# Because of the source assignment filter, many targets end up over-filtering
1077# their sources if the output directory contains a platform name. Assert that
1078# this doesn't happen. http://crbug.com/548283
1079template("assert_valid_out_dir") {
1080 # List copied from //build/config/BUILDCONFIG.gn.
1081 set_sources_assignment_filter([
1082 "*\bandroid/*",
1083 "*\bchromeos/*",
1084 "*\bcocoa/*",
1085 "*\bios/*",
1086 "*\blinux/*",
1087 "*\bmac/*",
1088 "*\bposix/*",
1089 "*\bwin/*",
1090 ])
1091 assert(target_name != "") # Mark as used.
1092 sources = invoker.actual_sources
1093 assert(
1094 sources == invoker.actual_sources,
1095 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1096}
1097
1098assert_valid_out_dir("_unused") {
1099 actual_sources = [ "$root_build_dir/foo" ]
1100}