blob: a242f479fe7a8d659b482a0a24a60af9ead3ff5a [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")
Yuke Liaoa2d10312020-09-15 22:19:2912import("//build/config/chromeos/ui_mode.gni")
dprankead249c72016-06-11 18:01:2213import("//build/config/compiler/compiler.gni")
Stefano Duo1a1fcca2023-04-03 09:06:3714import("//build/config/cronet/config.gni")
Dirk Prankef452bb2a2020-10-09 22:11:5515import("//build/config/dcheck_always_on.gni")
rockot2f1326e2015-02-23 23:53:5116import("//build/config/features.gni")
Collina1e27a42022-01-26 20:12:0317import("//build/config/rust.gni")
aizatskyfc46a9f2015-10-09 21:20:0818import("//build/config/sanitizers/sanitizers.gni")
[email protected]378b4f02014-06-10 15:58:4519import("//build/config/ui.gni")
Andrew Grievefebea022020-08-07 17:17:5320import("//build/gn_logs.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
141 if (is_chromeos_ash && enable_js_type_check) {
142 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",
pkotwicz061c5a42015-09-30 02:16:54171 ]
Arthur Eubanks87cdea12022-02-17 21:18:51172 }
dnicoara8c6aa8e2015-03-11 23:20:32173
Zijie Hed995cb02023-12-14 19:42:48174 if (!is_castos && !is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37175 deps += [ "//chrome/installer" ]
Daniel Nicoaracf98a1bf2022-08-09 19:51:44176 }
177
John Abd-El-Malek6eb6dede2024-01-27 05:54:11178 if (!is_fuchsia && enable_updater) {
Stefano Duo1a1fcca2023-04-03 09:06:37179 deps += [ "//chrome/updater" ]
180 }
181
Noah Rose Ledesmaba67f1972024-05-24 21:27:32182 if (enable_enterprise_companion) {
183 deps += [ "//chrome/enterprise_companion" ]
184 }
185
Stefano Duo1a1fcca2023-04-03 09:06:37186 if (enable_ppapi) {
mbjorgea12e5a52016-05-31 22:15:17187 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37188 "//ppapi:ppapi_unittests",
189 "//ppapi/examples",
mbjorgea12e5a52016-05-31 22:15:17190 ]
191 }
192
Stefano Duo1a1fcca2023-04-03 09:06:37193 if (!is_ios && !is_castos) {
Zijie Hed995cb02023-12-14 19:42:48194 if (!is_fuchsia) {
195 deps += [ "//chrome/test:unit_tests" ]
196 }
197 deps += [ "//ui/accessibility:accessibility_unittests" ]
Stefano Duo1a1fcca2023-04-03 09:06:37198 }
sherouke1859f92015-08-05 10:19:10199
Stefano Duo1a1fcca2023-04-03 09:06:37200 if (use_blink) {
201 deps += [
202 "//cc:cc_unittests",
203 "//components/policy:policy_templates",
204 "//components/url_formatter/tools:format_url",
205 "//components/viz:viz_perftests",
206 "//components/viz:viz_unittests",
Abigail Katcoffcc1eb9f2024-10-02 20:21:21207 "//content/browser/interest_group/tools:adjustable_auction",
Stefano Duo1a1fcca2023-04-03 09:06:37208 "//content/shell:content_shell",
209 "//content/test:content_browsertests",
210 "//content/test:content_unittests",
211 "//device:device_unittests",
212 "//gpu:gpu_benchmark",
213 "//gpu:gpu_unittests",
214 "//media:media_unittests",
215 "//media/capture:capture_unittests",
Dave Tapuska269a0ca2023-04-05 18:38:20216 "//media/cast:cast_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37217 "//media/midi:midi_unittests",
218 "//media/mojo:media_mojo_unittests",
219 "//mojo",
220 "//mojo:mojo_unittests",
221 "//storage:storage_unittests",
222 "//third_party/blink/common:blink_common_unittests",
223 "//third_party/blink/renderer/controller:blink_unittests",
224 "//third_party/blink/renderer/platform:blink_platform_unittests",
225 "//third_party/blink/renderer/platform/heap:blink_heap_unittests",
226 "//third_party/blink/renderer/platform/wtf:wtf_unittests",
227 "//third_party/libjingle_xmpp:libjingle_xmpp_unittests",
228 "//tools/imagediff",
229 "//tools/memory:all",
230 "//ui/display:display_unittests",
231 "//ui/gl:gl_unittests",
232 "//ui/latency:latency_unittests",
233 "//ui/native_theme:native_theme_unittests",
234 "//ui/touch_selection:ui_touch_selection_unittests",
235 "//v8:gn_all",
236 ]
sugoiabe91892016-09-20 12:53:51237
Stefano Duo1a1fcca2023-04-03 09:06:37238 if (!v8_use_external_startup_data) {
239 deps += [ "//v8:v8_snapshot" ]
240 }
241 }
dprankedb5527d72015-03-08 04:22:47242
Dave Tapuskad74dc902023-03-08 21:45:51243 if (!is_ios) {
244 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37245 ":chromedriver_group",
246 "//components:components_browsertests",
247 "//ipc:ipc_tests",
248 "//net:net_perftests",
249 "//ui/events:events_unittests",
250 "//url/ipc:url_ipc_unittests",
Dave Tapuskad74dc902023-03-08 21:45:51251 ]
252 }
253
Stefano Duo1a1fcca2023-04-03 09:06:37254 if (!is_ios && !is_android) {
255 deps += [ "//components/viz/demo:viz_demo" ]
256 }
257
258 if (!is_ios) {
Daniel Nicoaracf98a1bf2022-08-09 19:51:44259 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37260 "//google_apis/gcm:mcs_probe",
Stefano Duo1a1fcca2023-04-03 09:06:37261 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
agrieve473155b42015-12-28 20:23:11262 ]
Stefano Duo1a1fcca2023-04-03 09:06:37263 if (!is_android) {
Zijie Hed995cb02023-12-14 19:42:48264 if (!is_castos && !is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37265 deps += [ "//chrome/test:telemetry_perf_unittests" ]
266 }
267 } else {
268 import("//tools/perf/chrome_telemetry_build/android_browser_types.gni")
269 foreach(_target_suffix, telemetry_android_browser_target_suffixes) {
270 deps += [ "//chrome/test:telemetry_perf_unittests${_target_suffix}" ]
271 }
272 }
273 } else {
274 deps += [
275 "//ios:all",
276 "//third_party/crashpad/crashpad:crashpad_tests",
277 ]
278 }
279
280 if (is_fuchsia) {
281 # Add targets that only exist on Fuchsia.
282 deps += [
283 ":d8_fuchsia",
284 "//build/fuchsia/cipd",
Stefano Duo1a1fcca2023-04-03 09:06:37285 "//fuchsia_web:gn_all",
286 "//tools/fuchsia/size_tests:fuchsia_sizes",
287
288 # Ensure this target continues to build.
289 "//chromecast/bindings:bindings_manager_fuchsia",
290 ]
291 }
292
293 deps += root_extra_deps
294
Gyuyoung Kim80fd49b2023-11-07 15:44:22295 if (enable_printing || enable_printing_tests) {
Stefano Duo1a1fcca2023-04-03 09:06:37296 deps += [ "//printing:printing_unittests" ]
agrieve473155b42015-12-28 20:23:11297 }
dpranke7e19b472015-11-13 00:49:33298
jamescookfbbf9112016-06-14 16:24:49299 if (enable_extensions) {
Stefano Duo1a1fcca2023-04-03 09:06:37300 deps += [
301 "//extensions:extensions_browsertests",
302 "//extensions:extensions_unittests",
303 "//extensions/browser/api/declarative_net_request/filter_list_converter",
304 "//extensions/shell:app_shell_unittests",
305 ]
jamescookfbbf9112016-06-14 16:24:49306 }
307
John Abd-El-Malekd842f9b2023-11-17 21:59:48308 if (enable_ml_internal) {
309 deps +=
Marco Georgaklis82f628d2023-12-06 17:33:36310 [ "//components/optimization_guide/internal:ondevice_model_example" ]
John Abd-El-Malekd842f9b2023-11-17 21:59:48311 }
312
Stefano Duo1a1fcca2023-04-03 09:06:37313 if (enable_pdf) {
314 deps += [
315 "//pdf/pdfium/fuzzers",
Lei Zhang2c2fc392024-05-09 17:21:12316 "//third_party/pdfium/testing:pdfium_test",
Stefano Duo1a1fcca2023-04-03 09:06:37317 ]
318 }
dpranke2bc89212015-11-18 00:24:43319
Stefano Duo1a1fcca2023-04-03 09:06:37320 if (enable_remoting) {
321 deps += [ "//remoting:remoting_all" ]
322 }
323
324 if (toolkit_views) {
325 deps += [
326 "//ui/views:views_unittests",
327 "//ui/views/examples:views_examples",
328 "//ui/views/examples:views_examples_unittests",
329 "//ui/views/examples:views_examples_with_content",
330 ]
331 }
332
Nasser Al-shawwa9954a392024-09-19 21:39:08333 if (enterprise_watermark) {
334 deps += [ "//chrome/browser/enterprise/watermark:watermark_app" ]
335 }
336
Stefano Duo1a1fcca2023-04-03 09:06:37337 if (use_aura) {
338 deps += [
339 "//ui/aura:aura_demo",
340 "//ui/aura:aura_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37341 "//ui/wm:wm_unittests",
342 ]
343 }
344
Robert Liao22722492023-06-14 18:35:47345 if (use_aura || is_mac) {
346 deps += [ "//ui/webui/examples:webui_examples" ]
347 }
348
Stefano Duo1a1fcca2023-04-03 09:06:37349 if (use_ozone) {
350 deps += [
351 "//ui/ozone",
352 "//ui/ozone:unittests",
353 ]
354 if (!is_fuchsia) {
355 deps += [ "//ui/ozone/demo" ]
dpranke2bc89212015-11-18 00:24:43356 }
dprankedb5527d72015-03-08 04:22:47357 }
358
Stefano Duo1a1fcca2023-04-03 09:06:37359 if (is_win) {
360 deps += [
361 "//chrome/credential_provider",
362 "//chrome/credential_provider/test:gcp_unittests",
363 ]
Robert Liaobaf93e62024-02-16 00:56:15364
365 if (enable_platform_experience) {
366 deps += [
367 "//chrome/browser/platform_experience/win:platform_experience_helper",
368 ]
369 }
Daniel Nicoaracf98a1bf2022-08-09 19:51:44370 }
371
Stefano Duo1a1fcca2023-04-03 09:06:37372 if (is_mac) {
373 deps += [
374 "//chrome/installer/gcapi_mac:gcapi_example",
375 "//tools/mac",
376 ]
dprankefd1813272015-04-13 23:56:00377 }
378
Stefano Duo1a1fcca2023-04-03 09:06:37379 # Allow building md5sum tool for other OSes (android is added below).
380 # For Windows, see: crbug.com/1090428.
381 # TODO(cavalcantii): move it out of 'android' folder.
382 if (!is_win) {
383 deps += [ "//tools/android/md5sum" ]
fdorayfb048bff2016-04-28 22:07:36384 }
rsesek985bd812016-04-26 21:06:15385
Stefano Duo1a1fcca2023-04-03 09:06:37386 if (is_android) {
387 deps += [
388 "//base:base_junit_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37389 "//base/android/linker:chromium_android_linker",
390 "//build/android/gyp/test:hello_world",
391 "//build/android/stacktrace:java_deobfuscate",
392 "//build/config/android/test/proto:test_build_protos",
393 "//build/private_code_test:private_paths",
394 "//chrome/android/monochrome:monochrome_public_apk_checker",
Stefano Duo1a1fcca2023-04-03 09:06:37395 "//chrome/android/webapk/shell_apk:webapk",
396 "//chrome/android/webapk/shell_apk/prepare_upload_dir:prepare_webapk_shell_upload_dir",
397 "//chrome/test:android_browsertests",
398 "//components:components_junit_tests",
399 "//content/public/android:content_junit_tests",
400 "//content/shell/android:content_shell_apk",
401 "//device:device_junit_tests",
402 "//media/gpu:video_decode_accelerator_unittest",
403 "//net/android:net_junit_tests",
404 "//services:services_junit_tests",
405 "//testing/android/junit:junit_unit_tests",
406 "//third_party/android_build_tools/lint:custom_lint_java",
407 "//third_party/androidx_javascriptengine",
408 "//third_party/catapult/devil",
Andrew Grieve7de55312024-04-10 19:27:33409 "//third_party/jni_zero:jni_zero_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37410 "//third_party/r8:custom_d8_java",
411 "//tools/android:android_tools",
412 "//tools/android:memconsumer",
413 "//tools/android:push_apps_to_background",
414 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
415 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
416 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
Peter Wen428292c2024-12-02 15:51:21417 "//tools/pgo:generate_profile_android_trichrome_chrome_bundle",
Mark Schillacid1a94d532023-11-09 17:14:27418 "//ui:ui_junit_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37419 ]
420 deps -= [
421 "//net:net_perftests",
422 "//url:url_unittests",
423 ]
Sergey Ulanov07406542019-12-18 00:09:43424
Stefano Duo1a1fcca2023-04-03 09:06:37425 if (!is_cast_android) {
426 deps += [
427 "//android_webview:empty_group",
428 "//android_webview/test",
Andrew Grievee30e95b2024-06-24 19:13:09429 "//android_webview/tools/automated_ui_tests:webview_ui_test_app_test_apk",
Neil Estrada7ccb9ca2023-08-15 21:07:37430 "//android_webview/tools/captured_sites_tests:captured_sites_test_app",
Andrew Grieve46fb7d92023-11-23 22:04:31431 "//android_webview/tools/sdk_sandbox",
Stefano Duo1a1fcca2023-04-03 09:06:37432 "//android_webview/tools/system_webview_shell",
433 "//chrome/android:chrome_junit_tests",
434 "//chrome/android:chrome_public_apk",
435 "//chrome/android:chrome_public_test_apk",
436 "//chrome/android:chrome_public_unit_test_apk",
437 "//chrome/browser/android/examples/custom_tabs_client:custom_tabs_client_example_apk",
438 "//chrome/browser/android/examples/partner_browser_customizations_provider:partner_browser_customizations_example_apk",
439 "//content/shell/android:content_shell_test_apk",
440 ]
agrieve473155b42015-12-28 20:23:11441 }
dprankeb0713542015-07-31 21:07:21442
Stefano Duo1a1fcca2023-04-03 09:06:37443 if (enable_chrome_android_internal) {
Peter Wen428292c2024-12-02 15:51:21444 deps += [ "//clank" ]
Stefano Duo1a1fcca2023-04-03 09:06:37445 }
446 }
447
448 if (is_linux || is_chromeos || is_android) {
449 deps += [
450 "//third_party/breakpad:breakpad_unittests",
451 "//third_party/breakpad:core-2-minidump",
452 "//third_party/breakpad:generate_test_dump",
453 "//third_party/breakpad:minidump-2-core",
454 "//tools/dump_process_memory:dump_process",
455 ]
456 }
Jonathan Metzman2656ecd2018-11-21 08:22:41457
Lei Zhang8baa2942021-05-19 03:59:48458 if (is_chromeos_ash) {
Stefano Duo1a1fcca2023-04-03 09:06:37459 deps += [
460 "//ash:ash_unittests",
461 "//ash/components:ash_components_unittests",
462 "//ash/keyboard/ui:keyboard_unittests",
463 "//ash/webui:ash_webui_unittests",
Eriko Kurimoto107af142024-07-08 13:40:02464 "//chrome/browser/ash/child_accounts/time_limit_consistency_test:usage_time_limit_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37465 "//chrome/browser/metrics/perf:profile_provider_unittest",
Stefano Duo1a1fcca2023-04-03 09:06:37466 "//chromeos/ash/components/proximity_auth:proximity_auth_unittests",
467 "//chromeos/components:chromeos_components_unittests",
468 "//components/exo/wayland:wayland_client_compatibility_tests",
469 "//components/session_manager/core",
470 "//third_party/shell-encryption:shell_encryption_unittests",
471 "//ui/chromeos:ui_chromeos_unittests",
472 ]
Lei Zhang8baa2942021-05-19 03:59:48473 }
474
Stefano Duo1a1fcca2023-04-03 09:06:37475 if (is_chromeos) {
476 deps += [ "//chromeos:chromeos_unittests" ]
Jonathan Metzman2656ecd2018-11-21 08:22:41477 }
aizatskyaf496112016-04-15 19:26:32478
Stefano Duo1a1fcca2023-04-03 09:06:37479 if (is_chromeos_ash || is_mac || is_win) {
480 deps += [
481 "//rlz:rlz_id",
482 "//rlz:rlz_lib",
483 "//rlz:rlz_unittests",
484 ]
485 }
sbc92b4d572016-02-18 03:28:23486
Stefano Duo1a1fcca2023-04-03 09:06:37487 if (is_linux || is_chromeos) {
488 # The following are definitely linux-only.
489 deps += [
490 "//net:disk_cache_memory_test",
491 "//net:quic_client",
492 "//net:quic_server",
493 "//sandbox/linux:chrome_sandbox",
494 "//sandbox/linux:sandbox_linux_unittests",
495 ]
496 if (!is_clang) {
497 deps += [ "//testing:empty_main" ]
498 }
Christopher Grant193648b2017-06-07 15:08:36499
Stefano Duo1a1fcca2023-04-03 09:06:37500 if (!is_castos) {
501 deps += [ "//chrome:xdg_mime" ]
502 }
503
504 if (use_dbus) {
Brian Sheedyf74819b2021-06-04 01:38:38505 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37506 "//dbus:dbus_test_server",
507 "//dbus:dbus_unittests",
Brian Sheedyf74819b2021-06-04 01:38:38508 ]
509 }
Stefano Duo1a1fcca2023-04-03 09:06:37510
511 if (is_chrome_branded && is_official_build) {
512 # TODO(dpranke): add the linux_dump_symbols flag?
513 deps += [ "//chrome:linux_symbols" ]
514 }
Yash Malik8109b5bb2017-07-13 22:40:03515 }
Scott Grahamf24e3742017-08-11 17:50:22516
Stefano Duo1a1fcca2023-04-03 09:06:37517 if (is_ios || is_win || is_linux || is_chromeos_lacros || is_fuchsia) {
518 deps += [
519 "//base:base_i18n_perftests",
520 "//google_apis:google_apis_unittests",
521 ]
522 }
523
524 if ((is_win || is_mac || is_linux || is_chromeos || is_fuchsia) &&
525 (target_cpu == "x86" || target_cpu == "x64")) {
526 deps += [
527 "//third_party/swiftshader/src/Vulkan:icd_file",
528 "//third_party/swiftshader/src/Vulkan:swiftshader_libvulkan",
529 ]
530 }
531
532 # TODO(GYP): Figure out which of these should (and can) build
533 # for Chrome OS and iOS (without blink).
534 if (!is_chromeos_ash && use_blink) {
535 deps += [
536 "//cc:cc_perftests",
537 "//device:device_unittests",
538 "//gin:gin_shell",
539 "//gin:gin_unittests",
540 "//gpu:command_buffer_perftests",
541 "//gpu:gl_tests",
542 "//gpu:gpu_perftests",
543 "//media:media_perftests",
544 "//third_party/libphonenumber:libphonenumber_unittests",
545 "//ui/compositor:compositor_unittests",
546 ]
547
548 if (!is_ios) {
549 deps += [
550 "//base:build_utf8_validator_tables",
551 "//base:check_example",
552 "//components:components_perftests",
553 "//ipc:ipc_perftests",
554 "//net:dump_cache",
555 ]
556 }
557
Zijie Hed995cb02023-12-14 19:42:48558 if (!is_android && !is_castos && !is_ios && !is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37559 deps += [
560 "//chrome/test:load_library_perf_tests",
561 "//chrome/test:sync_performance_tests",
562 ]
563 }
564
565 if (!is_android && !is_ios) {
566 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37567 "//net:crash_cache",
568 "//net:net_watcher", # TODO(GYP): This should be conditional on
569 # use_v8_in_net
570 "//net:run_testserver",
571 "//net:stress_cache",
572 "//net:tld_cleanup",
573 "//third_party/leveldatabase:env_chromium_unittests",
574 "//third_party/libaddressinput:libaddressinput_unittests",
575 ]
576 }
577
578 if (enable_extensions) {
579 deps += [ "//extensions/shell:app_shell" ]
580 }
581
582 # TODO(https://crbug.com/1299021): These dependencies might be
583 # redundant given that we were able to disable them, apparently without
584 # negative consequences, for the ARM32-NaCl-on-ARM64 case.
585 if (enable_nacl) {
586 if (target_cpu != "arm64") {
587 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
588 }
589
590 if (is_linux || is_chromeos) {
591 # TODO(dpranke): Figure out what platforms should actually have this.
592 deps += [ "//components/nacl/loader:nacl_helper" ]
593 }
594 }
595
596 if (media_use_ffmpeg && !is_android) {
597 deps += [ "//media:ffmpeg_regression_tests" ]
598 }
599 }
600
601 if (enable_ppapi) {
602 deps += [
603 "//ppapi:pepper_hash_for_uma",
604 "//ppapi:ppapi_perftests",
605 ]
606 }
607
608 if (is_android || is_linux || is_chromeos_lacros) {
609 deps += [
610 "//components/network_hints/browser",
611 "//content/public/app",
612 "//mojo:mojo_perftests",
613 "//services/service_manager/public/cpp",
614 "//testing/gmock:gmock_main",
danakj7b174142024-07-03 17:00:17615 "//third_party/breakpad:dump_syms($host_system_allocator_toolchain)",
616 "//third_party/breakpad:microdump_stackwalk($host_system_allocator_toolchain)",
617 "//third_party/breakpad:minidump_dump($host_system_allocator_toolchain)",
618 "//third_party/breakpad:minidump_stackwalk($host_system_allocator_toolchain)",
Stefano Duo1a1fcca2023-04-03 09:06:37619 ]
620 }
621
622 if (is_linux || is_chromeos_lacros) {
623 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37624 "//skia:filter_fuzz_stub",
625 "//skia:image_operations_bench",
626 "//ui/snapshot:snapshot_unittests",
627 ]
628
629 if (!is_castos) {
630 deps += [ "//chrome/test:chrome_app_unittests" ]
631 }
632
633 if (!is_debug && !is_component_build && !is_castos) {
634 deps += [ "//chrome/tools/service_discovery_sniffer" ]
635 }
636 }
637
638 if (is_mac) {
639 deps += [
danakj7b174142024-07-03 17:00:17640 "//third_party/breakpad:dump_syms($host_system_allocator_toolchain)",
Stefano Duo1a1fcca2023-04-03 09:06:37641
642 # The following are accessibility API tools.
643 "//tools/accessibility/inspect:ax_dump_events",
644 "//tools/accessibility/inspect:ax_dump_tree",
645 ]
646 deps -= [
647 # Mojo in GN contains some things which are never compiled in GYP on Mac,
648 # so compilation fails on Mac. They need porting.
649 "//mojo",
650 ]
651 }
652
653 if (is_win) {
654 deps += [
655 "//base:pe_image_test",
Stefano Duo1a1fcca2023-04-03 09:06:37656 "//chrome/chrome_elf:chrome_elf_unittests",
657 "//chrome/chrome_elf:dll_hash_main",
658 "//chrome/elevation_service:elevation_service_unittests",
659 "//chrome/install_static:install_static_unittests",
660 "//chrome/installer/gcapi",
661 "//chrome/installer/setup:setup_unittests",
662 "//chrome/notification_helper:notification_helper_unittests",
663 "//chrome/test:delayloads_unittests",
664 "//components/wifi:wifi_test",
665 "//components/zucchini",
666 "//net:quic_client",
667 "//net:quic_server",
668 "//sandbox/win:sbox_integration_tests",
669 "//sandbox/win:sbox_unittests",
670 "//sandbox/win:sbox_validation_tests",
671 "//testing/gtest:gtest_main",
672
673 # The following two are accessibility API debugging tools.
674 "//tools/accessibility/inspect:ax_dump_events",
675 "//tools/accessibility/inspect:ax_dump_tree",
676 "//tools/win/chromeexts:chromeexts",
677 ]
678
679 # TODO(thakis): Enable this in cross builds, https://crbug.com/799827
680 if (!(is_component_build && is_debug && target_cpu == "x86") &&
681 host_os == "win") {
682 deps += [ "//chrome/test/mini_installer:mini_installer_tests" ]
683 }
danakj7b174142024-07-03 17:00:17684 }
685
686 if (!is_fuchsia) {
687 # The official builders use this binary from the default toolchain's
688 # output directory after building in order to upload the symbols of that
689 # binary. They build the binary like `ninja symupload` which requires the
690 # target to be a dependency in the default_toolchain from `gn_all` for the
691 # name to resolve.
692 deps += [ "//third_party/breakpad:symupload" ]
693 }
danakj6c3b7152024-07-04 16:40:49694 if (is_mac && host_cpu == "arm64") {
danakj7b174142024-07-03 17:00:17695 # TODO(crbug.com/349268750): This alias exists because the official Mac
696 # arm64 builders (which cross-build the x64 binaries) use the hardcoded
697 # path of the `$host_toolchain/symupload` to build and run the symupload
698 # binary. And the same recipes are used on all branches!! So we would break
699 # the stable branch builders by changing the recipe to build and run the
700 # binary from the root_build_dir.
701 #
702 # Once this code is in stable, we can land the following CLs to change how
703 # symupload is built and run on Mac arm64 official builders, and then this
704 # alias can be removed.
705 # Build: https://chrome-internal-review.googlesource.com/c/chrome/src-internal/+/7430844
706 # Run: https://chrome-internal-review.googlesource.com/c/chrome/tools/release/scripts/+/7430843
Will Yeagerc1b50eb2024-06-26 05:24:44707 deps += [ "//third_party/breakpad:symupload($host_toolchain)" ]
Stefano Duo1a1fcca2023-04-03 09:06:37708 }
709
710 if (is_cast_android || is_castos || (is_fuchsia && enable_cast_receiver)) {
711 deps += [ "//chromecast:cast_test_lists" ]
712 }
713
714 if (is_cast_android || is_castos) {
715 deps += [
716 "//chromecast:cast_shell",
717 "//chromecast/cast_core:core_runtime_simple",
718 ]
719 }
720
721 if (is_mac || is_win || is_android || is_linux || is_chromeos) {
722 deps += [
723 "//third_party/crashpad/crashpad:crashpad_tests",
724 "//third_party/crashpad/crashpad/handler:crashpad_handler",
725 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
726 ]
727 }
728
729 if (enable_message_center) {
730 deps += [ "//ui/message_center:message_center_unittests" ]
731 }
732
733 if (!is_android && !is_ios) {
734 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
735 }
736
737 if (is_win || is_linux || is_chromeos) {
738 deps += [ "//mojo" ]
739 }
740
741 if (is_mac || is_linux || is_chromeos || is_android || is_fuchsia) {
742 deps += [ "//third_party/perfetto:all" ]
743 }
744
745 if (is_win || is_mac || is_linux || is_chromeos) {
746 deps += [ "//third_party/sqlite:sqlite_shell" ]
747 }
748
749 if ((is_linux && !is_castos) || is_chromeos_lacros || is_fuchsia) {
750 # TODO(https://crbug.com/1329673): Figure out if this should be in gn_all
751 # and how cross-platform this is.
752 deps +=
753 [ "//components/services/filesystem:filesystem_service_unittests" ]
754 }
755
756 if ((is_linux && !is_castos) || is_chromeos_lacros) {
757 # TODO(https://crbug.com/1329673): Figure out if any of these should be in
758 # gn_all and figure out how cross-platform they are.
759 deps += [
760 "//chrome/installer/util:strings",
761 "//chrome/tools/convert_dict",
762 "//components/constrained_window:unit_tests",
763 "//components/metrics:serialization",
764 "//components/sessions:unit_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37765 "//storage/browser:dump_file_system",
766 "//third_party/angle:libANGLE",
767 "//third_party/angle:libEGL",
768 "//third_party/angle:libGLESv2",
769 "//third_party/leveldatabase:leveldb_test_targets",
770 "//third_party/libjpeg_turbo:simd",
771 "//third_party/opus:opus_compare",
772 "//third_party/opus:opus_demo",
773 "//third_party/opus:test_opus_api",
774 "//third_party/opus:test_opus_decode",
775 "//third_party/opus:test_opus_encode",
776 "//third_party/opus:test_opus_padding",
777 "//ui/display/types",
778 "//ui/shell_dialogs:shell_dialogs_unittests",
779 ]
780
781 if (target_cpu == "x86" || target_cpu == "x64") {
782 if (!is_android) {
783 deps += [ "//chrome/test:load_library_perf_tests" ]
784 }
785 deps += [ "//third_party/libjpeg_turbo:simd_asm" ]
786 }
787 if ((is_linux || is_chromeos) && current_toolchain == host_toolchain) {
788 deps += [ "//v8:v8_shell" ]
789 }
790 }
791
792 if ((is_linux && !is_castos) || is_chromeos ||
793 ((is_win || is_mac) && use_fuzzing_engine)) {
794 deps += [
795 "//testing/libfuzzer/fuzzers",
Adrian Taylorde84dff2024-11-01 18:00:22796 "//testing/libfuzzer/research",
Stefano Duo1a1fcca2023-04-03 09:06:37797 "//third_party/freetype-testing:fuzzers",
798 "//third_party/grpc:fuzzers",
799 "//third_party/icu/fuzzers",
Stefano Duo1a1fcca2023-04-03 09:06:37800 "//third_party/ukey2/fuzzers",
801 "//third_party/zlib/contrib/tests/fuzzers",
802 ]
803
804 if (is_chromeos_ash) {
805 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.
890 "//testing/rust_gtest_interop:rust_gtest_interop_unittests",
891 "//third_party/cloud_authenticator/processor",
danakj6fdddfa22024-10-29 17:10:49892 ]
Collin Baker153146f32023-03-09 20:08:41893
Kalvin Lee1b60e6e72023-07-20 05:09:31894 if (enable_rust_mojo) {
895 deps += [
danakj62e4aae2023-12-15 22:31:22896 "//mojo/public/rust:mojo_rust",
Kalvin Lee1b60e6e72023-07-20 05:09:31897 "//mojo/public/rust:mojo_rust_integration_unittests",
898 "//mojo/public/rust:mojo_rust_unittests",
899 ]
900 }
Lukasz Anforowiczd2481732024-12-11 16:01:10901 if (enable_rust_png && !is_cronet_build) {
danakj6fdddfa22024-10-29 17:10:49902 deps += [ "//skia" ]
903 }
Adrian Taylor21dcb362021-09-01 14:58:14904}
905
Adrian Taylor0ea2a34b2023-03-18 08:08:32906# This group exists to give targets for the waterfall to refer to.
Adrian Taylor21dcb362021-09-01 14:58:14907group("rust_build_tests") {
Lukasz Anforowicz8524e3562021-09-23 14:12:26908 testonly = true
Adrian Taylor21dcb362021-09-01 14:58:14909 deps = [ "//build/rust/tests" ]
tfarinafbc992492017-03-08 22:44:04910}
911
Maksim Sisov25c86c82020-08-18 19:25:08912# TODO(https://crbug.com/1112776): ensure remoting is functional on Linux builds with
Maksim Sisov941ac832021-11-09 06:34:19913# other than X11 Ozone backends.
914if (enable_remoting && ((is_linux && ozone_platform_x11) ||
915 ((is_chromeos || is_win) && !use_ozone))) {
Nicolas Ouellet-Payeurebe785238d2021-11-12 14:49:55916 # On CQ, run the Traffic Annotation Auditor when a change affects one of these
917 # targets.
918 group("traffic_annotation_auditor_dependencies") {
Takuto Ikuta9d11eb12018-11-20 02:30:00919 deps = [
920 "//chrome:chrome",
921 "//remoting/host:host",
Nicolas Ouellet-Payeur8026e2a2022-10-03 18:27:55922 "//tools/traffic_annotation:annotations_xml",
Takuto Ikuta9d11eb12018-11-20 02:30:00923 ]
Nicolas Ouellet-Payeur84d90162024-07-10 18:07:54924 if (enable_enterprise_companion) {
925 deps += [ "//chrome/enterprise_companion" ]
926 }
Takuto Ikuta9d11eb12018-11-20 02:30:00927 }
928}
929
Baijun Zhua9842652022-05-19 23:28:34930if (is_chromeos_ash) {
931 group("traffic_annotation_auditor_dependencies") {
932 deps = [
933 "//chrome",
934 "//chromeos",
Nicolas Ouellet-Payeur8026e2a2022-10-03 18:27:55935 "//tools/traffic_annotation:annotations_xml",
Baijun Zhua9842652022-05-19 23:28:34936 ]
937 }
938}
939
Stefano Duo1a1fcca2023-04-03 09:06:37940if (is_android && !is_cronet_build) {
Nicolas Ouellet-Payeurebe785238d2021-11-12 14:49:55941 # On CQ, run the Traffic Annotation Auditor when a change affects one of these
942 # targets.
943 group("traffic_annotation_auditor_dependencies") {
944 deps = [
945 "//chrome/android:chrome_public_apk",
Nicolas Ouellet-Payeur8026e2a2022-10-03 18:27:55946 "//tools/traffic_annotation:annotations_xml",
Nicolas Ouellet-Payeurebe785238d2021-11-12 14:49:55947 ]
948 }
949}
950
Scott Graham677e79102017-08-15 20:07:37951if (is_fuchsia) {
952 # TODO(https://crbug.com/731217): This can't practically be in //v8 without
953 # duplicating all the Fuchsia running infrastructure there.
Greg Thompsonada4b212022-09-12 13:31:49954 fuchsia_component("d8_component") {
Kevin Marshall57a19db2018-09-12 20:07:05955 testonly = true
Greg Thompsonada4b212022-09-12 13:31:49956 manifest = "//v8/gni/v8.cml"
957 data_deps = [ "//v8:d8" ]
Kevin Marshall39b4aa82018-06-23 00:12:15958 }
Greg Thompsonada4b212022-09-12 13:31:49959 fuchsia_package("d8_pkg") {
960 testonly = true
961 package_name = "d8"
962 deps = [ ":d8_component" ]
963 }
Kevin Marshall5fadadd2021-10-16 00:08:25964 fuchsia_package_installer("d8_fuchsia") {
Kevin Marshall57a19db2018-09-12 20:07:05965 testonly = true
Greg Thompsonada4b212022-09-12 13:31:49966 package = ":d8_pkg"
Kevin Marshall5fadadd2021-10-16 00:08:25967 package_name = "d8"
Scott Graham677e79102017-08-15 20:07:37968 }
969}
970
tfarinafbc992492017-03-08 22:44:04971# TODO(GYP_GONE): Figure out if we really need this target or if there's
972# some better way to specify things.
973if (is_win) {
974 group("chrome_official_builder_no_unittests") {
975 deps = [
probergefe476002017-06-23 14:29:01976 "//chrome/common/win:eventlog_provider",
Roger Tawa5cb75d72018-11-09 21:56:38977 "//chrome/credential_provider",
Noah Rose Ledesma1b9e9082024-09-10 04:55:06978 "//chrome/enterprise_companion:enterprise_companion_zip",
tfarinafbc992492017-03-08 22:44:04979 "//chrome/installer/gcapi",
980 "//chrome/installer/mini_installer",
Joshua Pawlickie7e42ef2021-11-10 00:19:19981 "//chrome/updater/win:updater_zip",
tfarinafbc992492017-03-08 22:44:04982 "//components/policy:pack_policy_templates",
Samuel Huang577ef6c2018-03-13 18:19:34983 "//components/zucchini",
Will Harris62dfa042022-11-16 00:54:21984 "//components/zucchini:zucchini64",
Koji Ishii4adc9c072020-09-07 04:03:43985 "//third_party/hyphenation-patterns",
holteb87f01f52017-04-10 20:45:53986 "//tools/metrics:metrics_metadata",
tfarinafbc992492017-03-08 22:44:04987 ]
988
tfarinafbc992492017-03-08 22:44:04989 if (is_chrome_branded) {
990 deps += [ "//remoting/host:remoting_host_installation" ]
991 }
Jesse McKennac4445a22024-05-31 23:36:22992 if (enable_platform_experience) {
993 deps += [
994 "//chrome/browser/platform_experience/win:platform_experience_helper",
995 ]
996 }
tfarinafbc992492017-03-08 22:44:04997 }
998
999 group("chrome_official_builder") {
1000 testonly = true
1001
1002 deps = [
Xinan Lin4df5e822023-06-28 18:54:581003 ":blink_wpt_tests",
tfarinafbc992492017-03-08 22:44:041004 ":chrome_official_builder_no_unittests",
1005 "//base:base_unittests",
1006 "//chrome/test:browser_tests",
Xinan Lin4df5e822023-06-28 18:54:581007 "//chrome/test:interactive_ui_tests",
tfarinafbc992492017-03-08 22:44:041008 "//ipc:ipc_tests",
1009 "//media:media_unittests",
1010 "//media/midi:midi_unittests",
1011 "//net:net_unittests",
tfarinafbc992492017-03-08 22:44:041012 "//sql:sql_unittests",
danakj7b174142024-07-03 17:00:171013 "//third_party/breakpad:symupload",
tfarinafbc992492017-03-08 22:44:041014 "//ui/base:ui_base_unittests",
1015 "//ui/gfx:gfx_unittests",
1016 "//ui/touch_selection:ui_touch_selection_unittests",
1017 "//ui/views:views_unittests",
1018 "//url:url_unittests",
1019 ]
Dominik Röttsches1716cf92024-09-03 17:32:391020
1021 if (enable_printing || enable_printing_tests) {
1022 deps += [ "//printing:printing_unittests" ]
1023 }
tfarinafbc992492017-03-08 22:44:041024 }
tfarinafbc992492017-03-08 22:44:041025}
1026
Yuta Hijikata05f38002020-12-17 00:49:241027if (is_chromeos_ash) {
Ben Pastenebbb9bf142020-03-30 17:51:141028 # This group is used to collect all targets used when verifying a new version
1029 # of Chrome for Chrome OS.
tfarinafbc992492017-03-08 22:44:041030 group("chromiumos_preflight") {
1031 testonly = true
Ben Pastene3ea517912020-07-02 00:20:421032 data_deps = [
tfarinafbc992492017-03-08 22:44:041033 "//chrome",
Vladimir Nechaev83555c02022-11-04 05:26:411034 "//chrome/test/chromedriver:chromedriver_server",
Wei Lee01d63ef2019-05-09 09:24:501035 "//components/chromeos_camera:jpeg_decode_accelerator_unittest",
Jim Shargo906dbce2021-10-14 18:48:461036 "//components/exo/wayland:wayland_client_integration_tests",
Ben Pastenebbb9bf142020-03-30 17:51:141037 "//components/exo/wayland:wayland_client_perftests",
Lucas Berthou8841d6272021-02-24 20:28:501038 "//components/exo/wayland:wayland_client_tests",
Femi Adegunloye6a953a52023-02-07 19:33:531039 "//components/exo/wayland:wayland_hdr_client",
Mohamed Omar42fe5872022-08-10 17:25:531040 "//components/policy/test_support:fake_dmserver",
tfarinafbc992492017-03-08 22:44:041041 "//media:media_unittests",
Ben Pastenebbb9bf142020-03-30 17:51:141042 "//media/capture:capture_unittests",
tfarinafbc992492017-03-08 22:44:041043 "//sandbox/linux:chrome_sandbox",
Henrique Nakashima87b6d8b2022-07-13 13:59:041044 "//sandbox/linux:sandbox_linux_unittests",
Chu-Hsuan Yang98ad7f92024-06-27 05:15:341045 "//services/screen_ai:screen_ai_ocr_perf_test",
danakj7b174142024-07-03 17:00:171046 "//third_party/breakpad:minidump_stackwalk($host_system_allocator_toolchain)",
Austin Engbab1a5d2022-02-10 17:35:101047 "//third_party/dawn/src/dawn/tests:dawn_end2end_tests",
1048 "//third_party/dawn/src/dawn/tests:dawn_unittests",
Jim Shargoc84cb582022-04-28 17:10:571049 "//ui/ozone:ozone_integration_tests",
tfarinafbc992492017-03-08 22:44:041050
1051 # Blocked on https://github.com/catapult-project/catapult/issues/2297
1052 #"//third_party/catapult/telemetry:bitmaptools",
1053 "//tools/perf/clear_system_cache",
Xiyuan Xia93b801e2023-07-01 17:28:461054 "//ui/ozone/gl:ozone_gl_unittests",
tfarinafbc992492017-03-08 22:44:041055 ]
Alexandre Courbot8ad2427d2017-08-25 14:04:551056
Colin Kincaidb1137392023-06-16 20:53:401057 if (enable_ppapi) {
Lei Zhang1e297622022-06-28 10:30:061058 data_deps += [ "//ppapi/examples/video_decode" ]
1059 }
1060
Alexandre Courbot8ad2427d2017-08-25 14:04:551061 if (use_v4l2_codec || use_vaapi) {
Ben Pastene3ea517912020-07-02 00:20:421062 data_deps += [
Wei Lee01d63ef2019-05-09 09:24:501063 "//components/chromeos_camera:jpeg_encode_accelerator_unittest",
Collin Baker7ce81ea2023-03-30 19:35:451064 "//media/gpu/chromeos:image_processor_test",
Miguel Casasadc54be2023-03-27 18:20:441065 "//media/gpu/test/:video_decode_accelerator_perf_tests",
1066 "//media/gpu/test/:video_decode_accelerator_tests",
1067 "//media/gpu/test/:video_encode_accelerator_perf_tests",
1068 "//media/gpu/test/:video_encode_accelerator_tests",
Alexandre Courbot8ad2427d2017-08-25 14:04:551069 ]
Ben Pastenebbb9bf142020-03-30 17:51:141070 if (use_vaapi) {
Jao-ke Chin-Lee994de272020-12-28 20:05:081071 data_deps += [
1072 "//media/gpu/vaapi:decode_test",
1073 "//media/gpu/vaapi:vaapi_unittest",
Grayson LaFleur5e224832022-12-16 04:30:131074 "//media/gpu/vaapi/test/fake_libva_driver:fake_libva_driver_unittest",
Jao-ke Chin-Lee994de272020-12-28 20:05:081075 ]
Ben Pastenebbb9bf142020-03-30 17:51:141076 }
Steve Cho2ac5f2d2022-02-04 17:15:421077 if (use_v4l2_codec) {
Steve Cho9bf47812023-05-17 19:02:581078 data_deps += [
Bijan Choobinehe2113a12023-06-13 17:55:171079 "//media/gpu/chromeos:image_processor_perf_test",
Steve Cho9bf47812023-05-17 19:02:581080 "//media/gpu/v4l2:v4l2_stateless_decoder",
1081 "//media/gpu/v4l2:v4l2_unittest",
1082 ]
Steve Cho2ac5f2d2022-02-04 17:15:421083 }
Alexandre Courbot8ad2427d2017-08-25 14:04:551084 }
tfarinafbc992492017-03-08 22:44:041085 }
dprankedb5527d72015-03-08 04:22:471086}
1087
Gyuyoung Kim136038292023-09-01 01:32:341088if (use_blink && !is_cronet_build) {
Vladimir Nechaeveb261292022-11-18 06:18:051089 group("chromedriver_group") {
David Dorwin776712222022-04-13 23:01:541090 testonly = true
1091
1092 if (is_fuchsia || is_android) {
Ryan Keanea67d8022022-06-18 00:20:321093 # On Fuchsia and non-Cast Android, ChromeDriver runs on the host, not the
1094 # device.
1095 if (!is_cast_android) {
Vladimir Nechaev83555c02022-11-04 05:26:411096 deps = [
1097 "//chrome/test/chromedriver:chromedriver_server($host_toolchain)",
1098 ]
Ryan Keanea67d8022022-06-18 00:20:321099 }
1100 if (is_android && !is_cast_android) {
1101 deps += [ "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk" ]
David Dorwin776712222022-04-13 23:01:541102 }
Gyuyoung Kim136038292023-09-01 01:32:341103 } else if (!is_castos && !is_ios) {
David Dorwin776712222022-04-13 23:01:541104 deps = [
Vladimir Nechaev83555c02022-11-04 05:26:411105 "//chrome/test/chromedriver:chromedriver_server",
David Dorwin776712222022-04-13 23:01:541106 "//chrome/test/chromedriver:chromedriver_unittests",
Vladimir Nechaevc672deb2024-06-07 14:53:051107 "//chrome/test/chromedriver:copy_license",
1108 "//chrome/test/chromedriver:generate_chromedriver_notices",
David Dorwin776712222022-04-13 23:01:541109 ]
1110 }
1111 }
1112
tfarinacb2638b2015-05-12 03:24:151113 # This group includes all of the targets needed to build and test Blink,
Giovanni Ortuño Urquidie7f98f82019-10-29 00:26:591114 # including running web tests (see below). This target is defined here because
1115 # previously //third_party/WebKit, now //third_party/blink, couldn't depend on
1116 # //content/shell. This might not longer be true, see
1117 # https://crbug.com/1018659.
tfarinacb2638b2015-05-12 03:24:151118 group("blink_tests") {
1119 testonly = true
1120
1121 deps = [
Kent Tamuraef54e402019-02-14 07:18:361122 ":blink_web_tests",
Weizhong Xia8b786422022-06-23 14:46:511123 ":blink_wpt_tests",
Blink Reformata30d4232018-04-07 15:31:061124 "//third_party/blink/public:all_blink",
tansell88df42592016-11-15 07:22:591125 ]
Weizhong Xia0895abfa2025-01-08 23:55:381126
1127 if (!is_chromeos_ash && !is_ios && !is_fuchsia && !is_android &&
1128 !is_castos) {
1129 deps += [
1130 ":chrome_wpt_tests",
1131 ":headless_shell_wpt",
1132 ]
1133 }
tansell88df42592016-11-15 07:22:591134 }
1135
Jonathan Lee133d8d32024-09-03 17:55:441136 # Options shared by all script test targets that call `run_web_tests.py` or
1137 # `run_wpt_tests.py`.
1138 _common_web_test_options = [
1139 "--no-show-results",
1140 "--zero-tests-executed-ok",
Ben Pastene8661004b2024-11-13 18:36:421141 "--build-directory",
1142 "@WrappedPath(.)",
Jonathan Lee133d8d32024-09-03 17:55:441143 ]
1144 if (is_debug) {
1145 _common_web_test_options += [ "--debug" ]
1146 } else {
1147 _common_web_test_options += [ "--release" ]
1148 }
Jonathan Leef4865a12024-09-03 19:51:051149 if (is_asan) {
1150 _common_web_test_options += [
1151 "--enable-sanitizer",
1152 "--additional-expectations",
1153 "@WrappedPath(" +
1154 rebase_path("//third_party/blink/web_tests/ASANExpectations",
1155 root_out_dir) + ")",
1156 ]
1157 }
An Sungd75ea3332024-12-05 18:45:231158 if (is_chrome_for_testing) {
1159 _common_web_test_options += [
1160 "--additional-expectations",
1161 "@WrappedPath(" +
1162 rebase_path("//third_party/blink/web_tests/CfTTestExpecations",
1163 root_out_dir) + ")",
1164 ]
1165 }
Jonathan Leef4865a12024-09-03 19:51:051166 if (is_msan) {
1167 _common_web_test_options += [
1168 "--enable-sanitizer",
1169 "--additional-expectations",
1170 "@WrappedPath(" +
1171 rebase_path("//third_party/blink/web_tests/MSANExpectations",
1172 root_out_dir) + ")",
1173 ]
1174 }
Jonathan Lee133d8d32024-09-03 17:55:441175 if (is_fuchsia) {
1176 _common_web_test_options += [
1177 "--out-dir",
1178 "@WrappedPath(.)",
Ben Pasteneea815792024-08-23 15:47:471179 ]
Jonathan Lee133d8d32024-09-03 17:55:441180 }
1181
1182 if (!is_chromeos_ash && !is_ios && !is_fuchsia && !is_android && !is_castos) {
Weizhong Xia0895abfa2025-01-08 23:55:381183 # https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/run_web_platform_tests.md
Weizhong Xia711d3e62023-09-11 18:04:351184 script_test("chrome_wpt_tests") {
Nihar Damarasingu509ce0c2022-09-01 14:18:201185 script = "//third_party/blink/tools/run_wpt_tests.py"
Jonathan Lee133d8d32024-09-03 17:55:441186 args = _common_web_test_options + [ "--product=chrome" ]
Weizhong Xia635631352023-12-01 21:28:351187 if (dcheck_always_on) {
1188 args += [ "--timeout-multiplier=2" ]
1189 } else {
1190 args += [ "--timeout-multiplier=1" ]
1191 }
Weizhong Xia803d9cf2024-09-05 05:30:131192 if (is_chrome_branded) {
1193 args += [
1194 "--driver-name",
1195 "Google Chrome",
1196 ]
1197 }
Luke Zielinski218ddea32019-07-15 16:52:241198 data_deps = [
Jonathan Lee943799b2023-11-02 00:29:521199 ":blink_web_tests_expectations",
Mike Jackson7a4e8032024-01-08 19:41:011200 ":blink_web_tests_support_data",
Luke Zielinski218ddea32019-07-15 16:52:241201 "//chrome:chrome",
Vladimir Nechaev83555c02022-11-04 05:26:411202 "//chrome/test/chromedriver:chromedriver_server",
Luke Zielinski57397c7c2021-03-04 22:53:511203 "//third_party/blink/tools:wpt_tests_isolate",
Luke Zielinski218ddea32019-07-15 16:52:241204 ]
Luke Zielinski218ddea32019-07-15 16:52:241205 }
Weizhong Xia0895abfa2025-01-08 23:55:381206
1207 # https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/run_web_platform_tests.md
Weizhong Xia258547b2024-04-17 21:12:531208 script_test("headless_shell_wpt") {
1209 script = "//third_party/blink/tools/run_wpt_tests.py"
Jonathan Lee133d8d32024-09-03 17:55:441210 args = _common_web_test_options + [
Ben Pasteneea815792024-08-23 15:47:471211 "--product=headless_shell",
1212 "--no-wpt-internal",
Ben Pasteneea815792024-08-23 15:47:471213 ]
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/print_testharness/",
1464 "//third_party/blink/web_tests/printing/",
1465 "//third_party/blink/web_tests/register-protocol-handler/",
1466 "//third_party/blink/web_tests/regress/",
1467 "//third_party/blink/web_tests/resize-observer/",
1468 "//third_party/blink/web_tests/resources/",
1469 "//third_party/blink/web_tests/rootscroller/",
1470 "//third_party/blink/web_tests/screen_orientation/",
1471 "//third_party/blink/web_tests/scrollbars/",
Weizhong Xia53c492162021-09-09 17:08:241472 "//third_party/blink/web_tests/security/",
Jiewei Qian4db71f42021-12-09 02:31:071473 "//third_party/blink/web_tests/handwriting/",
Weizhong Xia53c492162021-09-09 17:08:241474 "//third_party/blink/web_tests/shadow-dom/",
1475 "//third_party/blink/web_tests/storage/",
1476 "//third_party/blink/web_tests/svg/",
1477 "//third_party/blink/web_tests/synthetic_gestures/",
1478 "//third_party/blink/web_tests/tables/",
1479 "//third_party/blink/web_tests/test_runner/",
1480 "//third_party/blink/web_tests/third_party/",
1481 "//third_party/blink/web_tests/timezonechange/",
1482 "//third_party/blink/web_tests/touchadjustment/",
1483 "//third_party/blink/web_tests/transforms/",
1484 "//third_party/blink/web_tests/transitions/",
1485 "//third_party/blink/web_tests/traversal/",
1486 "//third_party/blink/web_tests/typedcssom/",
1487 "//third_party/blink/web_tests/vibration/",
Vladimir Levin501455e2022-11-04 20:04:541488 "//third_party/blink/web_tests/view-transition/",
Weizhong Xia53c492162021-09-09 17:08:241489 "//third_party/blink/web_tests/virtual/",
1490 "//third_party/blink/web_tests/virtualkeyboard/",
Weizhong Xia53c492162021-09-09 17:08:241491 "//third_party/blink/web_tests/wasm/",
1492 "//third_party/blink/web_tests/webaudio/",
1493 "//third_party/blink/web_tests/webexposed/",
1494 "//third_party/blink/web_tests/webgpu/",
Weizhong Xia53c492162021-09-09 17:08:241495 "//third_party/blink/web_tests/xmlviewer/",
Alastair Donaldson308bb212021-09-14 20:50:271496
Weizhong Xia53c492162021-09-09 17:08:241497 # === Test Case Folders Ends ===
Kai Ninomiyafb9e5962020-03-17 06:11:381498 ]
Jonathan Lee784954c2023-11-01 22:39:421499 }
1500
1501 group("blink_web_tests_expectations") {
1502 testonly = true
1503
1504 data = [
1505 # Include virtual baselines.
1506 "//third_party/blink/web_tests/virtual/",
1507
1508 # List all test expectations here
Jonathan Lee784954c2023-11-01 22:39:421509 "//third_party/blink/web_tests/LeakExpectations",
Jonathan Lee784954c2023-11-01 22:39:421510 "//third_party/blink/web_tests/NeverFixTests",
1511 "//third_party/blink/web_tests/SlowTests",
1512 "//third_party/blink/web_tests/StaleTestExpectations",
1513 "//third_party/blink/web_tests/TestExpectations",
1514 ]
Weizhong Xia53c492162021-09-09 17:08:241515
Jonathan Leef4865a12024-09-03 19:51:051516 if (is_asan) {
1517 data += [ "//third_party/blink/web_tests/ASANExpectations" ]
1518 }
An Sungd75ea3332024-12-05 18:45:231519 if (is_chrome_for_testing) {
1520 data += [ "//third_party/blink/web_tests/CfTTestExpecations" ]
1521 }
Jonathan Leef4865a12024-09-03 19:51:051522 if (is_msan) {
1523 data += [ "//third_party/blink/web_tests/MSANExpectations" ]
1524 }
1525
Weizhong Xia53c492162021-09-09 17:08:241526 if (is_win || is_linux || is_fuchsia) {
1527 data += [
1528 "//third_party/blink/web_tests/platform/win/",
Weizhong Xiadfb5304f2022-05-12 20:36:261529 "//third_party/blink/web_tests/platform/win10/",
Nihar Damarasingua9b1c932023-06-11 23:55:231530 "//third_party/blink/web_tests/platform/win11-arm64/",
Weizhong Xia53c492162021-09-09 17:08:241531 ]
1532 if (is_linux || is_fuchsia) {
1533 data += [ "//third_party/blink/web_tests/platform/linux/" ]
1534 }
1535 if (is_fuchsia) {
Chong Gu70ee43a12022-12-08 22:57:371536 data += [
1537 "//third_party/blink/web_tests/platform/fuchsia/",
1538 "$root_gen_dir/package_metadata/content_shell.meta",
1539 ]
Weizhong Xia53c492162021-09-09 17:08:241540 }
1541 } else if (is_mac) {
1542 data += [
1543 "//third_party/blink/web_tests/platform/mac/",
Jonathan Leedbea4d4d2022-05-25 15:35:091544 "//third_party/blink/web_tests/platform/mac-mac11/",
Weizhong Xia53c492162021-09-09 17:08:241545 "//third_party/blink/web_tests/platform/mac-mac11-arm64/",
Nihar Damarasingu24703e22023-02-06 23:39:391546 "//third_party/blink/web_tests/platform/mac-mac12/",
Jonathan Leedbea4d4d2022-05-25 15:35:091547 "//third_party/blink/web_tests/platform/mac-mac12-arm64/",
An Sungf33f8522024-03-08 19:12:331548 "//third_party/blink/web_tests/platform/mac-mac13/",
Nihar Damarasingu24703e22023-02-06 23:39:391549 "//third_party/blink/web_tests/platform/mac-mac13-arm64/",
An Sung2dca54a2024-08-06 20:24:361550 "//third_party/blink/web_tests/platform/mac-mac14/",
An Sungf33f8522024-03-08 19:12:331551 "//third_party/blink/web_tests/platform/mac-mac14-arm64/",
An Sung2dca54a2024-08-06 20:24:361552 "//third_party/blink/web_tests/platform/mac-mac15-arm64/",
Weizhong Xia53c492162021-09-09 17:08:241553 ]
1554 }
1555
Le Hoang Quyen400daa82024-01-07 14:24:121556 # flag-specific tests only runs on linux & mac as of now
1557 if (is_linux || is_mac) {
Weizhong Xia53c492162021-09-09 17:08:241558 data += [
1559 "//third_party/blink/web_tests/FlagSpecificConfig",
1560 "//third_party/blink/web_tests/FlagExpectations/",
1561 "//third_party/blink/web_tests/flag-specific/",
1562 ]
1563 }
Kai Ninomiyafb9e5962020-03-17 06:11:381564 }
1565
Weizhong Xia0895abfa2025-01-08 23:55:381566 # https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/web_tests.md
Weizhong Xia8b786422022-06-23 14:46:511567 script_test("blink_wpt_tests") {
1568 script = _common_web_test_script
1569
1570 args = _common_web_test_args
1571
Weizhong Xia904cdf562022-08-25 02:00:331572 # Use --wpt-only to skip tests under web_tests/virtual/
Weizhong Xia650ce432024-08-14 22:08:261573 args += [
1574 "--wpt-only",
Jonathan Leebf8fd4ee2024-09-05 19:24:261575 "--inverted-test-launcher-filter-file",
1576 "@WrappedPath(" +
1577 rebase_path("//third_party/blink/web_tests/TestLists/chrome.filter",
1578 root_out_dir) + ")",
Weizhong Xia89577452025-01-10 04:14:361579 "--test-launcher-filter-file",
Jonathan Leebf8fd4ee2024-09-05 19:24:261580 "@WrappedPath(" + rebase_path(
Weizhong Xia89577452025-01-10 04:14:361581 "//third_party/blink/web_tests/TestLists/content_shell.filter",
Jonathan Leebf8fd4ee2024-09-05 19:24:261582 root_out_dir) + ")",
Weizhong Xia650ce432024-08-14 22:08:261583 ]
Weizhong Xia904cdf562022-08-25 02:00:331584
Jonathan Lee784954c2023-11-01 22:39:421585 data_deps = [
1586 ":blink_web_tests_expectations",
1587 ":blink_web_tests_support_data",
1588 ]
Weizhong Xia8b786422022-06-23 14:46:511589 data = [
1590 "//third_party/blink/perf_tests/",
Weizhong Xia8b786422022-06-23 14:46:511591 "//third_party/blink/web_tests/VirtualTestSuites",
1592
Weizhong Xia8b786422022-06-23 14:46:511593 # === List Test Cases folders here ===
1594 "//third_party/blink/web_tests/external/",
1595 "//third_party/blink/web_tests/wpt_internal/",
1596
1597 # === Test Case Folders Ends ===
1598 ]
Weizhong Xia8b786422022-06-23 14:46:511599 }
1600
Dirk Pranke67bc5a9d2020-10-09 16:33:481601 script_test("devtools_web_tests") {
1602 # This target differs from :blink_web_tests in that it uses the
1603 # same test harness but runs an entirely different set of tests
1604 # and doesn't have a dependency on the web_test directory at all.
1605 script = _common_web_test_script
Kai Ninomiyafb9e5962020-03-17 06:11:381606
Dirk Pranke67bc5a9d2020-10-09 16:33:481607 args = _common_web_test_args + [
Patrick Brossetf30adff2020-10-12 18:33:321608 "--layout-tests-directory=@WrappedPath(" + rebase_path(
Dirk Pranke67bc5a9d2020-10-09 16:33:481609 "//third_party/devtools-frontend/src/test/webtests",
1610 root_out_dir) + ")",
1611 "http/tests/devtools",
1612 ]
Kai Ninomiyafb9e5962020-03-17 06:11:381613
Dirk Pranke67bc5a9d2020-10-09 16:33:481614 data_deps = [ ":blink_web_tests_support_data" ]
1615 data = [ "//third_party/devtools-frontend/src/test/webtests/" ]
1616 }
1617
1618 script_test("webgpu_blink_web_tests") {
1619 # This target differs from :blink_web_tests in that it uses the same
1620 # test harness and a few additional flags but, more importantly, only runs
1621 # the web_tests/wpt_internal/webgpu tests, so it doesn't have a data
Austin Eng2cddb7752022-06-09 02:40:291622 # dependency on the whole web_test directory.
Dirk Pranke67bc5a9d2020-10-09 16:33:481623 script = _common_web_test_script
Austin Eng4beb5d62021-03-24 16:29:591624
Austin Eng2cddb7752022-06-09 02:40:291625 args = _common_web_test_args
Austin Eng8e638d92021-04-02 17:08:081626 if (is_asan) {
Weizhong Xia91b53362022-01-05 17:13:351627 args += [ "--timeout-ms=30000" ]
Austin Eng8e638d92021-04-02 17:08:081628 }
Austin Eng4beb5d62021-03-24 16:29:591629 args += [
Austin Eng2cddb7752022-06-09 02:40:291630 "--ignore-default-expectations",
1631 "--additional-expectations",
Austin Eng4beb5d62021-03-24 16:29:591632 "@WrappedPath(../../third_party/blink/web_tests/WebGPUExpectations)",
shrekshao96b18a762023-03-20 18:28:571633 "--isolated-script-test-filter=wpt_internal/webgpu/*",
Austin Eng4beb5d62021-03-24 16:29:591634 ]
Kai Ninomiyafb9e5962020-03-17 06:11:381635
Austin Eng32e07032021-03-18 16:30:101636 data_deps = [
1637 ":blink_web_tests_support_data",
1638 "//third_party/webgpu-cts",
1639 ]
Kai Ninomiyafb9e5962020-03-17 06:11:381640 data = [
Weizhong Xiad8a66332022-07-30 00:34:201641 "//third_party/blink/web_tests/external/wpt/common/",
1642 "//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
1759 if (!is_chromeos_ash && !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
1768 if ((is_linux && !is_castos) || is_chromeos_lacros) {
1769 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 Hijikata05f38002020-12-17 00:49:241806 if (!is_chromeos_ash) {
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
Rebekah Potter66968ea2023-01-19 23:24:411845if (is_chromeos_ash && 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
Andrew Grievefebea022020-08-07 17:17:531858# Write debug logs to gn_logs.txt.
1859_lines = [
1860 "Generated during 'gn gen' by //BUILD.gn.",
1861 "",
1862 ] + build_gn_logs
1863
1864# GN evaluates each .gn file once per toolchain, so restricting to default
1865# toolchain will ensure write_file() is called only once.
1866assert(current_toolchain == default_toolchain)
1867
1868write_file("$root_build_dir/gn_logs.txt", _lines)