blob: f7307e92c4e947e8ce8bf74165a227a0ea7bd58b [file] [log] [blame]
Avi Drissman24976592022-09-12 15:24:311# Copyright 2013 The Chromium Authors
[email protected]f0e7ff882013-12-26 21:23:092# 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
mark a. foltze185ab2fa2023-11-06 21:21:2011import("//build/config/cast.gni")
dprankead249c72016-06-11 18:01:2212import("//build/config/compiler/compiler.gni")
Stefano Duo1a1fcca2023-04-03 09:06:3713import("//build/config/cronet/config.gni")
Dirk Prankef452bb2a2020-10-09 22:11:5514import("//build/config/dcheck_always_on.gni")
rockot2f1326e2015-02-23 23:53:5115import("//build/config/features.gni")
Collina1e27a42022-01-26 20:12:0316import("//build/config/rust.gni")
aizatskyfc46a9f2015-10-09 21:20:0817import("//build/config/sanitizers/sanitizers.gni")
[email protected]378b4f02014-06-10 15:58:4518import("//build/config/ui.gni")
Andrew Grievefebea022020-08-07 17:17:5319import("//build/gn_logs.gni")
Fumitoshi Ukai04f61592025-03-26 17:33:5020import("//build/toolchain/rbe.gni")
John Budorick7c8273b2019-04-25 15:27:4721import("//build/util/generate_wrapper.gni")
Noah Rose Ledesmaba67f1972024-05-24 21:27:3222import("//chrome/enterprise_companion/buildflags.gni")
Nasser Al-shawwad3ea535e2024-01-19 21:05:1223import("//components/enterprise/buildflags/buildflags.gni")
Dirk Prankeccc0c362017-09-28 22:15:1124import("//components/nacl/features.gni")
Scott Violetc8240b02018-03-08 22:03:5925import("//device/vr/buildflags/buildflags.gni")
26import("//extensions/buildflags/buildflags.gni")
Sam McNally11dc0142018-11-23 01:11:0527import("//gpu/vulkan/features.gni")
Alexandre Courbot8ad2427d2017-08-25 14:04:5528import("//media/gpu/args.gni")
Sam McNally11dc0142018-11-23 01:11:0529import("//media/media_options.gni")
danakj9ddc16242024-11-07 22:14:1430import("//mojo/public/rust/rust.gni")
Lei Zhang242fc9a2021-05-18 23:48:4231import("//pdf/features.gni")
David Dorwin35ee05a72022-03-08 22:12:2132import("//ppapi/buildflags/buildflags.gni")
Lei Zhang8baa2942021-05-19 03:59:4833import("//printing/buildflags/buildflags.gni")
brettw2b112cd2016-10-12 19:35:3634import("//remoting/remoting_enable.gni")
John Abd-El-Malekd842f9b2023-11-17 21:59:4835import("//services/on_device_model/on_device_model.gni")
danakj9ddc16242024-11-07 22:14:1436import("//skia/skia.gni")
Josip Sokcevic4d590cf2020-07-07 10:48:2337import("//third_party/closure_compiler/compile_js.gni")
thakis3f7d4fc2016-06-10 18:47:5038import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
Peter Beverloo69948322017-07-28 19:01:5739import("//ui/base/ui_features.gni")
Elly Fong-Jonesb03817a2019-11-14 18:10:1240import("//ui/gl/features.gni")
machenbachd65ec5c2016-07-22 09:05:2341import("//v8/gni/v8.gni")
dprankee2ef3822015-02-24 21:42:1842
cjhopmanca675d3e2014-10-24 03:50:4543if (is_android) {
44 import("//build/config/android/config.gni")
45}
[email protected]378b4f02014-06-10 15:58:4546
Greg Thompsonada4b212022-09-12 13:31:4947if (is_fuchsia) {
48 import("//build/config/fuchsia/generate_runner_scripts.gni")
Wez691dde42023-10-19 17:47:2949 import("//third_party/fuchsia-gn-sdk/src/component.gni")
50 import("//third_party/fuchsia-gn-sdk/src/package.gni")
John Abd-El-Malek6eb6dede2024-01-27 05:54:1151} else {
52 import("//chrome/browser/buildflags.gni")
Greg Thompsonada4b212022-09-12 13:31:4953}
54
Rohit Rao92edf2c2024-11-14 17:35:1655if (is_ios) {
56 import("//build/config/apple/mobile_config.gni")
57}
58
Andrey Kosyakov0e234d902021-03-30 19:00:2759if (is_linux) {
60 import("build/config/linux/gtk/gtk.gni")
61}
62
Dave Tapuska2ff385f2023-02-07 17:08:5963if (use_blink) {
Rohit Rao123b39e2021-09-17 19:52:3864 import("//v8/gni/snapshot_toolchain.gni")
65}
66
brettwb84b29472014-10-22 22:58:4567declare_args() {
68 # A list of extra dependencies to add to the root target. This allows a
69 # checkout to add additional targets without explicitly changing any checked-
70 # in files.
71 root_extra_deps = []
72}
73
brucedawsonc8d6d652016-09-02 19:43:1874if (is_official_build) {
75 # An official (maximally optimized!) component (optimized for build times)
76 # build doesn't make sense and usually doesn't work.
77 assert(!is_component_build)
78}
79
Dirk Pranke0356f6f2023-02-24 00:27:4680# The `gn_all` target is used to list all of the main targets in the build, so
81# that we can figure out which BUILD.gn files to process, following the process
82# described at the top of this file.
dpranked62d8512015-03-02 03:06:0383#
Dirk Pranke0356f6f2023-02-24 00:27:4684# Because of the way GN works (again, as described above), there may be targets
85# built by `all` that aren't built by `gn_all`. We always want `all` to build,
86# so there's really never a reason you'd want to build `gn_all` instead of
87# `all`, and no tooling should depend directly on this target. Tools should
88# should depend on either an explicit list of targets, or `all`.
dprankeff30e3d2015-02-24 06:52:3989
dprankee2ef3822015-02-24 21:42:1890group("gn_all") {
91 testonly = true
92
Stefano Duo1a1fcca2023-04-03 09:06:3793 if (is_cronet_build) {
Stefano Duo8d358e32023-04-14 09:45:2994 if (is_android) {
95 deps = [ "//components/cronet/android:cronet_package_android" ]
Stefano Duo8d358e32023-04-14 09:45:2996 } else {
97 deps = []
Brian Sheedyf74819b2021-06-04 01:38:3898 }
David Dorwin9985426fc2022-03-30 00:06:0499 } else {
Stefano Duo1a1fcca2023-04-03 09:06:37100 deps = [
101 "//base:base_perftests",
102 "//base:base_unittests",
103 "//codelabs",
104 "//components:components_unittests",
105 "//components/gwp_asan:gwp_asan_unittests",
106 "//infra/orchestrator:orchestrator_all",
107 "//net:net_unittests",
108 "//sandbox:sandbox_unittests",
109 "//services:services_unittests",
110 "//services/service_manager/public/cpp",
111 "//skia:skia_unittests",
112 "//sql:sql_unittests",
Adrian Taylor11f0b4222023-10-30 17:38:26113 "//testing/libfuzzer/tests",
Stefano Duo1a1fcca2023-04-03 09:06:37114 "//third_party/angle/src/tests:angle_end2end_tests",
115 "//third_party/angle/src/tests:angle_unittests",
116 "//third_party/angle/src/tests:angle_white_box_tests",
Dan McArdle64e8e842024-02-23 23:05:45117 "//third_party/distributed_point_functions/shim:distributed_point_functions_shim_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37118 "//third_party/flatbuffers:flatbuffers_unittests",
Arthur Eubanksdfcb0412024-12-12 18:13:06119 "//third_party/highway:highway_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37120 "//third_party/liburlpattern:liburlpattern_unittests",
Steinar H. Gundersonba476bb2024-07-12 18:25:14121 "//third_party/rapidhash:rapidhash_fuzztests",
Stefano Duo1a1fcca2023-04-03 09:06:37122 "//tools/binary_size:binary_size_trybot_py",
123 "//tools/ipc_fuzzer:ipc_fuzzer_all",
124 "//tools/metrics:metrics_metadata",
125 "//ui/base:ui_base_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37126 "//ui/gfx:gfx_unittests",
Allen Bauer66dc0e142023-09-12 01:08:29127 "//ui/tests:ui_unittests",
dprankee2ef3822015-02-24 21:42:18128 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03129 ]
130
Tarcisio Fischerfef19c52024-09-06 19:06:09131 if (current_cpu == "arm64" && is_android && host_os == "linux") {
132 deps += [
133 "//components/allocation_recorder/tools:dump_allocation_recorder_data",
134 ]
135 }
136
pkotwicz92e2e2312015-12-15 22:29:46137 if (!is_component_build) {
Stefano Duo1a1fcca2023-04-03 09:06:37138 deps += [ "//third_party/abseil-cpp:absl_tests" ]
139 }
140
Yuta Hijikata7128f0822025-03-06 05:44:15141 if (is_chromeos && enable_js_type_check) {
Stefano Duo1a1fcca2023-04-03 09:06:37142 deps += [ ":webui_closure_compile" ]
143 }
144
145 if (!is_android && !is_castos) {
pkotwicz92e2e2312015-12-15 22:29:46146 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37147 "//crypto:crypto_unittests",
148 "//google_apis/gcm:gcm_unit_tests",
pkotwicz92e2e2312015-12-15 22:29:46149 ]
150 }
151
Stefano Duo1a1fcca2023-04-03 09:06:37152 if (!is_ios && !is_android && !is_castos) {
Zijie Hed995cb02023-12-14 19:42:48153 if (!is_fuchsia) {
154 deps += [
155 "//chrome",
156 "//chrome/browser/ui/actions:dump_actions",
157 "//chrome/browser/ui/color:dump_colors",
158 "//chrome/test:browser_tests",
159 ]
160 }
pkotwicz061c5a42015-09-30 02:16:54161 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37162 "//components/subresource_filter/tools:subresource_filter_tools",
163 "//components/zucchini:zucchini",
Stefano Duo1a1fcca2023-04-03 09:06:37164 "//net:hpack_example_generator",
Yuly Novikov3eea78b2024-05-28 18:12:53165 "//third_party/spirv-tools/src:SPIRV-Tools",
Stefano Duo1a1fcca2023-04-03 09:06:37166 "//tools/aggregation_service:aggregation_service_tool",
167 "//tools/perf/clear_system_cache",
168 "//tools/polymer:polymer_tools_python_unittests",
169 "//tools/privacy_budget:privacy_budget_tools",
Stefano Duo1a1fcca2023-04-03 09:06:37170 "//ui/accessibility/extensions:extensions",
Dirk Prankef05a1b72025-02-26 20:53:23171 "//ui/webui/resources/tools:webui_resources_tools_python_unittests",
pkotwicz061c5a42015-09-30 02:16:54172 ]
Arthur Eubanks87cdea12022-02-17 21:18:51173 }
dnicoara8c6aa8e2015-03-11 23:20:32174
Zijie Hed995cb02023-12-14 19:42:48175 if (!is_castos && !is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37176 deps += [ "//chrome/installer" ]
Daniel Nicoaracf98a1bf2022-08-09 19:51:44177 }
178
John Abd-El-Malek6eb6dede2024-01-27 05:54:11179 if (!is_fuchsia && enable_updater) {
Stefano Duo1a1fcca2023-04-03 09:06:37180 deps += [ "//chrome/updater" ]
181 }
182
Noah Rose Ledesmaba67f1972024-05-24 21:27:32183 if (enable_enterprise_companion) {
184 deps += [ "//chrome/enterprise_companion" ]
185 }
186
Stefano Duo1a1fcca2023-04-03 09:06:37187 if (enable_ppapi) {
mbjorgea12e5a52016-05-31 22:15:17188 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37189 "//ppapi:ppapi_unittests",
190 "//ppapi/examples",
mbjorgea12e5a52016-05-31 22:15:17191 ]
192 }
193
Stefano Duo1a1fcca2023-04-03 09:06:37194 if (!is_ios && !is_castos) {
Zijie Hed995cb02023-12-14 19:42:48195 if (!is_fuchsia) {
196 deps += [ "//chrome/test:unit_tests" ]
197 }
198 deps += [ "//ui/accessibility:accessibility_unittests" ]
Stefano Duo1a1fcca2023-04-03 09:06:37199 }
sherouke1859f92015-08-05 10:19:10200
Stefano Duo1a1fcca2023-04-03 09:06:37201 if (use_blink) {
202 deps += [
203 "//cc:cc_unittests",
204 "//components/policy:policy_templates",
205 "//components/url_formatter/tools:format_url",
206 "//components/viz:viz_perftests",
207 "//components/viz:viz_unittests",
Abigail Katcoffcc1eb9f2024-10-02 20:21:21208 "//content/browser/interest_group/tools:adjustable_auction",
Stefano Duo1a1fcca2023-04-03 09:06:37209 "//content/shell:content_shell",
210 "//content/test:content_browsertests",
211 "//content/test:content_unittests",
212 "//device:device_unittests",
213 "//gpu:gpu_benchmark",
214 "//gpu:gpu_unittests",
215 "//media:media_unittests",
216 "//media/capture:capture_unittests",
Dave Tapuska269a0ca2023-04-05 18:38:20217 "//media/cast:cast_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37218 "//media/midi:midi_unittests",
219 "//media/mojo:media_mojo_unittests",
220 "//mojo",
221 "//mojo:mojo_unittests",
222 "//storage:storage_unittests",
223 "//third_party/blink/common:blink_common_unittests",
224 "//third_party/blink/renderer/controller:blink_unittests",
225 "//third_party/blink/renderer/platform:blink_platform_unittests",
226 "//third_party/blink/renderer/platform/heap:blink_heap_unittests",
227 "//third_party/blink/renderer/platform/wtf:wtf_unittests",
228 "//third_party/libjingle_xmpp:libjingle_xmpp_unittests",
229 "//tools/imagediff",
230 "//tools/memory:all",
231 "//ui/display:display_unittests",
232 "//ui/gl:gl_unittests",
233 "//ui/latency:latency_unittests",
234 "//ui/native_theme:native_theme_unittests",
235 "//ui/touch_selection:ui_touch_selection_unittests",
236 "//v8:gn_all",
237 ]
sugoiabe91892016-09-20 12:53:51238
Stefano Duo1a1fcca2023-04-03 09:06:37239 if (!v8_use_external_startup_data) {
240 deps += [ "//v8:v8_snapshot" ]
241 }
242 }
dprankedb5527d72015-03-08 04:22:47243
Dave Tapuskad74dc902023-03-08 21:45:51244 if (!is_ios) {
245 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37246 ":chromedriver_group",
247 "//components:components_browsertests",
248 "//ipc:ipc_tests",
249 "//net:net_perftests",
250 "//ui/events:events_unittests",
251 "//url/ipc:url_ipc_unittests",
Dave Tapuskad74dc902023-03-08 21:45:51252 ]
253 }
254
Stefano Duo1a1fcca2023-04-03 09:06:37255 if (!is_ios && !is_android) {
256 deps += [ "//components/viz/demo:viz_demo" ]
257 }
258
259 if (!is_ios) {
Daniel Nicoaracf98a1bf2022-08-09 19:51:44260 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37261 "//google_apis/gcm:mcs_probe",
Stefano Duo1a1fcca2023-04-03 09:06:37262 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
agrieve473155b42015-12-28 20:23:11263 ]
Stefano Duo1a1fcca2023-04-03 09:06:37264 if (!is_android) {
Zijie Hed995cb02023-12-14 19:42:48265 if (!is_castos && !is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37266 deps += [ "//chrome/test:telemetry_perf_unittests" ]
267 }
268 } else {
269 import("//tools/perf/chrome_telemetry_build/android_browser_types.gni")
270 foreach(_target_suffix, telemetry_android_browser_target_suffixes) {
271 deps += [ "//chrome/test:telemetry_perf_unittests${_target_suffix}" ]
272 }
273 }
274 } else {
275 deps += [
276 "//ios:all",
277 "//third_party/crashpad/crashpad:crashpad_tests",
278 ]
279 }
280
281 if (is_fuchsia) {
282 # Add targets that only exist on Fuchsia.
283 deps += [
284 ":d8_fuchsia",
285 "//build/fuchsia/cipd",
Stefano Duo1a1fcca2023-04-03 09:06:37286 "//fuchsia_web:gn_all",
287 "//tools/fuchsia/size_tests:fuchsia_sizes",
288
289 # Ensure this target continues to build.
290 "//chromecast/bindings:bindings_manager_fuchsia",
291 ]
292 }
293
294 deps += root_extra_deps
295
Gyuyoung Kim80fd49b2023-11-07 15:44:22296 if (enable_printing || enable_printing_tests) {
Stefano Duo1a1fcca2023-04-03 09:06:37297 deps += [ "//printing:printing_unittests" ]
agrieve473155b42015-12-28 20:23:11298 }
dpranke7e19b472015-11-13 00:49:33299
jamescookfbbf9112016-06-14 16:24:49300 if (enable_extensions) {
Stefano Duo1a1fcca2023-04-03 09:06:37301 deps += [
302 "//extensions:extensions_browsertests",
303 "//extensions:extensions_unittests",
304 "//extensions/browser/api/declarative_net_request/filter_list_converter",
305 "//extensions/shell:app_shell_unittests",
306 ]
jamescookfbbf9112016-06-14 16:24:49307 }
308
John Abd-El-Malekd842f9b2023-11-17 21:59:48309 if (enable_ml_internal) {
Austin Sullivanbd845512025-02-07 22:54:11310 deps += [
311 "//components/optimization_guide/internal:ondevice_model_benchmark",
312 ]
John Abd-El-Malekd842f9b2023-11-17 21:59:48313 }
314
Stefano Duo1a1fcca2023-04-03 09:06:37315 if (enable_pdf) {
316 deps += [
317 "//pdf/pdfium/fuzzers",
Lei Zhang2c2fc392024-05-09 17:21:12318 "//third_party/pdfium/testing:pdfium_test",
Stefano Duo1a1fcca2023-04-03 09:06:37319 ]
320 }
dpranke2bc89212015-11-18 00:24:43321
Stefano Duo1a1fcca2023-04-03 09:06:37322 if (enable_remoting) {
323 deps += [ "//remoting:remoting_all" ]
324 }
325
326 if (toolkit_views) {
327 deps += [
328 "//ui/views:views_unittests",
329 "//ui/views/examples:views_examples",
330 "//ui/views/examples:views_examples_unittests",
331 "//ui/views/examples:views_examples_with_content",
332 ]
333 }
334
Nasser Al-shawwa9954a392024-09-19 21:39:08335 if (enterprise_watermark) {
336 deps += [ "//chrome/browser/enterprise/watermark:watermark_app" ]
337 }
338
Stefano Duo1a1fcca2023-04-03 09:06:37339 if (use_aura) {
340 deps += [
341 "//ui/aura:aura_demo",
342 "//ui/aura:aura_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37343 "//ui/wm:wm_unittests",
344 ]
345 }
346
Sergey Ulanov647ad462025-02-19 19:34:33347 if (!is_android && !is_ios && !is_fuchsia) {
Robert Liao22722492023-06-14 18:35:47348 deps += [ "//ui/webui/examples:webui_examples" ]
349 }
350
Stefano Duo1a1fcca2023-04-03 09:06:37351 if (use_ozone) {
352 deps += [
353 "//ui/ozone",
354 "//ui/ozone:unittests",
355 ]
356 if (!is_fuchsia) {
357 deps += [ "//ui/ozone/demo" ]
dpranke2bc89212015-11-18 00:24:43358 }
dprankedb5527d72015-03-08 04:22:47359 }
360
Stefano Duo1a1fcca2023-04-03 09:06:37361 if (is_win) {
362 deps += [
363 "//chrome/credential_provider",
364 "//chrome/credential_provider/test:gcp_unittests",
365 ]
Robert Liaobaf93e62024-02-16 00:56:15366
367 if (enable_platform_experience) {
368 deps += [
369 "//chrome/browser/platform_experience/win:platform_experience_helper",
370 ]
371 }
Daniel Nicoaracf98a1bf2022-08-09 19:51:44372 }
373
Stefano Duo1a1fcca2023-04-03 09:06:37374 if (is_mac) {
375 deps += [
376 "//chrome/installer/gcapi_mac:gcapi_example",
377 "//tools/mac",
378 ]
dprankefd1813272015-04-13 23:56:00379 }
380
Stefano Duo1a1fcca2023-04-03 09:06:37381 # Allow building md5sum tool for other OSes (android is added below).
382 # For Windows, see: crbug.com/1090428.
383 # TODO(cavalcantii): move it out of 'android' folder.
384 if (!is_win) {
385 deps += [ "//tools/android/md5sum" ]
fdorayfb048bff2016-04-28 22:07:36386 }
rsesek985bd812016-04-26 21:06:15387
Stefano Duo1a1fcca2023-04-03 09:06:37388 if (is_android) {
389 deps += [
390 "//base:base_junit_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37391 "//base/android/linker:chromium_android_linker",
392 "//build/android/gyp/test:hello_world",
393 "//build/android/stacktrace:java_deobfuscate",
394 "//build/config/android/test/proto:test_build_protos",
395 "//build/private_code_test:private_paths",
396 "//chrome/android/monochrome:monochrome_public_apk_checker",
Stefano Duo1a1fcca2023-04-03 09:06:37397 "//chrome/android/webapk/shell_apk:webapk",
398 "//chrome/android/webapk/shell_apk/prepare_upload_dir:prepare_webapk_shell_upload_dir",
399 "//chrome/test:android_browsertests",
400 "//components:components_junit_tests",
401 "//content/public/android:content_junit_tests",
402 "//content/shell/android:content_shell_apk",
403 "//device:device_junit_tests",
404 "//media/gpu:video_decode_accelerator_unittest",
405 "//net/android:net_junit_tests",
406 "//services:services_junit_tests",
407 "//testing/android/junit:junit_unit_tests",
408 "//third_party/android_build_tools/lint:custom_lint_java",
409 "//third_party/androidx_javascriptengine",
410 "//third_party/catapult/devil",
Andrew Grieve7de55312024-04-10 19:27:33411 "//third_party/jni_zero:jni_zero_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37412 "//third_party/r8:custom_d8_java",
413 "//tools/android:android_tools",
414 "//tools/android:memconsumer",
415 "//tools/android:push_apps_to_background",
416 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
417 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
418 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
Peter Wen2dcfa6e2025-03-04 22:42:52419 "//tools/cygprofile:generate_orderfile_android_trichrome_chrome_bundle",
Peter Wen428292c2024-12-02 15:51:21420 "//tools/pgo:generate_profile_android_trichrome_chrome_bundle",
Mark Schillacid1a94d532023-11-09 17:14:27421 "//ui:ui_junit_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37422 ]
423 deps -= [
424 "//net:net_perftests",
425 "//url:url_unittests",
426 ]
Sergey Ulanov07406542019-12-18 00:09:43427
Stefano Duo1a1fcca2023-04-03 09:06:37428 if (!is_cast_android) {
429 deps += [
430 "//android_webview:empty_group",
431 "//android_webview/test",
Andrew Grievee30e95b2024-06-24 19:13:09432 "//android_webview/tools/automated_ui_tests:webview_ui_test_app_test_apk",
Neil Estrada7ccb9ca2023-08-15 21:07:37433 "//android_webview/tools/captured_sites_tests:captured_sites_test_app",
Andrew Grieve46fb7d92023-11-23 22:04:31434 "//android_webview/tools/sdk_sandbox",
Stefano Duo1a1fcca2023-04-03 09:06:37435 "//android_webview/tools/system_webview_shell",
436 "//chrome/android:chrome_junit_tests",
437 "//chrome/android:chrome_public_apk",
438 "//chrome/android:chrome_public_test_apk",
439 "//chrome/android:chrome_public_unit_test_apk",
440 "//chrome/browser/android/examples/custom_tabs_client:custom_tabs_client_example_apk",
Friedrich Horschigc7c13cbb2025-01-16 10:34:18441 "//chrome/browser/android/examples/inline_autofill_service:inline_autofill_service_example_apk",
Stefano Duo1a1fcca2023-04-03 09:06:37442 "//chrome/browser/android/examples/partner_browser_customizations_provider:partner_browser_customizations_example_apk",
443 "//content/shell/android:content_shell_test_apk",
444 ]
agrieve473155b42015-12-28 20:23:11445 }
dprankeb0713542015-07-31 21:07:21446
Stefano Duo1a1fcca2023-04-03 09:06:37447 if (enable_chrome_android_internal) {
Peter Wen428292c2024-12-02 15:51:21448 deps += [ "//clank" ]
Stefano Duo1a1fcca2023-04-03 09:06:37449 }
450 }
451
452 if (is_linux || is_chromeos || is_android) {
453 deps += [
454 "//third_party/breakpad:breakpad_unittests",
455 "//third_party/breakpad:core-2-minidump",
456 "//third_party/breakpad:generate_test_dump",
457 "//third_party/breakpad:minidump-2-core",
458 "//tools/dump_process_memory:dump_process",
459 ]
460 }
Jonathan Metzman2656ecd2018-11-21 08:22:41461
Yuta Hijikata7128f0822025-03-06 05:44:15462 if (is_chromeos) {
Stefano Duo1a1fcca2023-04-03 09:06:37463 deps += [
464 "//ash:ash_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37465 "//ash/keyboard/ui:keyboard_unittests",
466 "//ash/webui:ash_webui_unittests",
Eriko Kurimoto107af142024-07-08 13:40:02467 "//chrome/browser/ash/child_accounts/time_limit_consistency_test:usage_time_limit_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37468 "//chrome/browser/metrics/perf:profile_provider_unittest",
Yuta Hijikata7128f0822025-03-06 05:44:15469 "//chromeos:chromeos_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37470 "//chromeos/ash/components/proximity_auth:proximity_auth_unittests",
Hidehiko Abed145e342025-02-03 11:23:00471 "//chromeos/ash/experiences:ash_components_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37472 "//chromeos/components:chromeos_components_unittests",
473 "//components/exo/wayland:wayland_client_compatibility_tests",
474 "//components/session_manager/core",
475 "//third_party/shell-encryption:shell_encryption_unittests",
476 "//ui/chromeos:ui_chromeos_unittests",
477 ]
Lei Zhang8baa2942021-05-19 03:59:48478 }
479
Yuta Hijikata7128f0822025-03-06 05:44:15480 if (is_chromeos || is_mac || is_win) {
Stefano Duo1a1fcca2023-04-03 09:06:37481 deps += [
482 "//rlz:rlz_id",
483 "//rlz:rlz_lib",
484 "//rlz:rlz_unittests",
485 ]
486 }
sbc92b4d572016-02-18 03:28:23487
Stefano Duo1a1fcca2023-04-03 09:06:37488 if (is_linux || is_chromeos) {
489 # The following are definitely linux-only.
490 deps += [
491 "//net:disk_cache_memory_test",
492 "//net:quic_client",
493 "//net:quic_server",
494 "//sandbox/linux:chrome_sandbox",
495 "//sandbox/linux:sandbox_linux_unittests",
496 ]
497 if (!is_clang) {
498 deps += [ "//testing:empty_main" ]
499 }
Christopher Grant193648b2017-06-07 15:08:36500
Stefano Duo1a1fcca2023-04-03 09:06:37501 if (!is_castos) {
502 deps += [ "//chrome:xdg_mime" ]
503 }
504
505 if (use_dbus) {
Brian Sheedyf74819b2021-06-04 01:38:38506 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37507 "//dbus:dbus_test_server",
508 "//dbus:dbus_unittests",
Brian Sheedyf74819b2021-06-04 01:38:38509 ]
510 }
Stefano Duo1a1fcca2023-04-03 09:06:37511
512 if (is_chrome_branded && is_official_build) {
513 # TODO(dpranke): add the linux_dump_symbols flag?
514 deps += [ "//chrome:linux_symbols" ]
515 }
Yash Malik8109b5bb2017-07-13 22:40:03516 }
Scott Grahamf24e3742017-08-11 17:50:22517
Georg Neisa324c502025-03-03 06:04:54518 if (is_ios || is_win || is_linux || is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37519 deps += [
520 "//base:base_i18n_perftests",
521 "//google_apis:google_apis_unittests",
522 ]
523 }
524
525 if ((is_win || is_mac || is_linux || is_chromeos || is_fuchsia) &&
526 (target_cpu == "x86" || target_cpu == "x64")) {
527 deps += [
528 "//third_party/swiftshader/src/Vulkan:icd_file",
529 "//third_party/swiftshader/src/Vulkan:swiftshader_libvulkan",
530 ]
531 }
532
533 # TODO(GYP): Figure out which of these should (and can) build
534 # for Chrome OS and iOS (without blink).
Yuta Hijikata7128f0822025-03-06 05:44:15535 if (!is_chromeos && use_blink) {
Stefano Duo1a1fcca2023-04-03 09:06:37536 deps += [
537 "//cc:cc_perftests",
538 "//device:device_unittests",
539 "//gin:gin_shell",
540 "//gin:gin_unittests",
541 "//gpu:command_buffer_perftests",
542 "//gpu:gl_tests",
543 "//gpu:gpu_perftests",
544 "//media:media_perftests",
545 "//third_party/libphonenumber:libphonenumber_unittests",
546 "//ui/compositor:compositor_unittests",
547 ]
548
549 if (!is_ios) {
550 deps += [
551 "//base:build_utf8_validator_tables",
552 "//base:check_example",
553 "//components:components_perftests",
554 "//ipc:ipc_perftests",
555 "//net:dump_cache",
556 ]
557 }
558
Zijie Hed995cb02023-12-14 19:42:48559 if (!is_android && !is_castos && !is_ios && !is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37560 deps += [
561 "//chrome/test:load_library_perf_tests",
562 "//chrome/test:sync_performance_tests",
563 ]
564 }
565
566 if (!is_android && !is_ios) {
567 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37568 "//net:crash_cache",
569 "//net:net_watcher", # TODO(GYP): This should be conditional on
570 # use_v8_in_net
571 "//net:run_testserver",
572 "//net:stress_cache",
573 "//net:tld_cleanup",
574 "//third_party/leveldatabase:env_chromium_unittests",
575 "//third_party/libaddressinput:libaddressinput_unittests",
576 ]
577 }
578
579 if (enable_extensions) {
580 deps += [ "//extensions/shell:app_shell" ]
581 }
582
583 # TODO(https://crbug.com/1299021): These dependencies might be
584 # redundant given that we were able to disable them, apparently without
585 # negative consequences, for the ARM32-NaCl-on-ARM64 case.
586 if (enable_nacl) {
587 if (target_cpu != "arm64") {
588 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
589 }
590
591 if (is_linux || is_chromeos) {
592 # TODO(dpranke): Figure out what platforms should actually have this.
593 deps += [ "//components/nacl/loader:nacl_helper" ]
594 }
595 }
596
597 if (media_use_ffmpeg && !is_android) {
598 deps += [ "//media:ffmpeg_regression_tests" ]
599 }
600 }
601
602 if (enable_ppapi) {
603 deps += [
604 "//ppapi:pepper_hash_for_uma",
605 "//ppapi:ppapi_perftests",
606 ]
607 }
608
Georg Neisa324c502025-03-03 06:04:54609 if (is_android || is_linux) {
Stefano Duo1a1fcca2023-04-03 09:06:37610 deps += [
611 "//components/network_hints/browser",
612 "//content/public/app",
613 "//mojo:mojo_perftests",
614 "//services/service_manager/public/cpp",
615 "//testing/gmock:gmock_main",
danakj7b174142024-07-03 17:00:17616 "//third_party/breakpad:dump_syms($host_system_allocator_toolchain)",
617 "//third_party/breakpad:microdump_stackwalk($host_system_allocator_toolchain)",
618 "//third_party/breakpad:minidump_dump($host_system_allocator_toolchain)",
619 "//third_party/breakpad:minidump_stackwalk($host_system_allocator_toolchain)",
Stefano Duo1a1fcca2023-04-03 09:06:37620 ]
621 }
622
Georg Neisa324c502025-03-03 06:04:54623 if (is_linux) {
Stefano Duo1a1fcca2023-04-03 09:06:37624 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37625 "//skia:filter_fuzz_stub",
626 "//skia:image_operations_bench",
627 "//ui/snapshot:snapshot_unittests",
628 ]
629
630 if (!is_castos) {
631 deps += [ "//chrome/test:chrome_app_unittests" ]
632 }
633
634 if (!is_debug && !is_component_build && !is_castos) {
635 deps += [ "//chrome/tools/service_discovery_sniffer" ]
636 }
637 }
638
639 if (is_mac) {
640 deps += [
danakj7b174142024-07-03 17:00:17641 "//third_party/breakpad:dump_syms($host_system_allocator_toolchain)",
Stefano Duo1a1fcca2023-04-03 09:06:37642
643 # The following are accessibility API tools.
644 "//tools/accessibility/inspect:ax_dump_events",
645 "//tools/accessibility/inspect:ax_dump_tree",
646 ]
647 deps -= [
648 # Mojo in GN contains some things which are never compiled in GYP on Mac,
649 # so compilation fails on Mac. They need porting.
650 "//mojo",
651 ]
652 }
653
654 if (is_win) {
655 deps += [
656 "//base:pe_image_test",
Stefano Duo1a1fcca2023-04-03 09:06:37657 "//chrome/chrome_elf:chrome_elf_unittests",
658 "//chrome/chrome_elf:dll_hash_main",
659 "//chrome/elevation_service:elevation_service_unittests",
660 "//chrome/install_static:install_static_unittests",
661 "//chrome/installer/gcapi",
662 "//chrome/installer/setup:setup_unittests",
663 "//chrome/notification_helper:notification_helper_unittests",
664 "//chrome/test:delayloads_unittests",
665 "//components/wifi:wifi_test",
666 "//components/zucchini",
667 "//net:quic_client",
668 "//net:quic_server",
669 "//sandbox/win:sbox_integration_tests",
670 "//sandbox/win:sbox_unittests",
671 "//sandbox/win:sbox_validation_tests",
672 "//testing/gtest:gtest_main",
673
674 # The following two are accessibility API debugging tools.
675 "//tools/accessibility/inspect:ax_dump_events",
676 "//tools/accessibility/inspect:ax_dump_tree",
677 "//tools/win/chromeexts:chromeexts",
678 ]
679
680 # TODO(thakis): Enable this in cross builds, https://crbug.com/799827
681 if (!(is_component_build && is_debug && target_cpu == "x86") &&
682 host_os == "win") {
683 deps += [ "//chrome/test/mini_installer:mini_installer_tests" ]
684 }
danakj7b174142024-07-03 17:00:17685 }
686
687 if (!is_fuchsia) {
688 # The official builders use this binary from the default toolchain's
689 # output directory after building in order to upload the symbols of that
690 # binary. They build the binary like `ninja symupload` which requires the
691 # target to be a dependency in the default_toolchain from `gn_all` for the
692 # name to resolve.
693 deps += [ "//third_party/breakpad:symupload" ]
694 }
danakj6c3b7152024-07-04 16:40:49695 if (is_mac && host_cpu == "arm64") {
danakj7b174142024-07-03 17:00:17696 # TODO(crbug.com/349268750): This alias exists because the official Mac
697 # arm64 builders (which cross-build the x64 binaries) use the hardcoded
698 # path of the `$host_toolchain/symupload` to build and run the symupload
699 # binary. And the same recipes are used on all branches!! So we would break
700 # the stable branch builders by changing the recipe to build and run the
701 # binary from the root_build_dir.
702 #
703 # Once this code is in stable, we can land the following CLs to change how
704 # symupload is built and run on Mac arm64 official builders, and then this
705 # alias can be removed.
706 # Build: https://chrome-internal-review.googlesource.com/c/chrome/src-internal/+/7430844
707 # Run: https://chrome-internal-review.googlesource.com/c/chrome/tools/release/scripts/+/7430843
Will Yeagerc1b50eb2024-06-26 05:24:44708 deps += [ "//third_party/breakpad:symupload($host_toolchain)" ]
Stefano Duo1a1fcca2023-04-03 09:06:37709 }
710
711 if (is_cast_android || is_castos || (is_fuchsia && enable_cast_receiver)) {
712 deps += [ "//chromecast:cast_test_lists" ]
713 }
714
715 if (is_cast_android || is_castos) {
716 deps += [
717 "//chromecast:cast_shell",
718 "//chromecast/cast_core:core_runtime_simple",
719 ]
720 }
721
722 if (is_mac || is_win || is_android || is_linux || is_chromeos) {
723 deps += [
724 "//third_party/crashpad/crashpad:crashpad_tests",
725 "//third_party/crashpad/crashpad/handler:crashpad_handler",
726 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
727 ]
728 }
729
730 if (enable_message_center) {
731 deps += [ "//ui/message_center:message_center_unittests" ]
732 }
733
734 if (!is_android && !is_ios) {
735 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
736 }
737
738 if (is_win || is_linux || is_chromeos) {
739 deps += [ "//mojo" ]
740 }
741
742 if (is_mac || is_linux || is_chromeos || is_android || is_fuchsia) {
743 deps += [ "//third_party/perfetto:all" ]
744 }
745
746 if (is_win || is_mac || is_linux || is_chromeos) {
747 deps += [ "//third_party/sqlite:sqlite_shell" ]
748 }
749
Georg Neisa324c502025-03-03 06:04:54750 if ((is_linux && !is_castos) || is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37751 # TODO(https://crbug.com/1329673): Figure out if this should be in gn_all
752 # and how cross-platform this is.
753 deps +=
754 [ "//components/services/filesystem:filesystem_service_unittests" ]
755 }
756
Georg Neisa324c502025-03-03 06:04:54757 if (is_linux && !is_castos) {
Stefano Duo1a1fcca2023-04-03 09:06:37758 # TODO(https://crbug.com/1329673): Figure out if any of these should be in
759 # gn_all and figure out how cross-platform they are.
760 deps += [
761 "//chrome/installer/util:strings",
762 "//chrome/tools/convert_dict",
763 "//components/constrained_window:unit_tests",
764 "//components/metrics:serialization",
765 "//components/sessions:unit_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37766 "//storage/browser:dump_file_system",
767 "//third_party/angle:libANGLE",
768 "//third_party/angle:libEGL",
769 "//third_party/angle:libGLESv2",
770 "//third_party/leveldatabase:leveldb_test_targets",
771 "//third_party/libjpeg_turbo:simd",
772 "//third_party/opus:opus_compare",
773 "//third_party/opus:opus_demo",
774 "//third_party/opus:test_opus_api",
775 "//third_party/opus:test_opus_decode",
776 "//third_party/opus:test_opus_encode",
777 "//third_party/opus:test_opus_padding",
778 "//ui/display/types",
779 "//ui/shell_dialogs:shell_dialogs_unittests",
780 ]
781
782 if (target_cpu == "x86" || target_cpu == "x64") {
783 if (!is_android) {
784 deps += [ "//chrome/test:load_library_perf_tests" ]
785 }
786 deps += [ "//third_party/libjpeg_turbo:simd_asm" ]
787 }
788 if ((is_linux || is_chromeos) && current_toolchain == host_toolchain) {
789 deps += [ "//v8:v8_shell" ]
790 }
791 }
792
793 if ((is_linux && !is_castos) || is_chromeos ||
794 ((is_win || is_mac) && use_fuzzing_engine)) {
795 deps += [
796 "//testing/libfuzzer/fuzzers",
Adrian Taylorde84dff2024-11-01 18:00:22797 "//testing/libfuzzer/research",
Stefano Duo1a1fcca2023-04-03 09:06:37798 "//third_party/freetype-testing:fuzzers",
Stefano Duo1a1fcca2023-04-03 09:06:37799 "//third_party/icu/fuzzers",
Stefano Duo1a1fcca2023-04-03 09:06:37800 "//third_party/ukey2/fuzzers",
801 "//third_party/zlib/contrib/tests/fuzzers",
802 ]
803
Yuta Hijikata7128f0822025-03-06 05:44:15804 if (is_chromeos) {
Stefano Duo1a1fcca2023-04-03 09:06:37805 deps += [ "//chrome/services/ipp_parser/public/cpp:fuzzers" ]
806 }
Stefano Duo1a1fcca2023-04-03 09:06:37807 }
808
809 # TODO(https://crbug.com/1299021): Remove the special case for arm64.
810 if (enable_nacl && target_cpu != "arm64") {
811 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
812 }
813
814 if (((is_linux || is_chromeos) && use_ozone) || is_fuchsia) {
815 deps += [
816 "//headless:headless_non_renderer",
817 "//headless:headless_tests",
818 ]
819 }
820
821 if (enable_vr) {
822 deps += [
823 "//chrome/browser/vr:vr_common_perftests",
824 "//chrome/browser/vr:vr_common_unittests",
825 ]
826 if (!is_android) {
827 deps += [ "//tools/perf/contrib/vr_benchmarks:vr_perf_tests" ]
828 } else {
829 deps += [ "//chrome/browser/android/vr:vr_android_unittests" ]
830 import("//tools/perf/chrome_telemetry_build/android_browser_types.gni")
831 foreach(_target_suffix, telemetry_android_browser_target_suffixes) {
832 deps += [
833 "//tools/perf/contrib/vr_benchmarks:vr_perf_tests${_target_suffix}",
834 ]
835 }
836 }
837 }
838
839 if (use_atk) {
840 deps += [
841 "//tools/accessibility/inspect:ax_dump_events",
842 "//tools/accessibility/inspect:ax_dump_tree",
843 ]
844 }
845
846 if (build_dawn_tests) {
847 deps += [
848 "//third_party/dawn/src/dawn/fuzzers:fuzzers",
849 "//third_party/dawn/src/dawn/tests:dawn_end2end_tests",
850 "//third_party/dawn/src/dawn/tests:dawn_unittests",
Ben Clayton3b40f9b2023-10-21 00:16:56851 "//third_party/dawn/src/tint:fuzzers",
852 "//third_party/dawn/src/tint:tests",
Stefano Duo1a1fcca2023-04-03 09:06:37853 ]
854 }
855
856 # PFFFT.
Martin Robinsone4fddede2018-09-18 10:30:21857 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37858 "//third_party/pffft:fuzzers",
859 "//third_party/pffft:pffft_benchmark",
860 "//third_party/pffft:pffft_unittest",
Martin Robinsone4fddede2018-09-18 10:30:21861 ]
Stefano Duo1a1fcca2023-04-03 09:06:37862
863 # Rust build targets.
Kalvin Lee1b60e6e72023-07-20 05:09:31864 if (enable_rust) {
865 deps += [ ":all_rust" ]
866 }
Alessio Bazzica383dcef92019-02-08 14:14:42867
Stefano Duo8d358e32023-04-14 09:45:29868 if (!is_android && !is_ios) {
869 deps += [ "//components/cronet:cronet_tests" ]
870 }
Stefano Duo1a1fcca2023-04-03 09:06:37871 }
Thiago Perrotta942ed3e2023-09-05 09:26:52872
873 if (is_chrome_for_testing) {
874 deps += [ "//chrome/browser/chrome_for_testing:chrome_for_testing" ]
875 }
Ivan Kirichenko84cd3452024-09-25 08:14:04876
877 if (checkout_src_internal) {
878 deps += [ "//internal:all" ]
879 }
Collin Baker153146f32023-03-09 20:08:41880}
Collina1e27a42022-01-26 20:12:03881
Collin Baker153146f32023-03-09 20:08:41882# All Rust targets. This is provided for convenience while developing Rust to
883# e.g. test build config or toolchain changes.
884group("all_rust") {
885 testonly = true
886
danakj6fdddfa22024-10-29 17:10:49887 deps = [
888 ":rust_build_tests",
danakj9ddc16242024-11-07 22:14:14889 "//base:base_unittests", # There is rust stuff in here.
danakj9ddc16242024-11-07 22:14:14890 "//third_party/cloud_authenticator/processor",
danakj6fdddfa22024-10-29 17:10:49891 ]
Collin Baker153146f32023-03-09 20:08:41892
Justin Cohen6f39b1e2025-03-21 20:39:11893 # TODO(https://crbug.com/405379314): This fails to build on some iOS ASAN
894 # builders.
895 if (!is_ios || !is_asan) {
896 deps += [ "//testing/rust_gtest_interop:rust_gtest_interop_unittests" ]
897 }
898
Kalvin Lee1b60e6e72023-07-20 05:09:31899 if (enable_rust_mojo) {
900 deps += [
danakj62e4aae2023-12-15 22:31:22901 "//mojo/public/rust:mojo_rust",
Kalvin Lee1b60e6e72023-07-20 05:09:31902 "//mojo/public/rust:mojo_rust_integration_unittests",
903 "//mojo/public/rust:mojo_rust_unittests",
904 ]
905 }
Lukasz Anforowiczd2481732024-12-11 16:01:10906 if (enable_rust_png && !is_cronet_build) {
danakj6fdddfa22024-10-29 17:10:49907 deps += [ "//skia" ]
908 }
Adrian Taylor21dcb362021-09-01 14:58:14909}
910
Adrian Taylor0ea2a34b2023-03-18 08:08:32911# This group exists to give targets for the waterfall to refer to.
Adrian Taylor21dcb362021-09-01 14:58:14912group("rust_build_tests") {
Lukasz Anforowicz8524e3562021-09-23 14:12:26913 testonly = true
Adrian Taylor21dcb362021-09-01 14:58:14914 deps = [ "//build/rust/tests" ]
tfarinafbc992492017-03-08 22:44:04915}
916
Maksim Sisov25c86c82020-08-18 19:25:08917# TODO(https://crbug.com/1112776): ensure remoting is functional on Linux builds with
Maksim Sisov941ac832021-11-09 06:34:19918# other than X11 Ozone backends.
919if (enable_remoting && ((is_linux && ozone_platform_x11) ||
920 ((is_chromeos || is_win) && !use_ozone))) {
Nicolas Ouellet-Payeurebe785238d2021-11-12 14:49:55921 # On CQ, run the Traffic Annotation Auditor when a change affects one of these
922 # targets.
923 group("traffic_annotation_auditor_dependencies") {
Takuto Ikuta9d11eb12018-11-20 02:30:00924 deps = [
925 "//chrome:chrome",
926 "//remoting/host:host",
Nicolas Ouellet-Payeur8026e2a2022-10-03 18:27:55927 "//tools/traffic_annotation:annotations_xml",
Takuto Ikuta9d11eb12018-11-20 02:30:00928 ]
Nicolas Ouellet-Payeur84d90162024-07-10 18:07:54929 if (enable_enterprise_companion) {
930 deps += [ "//chrome/enterprise_companion" ]
931 }
Takuto Ikuta9d11eb12018-11-20 02:30:00932 }
933}
934
Yuta Hijikata7128f0822025-03-06 05:44:15935if (is_chromeos) {
Baijun Zhua9842652022-05-19 23:28:34936 group("traffic_annotation_auditor_dependencies") {
937 deps = [
938 "//chrome",
Nicolas Ouellet-Payeur8026e2a2022-10-03 18:27:55939 "//tools/traffic_annotation:annotations_xml",
Baijun Zhua9842652022-05-19 23:28:34940 ]
941 }
942}
943
Stefano Duo1a1fcca2023-04-03 09:06:37944if (is_android && !is_cronet_build) {
Nicolas Ouellet-Payeurebe785238d2021-11-12 14:49:55945 # On CQ, run the Traffic Annotation Auditor when a change affects one of these
946 # targets.
947 group("traffic_annotation_auditor_dependencies") {
948 deps = [
949 "//chrome/android:chrome_public_apk",
Nicolas Ouellet-Payeur8026e2a2022-10-03 18:27:55950 "//tools/traffic_annotation:annotations_xml",
Nicolas Ouellet-Payeurebe785238d2021-11-12 14:49:55951 ]
952 }
953}
954
Scott Graham677e79102017-08-15 20:07:37955if (is_fuchsia) {
956 # TODO(https://crbug.com/731217): This can't practically be in //v8 without
957 # duplicating all the Fuchsia running infrastructure there.
Greg Thompsonada4b212022-09-12 13:31:49958 fuchsia_component("d8_component") {
Kevin Marshall57a19db2018-09-12 20:07:05959 testonly = true
Greg Thompsonada4b212022-09-12 13:31:49960 manifest = "//v8/gni/v8.cml"
961 data_deps = [ "//v8:d8" ]
Kevin Marshall39b4aa82018-06-23 00:12:15962 }
Greg Thompsonada4b212022-09-12 13:31:49963 fuchsia_package("d8_pkg") {
964 testonly = true
965 package_name = "d8"
966 deps = [ ":d8_component" ]
967 }
Kevin Marshall5fadadd2021-10-16 00:08:25968 fuchsia_package_installer("d8_fuchsia") {
Kevin Marshall57a19db2018-09-12 20:07:05969 testonly = true
Greg Thompsonada4b212022-09-12 13:31:49970 package = ":d8_pkg"
Kevin Marshall5fadadd2021-10-16 00:08:25971 package_name = "d8"
Scott Graham677e79102017-08-15 20:07:37972 }
973}
974
tfarinafbc992492017-03-08 22:44:04975# TODO(GYP_GONE): Figure out if we really need this target or if there's
976# some better way to specify things.
977if (is_win) {
978 group("chrome_official_builder_no_unittests") {
979 deps = [
probergefe476002017-06-23 14:29:01980 "//chrome/common/win:eventlog_provider",
Roger Tawa5cb75d72018-11-09 21:56:38981 "//chrome/credential_provider",
Noah Rose Ledesma1b9e9082024-09-10 04:55:06982 "//chrome/enterprise_companion:enterprise_companion_zip",
tfarinafbc992492017-03-08 22:44:04983 "//chrome/installer/gcapi",
984 "//chrome/installer/mini_installer",
Joshua Pawlickie7e42ef2021-11-10 00:19:19985 "//chrome/updater/win:updater_zip",
tfarinafbc992492017-03-08 22:44:04986 "//components/policy:pack_policy_templates",
Samuel Huang577ef6c2018-03-13 18:19:34987 "//components/zucchini",
Will Harris62dfa042022-11-16 00:54:21988 "//components/zucchini:zucchini64",
Koji Ishii4adc9c072020-09-07 04:03:43989 "//third_party/hyphenation-patterns",
holteb87f01f52017-04-10 20:45:53990 "//tools/metrics:metrics_metadata",
tfarinafbc992492017-03-08 22:44:04991 ]
992
tfarinafbc992492017-03-08 22:44:04993 if (is_chrome_branded) {
994 deps += [ "//remoting/host:remoting_host_installation" ]
995 }
Jesse McKennac4445a22024-05-31 23:36:22996 if (enable_platform_experience) {
997 deps += [
998 "//chrome/browser/platform_experience/win:platform_experience_helper",
999 ]
1000 }
tfarinafbc992492017-03-08 22:44:041001 }
1002
1003 group("chrome_official_builder") {
1004 testonly = true
1005
1006 deps = [
Xinan Lin4df5e822023-06-28 18:54:581007 ":blink_wpt_tests",
tfarinafbc992492017-03-08 22:44:041008 ":chrome_official_builder_no_unittests",
1009 "//base:base_unittests",
1010 "//chrome/test:browser_tests",
Xinan Lin4df5e822023-06-28 18:54:581011 "//chrome/test:interactive_ui_tests",
tfarinafbc992492017-03-08 22:44:041012 "//ipc:ipc_tests",
1013 "//media:media_unittests",
1014 "//media/midi:midi_unittests",
1015 "//net:net_unittests",
tfarinafbc992492017-03-08 22:44:041016 "//sql:sql_unittests",
danakj7b174142024-07-03 17:00:171017 "//third_party/breakpad:symupload",
tfarinafbc992492017-03-08 22:44:041018 "//ui/base:ui_base_unittests",
1019 "//ui/gfx:gfx_unittests",
1020 "//ui/touch_selection:ui_touch_selection_unittests",
1021 "//ui/views:views_unittests",
1022 "//url:url_unittests",
1023 ]
Dominik Röttsches1716cf92024-09-03 17:32:391024
1025 if (enable_printing || enable_printing_tests) {
1026 deps += [ "//printing:printing_unittests" ]
1027 }
tfarinafbc992492017-03-08 22:44:041028 }
tfarinafbc992492017-03-08 22:44:041029}
1030
Yuta Hijikata7128f0822025-03-06 05:44:151031if (is_chromeos) {
Ben Pastenebbb9bf142020-03-30 17:51:141032 # This group is used to collect all targets used when verifying a new version
1033 # of Chrome for Chrome OS.
tfarinafbc992492017-03-08 22:44:041034 group("chromiumos_preflight") {
1035 testonly = true
Ben Pastene3ea517912020-07-02 00:20:421036 data_deps = [
tfarinafbc992492017-03-08 22:44:041037 "//chrome",
Vladimir Nechaev83555c02022-11-04 05:26:411038 "//chrome/test/chromedriver:chromedriver_server",
Wei Lee01d63ef2019-05-09 09:24:501039 "//components/chromeos_camera:jpeg_decode_accelerator_unittest",
Jim Shargo906dbce2021-10-14 18:48:461040 "//components/exo/wayland:wayland_client_integration_tests",
Ben Pastenebbb9bf142020-03-30 17:51:141041 "//components/exo/wayland:wayland_client_perftests",
Lucas Berthou8841d6272021-02-24 20:28:501042 "//components/exo/wayland:wayland_client_tests",
Femi Adegunloye6a953a52023-02-07 19:33:531043 "//components/exo/wayland:wayland_hdr_client",
Mohamed Omar42fe5872022-08-10 17:25:531044 "//components/policy/test_support:fake_dmserver",
tfarinafbc992492017-03-08 22:44:041045 "//media:media_unittests",
Ben Pastenebbb9bf142020-03-30 17:51:141046 "//media/capture:capture_unittests",
tfarinafbc992492017-03-08 22:44:041047 "//sandbox/linux:chrome_sandbox",
Henrique Nakashima87b6d8b2022-07-13 13:59:041048 "//sandbox/linux:sandbox_linux_unittests",
Chu-Hsuan Yang98ad7f92024-06-27 05:15:341049 "//services/screen_ai:screen_ai_ocr_perf_test",
danakj7b174142024-07-03 17:00:171050 "//third_party/breakpad:minidump_stackwalk($host_system_allocator_toolchain)",
Austin Engbab1a5d2022-02-10 17:35:101051 "//third_party/dawn/src/dawn/tests:dawn_end2end_tests",
1052 "//third_party/dawn/src/dawn/tests:dawn_unittests",
Jim Shargoc84cb582022-04-28 17:10:571053 "//ui/ozone:ozone_integration_tests",
tfarinafbc992492017-03-08 22:44:041054
1055 # Blocked on https://github.com/catapult-project/catapult/issues/2297
1056 #"//third_party/catapult/telemetry:bitmaptools",
1057 "//tools/perf/clear_system_cache",
Xiyuan Xia93b801e2023-07-01 17:28:461058 "//ui/ozone/gl:ozone_gl_unittests",
tfarinafbc992492017-03-08 22:44:041059 ]
Alexandre Courbot8ad2427d2017-08-25 14:04:551060
Colin Kincaidb1137392023-06-16 20:53:401061 if (enable_ppapi) {
Lei Zhang1e297622022-06-28 10:30:061062 data_deps += [ "//ppapi/examples/video_decode" ]
1063 }
1064
Alexandre Courbot8ad2427d2017-08-25 14:04:551065 if (use_v4l2_codec || use_vaapi) {
Ben Pastene3ea517912020-07-02 00:20:421066 data_deps += [
Wei Lee01d63ef2019-05-09 09:24:501067 "//components/chromeos_camera:jpeg_encode_accelerator_unittest",
Collin Baker7ce81ea2023-03-30 19:35:451068 "//media/gpu/chromeos:image_processor_test",
Miguel Casasadc54be2023-03-27 18:20:441069 "//media/gpu/test/:video_decode_accelerator_perf_tests",
1070 "//media/gpu/test/:video_decode_accelerator_tests",
1071 "//media/gpu/test/:video_encode_accelerator_perf_tests",
1072 "//media/gpu/test/:video_encode_accelerator_tests",
Alexandre Courbot8ad2427d2017-08-25 14:04:551073 ]
Ben Pastenebbb9bf142020-03-30 17:51:141074 if (use_vaapi) {
Jao-ke Chin-Lee994de272020-12-28 20:05:081075 data_deps += [
1076 "//media/gpu/vaapi:decode_test",
1077 "//media/gpu/vaapi:vaapi_unittest",
Grayson LaFleur5e224832022-12-16 04:30:131078 "//media/gpu/vaapi/test/fake_libva_driver:fake_libva_driver_unittest",
Jao-ke Chin-Lee994de272020-12-28 20:05:081079 ]
Ben Pastenebbb9bf142020-03-30 17:51:141080 }
Steve Cho2ac5f2d2022-02-04 17:15:421081 if (use_v4l2_codec) {
Steve Cho9bf47812023-05-17 19:02:581082 data_deps += [
Bijan Choobinehe2113a12023-06-13 17:55:171083 "//media/gpu/chromeos:image_processor_perf_test",
Steve Cho9bf47812023-05-17 19:02:581084 "//media/gpu/v4l2:v4l2_stateless_decoder",
1085 "//media/gpu/v4l2:v4l2_unittest",
1086 ]
Steve Cho2ac5f2d2022-02-04 17:15:421087 }
Alexandre Courbot8ad2427d2017-08-25 14:04:551088 }
tfarinafbc992492017-03-08 22:44:041089 }
dprankedb5527d72015-03-08 04:22:471090}
1091
Gyuyoung Kim136038292023-09-01 01:32:341092if (use_blink && !is_cronet_build) {
Vladimir Nechaeveb261292022-11-18 06:18:051093 group("chromedriver_group") {
David Dorwin776712222022-04-13 23:01:541094 testonly = true
1095
1096 if (is_fuchsia || is_android) {
Ryan Keanea67d8022022-06-18 00:20:321097 # On Fuchsia and non-Cast Android, ChromeDriver runs on the host, not the
1098 # device.
1099 if (!is_cast_android) {
Vladimir Nechaev83555c02022-11-04 05:26:411100 deps = [
1101 "//chrome/test/chromedriver:chromedriver_server($host_toolchain)",
1102 ]
Ryan Keanea67d8022022-06-18 00:20:321103 }
1104 if (is_android && !is_cast_android) {
1105 deps += [ "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk" ]
David Dorwin776712222022-04-13 23:01:541106 }
Gyuyoung Kim136038292023-09-01 01:32:341107 } else if (!is_castos && !is_ios) {
David Dorwin776712222022-04-13 23:01:541108 deps = [
Vladimir Nechaev83555c02022-11-04 05:26:411109 "//chrome/test/chromedriver:chromedriver_server",
David Dorwin776712222022-04-13 23:01:541110 "//chrome/test/chromedriver:chromedriver_unittests",
Vladimir Nechaevc672deb2024-06-07 14:53:051111 "//chrome/test/chromedriver:copy_license",
1112 "//chrome/test/chromedriver:generate_chromedriver_notices",
David Dorwin776712222022-04-13 23:01:541113 ]
1114 }
1115 }
1116
tfarinacb2638b2015-05-12 03:24:151117 # This group includes all of the targets needed to build and test Blink,
Giovanni Ortuño Urquidie7f98f82019-10-29 00:26:591118 # including running web tests (see below). This target is defined here because
1119 # previously //third_party/WebKit, now //third_party/blink, couldn't depend on
1120 # //content/shell. This might not longer be true, see
1121 # https://crbug.com/1018659.
tfarinacb2638b2015-05-12 03:24:151122 group("blink_tests") {
1123 testonly = true
1124
1125 deps = [
Kent Tamuraef54e402019-02-14 07:18:361126 ":blink_web_tests",
Weizhong Xia8b786422022-06-23 14:46:511127 ":blink_wpt_tests",
Blink Reformata30d4232018-04-07 15:31:061128 "//third_party/blink/public:all_blink",
tansell88df42592016-11-15 07:22:591129 ]
Weizhong Xia0895abfa2025-01-08 23:55:381130
Yuta Hijikata7128f0822025-03-06 05:44:151131 if (!is_chromeos && !is_ios && !is_fuchsia && !is_android && !is_castos) {
Weizhong Xia0895abfa2025-01-08 23:55:381132 deps += [
1133 ":chrome_wpt_tests",
1134 ":headless_shell_wpt",
1135 ]
1136 }
tansell88df42592016-11-15 07:22:591137 }
1138
Jonathan Lee133d8d32024-09-03 17:55:441139 # Options shared by all script test targets that call `run_web_tests.py` or
1140 # `run_wpt_tests.py`.
1141 _common_web_test_options = [
1142 "--no-show-results",
1143 "--zero-tests-executed-ok",
Ben Pastene8661004b2024-11-13 18:36:421144 "--build-directory",
1145 "@WrappedPath(.)",
Jonathan Lee133d8d32024-09-03 17:55:441146 ]
1147 if (is_debug) {
1148 _common_web_test_options += [ "--debug" ]
1149 } else {
1150 _common_web_test_options += [ "--release" ]
1151 }
Jonathan Leef4865a12024-09-03 19:51:051152 if (is_asan) {
1153 _common_web_test_options += [
1154 "--enable-sanitizer",
1155 "--additional-expectations",
1156 "@WrappedPath(" +
1157 rebase_path("//third_party/blink/web_tests/ASANExpectations",
1158 root_out_dir) + ")",
1159 ]
1160 }
An Sungd75ea3332024-12-05 18:45:231161 if (is_chrome_for_testing) {
1162 _common_web_test_options += [
1163 "--additional-expectations",
1164 "@WrappedPath(" +
1165 rebase_path("//third_party/blink/web_tests/CfTTestExpecations",
1166 root_out_dir) + ")",
1167 ]
1168 }
Jonathan Leef4865a12024-09-03 19:51:051169 if (is_msan) {
1170 _common_web_test_options += [
1171 "--enable-sanitizer",
1172 "--additional-expectations",
1173 "@WrappedPath(" +
1174 rebase_path("//third_party/blink/web_tests/MSANExpectations",
1175 root_out_dir) + ")",
1176 ]
1177 }
Jonathan Lee133d8d32024-09-03 17:55:441178 if (is_fuchsia) {
1179 _common_web_test_options += [
1180 "--out-dir",
1181 "@WrappedPath(.)",
Ben Pasteneea815792024-08-23 15:47:471182 ]
Jonathan Lee133d8d32024-09-03 17:55:441183 }
1184
Yuta Hijikata7128f0822025-03-06 05:44:151185 if (!is_chromeos && !is_ios && !is_fuchsia && !is_android && !is_castos) {
Weizhong Xia0895abfa2025-01-08 23:55:381186 # https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/run_web_platform_tests.md
Weizhong Xia711d3e62023-09-11 18:04:351187 script_test("chrome_wpt_tests") {
Nihar Damarasingu509ce0c2022-09-01 14:18:201188 script = "//third_party/blink/tools/run_wpt_tests.py"
Jonathan Lee133d8d32024-09-03 17:55:441189 args = _common_web_test_options + [ "--product=chrome" ]
Weizhong Xia635631352023-12-01 21:28:351190 if (dcheck_always_on) {
1191 args += [ "--timeout-multiplier=2" ]
1192 } else {
1193 args += [ "--timeout-multiplier=1" ]
1194 }
Weizhong Xia803d9cf2024-09-05 05:30:131195 if (is_chrome_branded) {
1196 args += [
1197 "--driver-name",
1198 "Google Chrome",
1199 ]
1200 }
Luke Zielinski218ddea32019-07-15 16:52:241201 data_deps = [
Jonathan Lee943799b2023-11-02 00:29:521202 ":blink_web_tests_expectations",
Mike Jackson7a4e8032024-01-08 19:41:011203 ":blink_web_tests_support_data",
Luke Zielinski218ddea32019-07-15 16:52:241204 "//chrome:chrome",
Vladimir Nechaev83555c02022-11-04 05:26:411205 "//chrome/test/chromedriver:chromedriver_server",
Luke Zielinski57397c7c2021-03-04 22:53:511206 "//third_party/blink/tools:wpt_tests_isolate",
Luke Zielinski218ddea32019-07-15 16:52:241207 ]
Luke Zielinski218ddea32019-07-15 16:52:241208 }
Weizhong Xia0895abfa2025-01-08 23:55:381209
1210 # https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/run_web_platform_tests.md
Weizhong Xia258547b2024-04-17 21:12:531211 script_test("headless_shell_wpt") {
1212 script = "//third_party/blink/tools/run_wpt_tests.py"
Weizhong Xia192c90292025-02-28 18:20:071213 args = _common_web_test_options + [ "--product=headless_shell" ]
Weizhong Xia258547b2024-04-17 21:12:531214 data_deps = [
1215 ":blink_web_tests_expectations",
1216 ":blink_web_tests_support_data",
Weizhong Xia258547b2024-04-17 21:12:531217 "//chrome/test/chromedriver:chromedriver_server",
Jonathan Lee532106f2024-06-03 23:40:001218 "//headless:headless_shell",
Weizhong Xia258547b2024-04-17 21:12:531219 "//third_party/blink/tools:wpt_tests_isolate",
1220 ]
Jonathan Lee532106f2024-06-03 23:40:001221 if (is_mac || is_linux) {
1222 data_deps += [ "//third_party/hyphenation-patterns:bundle_hyphen_data" ]
1223 }
Weizhong Xia258547b2024-04-17 21:12:531224 }
kyle Juf8cdeac2019-02-07 00:10:011225 }
1226
Kai Ninomiyafb9e5962020-03-17 06:11:381227 group("blink_web_tests_support_data") {
John Budorick7c8273b2019-04-25 15:27:471228 testonly = true
tansell88df42592016-11-15 07:22:591229 data_deps = [
yzshena0646992017-04-02 22:01:271230 ":layout_test_data_mojo_bindings",
Ken Rockot86d360462018-10-24 02:50:091231 ":layout_test_data_mojo_bindings_lite",
tansell88df42592016-11-15 07:22:591232 "//content/shell:content_shell",
Ken Rockot3d21f6a2020-10-09 03:39:431233 "//content/test:mojo_bindings_web_test_mojom_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201234 "//content/test:mojo_web_test_bindings_js_data_deps",
Reilly Grantfa93b142018-02-01 02:13:481235 "//device/bluetooth/public/mojom:fake_bluetooth_interfaces_js_data_deps",
Rafael Cintron5b95b8d2020-11-04 01:58:101236 "//device/vr/public/mojom:vr_service_js_data_deps",
Christian Fremerey65d1f5e2018-03-02 23:46:481237 "//media/capture/mojom:image_capture_js_data_deps",
Adithya Srinivasan5b82b2e2018-12-14 16:08:091238 "//media/midi:mojo_js_data_deps",
Evan Liud7252282024-05-16 20:10:321239 "//media/mojo/mojom:web_speech_recognition_js_data_deps",
yzshen9e737bf2017-06-21 19:38:231240 "//mojo/public/interfaces/bindings/tests:test_data_deps",
Giovanni Ortuño Urquidif07d80c2019-10-03 07:43:381241 "//mojo/public/js/ts/bindings/tests:test_interfaces_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201242 "//mojo/public/mojom/base:base_js_data_deps",
Ke He31d0bb02018-02-24 07:16:241243 "//services/device/public/mojom:generic_sensor_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201244 "//services/device/public/mojom:mojom_js_data_deps",
Donna Wu4dc9df32019-05-20 03:56:211245 "//services/device/public/mojom:usb_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201246 "//services/shape_detection/public/mojom:mojom_js_data_deps",
Miyoung Shin40adbd62019-07-30 07:33:401247 "//skia/public/mojom:mojom_js_data_deps",
jonrossc1179f2c2019-04-23 22:56:151248 "//testing/buildbot/filters:blink_web_tests_filter",
Zhenyao Mo5110fce2024-08-06 19:18:331249 "//third_party/angle:includes",
Blink Reformata30d4232018-04-07 15:31:061250 "//third_party/blink/public:blink_devtools_frontend_resources_files",
Alex Rudenko9d994132020-06-02 12:37:001251 "//third_party/blink/public:blink_devtools_inspector_resources",
Julie Jeongeun Kim4f1b5aa2019-05-08 01:32:091252 "//third_party/blink/public/mojom:mojom_platform_js_data_deps",
Kouhei Uenoa72ecc862023-07-12 02:26:051253 "//third_party/blink/renderer/core:gen_files_for_web_tests",
Rakib M. Hasan995ca2e2019-10-14 19:48:401254 "//third_party/catapult/third_party/typ",
Koji Ishiia507ce82020-10-20 21:39:451255 "//third_party/hyphenation-patterns:test_data",
agrieve993374cf2016-04-13 00:05:391256 "//tools/imagediff",
Brian Sheedy6bcba67d2022-02-23 23:45:111257 "//ui/base:goldctl",
tfarinacb2638b2015-05-12 03:24:151258 ]
1259
tfarinacb2638b2015-05-12 03:24:151260 if (is_android) {
tansell88df42592016-11-15 07:22:591261 data_deps += [
Mark Mentovaiebb9ddd62017-09-25 17:24:411262 "//third_party/breakpad:breakpad_unittests",
danakj7b174142024-07-03 17:00:171263 "//tools/android/forwarder2",
1264
1265 # Using the target toolchain for this tool, as it's run during tests not
1266 # during the build. This places a symlink in the root_build_dir for
1267 # scrips to use.
Mark Mentovaiebb9ddd62017-09-25 17:24:411268 "//third_party/breakpad:dump_syms",
1269 "//third_party/breakpad:microdump_stackwalk",
1270 "//third_party/breakpad:minidump_dump",
1271 "//third_party/breakpad:minidump_stackwalk",
1272 "//third_party/breakpad:symupload",
ojan94989c72015-07-17 21:56:421273 ]
Peter Kotwiczdeb8c9fda2020-07-03 23:34:091274 } else {
danakj89f47082020-09-02 17:53:431275 data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ]
tfarinacb2638b2015-05-12 03:24:151276 }
1277
tfarinacb2638b2015-05-12 03:24:151278 if (!is_win && !is_android) {
danakj7b174142024-07-03 17:00:171279 # Using the default toolchain for this tool, as it's run during tests not
1280 # during the build. This places a symlink in the root_build_dir for scrips
1281 # to use.
1282 data_deps += [ "//third_party/breakpad:minidump_stackwalk" ]
tfarinacb2638b2015-05-12 03:24:151283 }
1284
1285 if (is_mac) {
danakj7b174142024-07-03 17:00:171286 # Using the default toolchain for this tool, as it's run during tests not
1287 # during the build, and on Mac we support cross-building from a different
1288 # architecture.
1289 data_deps += [ "//third_party/breakpad:dump_syms" ]
tfarinacb2638b2015-05-12 03:24:151290 }
1291
Sean McAllisterdeaa7402020-07-31 04:42:541292 if (is_linux || is_chromeos) {
danakj7b174142024-07-03 17:00:171293 # Using the default toolchain for this tool, as it's run during tests not
1294 # during the build. This places a symlink in the root_build_dir for scrips
1295 # to use.
1296 data_deps += [ "//third_party/breakpad:dump_syms" ]
tfarinacb2638b2015-05-12 03:24:151297 }
qyearsley165a17a82016-08-01 17:58:501298
Sergey Ulanovdaa25ebc2018-01-02 18:17:171299 if (is_fuchsia) {
Kevin Marshall5fadadd2021-10-16 00:08:251300 data_deps += [
1301 "//build/config/fuchsia:deployment_resources",
1302 "//content/shell:content_shell_fuchsia",
1303 "//content/shell:content_shell_pkg__archive-manifest",
1304 "//content/shell:content_shell_pkg__archive-metadata",
1305 ]
Sergey Ulanovdaa25ebc2018-01-02 18:17:171306 }
1307
qyearsley165a17a82016-08-01 17:58:501308 data = [
Brian Sheedy6bcba67d2022-02-23 23:45:111309 "//build/skia_gold_common/",
Austin Eng11eba3d2020-10-01 15:08:191310 "//testing/scripts/common.py",
1311 "//testing/scripts/run_isolated_script_test.py",
1312 "//testing/xvfb.py",
Kent Tamurac1e4c412018-04-19 02:01:361313 "//third_party/blink/tools/",
Weizhong Xiacf53fb42024-10-12 03:50:421314 "//third_party/blink/web_tests/external/wpt/.config.json",
Kai Ninomiyafb9e5962020-03-17 06:11:381315 "//third_party/blink/web_tests/resources/",
An Sung65d9eab2023-07-26 01:38:431316 "//third_party/blink/web_tests/TestLists/",
Keita Suzuki9ff17d42020-03-10 06:19:511317 "//third_party/pywebsocket3/src/mod_pywebsocket/",
Kent Tamura5a9c7e42020-06-18 10:38:141318 "//third_party/test_fonts/test_fonts/",
Stephen McGruere934d52e2021-01-27 22:26:101319 "//third_party/wpt_tools/",
qyearsley165a17a82016-08-01 17:58:501320 ]
tansell0e6baaf22017-02-16 09:14:531321
tansell820f7df2017-02-16 13:59:151322 if (is_win) {
tansell1b05bbd2017-05-04 09:30:321323 data += [
1324 "//third_party/apache-win32/",
Nihar Damarasingu591cda32023-06-01 15:37:251325 "//third_party/apache-windows-arm64/",
Takuto Ikuta1623ca32018-11-12 15:16:081326 "//third_party/perl/perl/",
tansell1b05bbd2017-05-04 09:30:321327 ]
Scott Violet0a4949d32020-02-11 18:53:031328 data_deps += [ "//build/win:copy_cdb_to_output" ]
tansell820f7df2017-02-16 13:59:151329 }
1330
Gyuyoung Kim369e4c42024-03-23 20:37:011331 if (is_mac || (is_ios && target_environment == "simulator")) {
Nico Weber5a0046e2022-03-23 20:46:301332 data += [
1333 "//third_party/apache-mac/",
1334 "//third_party/apache-mac-arm64/",
1335 ]
Weizhong Xia05781fc2022-03-16 01:05:091336 }
1337
Dave Tapuska187a43f2023-11-28 21:44:471338 if (is_linux || is_chromeos || is_fuchsia) {
Weizhong Xiaa14eaad2022-04-01 02:04:441339 data += [ "//third_party/apache-linux/" ]
1340 }
1341
tansell0e6baaf22017-02-16 09:14:531342 if (is_android) {
1343 data += [
1344 "//third_party/catapult/",
1345 "//build/android/",
1346 ]
1347 }
tfarinacb2638b2015-05-12 03:24:151348 }
yzshena0646992017-04-02 22:01:271349
Dirk Pranke67bc5a9d2020-10-09 16:33:481350 _common_web_test_script = "//testing/scripts/run_isolated_script_test.py"
1351
Chong Gu70ee43a12022-12-08 22:57:371352 if (is_fuchsia) {
1353 _common_web_test_args = [
1354 "@WrappedPath(" +
1355 rebase_path("//build/fuchsia/test/run_test.py", root_build_dir) + ")",
1356 "blink",
Jonathan Lee133d8d32024-09-03 17:55:441357 "--platform",
1358 "fuchsia",
1359 "--jobs",
1360 "1",
Chong Gu70ee43a12022-12-08 22:57:371361 ]
1362 } else {
Jonathan Lee133d8d32024-09-03 17:55:441363 _common_web_test_args = [ "@WrappedPath(" + rebase_path(
1364 "//third_party/blink/tools/run_web_tests.py",
1365 root_build_dir) + ")" ]
Chong Gu70ee43a12022-12-08 22:57:371366 }
Jonathan Lee133d8d32024-09-03 17:55:441367 _common_web_test_args += _common_web_test_options
1368
1369 if (!is_debug) {
Dirk Prankef452bb2a2020-10-09 22:11:551370 if (dcheck_always_on) {
Weizhong Xia91b53362022-01-05 17:13:351371 _common_web_test_args += [ "--timeout-ms=12000" ]
Michael Achenbach62f72d62024-06-10 06:51:091372 } else if (v8_enable_debugging_features) {
1373 # In a pure release build with a debug V8, tests run slower.
1374 _common_web_test_args += [ "--timeout-ms=30000" ]
Dirk Prankef452bb2a2020-10-09 22:11:551375 }
Dirk Pranke67bc5a9d2020-10-09 16:33:481376 }
Michael Achenbach62f72d62024-06-10 06:51:091377
Dave Tapuska37fbd612023-11-29 18:31:251378 if (is_chrome_branded) {
1379 _common_web_test_args += [ "--chrome-branded" ]
1380 }
Dirk Pranke67bc5a9d2020-10-09 16:33:481381
1382 if (is_android) {
1383 _common_web_test_args += [
1384 "--platform",
1385 "android",
1386 ]
1387 }
1388
1389 _common_web_test_args += [
1390 "--seed",
1391 "4",
Weizhong Xiaeaff2f22022-01-24 18:34:141392 "--debug-rwt-logging",
Dirk Pranke67bc5a9d2020-10-09 16:33:481393 "--clobber-old-results",
Ben Pastene8661004b2024-11-13 18:36:421394 "--build-directory",
1395 "@WrappedPath(.)",
Dirk Pranke67bc5a9d2020-10-09 16:33:481396 ]
1397
John Palmer0e0f72bf2021-06-07 09:10:201398 # https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_tests.md
Dirk Pranke6188075b2020-10-01 19:31:281399 script_test("blink_web_tests") {
Dirk Pranke67bc5a9d2020-10-09 16:33:481400 script = _common_web_test_script
Dirk Pranke6188075b2020-10-01 19:31:281401
Dirk Pranke67bc5a9d2020-10-09 16:33:481402 args = _common_web_test_args
Dirk Pranke6188075b2020-10-01 19:31:281403
Jonathan Lee784954c2023-11-01 22:39:421404 data_deps = [
1405 ":blink_web_tests_expectations",
1406 ":blink_web_tests_support_data",
1407 ]
Kai Ninomiyafb9e5962020-03-17 06:11:381408 data = [
1409 "//third_party/blink/perf_tests/",
Weizhong Xia53c492162021-09-09 17:08:241410 "//third_party/blink/web_tests/VirtualTestSuites",
Alastair Donaldson308bb212021-09-14 20:50:271411
Weizhong Xia53c492162021-09-09 17:08:241412 # === List Test Cases folders here ===
1413 "//third_party/blink/web_tests/accessibility/",
1414 "//third_party/blink/web_tests/android/",
1415 "//third_party/blink/web_tests/animations/",
1416 "//third_party/blink/web_tests/app_banner/",
1417 "//third_party/blink/web_tests/bindings/",
1418 "//third_party/blink/web_tests/clipboard/",
1419 "//third_party/blink/web_tests/compositing/",
1420 "//third_party/blink/web_tests/crypto/",
1421 "//third_party/blink/web_tests/css-parser/",
1422 "//third_party/blink/web_tests/css1/",
1423 "//third_party/blink/web_tests/css2.1/",
1424 "//third_party/blink/web_tests/css3/",
1425 "//third_party/blink/web_tests/cssom/",
1426 "//third_party/blink/web_tests/custom-elements/",
1427 "//third_party/blink/web_tests/custom-properties/",
1428 "//third_party/blink/web_tests/dark-mode/",
1429 "//third_party/blink/web_tests/dom/",
1430 "//third_party/blink/web_tests/editing/",
Weizhong Xia53c492162021-09-09 17:08:241431 "//third_party/blink/web_tests/fast/",
1432 "//third_party/blink/web_tests/fonts/",
1433 "//third_party/blink/web_tests/fragmentation/",
1434 "//third_party/blink/web_tests/fullscreen/",
1435 "//third_party/blink/web_tests/gamepad/",
1436 "//third_party/blink/web_tests/harness-tests/",
1437 "//third_party/blink/web_tests/hittesting/",
1438 "//third_party/blink/web_tests/html/",
1439 "//third_party/blink/web_tests/html5lib/",
1440 "//third_party/blink/web_tests/http/",
1441 "//third_party/blink/web_tests/idle-callback/",
1442 "//third_party/blink/web_tests/ietestcenter/",
1443 "//third_party/blink/web_tests/images/",
1444 "//third_party/blink/web_tests/inspector-protocol/",
1445 "//third_party/blink/web_tests/intersection-observer/",
1446 "//third_party/blink/web_tests/jquery/",
1447 "//third_party/blink/web_tests/js/",
Weizhong Xia53c492162021-09-09 17:08:241448 "//third_party/blink/web_tests/loader/",
1449 "//third_party/blink/web_tests/media/",
1450 "//third_party/blink/web_tests/media_capabilities/",
1451 "//third_party/blink/web_tests/mhtml/",
1452 "//third_party/blink/web_tests/navigator_language/",
1453 "//third_party/blink/web_tests/navigator_webdriver/",
1454 "//third_party/blink/web_tests/netinfo/",
1455 "//third_party/blink/web_tests/overflow/",
1456 "//third_party/blink/web_tests/paint/",
1457 "//third_party/blink/web_tests/payments/",
Hao Liu8646d342023-09-07 15:52:461458 "//third_party/blink/web_tests/performance_timeline/",
Weizhong Xia53c492162021-09-09 17:08:241459 "//third_party/blink/web_tests/permissionclient/",
1460 "//third_party/blink/web_tests/plugins/",
1461 "//third_party/blink/web_tests/pointer-lock/",
Dave Tapuska7459ffa62023-11-20 18:45:491462 "//third_party/blink/web_tests/ppapi/",
Weizhong Xia53c492162021-09-09 17:08:241463 "//third_party/blink/web_tests/printing/",
1464 "//third_party/blink/web_tests/register-protocol-handler/",
1465 "//third_party/blink/web_tests/regress/",
1466 "//third_party/blink/web_tests/resize-observer/",
1467 "//third_party/blink/web_tests/resources/",
1468 "//third_party/blink/web_tests/rootscroller/",
1469 "//third_party/blink/web_tests/screen_orientation/",
1470 "//third_party/blink/web_tests/scrollbars/",
Weizhong Xia53c492162021-09-09 17:08:241471 "//third_party/blink/web_tests/security/",
Jiewei Qian4db71f42021-12-09 02:31:071472 "//third_party/blink/web_tests/handwriting/",
Weizhong Xia53c492162021-09-09 17:08:241473 "//third_party/blink/web_tests/shadow-dom/",
1474 "//third_party/blink/web_tests/storage/",
1475 "//third_party/blink/web_tests/svg/",
1476 "//third_party/blink/web_tests/synthetic_gestures/",
1477 "//third_party/blink/web_tests/tables/",
1478 "//third_party/blink/web_tests/test_runner/",
1479 "//third_party/blink/web_tests/third_party/",
1480 "//third_party/blink/web_tests/timezonechange/",
1481 "//third_party/blink/web_tests/touchadjustment/",
1482 "//third_party/blink/web_tests/transforms/",
1483 "//third_party/blink/web_tests/transitions/",
1484 "//third_party/blink/web_tests/traversal/",
1485 "//third_party/blink/web_tests/typedcssom/",
1486 "//third_party/blink/web_tests/vibration/",
Vladimir Levin501455e2022-11-04 20:04:541487 "//third_party/blink/web_tests/view-transition/",
Weizhong Xia53c492162021-09-09 17:08:241488 "//third_party/blink/web_tests/virtual/",
1489 "//third_party/blink/web_tests/virtualkeyboard/",
Weizhong Xia53c492162021-09-09 17:08:241490 "//third_party/blink/web_tests/wasm/",
1491 "//third_party/blink/web_tests/webaudio/",
1492 "//third_party/blink/web_tests/webexposed/",
1493 "//third_party/blink/web_tests/webgpu/",
Weizhong Xia53c492162021-09-09 17:08:241494 "//third_party/blink/web_tests/xmlviewer/",
Alastair Donaldson308bb212021-09-14 20:50:271495
Weizhong Xia53c492162021-09-09 17:08:241496 # === Test Case Folders Ends ===
Kai Ninomiyafb9e5962020-03-17 06:11:381497 ]
Jonathan Lee784954c2023-11-01 22:39:421498 }
1499
1500 group("blink_web_tests_expectations") {
1501 testonly = true
1502
1503 data = [
1504 # Include virtual baselines.
1505 "//third_party/blink/web_tests/virtual/",
1506
1507 # List all test expectations here
Jonathan Lee784954c2023-11-01 22:39:421508 "//third_party/blink/web_tests/LeakExpectations",
Jonathan Lee784954c2023-11-01 22:39:421509 "//third_party/blink/web_tests/NeverFixTests",
1510 "//third_party/blink/web_tests/SlowTests",
1511 "//third_party/blink/web_tests/StaleTestExpectations",
1512 "//third_party/blink/web_tests/TestExpectations",
1513 ]
Weizhong Xia53c492162021-09-09 17:08:241514
Jonathan Leef4865a12024-09-03 19:51:051515 if (is_asan) {
1516 data += [ "//third_party/blink/web_tests/ASANExpectations" ]
1517 }
An Sungd75ea3332024-12-05 18:45:231518 if (is_chrome_for_testing) {
1519 data += [ "//third_party/blink/web_tests/CfTTestExpecations" ]
1520 }
Jonathan Leef4865a12024-09-03 19:51:051521 if (is_msan) {
1522 data += [ "//third_party/blink/web_tests/MSANExpectations" ]
1523 }
1524
Weizhong Xia53c492162021-09-09 17:08:241525 if (is_win || is_linux || is_fuchsia) {
1526 data += [
1527 "//third_party/blink/web_tests/platform/win/",
Weizhong Xiadfb5304f2022-05-12 20:36:261528 "//third_party/blink/web_tests/platform/win10/",
Nihar Damarasingua9b1c932023-06-11 23:55:231529 "//third_party/blink/web_tests/platform/win11-arm64/",
Weizhong Xia53c492162021-09-09 17:08:241530 ]
1531 if (is_linux || is_fuchsia) {
1532 data += [ "//third_party/blink/web_tests/platform/linux/" ]
1533 }
1534 if (is_fuchsia) {
Chong Gu70ee43a12022-12-08 22:57:371535 data += [
1536 "//third_party/blink/web_tests/platform/fuchsia/",
1537 "$root_gen_dir/package_metadata/content_shell.meta",
1538 ]
Weizhong Xia53c492162021-09-09 17:08:241539 }
1540 } else if (is_mac) {
1541 data += [
1542 "//third_party/blink/web_tests/platform/mac/",
Jonathan Leedbea4d4d2022-05-25 15:35:091543 "//third_party/blink/web_tests/platform/mac-mac11/",
Weizhong Xia53c492162021-09-09 17:08:241544 "//third_party/blink/web_tests/platform/mac-mac11-arm64/",
Nihar Damarasingu24703e22023-02-06 23:39:391545 "//third_party/blink/web_tests/platform/mac-mac12/",
Jonathan Leedbea4d4d2022-05-25 15:35:091546 "//third_party/blink/web_tests/platform/mac-mac12-arm64/",
An Sungf33f8522024-03-08 19:12:331547 "//third_party/blink/web_tests/platform/mac-mac13/",
Nihar Damarasingu24703e22023-02-06 23:39:391548 "//third_party/blink/web_tests/platform/mac-mac13-arm64/",
An Sung2dca54a2024-08-06 20:24:361549 "//third_party/blink/web_tests/platform/mac-mac14/",
An Sungf33f8522024-03-08 19:12:331550 "//third_party/blink/web_tests/platform/mac-mac14-arm64/",
An Sung2dca54a2024-08-06 20:24:361551 "//third_party/blink/web_tests/platform/mac-mac15-arm64/",
Weizhong Xia53c492162021-09-09 17:08:241552 ]
1553 }
1554
Le Hoang Quyen400daa82024-01-07 14:24:121555 # flag-specific tests only runs on linux & mac as of now
1556 if (is_linux || is_mac) {
Weizhong Xia53c492162021-09-09 17:08:241557 data += [
1558 "//third_party/blink/web_tests/FlagSpecificConfig",
1559 "//third_party/blink/web_tests/FlagExpectations/",
1560 "//third_party/blink/web_tests/flag-specific/",
1561 ]
1562 }
Kai Ninomiyafb9e5962020-03-17 06:11:381563 }
1564
Weizhong Xia0895abfa2025-01-08 23:55:381565 # https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/web_tests.md
Weizhong Xia8b786422022-06-23 14:46:511566 script_test("blink_wpt_tests") {
1567 script = _common_web_test_script
1568
1569 args = _common_web_test_args
1570
Weizhong Xia904cdf562022-08-25 02:00:331571 # Use --wpt-only to skip tests under web_tests/virtual/
Weizhong Xia650ce432024-08-14 22:08:261572 args += [
1573 "--wpt-only",
Jonathan Leebf8fd4ee2024-09-05 19:24:261574 "--inverted-test-launcher-filter-file",
1575 "@WrappedPath(" +
1576 rebase_path("//third_party/blink/web_tests/TestLists/chrome.filter",
1577 root_out_dir) + ")",
Weizhong Xia89577452025-01-10 04:14:361578 "--test-launcher-filter-file",
Jonathan Leebf8fd4ee2024-09-05 19:24:261579 "@WrappedPath(" + rebase_path(
Weizhong Xia89577452025-01-10 04:14:361580 "//third_party/blink/web_tests/TestLists/content_shell.filter",
Jonathan Leebf8fd4ee2024-09-05 19:24:261581 root_out_dir) + ")",
Weizhong Xia650ce432024-08-14 22:08:261582 ]
Weizhong Xia904cdf562022-08-25 02:00:331583
Jonathan Lee784954c2023-11-01 22:39:421584 data_deps = [
1585 ":blink_web_tests_expectations",
1586 ":blink_web_tests_support_data",
1587 ]
Weizhong Xia8b786422022-06-23 14:46:511588 data = [
1589 "//third_party/blink/perf_tests/",
Weizhong Xia8b786422022-06-23 14:46:511590 "//third_party/blink/web_tests/VirtualTestSuites",
1591
Weizhong Xia8b786422022-06-23 14:46:511592 # === List Test Cases folders here ===
1593 "//third_party/blink/web_tests/external/",
1594 "//third_party/blink/web_tests/wpt_internal/",
1595
1596 # === Test Case Folders Ends ===
1597 ]
Weizhong Xia8b786422022-06-23 14:46:511598 }
1599
Dirk Pranke67bc5a9d2020-10-09 16:33:481600 script_test("devtools_web_tests") {
1601 # This target differs from :blink_web_tests in that it uses the
1602 # same test harness but runs an entirely different set of tests
1603 # and doesn't have a dependency on the web_test directory at all.
1604 script = _common_web_test_script
Kai Ninomiyafb9e5962020-03-17 06:11:381605
Dirk Pranke67bc5a9d2020-10-09 16:33:481606 args = _common_web_test_args + [
Patrick Brossetf30adff2020-10-12 18:33:321607 "--layout-tests-directory=@WrappedPath(" + rebase_path(
Dirk Pranke67bc5a9d2020-10-09 16:33:481608 "//third_party/devtools-frontend/src/test/webtests",
1609 root_out_dir) + ")",
1610 "http/tests/devtools",
1611 ]
Kai Ninomiyafb9e5962020-03-17 06:11:381612
Dirk Pranke67bc5a9d2020-10-09 16:33:481613 data_deps = [ ":blink_web_tests_support_data" ]
1614 data = [ "//third_party/devtools-frontend/src/test/webtests/" ]
1615 }
1616
1617 script_test("webgpu_blink_web_tests") {
1618 # This target differs from :blink_web_tests in that it uses the same
1619 # test harness and a few additional flags but, more importantly, only runs
1620 # the web_tests/wpt_internal/webgpu tests, so it doesn't have a data
Austin Eng2cddb7752022-06-09 02:40:291621 # dependency on the whole web_test directory.
Dirk Pranke67bc5a9d2020-10-09 16:33:481622 script = _common_web_test_script
Austin Eng4beb5d62021-03-24 16:29:591623
Austin Eng2cddb7752022-06-09 02:40:291624 args = _common_web_test_args
Austin Eng8e638d92021-04-02 17:08:081625 if (is_asan) {
Weizhong Xia91b53362022-01-05 17:13:351626 args += [ "--timeout-ms=30000" ]
Austin Eng8e638d92021-04-02 17:08:081627 }
Austin Eng4beb5d62021-03-24 16:29:591628 args += [
Austin Eng2cddb7752022-06-09 02:40:291629 "--ignore-default-expectations",
1630 "--additional-expectations",
Austin Eng4beb5d62021-03-24 16:29:591631 "@WrappedPath(../../third_party/blink/web_tests/WebGPUExpectations)",
shrekshao96b18a762023-03-20 18:28:571632 "--isolated-script-test-filter=wpt_internal/webgpu/*",
Austin Eng4beb5d62021-03-24 16:29:591633 ]
Kai Ninomiyafb9e5962020-03-17 06:11:381634
Austin Eng32e07032021-03-18 16:30:101635 data_deps = [
1636 ":blink_web_tests_support_data",
1637 "//third_party/webgpu-cts",
1638 ]
Kai Ninomiyafb9e5962020-03-17 06:11:381639 data = [
Weizhong Xiad8a66332022-07-30 00:34:201640 "//third_party/blink/web_tests/external/wpt/common/",
Jean-Philippe Gravel0276ab72025-03-17 23:56:151641 "//third_party/blink/web_tests/external/wpt/html/canvas/resources/",
Weizhong Xiad8a66332022-07-30 00:34:201642 "//third_party/blink/web_tests/external/wpt/resources/",
Brian Sheedy10ddf0a2021-08-16 23:19:071643 "//third_party/blink/web_tests/FlagSpecificConfig",
Weizhong Xiad8a66332022-07-30 00:34:201644 "//third_party/blink/web_tests/VirtualTestSuites",
Kai Ninomiyafb9e5962020-03-17 06:11:381645 "//third_party/blink/web_tests/WebGPUExpectations",
Weizhong Xia64ec8c22022-06-24 03:39:341646 "//third_party/blink/web_tests/wpt_internal/",
Austin Eng4beb5d62021-03-24 16:29:591647 "//third_party/webgpu-cts/scripts/",
Kai Ninomiyafb9e5962020-03-17 06:11:381648 ]
1649 }
1650
yzshena0646992017-04-02 22:01:271651 copy("layout_test_data_mojo_bindings") {
1652 testonly = true
1653
Nico Weber77da4942020-01-13 20:13:351654 sources = [ "$root_gen_dir/mojo/public/js/mojo_bindings.js" ]
yzshena0646992017-04-02 22:01:271655
Nico Weber77da4942020-01-13 20:13:351656 outputs =
1657 [ "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings.js" ]
yzshena0646992017-04-02 22:01:271658
Nico Weber77da4942020-01-13 20:13:351659 deps = [ "//mojo/public/js:bindings" ]
yzshena0646992017-04-02 22:01:271660 }
Dirk Pranke43a5c812017-09-06 03:25:411661
Ken Rockot86d360462018-10-24 02:50:091662 copy("layout_test_data_mojo_bindings_lite") {
1663 testonly = true
1664
Nico Weber77da4942020-01-13 20:13:351665 sources = [ "$root_gen_dir/mojo/public/js/mojo_bindings_lite.js" ]
Ken Rockot86d360462018-10-24 02:50:091666
1667 outputs = [
1668 "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings_lite.js",
1669 ]
1670
Nico Weber77da4942020-01-13 20:13:351671 deps = [ "//mojo/public/js:bindings_lite" ]
Ken Rockot86d360462018-10-24 02:50:091672 }
1673
Dirk Pranke6188075b2020-10-01 19:31:281674 script_test("blink_python_tests") {
1675 script = "//testing/scripts/run_isolated_script_test.py"
Weizhong Xia51f1f692023-12-05 22:03:331676 args = [
1677 "@WrappedPath(" +
1678 rebase_path("//third_party/blink/tools/run_blinkpy_tests.py",
1679 root_build_dir) + ")",
1680 "-v",
1681 "-t",
1682 ]
Dirk Pranke6188075b2020-10-01 19:31:281683
Dirk Pranke43a5c812017-09-06 03:25:411684 data = [
Andrew Grieve4c4cede2020-11-20 22:09:361685 # These tests use //build/android/devil_chromium.py even when !is_android,
1686 # so cannot use the helpers in //build/android (they assert(is_android)).
Dirk Pranke43a5c812017-09-06 03:25:411687 "//build/android/",
Andrew Grieve4c4cede2020-11-20 22:09:361688 "//build/gn_helpers.py",
1689 "//build/config/gclient_args.gni",
Brian Sheedy6bcba67d2022-02-23 23:45:111690 "//build/skia_gold_common/",
Dirk Pranke43a5c812017-09-06 03:25:411691 "//components/crash/content/tools/generate_breakpad_symbols.py",
Brian Sheedyfe26b942021-08-05 16:00:501692 "//testing/unexpected_passes_common/",
Preethi Mohanca2d0eb2022-10-11 19:22:051693 "//testing/flake_suppressor_common/",
Kent Tamura968e76912018-04-17 23:05:571694 "//third_party/blink/renderer/bindings/scripts/",
1695 "//third_party/blink/renderer/build/scripts/",
Dirk Pranke43a5c812017-09-06 03:25:411696 "//third_party/blink/tools/",
Kent Tamura77578cc2018-11-25 22:33:431697 "//third_party/blink/web_tests/ASANExpectations",
An Sungd75ea3332024-12-05 18:45:231698 "//third_party/blink/web_tests/CfTTestExpecations",
Brian Sheedy72b971e2023-01-06 16:46:501699 "//third_party/blink/web_tests/FlagExpectations/",
Kent Tamura77578cc2018-11-25 22:33:431700 "//third_party/blink/web_tests/LeakExpectations",
1701 "//third_party/blink/web_tests/MSANExpectations",
1702 "//third_party/blink/web_tests/NeverFixTests",
1703 "//third_party/blink/web_tests/SlowTests",
1704 "//third_party/blink/web_tests/StaleTestExpectations",
1705 "//third_party/blink/web_tests/TestExpectations",
1706 "//third_party/blink/web_tests/VirtualTestSuites",
Brian Sheedy72b971e2023-01-06 16:46:501707 "//third_party/blink/web_tests/W3CImportExpectations",
Xianzhu Wang9a5ee012023-06-23 22:02:351708 "//third_party/blink/web_tests/paint/invalidation/repaint-overlay/",
Dirk Pranke43a5c812017-09-06 03:25:411709 "//third_party/catapult/common/py_utils/",
1710 "//third_party/catapult/devil/",
1711 "//third_party/catapult/dependency_manager/",
Ned Nguyenc335c432018-04-23 01:16:461712 "//third_party/catapult/third_party/typ/",
Josip Sokcevicafb4a032023-05-02 23:30:011713 "//third_party/depot_tools/pylint-2.7",
Mike Frysinger8f8404b2019-08-21 02:20:291714 "//third_party/depot_tools/pylint_main.py",
chromium-autoroll70acbe452025-01-11 05:08:361715 "//third_party/depot_tools/pylintrc-2.7",
Dirk Pranke43a5c812017-09-06 03:25:411716 "//third_party/ply/",
Kent Tamura1ede2842023-05-14 23:32:581717 "//third_party/pyjson5/",
Jonathan Leeee7f45862022-08-02 00:13:021718 "//third_party/wpt_tools/",
Dirk Pranke43a5c812017-09-06 03:25:411719 "//tools/idl_parser/",
1720 ]
Brian Sheedy6bcba67d2022-02-23 23:45:111721
Minju Kimc9e6dd162023-10-16 23:39:421722 if (is_ios) {
1723 data += [ "//third_party/blink/web_tests/IOSTestExpectations" ]
1724 }
1725
Brian Sheedy6bcba67d2022-02-23 23:45:111726 data_deps = [ "//ui/base:goldctl" ]
Dirk Pranke43a5c812017-09-06 03:25:411727 }
tfarinacb2638b2015-05-12 03:24:151728}
1729
Will Cassella857c8d82022-04-12 15:01:051730# TODO(cassew): Add more OS's that don't support x86.
1731is_valid_x86_target =
1732 target_os != "ios" && target_os != "mac" &&
1733 (target_os != "linux" || use_libfuzzer || !build_with_chromium)
Michael Achenbachc4273962022-06-27 09:12:511734
1735# Note: v8_target_cpu == arm allows using the V8 arm simulator on x86 for fuzzing.
Will Cassella857c8d82022-04-12 15:01:051736assert(
Michael Achenbach1a7961012022-06-27 11:19:001737 is_valid_x86_target || target_cpu != "x86" || v8_target_cpu == "arm",
Will Cassella857c8d82022-04-12 15:01:051738 "'target_cpu=x86' is not supported for 'target_os=$target_os'. Consider omitting 'target_cpu' (default) or using 'target_cpu=x64' instead.")
1739
dpranke2302dfa2015-09-29 02:21:521740group("chromium_builder_perf") {
1741 testonly = true
1742
Stefano Duo1a1fcca2023-04-03 09:06:371743 if (!is_ios && !is_android && !is_castos && !is_cronet_build) {
malets6b7062402016-09-15 08:14:261744 data_deps = [
kraynovc0797582016-10-25 16:45:061745 "//components/tracing:tracing_perftests",
Antoine Labourc6ade252017-10-19 01:01:161746 "//gpu:command_buffer_perftests",
dpranke2302dfa2015-09-29 02:21:521747 "//gpu:gpu_perftests",
1748 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:191749 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:521750 ]
1751
Zijie Hed995cb02023-12-14 19:42:481752 if (!is_fuchsia) {
1753 data_deps += [
1754 "//chrome/test:load_library_perf_tests",
1755 "//chrome/test:performance_test_suite",
1756 ]
1757 }
1758
Yuta Hijikata7128f0822025-03-06 05:44:151759 if (!is_chromeos && !is_fuchsia) {
malets6b7062402016-09-15 08:14:261760 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:521761 }
dpranke2302dfa2015-09-29 02:21:521762
Ryan Keanea67d8022022-06-18 00:20:321763 if (!is_win) {
danakj7b174142024-07-03 17:00:171764 data_deps += [ "//third_party/breakpad:minidump_stackwalk($host_system_allocator_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:521765 }
Ryan Keanea67d8022022-06-18 00:20:321766 }
1767
Georg Neisa324c502025-03-03 06:04:541768 if (is_linux && !is_castos) {
Ryan Keanea67d8022022-06-18 00:20:321769 if (is_official_build) {
1770 # In GN builds, this is controlled by the 'linux_dump_symbols'
1771 # flag, which defaults to 1 for official builds. For now,
1772 # we skip the separate flag and just key off of is_official_build.
1773 data_deps += [ "//chrome:linux_symbols" ]
Yuly Novikov8a6e6352017-11-11 02:00:401774 }
David Dorwin0b132172022-03-30 04:56:111775
Ryan Keanea67d8022022-06-18 00:20:321776 data_deps += [ "//tools/perf/clear_system_cache" ]
1777 }
1778
1779 if (is_win) {
1780 data_deps += [
1781 "//chrome/installer/mini_installer:mini_installer",
1782 "//components:components_perftests",
1783 "//third_party/angle/src/tests:angle_perftests",
1784 ]
1785 }
dpranke2302dfa2015-09-29 02:21:521786}
agrieve017b91f2016-02-29 20:15:061787
Stefano Duo1a1fcca2023-04-03 09:06:371788if (!is_ios && !is_android && !is_castos && !is_cronet_build) {
thakis3f7d4fc2016-06-10 18:47:501789 group("chromium_builder_asan") {
1790 testonly = true
1791
1792 deps = [
thakis3f7d4fc2016-06-10 18:47:501793 "//content/shell:content_shell",
Adrian Taylore6288432021-09-09 22:59:501794 "//third_party/blink/public/mojom:mojom_modules_js",
thakis3f7d4fc2016-06-10 18:47:501795 "//v8:d8",
1796 ]
Zijie Hed995cb02023-12-14 19:42:481797 if (!is_fuchsia) {
1798 deps += [ "//chrome:chrome" ]
1799 }
thakis3f7d4fc2016-06-10 18:47:501800 if (!is_win) {
Eric Orthdd5b8632020-11-13 02:59:421801 deps += [ "//skia:filter_fuzz_stub" ]
thakis3f7d4fc2016-06-10 18:47:501802 }
1803 if (enable_ipc_fuzzer && !is_component_build) {
Ken Rockotf87b01cf2018-12-26 06:52:261804 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
thakis3f7d4fc2016-06-10 18:47:501805 }
Yuta Hijikata7128f0822025-03-06 05:44:151806 if (!is_chromeos) {
Lei Zhange6d4106f2024-02-20 22:44:581807 deps += [ "//v8:v8_shell($v8_snapshot_toolchain)" ]
1808 if (enable_pdf) {
Lei Zhang2c2fc392024-05-09 17:21:121809 deps += [ "//third_party/pdfium/testing:pdfium_test" ]
Lei Zhange6d4106f2024-02-20 22:44:581810 }
thakis3f7d4fc2016-06-10 18:47:501811 }
Max Moroz109e76b2020-02-10 17:19:521812
1813 if (!is_component_build) {
1814 # See https://bugs.chromium.org/p/chromium/issues/detail?id=942546#c11.
1815 deps += [
1816 "//third_party/webrtc/rtc_tools:rtp_generator",
1817 "//third_party/webrtc/rtc_tools:video_replay",
1818 ]
1819 }
Alastair Donaldson308bb212021-09-14 20:50:271820
1821 if (build_dawn_tests) {
Ben Clayton3b40f9b2023-10-21 00:16:561822 deps += [ "//third_party/dawn/src/tint:fuzzers" ]
Alastair Donaldson308bb212021-09-14 20:50:271823 }
thakis3f7d4fc2016-06-10 18:47:501824 }
1825}
1826
Stefano Duo1a1fcca2023-04-03 09:06:371827if (is_android && !is_cronet_build) {
agrieve95ba4442016-04-25 15:47:131828 group("optimize_gn_gen") {
1829 deps = [
1830 # These run expensive scripts in non-default toolchains. Generally, host
1831 # toolchain targets are loaded in the later part of the run, and the
1832 # result is they push out the end of generation. By preloading these, the
1833 # scripts can be parallelized with the rest of the load.
1834 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1835 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1836
1837 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1838 # generation.
1839 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1840 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1841 ]
1842 }
1843}
1844
Yuta Hijikata7128f0822025-03-06 05:44:151845if (is_chromeos && enable_js_type_check) {
Christopher Lam739a90d2018-03-07 03:54:371846 group("webui_closure_compile") {
Trent Apted572ba7552018-10-17 00:03:301847 testonly = true
Rebekah Potter66968ea2023-01-19 23:24:411848 data_deps = [
1849 "ash/webui:closure_compile",
1850 "chrome/browser/resources:closure_compile",
1851 "chrome/test/data/webui:closure_compile",
1852 "mojo/public/tools/bindings/generators/js_templates/lite/test:closure_compile",
Giovanni Ortuño Urquidi0acdd9a2023-05-09 02:22:351853 "mojo/public/tools/bindings/generators/js_templates/lite/test:closure_compile_modules",
Rebekah Potter66968ea2023-01-19 23:24:411854 ]
Christopher Lam739a90d2018-03-07 03:54:371855 }
1856}
1857
Fumitoshi Ukai60476b812025-03-28 01:22:451858if (use_remoteexec && target_os != "chromeos" && rbe_exec_root != "/") {
Fumitoshi Ukai04f61592025-03-26 17:33:501859 # Different nesting levels technically work, but cache hits are basically zero.
Fumitoshi Ukai60476b812025-03-28 01:22:451860 # for `target_os="chromeos" rbe_exec_root="/"` is used for chromeos chroot
1861 # and it doesn't use 2-level out dir.
Fumitoshi Ukai04f61592025-03-26 17:33:501862 assert(
1863 rebase_path("//", root_build_dir) == "../../",
1864 "In order for remote builds (use_remoteexec=true) to have cache hits, output directories should be nested two directories deep within src (e.g. \"out/Debug\", or \"foo/bar\"). Found: $root_build_dir")
1865}
1866
1867# GN evaluates each .gn file once per toolchain, so restricting to default
1868# toolchain will ensure write_file() is called only once.
1869assert(current_toolchain == default_toolchain)
1870
Andrew Grievefebea022020-08-07 17:17:531871# Write debug logs to gn_logs.txt.
1872_lines = [
1873 "Generated during 'gn gen' by //BUILD.gn.",
1874 "",
1875 ] + build_gn_logs
1876
Andrew Grievefebea022020-08-07 17:17:531877write_file("$root_build_dir/gn_logs.txt", _lines)