blob: 2214cac3349f6c38160478e614d76fd2e648eaa0 [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
Yuke Liaoa2d10312020-09-15 22:19:2911import("//build/config/chromeos/ui_mode.gni")
dprankead249c72016-06-11 18:01:2212import("//build/config/compiler/compiler.gni")
Dirk Prankef452bb2a2020-10-09 22:11:5513import("//build/config/dcheck_always_on.gni")
rockot2f1326e2015-02-23 23:53:5114import("//build/config/features.gni")
aizatskyfc46a9f2015-10-09 21:20:0815import("//build/config/sanitizers/sanitizers.gni")
[email protected]378b4f02014-06-10 15:58:4516import("//build/config/ui.gni")
Andrew Grievefebea022020-08-07 17:17:5317import("//build/gn_logs.gni")
John Budorick7c8273b2019-04-25 15:27:4718import("//build/util/generate_wrapper.gni")
Tommy Steimele417e712020-01-30 14:07:5519import("//chrome/browser/buildflags.gni")
Jordan Bayles331c1b52019-12-23 17:56:2820import("//chrome/browser/media/router/features.gni")
Dirk Prankeccc0c362017-09-28 22:15:1121import("//components/nacl/features.gni")
Scott Violetc8240b02018-03-08 22:03:5922import("//device/vr/buildflags/buildflags.gni")
23import("//extensions/buildflags/buildflags.gni")
Sam McNally11dc0142018-11-23 01:11:0524import("//gpu/vulkan/features.gni")
Alexandre Courbot8ad2427d2017-08-25 14:04:5525import("//media/gpu/args.gni")
Sam McNally11dc0142018-11-23 01:11:0526import("//media/media_options.gni")
brettw2b112cd2016-10-12 19:35:3627import("//remoting/remoting_enable.gni")
Josip Sokcevic4d590cf2020-07-07 10:48:2328import("//third_party/closure_compiler/compile_js.gni")
thakis3f7d4fc2016-06-10 18:47:5029import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
Peter Beverloo69948322017-07-28 19:01:5730import("//ui/base/ui_features.gni")
Elly Fong-Jonesb03817a2019-11-14 18:10:1231import("//ui/gl/features.gni")
Yang Guo04f22e32019-05-16 08:01:1732import("//v8/gni/snapshot_toolchain.gni")
machenbachd65ec5c2016-07-22 09:05:2333import("//v8/gni/v8.gni")
dprankee2ef3822015-02-24 21:42:1834
cjhopmanca675d3e2014-10-24 03:50:4535if (is_android) {
36 import("//build/config/android/config.gni")
37}
[email protected]378b4f02014-06-10 15:58:4538
brettwb84b29472014-10-22 22:58:4539declare_args() {
40 # A list of extra dependencies to add to the root target. This allows a
41 # checkout to add additional targets without explicitly changing any checked-
42 # in files.
43 root_extra_deps = []
44}
45
brucedawsonc8d6d652016-09-02 19:43:1846if (is_official_build) {
47 # An official (maximally optimized!) component (optimized for build times)
48 # build doesn't make sense and usually doesn't work.
49 assert(!is_component_build)
50}
51
Wez09fb3a932017-12-20 21:33:4652# This file defines the following two main targets:
dpranked62d8512015-03-02 03:06:0353#
Wez09fb3a932017-12-20 21:33:4654# "gn_all" is used to create explicit dependencies from the root BUILD.gn to
55# each top-level component that we wish to include when building everything via
56# "all". This is required since the set of targets built by "all" is determined
57# automatically based on reachability from the root BUILD.gn (for details, see
58# crbug.com/503241). Builders should typically use "all", or list targets
59# explicitly, rather than relying on "gn_all".
dprankeddc174902015-04-29 01:38:3560#
dprankeb6128d02015-05-01 16:40:3061# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0862# but are built anyway by "all". Since we don't want any such targets, we have
63# this placeholder to make sure hidden targets that aren't otherwise depended
64# on yet are accounted for.
dprankeff30e3d2015-02-24 06:52:3965
dprankee2ef3822015-02-24 21:42:1866group("gn_all") {
67 testonly = true
68
69 deps = [
dprankeb6128d02015-05-01 16:40:3070 ":gn_visibility",
Robert Liao38b1b4f2017-09-06 20:32:2471 "//base:base_perftests",
dprankee2ef3822015-02-24 21:42:1872 "//base:base_unittests",
Maciej Pawlowski4a3ac6852019-05-09 17:06:1473 "//base/util:base_util_unittests",
brettwa874dcc2015-08-28 23:59:1874 "//chrome/installer",
Sorin Jianu58a93adc2019-01-29 17:38:4875 "//chrome/updater",
Austin Sullivan33da70a2020-10-07 15:39:4176 "//codelabs",
Wez04eb259f2019-09-16 19:41:5977 "//components:components_unittests",
Vlad Tsyrklevich207f3272019-08-02 16:18:2678 "//components/gwp_asan:gwp_asan_unittests",
sheroukce1c7d72015-08-24 15:21:5979 "//net:net_unittests",
Wez3c761e62019-04-15 16:42:5380 "//services:services_unittests",
81 "//services/service_manager/public/cpp",
Sergey Ulanovdd606ed2017-07-13 00:44:2482 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:1883 "//sql:sql_unittests",
Wez3c761e62019-04-15 16:42:5384 "//third_party/flatbuffers:flatbuffers_unittests",
Ben Kellyad8343ba2020-10-28 18:48:5385 "//third_party/liburlpattern:liburlpattern_unittests",
Andrew Grievea7f1ee902018-05-18 16:17:2286 "//tools/binary_size:binary_size_trybot_py",
ochangcc11d0e2016-04-26 19:58:2687 "//tools/ipc_fuzzer:ipc_fuzzer_all",
Wez3c761e62019-04-15 16:42:5388 "//tools/metrics:metrics_metadata",
Sergey Ulanovfbd2fea2017-07-14 01:01:3889 "//ui/base:ui_base_unittests",
Robert Liao2d9b6432020-03-04 19:56:4390 "//ui/color:color_unittests",
Wez3c761e62019-04-15 16:42:5391 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:4192 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1893 ]
dpranke2a294622015-08-07 05:23:0194
Mirko Bonadei3de25fd2020-06-25 22:19:1495 if (!is_component_build) {
Brian Sheedyc4740bf42020-07-08 02:28:3396 deps += [ "//third_party/abseil-cpp:absl_tests" ]
Mirko Bonadei3de25fd2020-06-25 22:19:1497 }
98
sdefresne21832bf92016-03-30 22:01:0299 if (!is_android && !is_chromecast) {
100 deps += [
101 "//crypto:crypto_unittests",
102 "//google_apis/gcm:gcm_unit_tests",
103 ]
104 }
105
Mirko Bonadeif17649c2020-06-18 21:36:29106 if (enable_js_type_check) {
Christopher Lamef75ebfe2018-03-28 04:20:27107 deps += [ ":webui_closure_compile" ]
108 }
109
scottmg2f97ee122017-05-12 17:50:37110 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) {
sherouk53f0f1a2015-08-03 15:59:35111 deps += [
sherouk53f0f1a2015-08-03 15:59:35112 "//chrome",
Robert Liaof3e619e2020-03-02 21:17:55113 "//chrome/browser/ui/color:dump_colors",
sherouk53f0f1a2015-08-03 15:59:35114 "//chrome/test:browser_tests",
115 "//chrome/test:interactive_ui_tests",
116 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35117 "//chrome/test/chromedriver:chromedriver_unittests",
Charlie Harrison65c798902018-04-30 17:44:43118 "//components/subresource_filter/tools:subresource_filter_tools",
Samuel Huang577ef6c2018-03-13 18:19:34119 "//components/zucchini:zucchini",
120 "//components/zucchini:zucchini_unittests",
dprankedbdd9d82015-08-12 21:18:18121 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26122 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35123 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35124 "//net:hpack_example_generator",
sherouk53f0f1a2015-08-03 15:59:35125 "//ppapi:ppapi_unittests",
126 "//ppapi/examples/2d",
127 "//ppapi/examples/audio",
128 "//ppapi/examples/audio_input",
sherouk53f0f1a2015-08-03 15:59:35129 "//ppapi/examples/crxfs",
sherouk53f0f1a2015-08-03 15:59:35130 "//ppapi/examples/file_chooser",
sherouk53f0f1a2015-08-03 15:59:35131 "//ppapi/examples/font",
132 "//ppapi/examples/gamepad",
133 "//ppapi/examples/gles2",
134 "//ppapi/examples/gles2_spinning_cube",
135 "//ppapi/examples/ime",
136 "//ppapi/examples/input",
137 "//ppapi/examples/media_stream_audio",
138 "//ppapi/examples/media_stream_video",
139 "//ppapi/examples/mouse_cursor",
140 "//ppapi/examples/mouse_lock",
141 "//ppapi/examples/printing",
142 "//ppapi/examples/scaling",
143 "//ppapi/examples/scripting",
144 "//ppapi/examples/stub",
145 "//ppapi/examples/threading",
146 "//ppapi/examples/url_loader",
147 "//ppapi/examples/video_capture",
148 "//ppapi/examples/video_decode",
sherouk53f0f1a2015-08-03 15:59:35149 "//ppapi/examples/video_encode",
150 "//printing:printing_unittests",
pkotwicz558d5252015-10-19 21:09:55151 "//third_party/pdfium/samples:pdfium_test",
Jamie Madill178f84e2020-12-18 00:47:58152 "//third_party/vulkan-deps/spirv-tools/src:SPIRV-Tools",
153 "//third_party/vulkan-deps/spirv-tools/src/test/fuzzers",
pkotwicz558d5252015-10-19 21:09:55154 "//tools/perf/clear_system_cache",
rbpotterd8ca34c2019-07-25 18:48:05155 "//tools/polymer:polymer_tools_python_unittests",
Alex Turner21735e22020-11-04 16:51:26156 "//tools/privacy_budget:privacy_budget_tools",
Adam Ettenberger35b103e72019-10-22 17:18:07157 "//ui/accessibility:accessibility_perftests",
pkotwicz558d5252015-10-19 21:09:55158 "//ui/accessibility:accessibility_unittests",
David Tseng8175fca2019-10-25 03:44:47159 "//ui/accessibility/extensions:extension_tests",
160 "//ui/accessibility/extensions:extensions",
pkotwicz558d5252015-10-19 21:09:55161 ]
162 }
163
Yuta Hijikata05f38002020-12-17 00:49:24164 if (is_chromeos_lacros) {
Joel Hockey61347d52021-01-06 01:18:33165 deps += [
166 "//chrome/test:lacros_chrome_browsertests",
167 "//chrome/test:lacros_chrome_unittests",
168 ]
Yuke Liaoa2d10312020-09-15 22:19:29169 }
170
Sergey Ulanovfbd2fea2017-07-14 01:01:38171 if (!is_ios) {
172 deps += [
Wez57c96392017-12-05 22:19:05173 "//cc:cc_unittests",
174 "//components/policy:policy_templates",
Sergey Ulanov19240f762019-05-10 22:26:20175 "//components/ui_devtools/viz",
Mustafa Emre Acer52a809002019-06-27 20:41:28176 "//components/url_formatter/tools:format_url",
Sergey Ulanov19240f762019-05-10 22:26:20177 "//components/viz:viz_perftests",
178 "//components/viz:viz_unittests",
Wez57c96392017-12-05 22:19:05179 "//content/shell:content_shell",
180 "//content/test:content_browsertests",
181 "//content/test:content_perftests",
182 "//content/test:content_unittests",
Nathan Zabriskie92461a02020-02-06 20:44:27183 "//gpu:gpu_benchmark",
Wez57c96392017-12-05 22:19:05184 "//gpu:gpu_unittests",
Wez57c96392017-12-05 22:19:05185 "//ipc:ipc_tests",
Sergey Ulanov135ba082017-07-18 19:39:22186 "//media:media_unittests",
Wez57c96392017-12-05 22:19:05187 "//media/midi:midi_unittests",
188 "//media/mojo:media_mojo_unittests",
Sergey Ulanovfbd2fea2017-07-14 01:01:38189 "//mojo",
Oksana Zhuravlova1792d19f2018-02-22 19:13:31190 "//mojo:mojo_unittests",
Wez57c96392017-12-05 22:19:05191 "//net:net_perftests",
Sergey Ulanov6ab219c2019-05-11 00:42:20192 "//storage:storage_unittests",
Michael Spanga0d1ebc82019-02-13 17:45:04193 "//third_party/angle/src/tests:angle_end2end_tests",
194 "//third_party/angle/src/tests:angle_unittests",
Sergey Ulanov6ab219c2019-05-11 00:42:20195 "//third_party/blink/common:blink_common_unittests",
Kent Tamuraef54e402019-02-14 07:18:36196 "//third_party/blink/renderer/controller:blink_unittests",
Sergey Ulanov6ab219c2019-05-11 00:42:20197 "//third_party/blink/renderer/platform:blink_platform_unittests",
198 "//third_party/blink/renderer/platform/heap:blink_heap_unittests",
Blink Reformata30d4232018-04-07 15:31:06199 "//third_party/blink/renderer/platform/wtf:wtf_unittests",
Sergey Ulanov6ab219c2019-05-11 00:42:20200 "//tools/imagediff",
201 "//ui/display:display_unittests",
202 "//ui/events:events_unittests",
Sergey Ulanovfbd2fea2017-07-14 01:01:38203 "//ui/gl:gl_unittests",
Sergey Ulanov6ab219c2019-05-11 00:42:20204 "//ui/latency:latency_unittests",
Peter Kasting8d5c4d62019-09-20 00:16:09205 "//ui/native_theme:native_theme_unittests",
Sergey Ulanov6ab219c2019-05-11 00:42:20206 "//ui/touch_selection:ui_touch_selection_unittests",
Wez57c96392017-12-05 22:19:05207 "//url/ipc:url_ipc_unittests",
Sergey Ulanov6ab219c2019-05-11 00:42:20208 "//v8:gn_all",
Sergey Ulanovfbd2fea2017-07-14 01:01:38209 ]
210 }
211
Yuta Hijikataa7c2c6e2020-11-27 05:20:22212 if (is_win || (is_linux && !is_chromeos_lacros) || is_android) {
John Abd-El-Malek4a9ab592019-10-04 00:40:31213 deps += [
214 "//weblayer/shell:weblayer_shell",
215 "//weblayer/test:weblayer_browsertests",
Bo Liuc516a4c12020-04-12 12:35:18216 "//weblayer/test:weblayer_unittests",
John Abd-El-Malek4a9ab592019-10-04 00:40:31217 ]
Scott Violet68c6ccf2019-11-12 20:27:56218 if (is_android) {
219 deps += [ "//weblayer/browser/android/javatests:weblayer_instrumentation_test_apk" ]
220 }
John Abd-El-Malek002abf22019-09-18 06:32:39221 }
222
Wez12ce94a2018-03-27 03:42:25223 if (!is_ios && !is_android) {
Wez115d4312018-02-17 04:05:19224 deps += [
225 "//components/cronet:cronet_tests",
226 "//components/cronet:cronet_unittests",
Sadrul Habib Chowdhury0b46e18f2019-01-30 05:25:50227 "//components/viz/demo:viz_demo",
Wez115d4312018-02-17 04:05:19228 ]
229 }
230
Jordan Bayles331c1b52019-12-23 17:56:28231 if (enable_openscreen) {
232 deps += [ "//chrome/browser/media/router:openscreen_unittests" ]
233 }
234
scottmg2f97ee122017-05-12 17:50:37235 if (!is_ios && !is_fuchsia) {
pkotwicz558d5252015-10-19 21:09:55236 deps += [
stipc6de0f492016-06-01 20:05:03237 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55238 "//chrome/test:unit_tests",
239 "//components:components_browsertests",
pkotwicz558d5252015-10-19 21:09:55240 "//device:device_unittests",
varkha5aa18a02017-05-31 22:39:50241 "//google_apis/gcm:mcs_probe",
mcasasd2f53ea2016-06-24 19:24:27242 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29243 "//media/cast:cast_unittests",
ynovikov55e66c22017-02-16 15:45:37244 "//third_party/angle/src/tests:angle_white_box_tests",
nednguyenc42bf912016-01-27 01:39:28245 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35246 ]
scottmg2f97ee122017-05-12 17:50:37247 } else if (is_ios) {
Rohit Rao45623282019-11-15 17:59:31248 deps += [
249 "//ios:all",
250 "//third_party/crashpad/crashpad:crashpad_tests",
251 ]
Scott Graham677e79102017-08-15 20:07:37252 } else if (is_fuchsia) {
Scott Graham4411204b2018-10-03 19:46:26253 deps += [
254 ":d8_fuchsia",
Kevin Marshalld9141fe2019-01-31 18:22:52255 "//fuchsia:gn_all",
Nicolas Ouellet-Payeurc7a9d262019-05-14 01:00:25256 "//headless:headless_non_renderer",
Scott Graham4411204b2018-10-03 19:46:26257 ]
sherouk53f0f1a2015-08-03 15:59:35258 }
dprankee2ef3822015-02-24 21:42:18259
scottmg34fb7e52014-12-03 23:27:24260 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05261
tfarina4aa9edc2015-10-26 22:14:02262 if (enable_extensions) {
thestig344fe3f2017-06-08 23:42:13263 deps += [
264 "//extensions:extensions_browsertests",
265 "//extensions:extensions_unittests",
Karandeep Bhatiaef35fb22020-11-25 21:29:14266 "//extensions/browser/api/declarative_net_request/filter_list_converter",
thestig344fe3f2017-06-08 23:42:13267 "//extensions/shell:app_shell_unittests",
268 ]
rockot2f1326e2015-02-23 23:53:51269 }
270
garykac3eddb5b2015-04-17 23:16:38271 if (enable_remoting) {
272 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05273 }
274
dprankee2ef3822015-02-24 21:42:18275 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19276 deps += [
277 "//ui/views:views_unittests",
Allen Bauer486d8872020-04-17 03:07:11278 "//ui/views/examples:views_examples",
Allen Bauer0678d772020-05-11 22:25:17279 "//ui/views/examples:views_examples_unittests",
Allen Bauer486d8872020-04-17 03:07:11280 "//ui/views/examples:views_examples_with_content",
ellyjones41c21fe2016-06-09 17:10:19281 ]
James Robinson060f2e32014-09-10 22:31:37282 }
283
jamescook4c02a0b2016-12-02 23:14:42284 if (use_aura) {
285 deps += [
Robert Liaoee8a6672019-08-15 21:02:03286 "//ui/aura:aura_demo",
mswda0133e62016-02-16 20:50:02287 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02288 "//ui/wm:wm_unittests",
289 ]
dprankee2ef3822015-02-24 21:42:18290 }
291
292 if (use_ozone) {
kylechar5c9a1fb62016-10-21 13:17:25293 deps += [
294 "//ui/ozone",
Michael Spanga9cf1382020-09-26 07:10:57295 "//ui/ozone:unittests",
Sergey Ulanov58afcdc2018-06-23 22:48:20296 "//ui/ozone/demo",
kylechar5c9a1fb62016-10-21 13:17:25297 ]
[email protected]a306aaa2014-05-24 13:21:50298 }
299
Michael Spanga9cf1382020-09-26 07:10:57300 if (use_x11) {
Maksim Sisova4d1cfbe2020-06-16 07:58:37301 deps += [ "//ui/platform_window/x11:x11_unittests" ]
thomasandersonaf830f3a2016-12-07 04:52:02302 }
303
Roger Tawaf761bb62018-10-09 20:19:27304 if (is_win) {
305 deps += [
306 "//chrome/credential_provider",
307 "//chrome/credential_provider/test:gcp_unittests",
308 ]
309 }
310
Nicolas Ouellet-Payeur6da29fe2019-06-12 17:47:45311 if (is_win && (target_cpu == "x86" || target_cpu == "x64")) {
312 deps += [ "//chrome/browser/browser_switcher/bho:browser_switcher_dlls" ]
313 }
314
Sean McAllisterdeaa7402020-07-31 04:42:54315 if (is_win || is_linux || is_chromeos) {
Nicolas Ouellet-payeur0d23b5cf2018-10-19 14:53:07316 deps += [
317 "//tools/traffic_annotation/auditor:traffic_annotation_auditor",
318 "//tools/traffic_annotation/auditor:traffic_annotation_auditor_unittests",
319 ]
320 }
321
thakisdc11faf52017-04-25 21:49:42322 if (is_mac) {
323 deps += [ "//chrome/installer/gcapi_mac:gcapi_example" ]
324 }
325
Adenilson Cavalcanti3d10c9b2020-06-03 09:32:10326 # Allow building md5sum tool for other OSes (android is added below).
327 # For Windows, see: crbug.com/1090428.
328 # TODO(cavalcantii): move it out of 'android' folder.
329 if (!is_win) {
330 deps += [ "//tools/android/md5sum" ]
331 }
332
[email protected]5a8d5162014-04-12 01:19:16333 if (is_android) {
[email protected]26046b52014-07-16 00:11:03334 deps += [
pkotwicze2dae8b2015-11-03 20:12:55335 "//base:base_junit_tests",
Eric Stevensonc3c269a32017-08-02 21:40:06336 "//base/android/jni_generator:jni_generator_tests",
dpranke244f973d62015-11-20 05:38:10337 "//base/android/linker:chromium_android_linker",
Peter Wenabe92ed72020-09-17 21:37:32338 "//build/android:android_lint_test",
cjhopman3d85c6d2014-11-18 03:39:38339 "//build/android/gyp/test:hello_world",
agrievea350dbdb2017-07-05 15:27:17340 "//build/android/stacktrace:java_deobfuscate",
Sky Malice43955522020-01-07 19:55:56341 "//build/config/android/test/proto:test_build_protos",
Peter Kotwiczda2f11102020-10-09 05:29:50342 "//chrome/android/monochrome:monochrome_public_apk_checker",
Egor Paskofd5c84d62018-04-11 20:20:11343 "//chrome/android/webapk/shell_apk:maps_go_webapk",
pkotwicz2dd67962016-05-10 00:21:08344 "//chrome/android/webapk/shell_apk:webapk",
Peter Kotwiczf4f4cd62019-06-11 19:57:38345 "//chrome/android/webapk/shell_apk/prepare_upload_dir:prepare_webapk_shell_upload_dir",
danakjcb3fb4c02019-06-28 17:43:00346 "//chrome/test:android_browsertests",
Tao Bai59eb7dd2020-04-17 04:16:14347 "//components:components_junit_tests",
pkotwicze2dae8b2015-11-03 20:12:55348 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45349 "//content/shell/android:content_shell_apk",
mcasaseddfbeb2017-05-10 04:47:49350 "//device:device_junit_tests",
markdittmer6e70beb82016-05-02 05:40:47351 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55352 "//net/android:net_junit_tests",
Reilly Grant20121a112020-07-28 02:10:07353 "//services:services_junit_tests",
jbudorick5ef42902016-04-07 04:17:11354 "//testing/android/junit:junit_unit_tests",
John Budorick3fa43152017-06-12 19:13:20355 "//third_party/catapult/devil",
pkotwicz8adff4e2015-12-17 21:55:45356 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10357 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49358 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34359 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12360 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
361 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
Peter Kotwicz3ecc5cc2020-12-01 20:18:03362 "//tools/android/errorprone_plugin/test:errorprone_plugin_tests",
dgn28050da2015-10-19 10:16:43363 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
newt9e226032016-01-26 01:30:15364 "//ui/android:ui_junit_tests",
Clark DuVallb68758be2019-11-04 19:32:06365 "//weblayer/public/java:client_aar",
David Staessens96d56fb2019-10-23 07:35:05366 "//weblayer/shell/android:weblayer_shell_apk",
Tim Volodine41aca502019-12-11 17:55:55367 "//weblayer/shell/android:weblayer_support_apk",
dprankee2ef3822015-02-24 21:42:18368 ]
369 deps -= [
rockot9c67e5f2015-03-12 20:01:21370 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18371 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03372 ]
373
pkotwicz92e2e2312015-12-15 22:29:46374 if (!is_component_build) {
375 deps += [
John Budorickbc3571aa2019-04-25 02:20:06376 "//components/cronet/android:cronet_package_android",
jbudorickdfc01f62016-06-01 15:42:12377 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46378 "//components/cronet/android:cronet_sample_apk",
379 "//components/cronet/android:cronet_sample_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46380 "//components/cronet/android:cronet_test_instrumentation_apk",
Wez3042f15a2018-02-24 01:05:49381 "//components/cronet/android:cronet_unittests_android",
pkotwicz92e2e2312015-12-15 22:29:46382 ]
383 }
384
pkotwicz061c5a42015-09-30 02:16:54385 if (!is_chromecast) {
386 deps += [
Robbie McElrath0b2663c2019-12-05 20:49:06387 "//android_webview:empty_group",
agrieveb08e2f5b2015-12-29 01:17:30388 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44389 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05390 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55391 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54392 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10393 "//chrome/android:chrome_public_test_apk",
Peter E Conne4f9a4f2020-04-14 15:43:20394 "//chrome/browser/android/examples/custom_tabs_client:custom_tabs_client_example_apk",
Theresa Wellington565178d2020-04-03 20:43:51395 "//chrome/browser/android/examples/partner_browser_customizations_provider:partner_browser_customizations_example_apk",
pkotwicz061c5a42015-09-30 02:16:54396 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-12-28 20:23:11397 "//content/shell/android:content_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54398 ]
399 }
400
dgnd1e190d2017-03-17 13:34:49401 if (enable_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55402 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45403 }
dprankedb5527d72015-03-08 04:22:47404 }
405
David 'Digit' Turner799d2122018-04-18 08:10:57406 # NOTE: The following should really be 'is_android', but the fuzzing build
407 # seems currently broken for this platform at the moment, and the
408 # corresponding code build and works on Linux unmodified.
409 # See instructions in the corresponding BUILD.gn.
Sean McAllisterdeaa7402020-07-31 04:42:54410 if (is_linux || is_chromeos) {
David 'Digit' Turner799d2122018-04-18 08:10:57411 deps +=
412 [ "//third_party/android_crazy_linker:android_crazy_linker_zip_fuzzer" ]
413 }
414
Anand K. Mistry5cd170e2018-11-06 00:25:21415 if (is_linux || is_chromeos) {
416 # This is only used by ChromeOS, but we want maximal fuzzer coverage, so
417 # run it under linux too.
418 deps += [
419 "//third_party/minizip:minizip_compress_fuzzer",
420 "//third_party/minizip:minizip_uncompress_fuzzer",
421 ]
422 }
423
Sean McAllisterdeaa7402020-07-31 04:42:54424 if (is_linux || is_chromeos || is_android) {
dprankefd1813272015-04-13 23:56:00425 deps += [
Mark Mentovaiebb9ddd62017-09-25 17:24:41426 "//third_party/breakpad:breakpad_unittests",
427 "//third_party/breakpad:core-2-minidump",
428 "//third_party/breakpad:generate_test_dump",
429 "//third_party/breakpad:minidump-2-core",
Benoit Lizee34d38a2018-06-18 09:19:02430 "//tools/dump_process_memory:dump_process",
dprankefd1813272015-04-13 23:56:00431 ]
432 }
433
Yuta Hijikata05f38002020-12-17 00:49:24434 if (is_chromeos_ash) {
dpranke6293d252015-04-14 19:12:00435 deps += [
James Cookf8a2bf72017-10-16 18:51:39436 "//ash:ash_unittests",
Jiaquan He68b28e22018-06-12 06:58:09437 "//ash/app_list:app_list_demo",
438 "//ash/app_list:app_list_unittests",
Darren Shen50e14952019-05-14 03:40:43439 "//ash/keyboard/ui:keyboard_unittests",
Ben Pastene834e39882020-04-16 17:39:19440 "//chrome/browser/metrics/perf:profile_provider_unittest",
G. Silvad21fb1542019-03-15 02:17:33441 "//chrome/test:usage_time_limit_unittests",
dpranke6293d252015-04-14 19:12:00442 "//chromeos:chromeos_unittests",
khorimoto4c539952016-12-04 02:37:11443 "//chromeos/components:chromeos_components_unittests",
James Hawkins813085e2018-03-30 18:56:41444 "//chromeos/components/proximity_auth:proximity_auth_unittests",
Lloyd Piqueef3a2ab2020-10-15 19:29:09445 "//components/exo/wayland:wayland_client_compatibility_tests",
jamescook4c02a0b2016-12-02 23:14:42446 "//components/session_manager/core",
Amr Aboelkher1735ed72020-12-01 19:01:09447 "//third_party/shell-encryption:shell_encryption_unittests",
dpranke6293d252015-04-14 19:12:00448 "//ui/chromeos:ui_chromeos_unittests",
449 ]
450 }
451
Yuta Hijikata05f38002020-12-17 00:49:24452 if (is_chromeos_ash || is_mac || is_win) {
dprankefd1813272015-04-13 23:56:00453 deps += [
454 "//rlz:rlz_id",
455 "//rlz:rlz_lib",
456 "//rlz:rlz_unittests",
457 ]
458 }
459
Sean McAllisterdeaa7402020-07-31 04:42:54460 if (is_linux || is_chromeos) {
dprankedb5527d72015-03-08 04:22:47461 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06462 deps += [
dpranke2bc89212015-11-18 00:24:43463 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47464 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47465 "//net:quic_client",
466 "//net:quic_server",
467 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18468 "//sandbox/linux:sandbox_linux_unittests",
Patrik Höglundd9dfb672018-02-19 11:55:36469 "//testing:empty_main",
hiroshigee6d374c2015-02-24 07:54:06470 ]
dnicoara8c6aa8e2015-03-11 23:20:32471
mbjorgea12e5a52016-05-31 22:15:17472 if (use_dbus) {
473 deps += [
474 "//dbus:dbus_test_server",
475 "//dbus:dbus_unittests",
476 ]
477 }
478
dpranke2bc89212015-11-18 00:24:43479 if (is_chrome_branded && is_official_build) {
480 # TODO(dpranke): add the linux_dump_symbols flag?
481 deps += [ "//chrome:linux_symbols" ]
482 }
dprankedb5527d72015-03-08 04:22:47483 }
484
Yuta Hijikata05f38002020-12-17 00:49:24485 if (is_ios || is_win || (is_linux || is_chromeos_lacros)) {
sherouke1859f92015-08-05 10:19:10486 deps += [
487 "//base:base_i18n_perftests",
sherouk710734d2015-09-02 19:02:58488 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10489 ]
490 }
491
Alexis Hetu56d21552018-08-10 19:22:41492 if ((is_win || is_mac || is_linux || is_chromeos || is_fuchsia) &&
sugoia1b7b922016-12-13 12:52:49493 (target_cpu == "x86" || target_cpu == "x64")) {
sugoiabe91892016-09-20 12:53:51494 deps += [ "//third_party/swiftshader" ]
495 }
496
thakis507c15c2016-06-01 00:26:01497 # TODO(GYP): Figure out which of these should (and can) build
498 # for chromeos/ios.
Yuta Hijikata05f38002020-12-17 00:49:24499 if (!is_chromeos_ash && !is_ios && !is_fuchsia) {
tfarina9e7cf702015-02-23 21:13:44500 deps += [
dprankedb5527d72015-03-08 04:22:47501 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10502 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47503 "//cc:cc_perftests",
dprankedb5527d72015-03-08 04:22:47504 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47505 "//device:device_unittests",
506 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47507 "//gin:gin_unittests",
Antoine Labourc6ade252017-10-19 01:01:16508 "//gpu:command_buffer_perftests",
Takuto Ikutaf5333252019-11-06 16:07:08509 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10510 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47511 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47512 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00513 "//net:dump_cache",
dprankefd1813272015-04-13 23:56:00514 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47515 "//ui/compositor:compositor_unittests",
516 ]
517
agrieve473155b42015-12-28 20:23:11518 if (!is_android) {
519 deps += [
520 "//chrome/test:load_library_perf_tests",
521 "//chrome/test:sync_performance_tests",
John Chen1a0f3672020-02-14 16:20:29522 "//chrome/test/chromedriver:chromedriver",
agrieve473155b42015-12-28 20:23:11523 "//courgette:courgette",
524 "//courgette:courgette_fuzz",
525 "//courgette:courgette_minimal_tool",
526 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30527 "//media/cast:generate_barcode_video",
528 "//media/cast:generate_timecode_audio",
agrieve473155b42015-12-28 20:23:11529 "//net:crash_cache",
Nico Weber2d5aa49bc2020-01-28 20:59:42530 "//net:net_watcher", # TODO(GYP): This should be conditional on
531 # use_v8_in_net
agrieve473155b42015-12-28 20:23:11532 "//net:run_testserver",
533 "//net:stress_cache",
534 "//net:tld_cleanup",
535 "//ppapi:pepper_hash_for_uma",
536 "//ppapi:ppapi_perftests",
agrieve473155b42015-12-28 20:23:11537 "//third_party/leveldatabase:env_chromium_unittests",
538 "//third_party/libaddressinput:libaddressinput_unittests",
539 ]
540 }
dpranke7e19b472015-11-13 00:49:33541
Nico Weber38598902020-03-12 12:38:22542 if (is_android) {
John Chend03c396a2020-02-21 23:33:08543 deps += [ "//chrome/test/chromedriver:chromedriver($host_toolchain)" ]
544 }
545
jamescookfbbf9112016-06-14 16:24:49546 if (enable_extensions) {
Michael Giuffrida8ca5b932019-08-08 15:43:12547 deps += [ "//extensions/shell:app_shell" ]
Yuta Hijikata05f38002020-12-17 00:49:24548 if ((is_linux || is_chromeos_lacros) && is_official_build) {
Michael Giuffrida4b0cdbb32018-03-16 19:13:15549 deps += [ "//extensions/shell:app_shell_linux_symbols" ]
550 }
jamescookfbbf9112016-06-14 16:24:49551 }
552
dprankedb5527d72015-03-08 04:22:47553 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13554 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43555
Sean McAllisterdeaa7402020-07-31 04:42:54556 if (is_linux || is_chromeos) {
dpranke2bc89212015-11-18 00:24:43557 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37558 deps += [ "//components/nacl/loader:nacl_helper" ]
559
560 if (enable_nacl_nonsfi) {
561 deps += [
562 "//components/nacl/loader:helper_nonsfi",
563 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
564 ]
565 }
dpranke2bc89212015-11-18 00:24:43566 }
dprankedb5527d72015-03-08 04:22:47567 }
568
xhwangfa2d9d472015-12-18 23:31:18569 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10570 deps += [ "//media:ffmpeg_regression_tests" ]
571 }
dprankefd1813272015-04-13 23:56:00572 }
573
Fabrice de Gans-Riberid3ccfd32019-07-30 02:36:05574 if (is_fuchsia) {
575 deps += [ "//chrome/test/chromedriver:chromedriver($host_toolchain)" ]
576 }
577
Yuta Hijikata05f38002020-12-17 00:49:24578 if (is_android || (is_linux || is_chromeos_lacros)) {
dprankefd1813272015-04-13 23:56:00579 deps += [
dprankefd1813272015-04-13 23:56:00580 "//components/network_hints/browser",
Nico Weber73db2f532020-04-21 19:40:18581 "//content/public/app",
Oksana Zhuravlova32f0a132018-02-27 00:12:55582 "//mojo:mojo_perftests",
rockot734fb662016-10-15 16:41:30583 "//services/service_manager/public/cpp",
dprankefd1813272015-04-13 23:56:00584 "//testing/gmock:gmock_main",
Mark Mentovaiebb9ddd62017-09-25 17:24:41585 "//third_party/breakpad:dump_syms($host_toolchain)",
586 "//third_party/breakpad:microdump_stackwalk($host_toolchain)",
587 "//third_party/breakpad:minidump_dump($host_toolchain)",
588 "//third_party/breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00589 ]
590
agrieve473155b42015-12-28 20:23:11591 if (!is_android) {
592 deps += [
agrieve473155b42015-12-28 20:23:11593 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55594 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b42015-12-28 20:23:11595 "//media/cast:cast_benchmarks",
596 "//media/cast:tap_proxy",
597 "//skia:filter_fuzz_stub",
598 "//skia:image_operations_bench",
agrieve473155b42015-12-28 20:23:11599 "//ui/snapshot:snapshot_unittests",
agrieve473155b42015-12-28 20:23:11600 ]
dprankefd1813272015-04-13 23:56:00601
agrieve473155b42015-12-28 20:23:11602 if (!is_debug && !is_component_build) {
603 deps += [ "//chrome/tools/service_discovery_sniffer" ]
604 }
dprankefd1813272015-04-13 23:56:00605 }
606
dprankedb5527d72015-03-08 04:22:47607 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44608 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59609 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44610 }
dprankedb5527d72015-03-08 04:22:47611 }
612 }
613
614 if (is_mac) {
615 deps += [
Mark Mentovaiebb9ddd62017-09-25 17:24:41616 "//third_party/breakpad:crash_inspector",
617 "//third_party/breakpad:dump_syms",
Alexander Surkove8851ed2020-09-03 21:03:24618
619 # The following are accessibility API tools.
Alexander Surkov836d76c2020-09-24 19:37:17620 "//tools/accessibility/inspect:ax_dump_events",
Alexander Surkove8851ed2020-09-03 21:03:24621 "//tools/accessibility/inspect:ax_dump_tree",
tfarina9e7cf702015-02-23 21:13:44622 ]
dpranke43760592014-11-08 02:59:57623 deps -= [
brettw011138d2015-10-21 03:05:38624 # Mojo in GN contains some things which are never compiled in GYP on Mac,
625 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10626 "//mojo",
dprankecf8465db72014-11-10 23:51:22627 ]
dprankefd1813272015-04-13 23:56:00628 }
629
630 if (is_win) {
631 deps += [
632 "//base:pe_image_test",
John Budorickeee513d2019-11-08 00:38:52633 "//chrome/chrome_cleaner",
Patrick Monette0196be22019-05-10 03:33:15634 "//chrome/chrome_elf:chrome_elf_unittests",
635 "//chrome/chrome_elf:dll_hash_main",
S. Ganeshf1734082018-05-23 03:34:07636 "//chrome/elevation_service:elevation_service_unittests",
anantaf2e54a92016-05-28 00:39:16637 "//chrome/install_static:install_static_unittests",
Xi Chengec65b3b2018-02-02 20:42:02638 "//chrome/installer/gcapi",
grt734e87b2015-07-06 19:36:43639 "//chrome/installer/setup:setup_unittests",
Xi Chengd47af342018-04-24 02:36:33640 "//chrome/notification_helper:notification_helper_unittests",
Cliff Smolinsky56ac67b2019-05-08 14:20:36641 "//chrome/test:delayloads_unittests",
pastarmovj02d5cc992016-12-05 17:55:24642 "//cloud_print:cloud_print_unittests",
dprankefd1813272015-04-13 23:56:00643 "//components/wifi:wifi_test",
Samuel Huang577ef6c2018-03-13 18:19:34644 "//components/zucchini",
dprankefd1813272015-04-13 23:56:00645 "//net:quic_client",
646 "//net:quic_server",
647 "//sandbox/win:pocdll",
648 "//sandbox/win:sandbox_poc",
649 "//sandbox/win:sbox_integration_tests",
650 "//sandbox/win:sbox_unittests",
651 "//sandbox/win:sbox_validation_tests",
652 "//testing/gtest:gtest_main",
ajwongbf193272017-03-16 00:00:44653 "//third_party/tcmalloc:addr2line-pdb",
Xi Chengec65b3b2018-02-02 20:42:02654
655 # The following two are accessibility API debugging tools.
656 "//tools/accessibility/inspect:ax_dump_events",
657 "//tools/accessibility/inspect:ax_dump_tree",
robliaofd54b5c2017-01-13 00:41:30658 "//tools/win/chromeexts:chromeexts",
dprankefd1813272015-04-13 23:56:00659 ]
fdorayfb048bff2016-04-28 22:07:36660
Nico Weber300365f2018-02-23 20:45:04661 # TODO(thakis): Enable this in cross builds, https://crbug.com/799827
662 if (!(is_component_build && is_debug && target_cpu == "x86") &&
663 host_os == "win") {
Mike Meadeaf555182018-03-21 23:26:20664 deps += [ "//chrome/test/mini_installer:mini_installer_tests" ]
fdorayfb048bff2016-04-28 22:07:36665 }
scottmg6ea9ff3e2017-05-19 00:08:16666 } else if (!is_android && !is_ios && !is_fuchsia) {
Mark Mentovaiebb9ddd62017-09-25 17:24:41667 deps += [ "//third_party/breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34668 }
rsesek985bd812016-04-26 21:06:15669
slance9d62f2015-11-04 01:15:01670 if (is_chromecast) {
Sergey Ulanov07406542019-12-18 00:09:43671 deps += [ "//chromecast:cast_test_lists" ]
672
673 if (!is_fuchsia) {
674 deps += [ "//chromecast:cast_shell" ]
675 }
Randy Rossi2caf0d82019-04-15 17:17:04676 if (enable_extensions && use_aura) {
Randy Rossie1441e32020-03-27 18:17:55677 deps += [ "//chrome/browser/resources/chromeos/accessibility:build" ]
Randy Rossi2caf0d82019-04-15 17:17:04678 }
slance9d62f2015-11-04 01:15:01679 }
miu45b848fe2015-11-26 01:23:29680
Joshua Perazaec757a352020-11-11 04:05:09681 if (is_mac || is_win || is_android || is_linux || is_chromeos) {
rsesek985bd812016-04-26 21:06:15682 deps += [
Mark Mentovai1782adb2017-11-08 05:11:27683 "//third_party/crashpad/crashpad:crashpad_tests",
rsesek985bd812016-04-26 21:06:15684 "//third_party/crashpad/crashpad/handler:crashpad_handler",
685 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
686 ]
687 }
688
Peter Beverloo69948322017-07-28 19:01:57689 if (enable_message_center) {
690 deps += [ "//ui/message_center:message_center_unittests" ]
691 }
692
scottmg2f97ee122017-05-12 17:50:37693 if (!is_android && !is_ios && !is_fuchsia) {
scheib35dc9202016-04-26 22:35:43694 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
695 }
696
Sean McAllisterdeaa7402020-07-31 04:42:54697 if (is_win || is_linux || is_chromeos) {
Xiaohan Wang5e2c87a2020-03-27 20:05:13698 deps += [ "//mojo" ]
sky97b65592015-11-02 20:08:25699 }
700
Sean McAllisterdeaa7402020-07-31 04:42:54701 if (is_mac || is_linux || is_chromeos || is_android || is_fuchsia) {
Oystein Eftevaaga9439b922018-01-08 19:30:14702 deps += [ "//third_party/perfetto:all" ]
703 }
704
Sean McAllisterdeaa7402020-07-31 04:42:54705 if (is_win || is_mac || is_linux || is_chromeos) {
Victor Costanaff027744a32018-11-19 21:05:32706 deps += [ "//third_party/sqlite:sqlite_shell" ]
707 }
708
Yuta Hijikata05f38002020-12-17 00:49:24709 if ((is_linux || is_chromeos_lacros) && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47710 # TODO(GYP): Figure out if any of these should be in gn_all
711 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45712 deps += [
dprankedb5527d72015-03-08 04:22:47713 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47714 "//chrome/tools/convert_dict",
715 "//components/constrained_window:unit_tests",
dprankedb5527d72015-03-08 04:22:47716 "//components/metrics:serialization",
dprankedb5527d72015-03-08 04:22:47717 "//components/rappor:unit_tests",
Colin Blundell932b43742018-03-13 14:51:25718 "//components/services/filesystem:filesystem_service_unittests",
dprankedb5527d72015-03-08 04:22:47719 "//components/sessions:unit_tests",
720 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30721 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47722 "//storage/browser:dump_file_system",
723 "//third_party/angle:libANGLE",
724 "//third_party/angle:libEGL",
725 "//third_party/angle:libGLESv2",
pwnallcfb346f12017-03-02 22:01:37726 "//third_party/leveldatabase:leveldb_test_targets",
dprankedb5527d72015-03-08 04:22:47727 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47728 "//third_party/opus:opus_compare",
729 "//third_party/opus:opus_demo",
dpranke244f973d62015-11-20 05:38:10730 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47731 "//third_party/opus:test_opus_decode",
732 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47733 "//third_party/opus:test_opus_padding",
dprankedb5527d72015-03-08 04:22:47734 "//ui/display/types",
735 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47736 ]
dprankeb0713542015-07-31 21:07:21737
ossy.szegedd584dd72016-11-21 11:36:18738 if (enable_nacl) {
739 deps += [ "//native_client/src/trusted/debug_stub:gdb_rsp_unittest" ]
740 }
741
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16742 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b42015-12-28 20:23:11743 if (!is_android) {
744 deps += [ "//chrome/test:load_library_perf_tests" ]
745 }
Dirk Pranke4dabe802017-11-02 07:18:55746 if (enable_nacl) {
747 deps += [ "//native_client/src/trusted/platform_qualify:vcpuid" ]
748 }
749 deps += [ "//third_party/libjpeg_turbo:simd_asm" ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16750 }
Sean McAllisterdeaa7402020-07-31 04:42:54751 if ((is_linux || is_chromeos) && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51752 deps += [ "//v8:v8_shell" ]
dpranke807f602b2015-03-17 23:20:56753 }
dprankedb5527d72015-03-08 04:22:47754 }
dprankeb0713542015-07-31 21:07:21755
Andrew Grievefebea022020-08-07 17:17:53756 if (((is_linux || is_chromeos) && !is_chromecast) ||
757 (is_win && use_libfuzzer) || (use_libfuzzer && is_mac)) {
aizatskyaf496112016-04-15 19:26:32758 deps += [
Luum Habtemariam9c7c3e52019-08-05 22:26:22759 "//chrome/services/ipp_parser/public/cpp:fuzzers",
aizatskyaf496112016-04-15 19:26:32760 "//testing/libfuzzer/fuzzers",
Dominik Röttsches5c56793f2020-11-12 08:51:52761 "//third_party/freetype-testing:freetype_truetype_render_fuzzer",
Max Moroz174bee52019-02-21 00:11:28762 "//third_party/grpc:fuzzers",
aizatsky3f560172016-06-03 23:26:06763 "//third_party/icu/fuzzers",
noel6997c5c2017-04-13 14:12:18764 "//third_party/qcms:fuzzers",
Alex Chauab640752020-07-09 15:43:49765 "//third_party/ukey2/fuzzers",
Lei Zhang1295fa762017-12-12 00:49:16766 "//third_party/zlib/contrib/tests/fuzzers",
aizatskyaf496112016-04-15 19:26:32767 ]
Jonathan Metzman2656ecd2018-11-21 08:22:41768
769 # TODO(crbug.com/906751): Get the libFuzzer tests working on Windows.
770 # Disable them for now becaue they cause the Windows clang ToT builder to
771 # fail.
772 if (!is_win) {
773 deps += [ "//testing/libfuzzer/tests:libfuzzer_tests" ]
774 }
aizatskyaf496112016-04-15 19:26:32775 }
776
sbc92b4d572016-02-18 03:28:23777 if (enable_nacl) {
778 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
779 }
780
Sean McAllisterdeaa7402020-07-31 04:42:54781 if ((is_linux || is_chromeos) && use_ozone) {
skyostilfe116162016-02-26 20:53:33782 deps += [
Nicolas Ouellet-Payeurc7a9d262019-05-14 01:00:25783 "//headless:headless_non_renderer",
skyostilfe116162016-02-26 20:53:33784 "//headless:headless_tests",
785 ]
786 }
Christopher Grant193648b2017-06-07 15:08:36787
788 if (enable_vr) {
Tibor Goldschwendt213a42202017-10-17 20:13:44789 deps += [
790 "//chrome/browser/vr:vr_common_perftests",
791 "//chrome/browser/vr:vr_common_unittests",
Christopher Grant55c15892017-11-21 14:03:32792 "//chrome/browser/vr:vr_pixeltests",
bsheedy3b8ce262019-03-18 18:40:33793 "//tools/perf/contrib/vr_benchmarks:vr_perf_tests",
Tibor Goldschwendt213a42202017-10-17 20:13:44794 ]
Yash Malik8109b5bb2017-07-13 22:40:03795 if (is_android) {
bsheedy3b8ce262019-03-18 18:40:33796 deps += [ "//chrome/browser/android/vr:vr_android_unittests" ]
Yash Malik8109b5bb2017-07-13 22:40:03797 }
Christopher Grant193648b2017-06-07 15:08:36798 }
Scott Grahamf24e3742017-08-11 17:50:22799
Peng Huang191594892018-08-25 02:17:26800 if (enable_vulkan) {
801 deps += [ "//gpu/vulkan/demo" ]
802 }
Martin Robinson297928532018-09-07 18:11:18803
804 if (use_atk) {
Martin Robinsone4fddede2018-09-18 10:30:21805 deps += [
806 "//tools/accessibility/inspect:ax_dump_events",
807 "//tools/accessibility/inspect:ax_dump_tree",
808 ]
Martin Robinson297928532018-09-07 18:11:18809 }
Alessio Bazzica383dcef92019-02-08 14:14:42810
Kai Ninomiya873ceec2020-01-30 04:19:28811 if (build_dawn_tests) {
Elly Fong-Jonesb03817a2019-11-14 18:10:12812 deps += [
Corentin Wallezc7f622c2020-04-24 16:18:32813 "//third_party/dawn/src/fuzzers:dawn_fuzzers",
Corentin Wallezf9755ae2020-04-14 13:31:02814 "//third_party/dawn/src/tests:dawn_end2end_tests",
815 "//third_party/dawn/src/tests:dawn_unittests",
Elly Fong-Jonesb03817a2019-11-14 18:10:12816 ]
817 }
818
Alessio Bazzica383dcef92019-02-08 14:14:42819 # PFFFT.
820 deps += [
821 "//third_party/pffft:fuzzers",
822 "//third_party/pffft:pffft_benchmark",
823 "//third_party/pffft:pffft_unittest",
824 ]
Daniel Ruberyc81676b2020-05-13 00:48:27825
826 # OpenCV
827 deps += [ "//third_party/opencv:opencv_emd_fuzzer" ]
tfarinafbc992492017-03-08 22:44:04828}
829
Maksim Sisov25c86c82020-08-18 19:25:08830# TODO(https://crbug.com/1112776): ensure remoting is functional on Linux builds with
831# ozone. We also need to figure out what to do with remoting_host that is set for
832# use_x11 && is_linux. See remoting/remoting_options.gni. For now, just allow to
833# enable remoting for is_linux && use_x11 && use_ozone.
834if ((is_linux || is_chromeos || is_win) && enable_remoting &&
835 (use_x11 || !use_ozone)) {
Takuto Ikuta9d11eb12018-11-20 02:30:00836 # This group is used for network annotation check test.
837 group("shipped_binaries") {
838 deps = [
839 "//chrome:chrome",
Yuwei Huang256df172019-10-01 00:55:12840 "//remoting/client",
Takuto Ikuta9d11eb12018-11-20 02:30:00841 "//remoting/host:host",
Nicolas Ouellet-payeur30c7f732019-08-20 12:08:26842 "//tools/traffic_annotation/summary:annotations_xml",
Takuto Ikuta9d11eb12018-11-20 02:30:00843 ]
Joe Mason448d37b5d2019-12-11 16:00:50844
845 if (is_win) {
846 deps += [ "//chrome/chrome_cleaner:shipped_binaries" ]
847 }
Takuto Ikuta9d11eb12018-11-20 02:30:00848 }
849}
850
Scott Graham677e79102017-08-15 20:07:37851if (is_fuchsia) {
852 # TODO(https://crbug.com/731217): This can't practically be in //v8 without
853 # duplicating all the Fuchsia running infrastructure there.
Wezabe2d752020-02-11 17:12:23854 cr_fuchsia_package("d8_fuchsia_pkg") {
Kevin Marshall57a19db2018-09-12 20:07:05855 testonly = true
Kevin Marshall39b4aa82018-06-23 00:12:15856 binary = "//v8:d8"
857 package_name_override = "d8"
858 }
859
860 fuchsia_package_runner("d8_fuchsia") {
Kevin Marshall57a19db2018-09-12 20:07:05861 testonly = true
Kevin Marshall39b4aa82018-06-23 00:12:15862 package = ":d8_fuchsia_pkg"
863 package_name_override = "d8"
Scott Graham677e79102017-08-15 20:07:37864 }
865}
866
tfarinafbc992492017-03-08 22:44:04867# TODO(GYP_GONE): Figure out if we really need this target or if there's
868# some better way to specify things.
869if (is_win) {
870 group("chrome_official_builder_no_unittests") {
871 deps = [
probergefe476002017-06-23 14:29:01872 "//chrome/common/win:eventlog_provider",
Roger Tawa5cb75d72018-11-09 21:56:38873 "//chrome/credential_provider",
tfarinafbc992492017-03-08 22:44:04874 "//chrome/installer/gcapi",
875 "//chrome/installer/mini_installer",
Joshua Pawlickib7c32d302019-09-09 20:19:39876 "//chrome/updater/win/installer",
tfarinafbc992492017-03-08 22:44:04877 "//cloud_print",
878 "//cloud_print/virtual_driver/win/port_monitor:copy_gcp_portmon_binaries",
879 "//components/policy:pack_policy_templates",
Samuel Huang577ef6c2018-03-13 18:19:34880 "//components/zucchini",
tfarinafbc992492017-03-08 22:44:04881 "//courgette",
882 "//courgette:copy_courgette_binaries",
Koji Ishii4adc9c072020-09-07 04:03:43883 "//third_party/hyphenation-patterns",
holteb87f01f52017-04-10 20:45:53884 "//tools/metrics:metrics_metadata",
tfarinafbc992492017-03-08 22:44:04885 ]
886
887 if (target_cpu == "x86") {
888 if (is_clang) {
Nico Weber94d731c12017-07-25 19:40:46889 deps += [ "//courgette(//build/toolchain/win:win_clang_x64)" ]
tfarinafbc992492017-03-08 22:44:04890 } else {
891 deps += [ "//courgette(//build/toolchain/win:x64)" ]
892 }
893 }
894 if (is_chrome_branded) {
895 deps += [ "//remoting/host:remoting_host_installation" ]
896 }
897 }
898
899 group("chrome_official_builder") {
900 testonly = true
901
902 deps = [
903 ":chrome_official_builder_no_unittests",
904 "//base:base_unittests",
905 "//chrome/test:browser_tests",
tfarinafbc992492017-03-08 22:44:04906 "//ipc:ipc_tests",
907 "//media:media_unittests",
908 "//media/midi:midi_unittests",
909 "//net:net_unittests",
910 "//printing:printing_unittests",
911 "//sql:sql_unittests",
Michael Moss0484ee5c2020-05-14 17:18:06912 "//third_party/breakpad:symupload($host_toolchain)",
tfarinafbc992492017-03-08 22:44:04913 "//ui/base:ui_base_unittests",
914 "//ui/gfx:gfx_unittests",
915 "//ui/touch_selection:ui_touch_selection_unittests",
916 "//ui/views:views_unittests",
917 "//url:url_unittests",
918 ]
919 }
tfarinafbc992492017-03-08 22:44:04920}
921
Yuta Hijikata05f38002020-12-17 00:49:24922if (is_chromeos_ash) {
Ben Pastenebbb9bf142020-03-30 17:51:14923 # This group is used to collect all targets used when verifying a new version
924 # of Chrome for Chrome OS.
tfarinafbc992492017-03-08 22:44:04925 group("chromiumos_preflight") {
926 testonly = true
Ben Pastene3ea517912020-07-02 00:20:42927 data_deps = [
tfarinafbc992492017-03-08 22:44:04928 "//chrome",
929 "//chrome/test/chromedriver",
Wei Lee01d63ef2019-05-09 09:24:50930 "//components/chromeos_camera:jpeg_decode_accelerator_unittest",
Ben Pastenebbb9bf142020-03-30 17:51:14931 "//components/exo/wayland:wayland_client_perftests",
tfarinafbc992492017-03-08 22:44:04932 "//media:media_unittests",
Ben Pastenebbb9bf142020-03-30 17:51:14933 "//media/capture:capture_unittests",
tfarinafbc992492017-03-08 22:44:04934 "//ppapi/examples/video_decode",
935 "//sandbox/linux:chrome_sandbox",
936 "//sandbox/linux:sandbox_linux_unittests",
Mark Mentovaiebb9ddd62017-09-25 17:24:41937 "//third_party/breakpad:minidump_stackwalk($host_toolchain)",
Corentin Wallezf9755ae2020-04-14 13:31:02938 "//third_party/dawn/src/tests:dawn_end2end_tests",
939 "//third_party/dawn/src/tests:dawn_unittests",
tfarinafbc992492017-03-08 22:44:04940
941 # Blocked on https://github.com/catapult-project/catapult/issues/2297
942 #"//third_party/catapult/telemetry:bitmaptools",
943 "//tools/perf/clear_system_cache",
Ben Pastenebbb9bf142020-03-30 17:51:14944 "//ui/ozone/gl:ozone_gl_unittests",
tfarinafbc992492017-03-08 22:44:04945 ]
Alexandre Courbot8ad2427d2017-08-25 14:04:55946
947 if (use_v4l2_codec || use_vaapi) {
Ben Pastene3ea517912020-07-02 00:20:42948 data_deps += [
Wei Lee01d63ef2019-05-09 09:24:50949 "//components/chromeos_camera:jpeg_encode_accelerator_unittest",
David Staessens601a2102019-02-06 03:37:13950 "//media/gpu:video_decode_accelerator_perf_tests",
David Staessens82b5b7d2018-11-21 10:40:26951 "//media/gpu:video_decode_accelerator_tests",
Hirokazu Hondad4a42c62020-08-21 04:39:08952 "//media/gpu:video_encode_accelerator_perf_tests",
953 "//media/gpu:video_encode_accelerator_tests",
Alexandre Courbot8ad2427d2017-08-25 14:04:55954 "//media/gpu:video_encode_accelerator_unittest",
955 ]
Ben Pastenebbb9bf142020-03-30 17:51:14956 if (use_vaapi) {
Jao-ke Chin-Lee994de272020-12-28 20:05:08957 data_deps += [
958 "//media/gpu/vaapi:decode_test",
959 "//media/gpu/vaapi:vaapi_unittest",
960 ]
Ben Pastenebbb9bf142020-03-30 17:51:14961 }
Alexandre Courbot8ad2427d2017-08-25 14:04:55962 }
tfarinafbc992492017-03-08 22:44:04963 }
dprankedb5527d72015-03-08 04:22:47964}
965
dprankedb5527d72015-03-08 04:22:47966group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03967 deps = [
dprankeb6128d02015-05-01 16:40:30968 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47969 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
970 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03971 ]
dpranked2fb5222015-09-10 22:39:05972
973 if (!is_ios) {
Peng Huanga3f0ece52018-01-20 01:22:46974 deps += [ "//v8:postmortem-metadata" ]
Simon Zündb6e449b2019-10-15 07:33:43975 if (!v8_use_external_startup_data) {
Peng Huanga3f0ece52018-01-20 01:22:46976 deps += [ "//v8:v8_snapshot" ]
977 }
dpranked2fb5222015-09-10 22:39:05978 }
dpranked62d8512015-03-02 03:06:03979}
980
Sergey Ulanovdaa25ebc2018-01-02 18:17:17981if (!is_ios) {
tfarinacb2638b2015-05-12 03:24:15982 # This group includes all of the targets needed to build and test Blink,
Giovanni Ortuño Urquidie7f98f82019-10-29 00:26:59983 # including running web tests (see below). This target is defined here because
984 # previously //third_party/WebKit, now //third_party/blink, couldn't depend on
985 # //content/shell. This might not longer be true, see
986 # https://crbug.com/1018659.
tfarinacb2638b2015-05-12 03:24:15987 group("blink_tests") {
988 testonly = true
989
990 deps = [
Kent Tamuraef54e402019-02-14 07:18:36991 ":blink_web_tests",
Blink Reformata30d4232018-04-07 15:31:06992 "//third_party/blink/public:all_blink",
tansell88df42592016-11-15 07:22:59993 ]
994 }
995
Kent Tamuraef54e402019-02-14 07:18:36996 # Web tests runner
Kent Tamura5e69e912018-05-02 13:05:00997 # third_party/blink/tools/run_web_tests.py
Kent Tamuraef54e402019-02-14 07:18:36998 group("run_web_tests") {
tansell88df42592016-11-15 07:22:59999 testonly = true
Nico Weber77da4942020-01-13 20:13:351000 deps = [ ":blink_web_tests" ]
tansell88df42592016-11-15 07:22:591001 }
1002
Yuta Hijikata05f38002020-12-17 00:49:241003 if (!is_chromeos_ash && !is_ios && !is_fuchsia && !is_android) {
kyle Juf8cdeac2019-02-07 00:10:011004 # WPT Webdriver tests runner
1005 # chrome/test/chromedriver/test/run_webdriver_tests.py
1006 group("webdriver_wpt_tests") {
1007 testonly = true
1008 data = [
kyle Ju1c031852019-03-28 16:31:481009 "//chrome/test/chromedriver/chrome_paths.py",
1010 "//chrome/test/chromedriver/server/server.py",
1011 "//chrome/test/chromedriver/test/run_webdriver_tests.py",
1012 "//chrome/test/chromedriver/util.py",
1013 "//testing/xvfb.py",
kyle Ju0eabe31e2019-02-15 15:29:501014 "//third_party/blink/tools/blinkpy/",
kyle Juf8cdeac2019-02-07 00:10:011015 "//third_party/blink/web_tests/external/wpt/webdriver/",
kyle Ju1c031852019-03-28 16:31:481016 "//third_party/blink/web_tests/VirtualTestSuites",
1017 "//third_party/blink/web_tests/WebDriverExpectations",
Keita Suzuki9ff17d42020-03-10 06:19:511018 "//third_party/pywebsocket3/src/mod_pywebsocket/",
kyle Juf8cdeac2019-02-07 00:10:011019 ]
1020 data_deps = [
1021 "//chrome:chrome",
1022 "//chrome/test/chromedriver",
Robert Ma6f908762020-01-31 16:24:541023 "//third_party/catapult/third_party/typ",
kyle Juf8cdeac2019-02-07 00:10:011024 ]
Scott Violet0a4949d32020-02-11 18:53:031025 if (is_win) {
1026 data_deps += [ "//build/win:copy_cdb_to_output" ]
1027 }
kyle Juf8cdeac2019-02-07 00:10:011028 }
Luke Zielinski218ddea32019-07-15 16:52:241029 group("wpt_tests_isolate") {
1030 testonly = true
1031 data_deps = [
1032 "//chrome:chrome",
1033 "//chrome/test/chromedriver",
1034 ]
Xiaohan Wang5e2c87a2020-03-27 20:05:131035 deps = [ "//third_party/blink/tools:wpt_tests_isolate" ]
Luke Zielinski218ddea32019-07-15 16:52:241036 }
kyle Juf8cdeac2019-02-07 00:10:011037 }
1038
Kai Ninomiyafb9e5962020-03-17 06:11:381039 group("blink_web_tests_support_data") {
John Budorick7c8273b2019-04-25 15:27:471040 testonly = true
tansell88df42592016-11-15 07:22:591041 data_deps = [
yzshena0646992017-04-02 22:01:271042 ":layout_test_data_mojo_bindings",
Ken Rockot86d360462018-10-24 02:50:091043 ":layout_test_data_mojo_bindings_lite",
tansell88df42592016-11-15 07:22:591044 "//content/shell:content_shell",
Ken Rockot3d21f6a2020-10-09 03:39:431045 "//content/test:mojo_bindings_web_test_mojom_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201046 "//content/test:mojo_web_test_bindings_js_data_deps",
Reilly Grantfa93b142018-02-01 02:13:481047 "//device/bluetooth/public/mojom:fake_bluetooth_interfaces_js_data_deps",
Rafael Cintron5b95b8d2020-11-04 01:58:101048 "//device/vr/public/mojom:vr_service_js_data_deps",
Christian Fremerey65d1f5e2018-03-02 23:46:481049 "//media/capture/mojom:image_capture_js_data_deps",
Adithya Srinivasan5b82b2e2018-12-14 16:08:091050 "//media/midi:mojo_js_data_deps",
yzshen9e737bf2017-06-21 19:38:231051 "//mojo/public/interfaces/bindings/tests:test_data_deps",
Giovanni Ortuño Urquidif07d80c2019-10-03 07:43:381052 "//mojo/public/js/ts/bindings/tests:test_interfaces_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201053 "//mojo/public/mojom/base:base_js_data_deps",
Ke He31d0bb02018-02-24 07:16:241054 "//services/device/public/mojom:generic_sensor_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201055 "//services/device/public/mojom:mojom_js_data_deps",
Donna Wu4dc9df32019-05-20 03:56:211056 "//services/device/public/mojom:usb_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201057 "//services/shape_detection/public/mojom:mojom_js_data_deps",
Miyoung Shin40adbd62019-07-30 07:33:401058 "//skia/public/mojom:mojom_js_data_deps",
jonrossc1179f2c2019-04-23 22:56:151059 "//testing/buildbot/filters:blink_web_tests_filter",
Blink Reformata30d4232018-04-07 15:31:061060 "//third_party/blink/public:blink_devtools_frontend_resources_files",
Alex Rudenko9d994132020-06-02 12:37:001061 "//third_party/blink/public:blink_devtools_inspector_resources",
Julie Jeongeun Kim4f1b5aa2019-05-08 01:32:091062 "//third_party/blink/public/mojom:mojom_platform_js_data_deps",
Morten Stenshorne8d7c45b2020-10-14 18:33:061063 "//third_party/blink/renderer/core:js_files_for_form_controls_web_tests",
Rakib M. Hasan995ca2e2019-10-14 19:48:401064 "//third_party/catapult/third_party/typ",
Koji Ishiia507ce82020-10-20 21:39:451065 "//third_party/hyphenation-patterns:test_data",
Alexis Hetu0f218862018-08-13 18:51:421066 "//third_party/mesa_headers",
agrieve993374cf2016-04-13 00:05:391067 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:151068 ]
1069
tfarinacb2638b2015-05-12 03:24:151070 if (is_android) {
tansell88df42592016-11-15 07:22:591071 data_deps += [
Mark Mentovaiebb9ddd62017-09-25 17:24:411072 "//third_party/breakpad:breakpad_unittests",
1073 "//third_party/breakpad:dump_syms",
1074 "//third_party/breakpad:microdump_stackwalk",
1075 "//third_party/breakpad:minidump_dump",
1076 "//third_party/breakpad:minidump_stackwalk",
1077 "//third_party/breakpad:symupload",
jbudoricke7bcf092016-09-28 18:24:141078 "//tools/android/forwarder2",
ojan94989c72015-07-17 21:56:421079 ]
Peter Kotwiczdeb8c9fda2020-07-03 23:34:091080 } else {
danakj89f47082020-09-02 17:53:431081 data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ]
tfarinacb2638b2015-05-12 03:24:151082 }
1083
tfarinacb2638b2015-05-12 03:24:151084 if (!is_win && !is_android) {
Mark Mentovaiebb9ddd62017-09-25 17:24:411085 data_deps +=
1086 [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:151087 }
1088
1089 if (is_mac) {
Mark Mentovaiebb9ddd62017-09-25 17:24:411090 data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:151091 }
1092
Sean McAllisterdeaa7402020-07-31 04:42:541093 if (is_linux || is_chromeos) {
Mark Mentovaiebb9ddd62017-09-25 17:24:411094 data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:151095 }
qyearsley165a17a82016-08-01 17:58:501096
Sergey Ulanovdaa25ebc2018-01-02 18:17:171097 if (is_fuchsia) {
Sergey Ulanovafa1d4122020-01-14 01:51:101098 data_deps += [ "//content/shell:content_shell_fuchsia" ]
Sergey Ulanovdaa25ebc2018-01-02 18:17:171099 }
1100
qyearsley165a17a82016-08-01 17:58:501101 data = [
Austin Eng11eba3d2020-10-01 15:08:191102 "//testing/scripts/common.py",
1103 "//testing/scripts/run_isolated_script_test.py",
1104 "//testing/xvfb.py",
Kent Tamurac1e4c412018-04-19 02:01:361105 "//third_party/blink/tools/",
Kai Ninomiyafb9e5962020-03-17 06:11:381106 "//third_party/blink/web_tests/VirtualTestSuites",
Stephen McGruerb3b528472020-04-29 13:44:001107 "//third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json",
Kai Ninomiya14ba22c2020-05-20 14:27:451108 "//third_party/blink/web_tests/external/wpt/common/",
Kai Ninomiyafb9e5962020-03-17 06:11:381109 "//third_party/blink/web_tests/external/wpt/resources/",
1110 "//third_party/blink/web_tests/resources/",
1111 "//third_party/blink/web_tests/wpt_internal/",
Keita Suzuki9ff17d42020-03-10 06:19:511112 "//third_party/pywebsocket3/src/mod_pywebsocket/",
Kent Tamura5a9c7e42020-06-18 10:38:141113 "//third_party/test_fonts/test_fonts/",
qyearsley165a17a82016-08-01 17:58:501114 ]
tansell0e6baaf22017-02-16 09:14:531115
tansell820f7df2017-02-16 13:59:151116 if (is_win) {
tansell1b05bbd2017-05-04 09:30:321117 data += [
1118 "//third_party/apache-win32/",
Takuto Ikuta1623ca32018-11-12 15:16:081119 "//third_party/perl/perl/",
tansell1b05bbd2017-05-04 09:30:321120 ]
Scott Violet0a4949d32020-02-11 18:53:031121 data_deps += [ "//build/win:copy_cdb_to_output" ]
tansell820f7df2017-02-16 13:59:151122 }
1123
David Benjaminddc843c2019-03-26 14:50:071124 if (is_mac) {
1125 data += [ "//third_party/apache-mac/" ]
1126 }
1127
tansell0e6baaf22017-02-16 09:14:531128 if (is_android) {
1129 data += [
1130 "//third_party/catapult/",
1131 "//build/android/",
1132 ]
1133 }
tfarinacb2638b2015-05-12 03:24:151134 }
yzshena0646992017-04-02 22:01:271135
Dirk Pranke67bc5a9d2020-10-09 16:33:481136 _common_web_test_script = "//testing/scripts/run_isolated_script_test.py"
1137
1138 _common_web_test_args = [ "@WrappedPath(" + rebase_path(
1139 "//third_party/blink/tools/run_web_tests.py",
1140 root_build_dir) + ")" ]
1141 if (is_debug) {
1142 _common_web_test_args += [ "--debug" ]
1143 } else {
1144 _common_web_test_args += [ "--release" ]
Dirk Prankef452bb2a2020-10-09 22:11:551145 if (dcheck_always_on) {
1146 _common_web_test_args += [ "--time-out-ms=12000" ]
1147 }
Dirk Pranke67bc5a9d2020-10-09 16:33:481148 }
1149
1150 if (is_android) {
1151 _common_web_test_args += [
1152 "--platform",
1153 "android",
1154 ]
1155 }
1156
1157 _common_web_test_args += [
1158 "--seed",
1159 "4",
1160 "--no-show-results",
1161 "--zero-tests-executed-ok",
1162 "--clobber-old-results",
1163 "--exit-after-n-failures",
1164 "5000",
1165 "--exit-after-n-crashes-or-timeouts",
1166 "100",
1167 ]
1168
Kai Ninomiyafb9e5962020-03-17 06:11:381169 # https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_tests.md
Dirk Pranke6188075b2020-10-01 19:31:281170 script_test("blink_web_tests") {
Dirk Pranke67bc5a9d2020-10-09 16:33:481171 script = _common_web_test_script
Dirk Pranke6188075b2020-10-01 19:31:281172
Dirk Pranke67bc5a9d2020-10-09 16:33:481173 args = _common_web_test_args
Dirk Pranke6188075b2020-10-01 19:31:281174
Kai Ninomiyafb9e5962020-03-17 06:11:381175 data_deps = [ ":blink_web_tests_support_data" ]
1176 data = [
1177 "//third_party/blink/perf_tests/",
1178 "//third_party/blink/web_tests/",
1179 ]
1180 }
1181
Dirk Pranke67bc5a9d2020-10-09 16:33:481182 script_test("devtools_web_tests") {
1183 # This target differs from :blink_web_tests in that it uses the
1184 # same test harness but runs an entirely different set of tests
1185 # and doesn't have a dependency on the web_test directory at all.
1186 script = _common_web_test_script
Kai Ninomiyafb9e5962020-03-17 06:11:381187
Dirk Pranke67bc5a9d2020-10-09 16:33:481188 args = _common_web_test_args + [
Patrick Brossetf30adff2020-10-12 18:33:321189 "--layout-tests-directory=@WrappedPath(" + rebase_path(
Dirk Pranke67bc5a9d2020-10-09 16:33:481190 "//third_party/devtools-frontend/src/test/webtests",
1191 root_out_dir) + ")",
1192 "http/tests/devtools",
1193 ]
Kai Ninomiyafb9e5962020-03-17 06:11:381194
Dirk Pranke67bc5a9d2020-10-09 16:33:481195 data_deps = [ ":blink_web_tests_support_data" ]
1196 data = [ "//third_party/devtools-frontend/src/test/webtests/" ]
1197 }
1198
1199 script_test("webgpu_blink_web_tests") {
1200 # This target differs from :blink_web_tests in that it uses the same
1201 # test harness and a few additional flags but, more importantly, only runs
1202 # the web_tests/wpt_internal/webgpu tests, so it doesn't have a data
1203 # dependency on the whole web_test directory.
1204 script = _common_web_test_script
1205 args =
1206 _common_web_test_args + [
1207 "--additional-driver-flag=--enable-unsafe-webgpu",
1208 "--ignore-default-expectations",
1209 "--additional-expectations",
1210 "@WrappedPath(../../third_party/blink/web_tests/WebGPUExpectations)",
1211 "--isolated-script-test-filter=wpt_internal/webgpu/*",
1212 ]
Kai Ninomiyafb9e5962020-03-17 06:11:381213
1214 data_deps = [ ":blink_web_tests_support_data" ]
1215 data = [
1216 "//third_party/blink/web_tests/WebGPUExpectations",
1217 "//third_party/blink/web_tests/external/wpt/webgpu/",
1218 ]
1219 }
1220
yzshena0646992017-04-02 22:01:271221 copy("layout_test_data_mojo_bindings") {
1222 testonly = true
1223
Nico Weber77da4942020-01-13 20:13:351224 sources = [ "$root_gen_dir/mojo/public/js/mojo_bindings.js" ]
yzshena0646992017-04-02 22:01:271225
Nico Weber77da4942020-01-13 20:13:351226 outputs =
1227 [ "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings.js" ]
yzshena0646992017-04-02 22:01:271228
Nico Weber77da4942020-01-13 20:13:351229 deps = [ "//mojo/public/js:bindings" ]
yzshena0646992017-04-02 22:01:271230 }
Dirk Pranke43a5c812017-09-06 03:25:411231
Ken Rockot86d360462018-10-24 02:50:091232 copy("layout_test_data_mojo_bindings_lite") {
1233 testonly = true
1234
Nico Weber77da4942020-01-13 20:13:351235 sources = [ "$root_gen_dir/mojo/public/js/mojo_bindings_lite.js" ]
Ken Rockot86d360462018-10-24 02:50:091236
1237 outputs = [
1238 "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings_lite.js",
1239 ]
1240
Nico Weber77da4942020-01-13 20:13:351241 deps = [ "//mojo/public/js:bindings_lite" ]
Ken Rockot86d360462018-10-24 02:50:091242 }
1243
Dirk Pranke6188075b2020-10-01 19:31:281244 script_test("blink_python_tests") {
1245 script = "//testing/scripts/run_isolated_script_test.py"
1246 args = [ "@WrappedPath(" +
1247 rebase_path("//third_party/blink/tools/run_blinkpy_tests.py",
1248 root_build_dir) + ")" ]
1249
Dirk Pranke43a5c812017-09-06 03:25:411250 data = [
Andrew Grieve4c4cede2020-11-20 22:09:361251 # These tests use //build/android/devil_chromium.py even when !is_android,
1252 # so cannot use the helpers in //build/android (they assert(is_android)).
Dirk Pranke43a5c812017-09-06 03:25:411253 "//build/android/",
Andrew Grieve4c4cede2020-11-20 22:09:361254 "//build/gn_helpers.py",
1255 "//build/config/gclient_args.gni",
Dirk Pranke43a5c812017-09-06 03:25:411256 "//components/crash/content/tools/generate_breakpad_symbols.py",
Kent Tamura968e76912018-04-17 23:05:571257 "//third_party/blink/renderer/bindings/scripts/",
1258 "//third_party/blink/renderer/build/scripts/",
Dirk Pranke43a5c812017-09-06 03:25:411259 "//third_party/blink/tools/",
Kent Tamura77578cc2018-11-25 22:33:431260 "//third_party/blink/web_tests/ASANExpectations",
1261 "//third_party/blink/web_tests/LeakExpectations",
1262 "//third_party/blink/web_tests/MSANExpectations",
1263 "//third_party/blink/web_tests/NeverFixTests",
1264 "//third_party/blink/web_tests/SlowTests",
1265 "//third_party/blink/web_tests/StaleTestExpectations",
1266 "//third_party/blink/web_tests/TestExpectations",
1267 "//third_party/blink/web_tests/VirtualTestSuites",
Dirk Pranke43a5c812017-09-06 03:25:411268 "//third_party/catapult/common/py_utils/",
1269 "//third_party/catapult/devil/",
1270 "//third_party/catapult/dependency_manager/",
Dirk Pranke3e161d62020-10-14 16:57:001271 "//third_party/catapult/third_party/zipfile/",
Ned Nguyenc335c432018-04-23 01:16:461272 "//third_party/catapult/third_party/typ/",
Mike Frysinger8f8404b2019-08-21 02:20:291273 "//third_party/depot_tools/pylint",
1274 "//third_party/depot_tools/pylint-1.5",
1275 "//third_party/depot_tools/pylint_main.py",
Dirk Pranke43a5c812017-09-06 03:25:411276 "//third_party/depot_tools/pylintrc",
Dirk Pranke43a5c812017-09-06 03:25:411277 "//third_party/ply/",
Dirk Pranke43a5c812017-09-06 03:25:411278 "//tools/idl_parser/",
1279 ]
1280 }
tfarinacb2638b2015-05-12 03:24:151281}
1282
dpranke2302dfa2015-09-29 02:21:521283group("chromium_builder_perf") {
1284 testonly = true
1285
scottmg2f97ee122017-05-12 17:50:371286 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) {
malets6b7062402016-09-15 08:14:261287 data_deps = [
dpranke2302dfa2015-09-29 02:21:521288 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:521289 "//chrome/test:load_library_perf_tests",
Emily Hanleyedab9e52018-01-17 18:47:321290 "//chrome/test:performance_test_suite",
kraynovc0797582016-10-25 16:45:061291 "//components/tracing:tracing_perftests",
Antoine Labourc6ade252017-10-19 01:01:161292 "//gpu:command_buffer_perftests",
dpranke2302dfa2015-09-29 02:21:521293 "//gpu:gpu_perftests",
1294 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:191295 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:521296 ]
1297
nednguyen6451d7d2017-05-09 14:37:541298 if (is_android) {
Yun Liuf57cceaf2019-03-18 21:31:231299 data += [ "//third_party/android_sdk/public/platform-tools/adb" ]
nednguyen6451d7d2017-05-09 14:37:541300 }
1301
Yuta Hijikata05f38002020-12-17 00:49:241302 if (!is_chromeos_ash) {
malets6b7062402016-09-15 08:14:261303 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:521304 }
Yuta Hijikata05f38002020-12-17 00:49:241305 if (is_linux || is_chromeos_lacros) {
dpranke9aed5d582015-11-22 23:22:041306 if (is_official_build) {
1307 # In GN builds, this is controlled by the 'linux_dump_symbols'
1308 # flag, which defaults to 1 for official builds. For now,
1309 # we skip the separate flag and just key off of is_official_build.
malets6b7062402016-09-15 08:14:261310 data_deps += [ "//chrome:linux_symbols" ]
dpranke9aed5d582015-11-22 23:22:041311 }
dpranke2302dfa2015-09-29 02:21:521312
kraynovc0797582016-10-25 16:45:061313 data_deps += [ "//tools/perf/clear_system_cache" ]
dpranke2302dfa2015-09-29 02:21:521314 }
1315
1316 if (is_win) {
Yuly Novikov8a6e6352017-11-11 02:00:401317 data_deps += [ "//chrome/installer/mini_installer:mini_installer" ]
dpranke2302dfa2015-09-29 02:21:521318 } else {
Mark Mentovaiebb9ddd62017-09-25 17:24:411319 data_deps +=
1320 [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:521321 }
Yuly Novikov8a6e6352017-11-11 02:00:401322 if (is_win || is_android) {
Charlie Harrison3c448912018-03-23 16:54:171323 data_deps += [
Natalie Chouinard3f8829c2019-12-17 02:39:201324 "//components:components_perftests",
Dirk Pranke61c87c5d2020-07-07 18:23:231325 "//third_party/angle/src/tests:angle_perftests",
Charlie Harrison3c448912018-03-23 16:54:171326 ]
Yuly Novikov8a6e6352017-11-11 02:00:401327 }
dpranke2302dfa2015-09-29 02:21:521328 }
1329}
agrieve017b91f2016-02-29 20:15:061330
scottmg2f97ee122017-05-12 17:50:371331if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) {
thakis3f7d4fc2016-06-10 18:47:501332 group("chromium_builder_asan") {
1333 testonly = true
1334
1335 deps = [
1336 "//chrome:chrome",
1337 "//content/shell:content_shell",
1338 "//v8:d8",
1339 ]
1340 if (!is_win) {
Eric Orthdd5b8632020-11-13 02:59:421341 deps += [ "//skia:filter_fuzz_stub" ]
thakis3f7d4fc2016-06-10 18:47:501342 }
1343 if (enable_ipc_fuzzer && !is_component_build) {
Ken Rockotf87b01cf2018-12-26 06:52:261344 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
thakis3f7d4fc2016-06-10 18:47:501345 }
Yuta Hijikata05f38002020-12-17 00:49:241346 if (!is_chromeos_ash) {
thakis3f7d4fc2016-06-10 18:47:501347 deps += [
1348 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371349 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501350 ]
1351 }
Max Moroz109e76b2020-02-10 17:19:521352
1353 if (!is_component_build) {
1354 # See https://bugs.chromium.org/p/chromium/issues/detail?id=942546#c11.
1355 deps += [
1356 "//third_party/webrtc/rtc_tools:rtp_generator",
1357 "//third_party/webrtc/rtc_tools:video_replay",
1358 ]
1359 }
thakis3f7d4fc2016-06-10 18:47:501360 }
1361}
1362
agrieve95ba4442016-04-25 15:47:131363if (is_android) {
1364 group("optimize_gn_gen") {
1365 deps = [
1366 # These run expensive scripts in non-default toolchains. Generally, host
1367 # toolchain targets are loaded in the later part of the run, and the
1368 # result is they push out the end of generation. By preloading these, the
1369 # scripts can be parallelized with the rest of the load.
1370 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1371 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1372
1373 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1374 # generation.
1375 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1376 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1377 ]
1378 }
1379}
1380
Mirko Bonadeif17649c2020-06-18 21:36:291381if (enable_js_type_check) {
Christopher Lam739a90d2018-03-07 03:54:371382 group("webui_closure_compile") {
Trent Apted572ba7552018-10-17 00:03:301383 testonly = true
Christopher Lam739a90d2018-03-07 03:54:371384 data_deps = [
Christopher Lamfdac10a2018-04-04 04:02:451385 "chrome/browser/resources:closure_compile",
Trent Aptedeeff0a92019-11-07 06:57:271386 "chrome/test:closure_compile",
Natalie Chouinard3f8829c2019-12-17 02:39:201387 "components/flags_ui/resources:closure_compile",
Reilly Grant2c3893d2019-10-29 20:11:421388 "components/neterror/resources:closure_compile",
1389 "components/security_interstitials/core/common/resources:closure_compile",
dpapad67bf0d122019-07-23 21:18:361390 "components/sync/driver/resources:closure_compile",
Nikunj Bhagata175853c2018-11-09 00:36:181391 "components/ukm/debug:closure_compile",
Christopher Lam76610802019-01-14 03:37:241392 "content/browser/resources:closure_compile",
1393 "mojo/public/tools/bindings/generators/js_templates/lite/test:closure_compile",
1394 "ui/webui/resources:closure_compile",
Christopher Lam739a90d2018-03-07 03:54:371395 ]
Yuta Hijikata05f38002020-12-17 00:49:241396 if (is_chromeos_ash) {
Josh Nohlea2263fa2019-08-29 19:17:061397 data_deps += [
1398 "chromeos/components:closure_compile",
1399 "ui/file_manager:closure_compile",
1400 ]
Christopher Lamb97769322018-04-26 01:47:491401 }
Christopher Lam7c7d8f92018-05-17 09:07:551402 if (is_android) {
1403 data_deps += [ "components/offline_pages/resources:closure_compile" ]
1404 }
Tommy Steimele417e712020-01-30 14:07:551405 if (enable_kaleidoscope) {
1406 data_deps +=
1407 [ "chrome/browser/media/kaleidoscope/internal:closure_compile" ]
1408 }
Christopher Lam739a90d2018-03-07 03:54:371409 }
1410}
1411
Andrew Grieve93f64402020-03-13 17:04:221412# Because of the source assignment filter, many targets end up over-filtering
1413# their sources if the output directory contains a platform name. Assert that
1414# this doesn't happen. http://crbug.com/548283
1415assert(
1416 filter_exclude([ "$root_build_dir/foo" ],
1417 # List copied from //build/config/BUILDCONFIG.gn.
1418 [
1419 "*\bandroid/*",
1420 "*\bchromeos/*",
1421 "*\bcocoa/*",
1422 "*\bios/*",
1423 "*\blinux/*",
1424 "*\bmac/*",
1425 "*\bposix/*",
1426 "*\bwin/*",
1427 ]) != [],
1428 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
Andrew Grievefebea022020-08-07 17:17:531429
1430# Write debug logs to gn_logs.txt.
1431_lines = [
1432 "Generated during 'gn gen' by //BUILD.gn.",
1433 "",
1434 ] + build_gn_logs
1435
1436# GN evaluates each .gn file once per toolchain, so restricting to default
1437# toolchain will ensure write_file() is called only once.
1438assert(current_toolchain == default_toolchain)
1439
1440write_file("$root_build_dir/gn_logs.txt", _lines)