blob: 954353ddfccd8ff72dd3ef781789b9ed316401c4 [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")
Scott Violetc8240b02018-03-08 22:03:5924import("//device/vr/buildflags/buildflags.gni")
25import("//extensions/buildflags/buildflags.gni")
Sam McNally11dc0142018-11-23 01:11:0526import("//gpu/vulkan/features.gni")
Alexandre Courbot8ad2427d2017-08-25 14:04:5527import("//media/gpu/args.gni")
Sam McNally11dc0142018-11-23 01:11:0528import("//media/media_options.gni")
danakj9ddc16242024-11-07 22:14:1429import("//mojo/public/rust/rust.gni")
Lei Zhang242fc9a2021-05-18 23:48:4230import("//pdf/features.gni")
Lei Zhang8baa2942021-05-19 03:59:4831import("//printing/buildflags/buildflags.gni")
brettw2b112cd2016-10-12 19:35:3632import("//remoting/remoting_enable.gni")
John Abd-El-Malekd842f9b2023-11-17 21:59:4833import("//services/on_device_model/on_device_model.gni")
Josip Sokcevic4d590cf2020-07-07 10:48:2334import("//third_party/closure_compiler/compile_js.gni")
thakis3f7d4fc2016-06-10 18:47:5035import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
Peter Beverloo69948322017-07-28 19:01:5736import("//ui/base/ui_features.gni")
Elly Fong-Jonesb03817a2019-11-14 18:10:1237import("//ui/gl/features.gni")
machenbachd65ec5c2016-07-22 09:05:2338import("//v8/gni/v8.gni")
dprankee2ef3822015-02-24 21:42:1839
cjhopmanca675d3e2014-10-24 03:50:4540if (is_android) {
41 import("//build/config/android/config.gni")
42}
[email protected]378b4f02014-06-10 15:58:4543
Greg Thompsonada4b212022-09-12 13:31:4944if (is_fuchsia) {
45 import("//build/config/fuchsia/generate_runner_scripts.gni")
Wez691dde42023-10-19 17:47:2946 import("//third_party/fuchsia-gn-sdk/src/component.gni")
47 import("//third_party/fuchsia-gn-sdk/src/package.gni")
John Abd-El-Malek6eb6dede2024-01-27 05:54:1148} else {
49 import("//chrome/browser/buildflags.gni")
Greg Thompsonada4b212022-09-12 13:31:4950}
51
Rohit Rao92edf2c2024-11-14 17:35:1652if (is_ios) {
53 import("//build/config/apple/mobile_config.gni")
54}
55
Andrey Kosyakov0e234d902021-03-30 19:00:2756if (is_linux) {
57 import("build/config/linux/gtk/gtk.gni")
58}
59
Dave Tapuska2ff385f2023-02-07 17:08:5960if (use_blink) {
Rohit Rao123b39e2021-09-17 19:52:3861 import("//v8/gni/snapshot_toolchain.gni")
62}
63
brettwb84b29472014-10-22 22:58:4564declare_args() {
65 # A list of extra dependencies to add to the root target. This allows a
66 # checkout to add additional targets without explicitly changing any checked-
67 # in files.
68 root_extra_deps = []
69}
70
brucedawsonc8d6d652016-09-02 19:43:1871if (is_official_build) {
72 # An official (maximally optimized!) component (optimized for build times)
73 # build doesn't make sense and usually doesn't work.
74 assert(!is_component_build)
75}
76
Dirk Pranke0356f6f2023-02-24 00:27:4677# The `gn_all` target is used to list all of the main targets in the build, so
78# that we can figure out which BUILD.gn files to process, following the process
79# described at the top of this file.
dpranked62d8512015-03-02 03:06:0380#
Dirk Pranke0356f6f2023-02-24 00:27:4681# Because of the way GN works (again, as described above), there may be targets
82# built by `all` that aren't built by `gn_all`. We always want `all` to build,
83# so there's really never a reason you'd want to build `gn_all` instead of
84# `all`, and no tooling should depend directly on this target. Tools should
85# should depend on either an explicit list of targets, or `all`.
dprankeff30e3d2015-02-24 06:52:3986
dprankee2ef3822015-02-24 21:42:1887group("gn_all") {
88 testonly = true
89
Stefano Duo1a1fcca2023-04-03 09:06:3790 if (is_cronet_build) {
Stefano Duo8d358e32023-04-14 09:45:2991 if (is_android) {
92 deps = [ "//components/cronet/android:cronet_package_android" ]
Stefano Duo8d358e32023-04-14 09:45:2993 } else {
94 deps = []
Brian Sheedyf74819b2021-06-04 01:38:3895 }
David Dorwin9985426fc2022-03-30 00:06:0496 } else {
Stefano Duo1a1fcca2023-04-03 09:06:3797 deps = [
98 "//base:base_perftests",
99 "//base:base_unittests",
100 "//codelabs",
101 "//components:components_unittests",
102 "//components/gwp_asan:gwp_asan_unittests",
103 "//infra/orchestrator:orchestrator_all",
104 "//net:net_unittests",
105 "//sandbox:sandbox_unittests",
106 "//services:services_unittests",
107 "//services/service_manager/public/cpp",
108 "//skia:skia_unittests",
109 "//sql:sql_unittests",
Adrian Taylor11f0b4222023-10-30 17:38:26110 "//testing/libfuzzer/tests",
Stefano Duo1a1fcca2023-04-03 09:06:37111 "//third_party/angle/src/tests:angle_end2end_tests",
112 "//third_party/angle/src/tests:angle_unittests",
113 "//third_party/angle/src/tests:angle_white_box_tests",
114 "//third_party/flatbuffers:flatbuffers_unittests",
Arthur Eubanksdfcb0412024-12-12 18:13:06115 "//third_party/highway:highway_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37116 "//third_party/liburlpattern:liburlpattern_unittests",
Steinar H. Gundersonba476bb2024-07-12 18:25:14117 "//third_party/rapidhash:rapidhash_fuzztests",
Stefano Duo1a1fcca2023-04-03 09:06:37118 "//tools/binary_size:binary_size_trybot_py",
Stefano Duo1a1fcca2023-04-03 09:06:37119 "//tools/metrics:metrics_metadata",
120 "//ui/base:ui_base_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37121 "//ui/gfx:gfx_unittests",
Allen Bauer66dc0e142023-09-12 01:08:29122 "//ui/tests:ui_unittests",
dprankee2ef3822015-02-24 21:42:18123 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03124 ]
125
Tarcisio Fischerfef19c52024-09-06 19:06:09126 if (current_cpu == "arm64" && is_android && host_os == "linux") {
127 deps += [
128 "//components/allocation_recorder/tools:dump_allocation_recorder_data",
129 ]
130 }
131
pkotwicz92e2e2312015-12-15 22:29:46132 if (!is_component_build) {
Stefano Duo1a1fcca2023-04-03 09:06:37133 deps += [ "//third_party/abseil-cpp:absl_tests" ]
134 }
135
Yuta Hijikata7128f0822025-03-06 05:44:15136 if (is_chromeos && enable_js_type_check) {
Stefano Duo1a1fcca2023-04-03 09:06:37137 deps += [ ":webui_closure_compile" ]
138 }
139
140 if (!is_android && !is_castos) {
pkotwicz92e2e2312015-12-15 22:29:46141 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37142 "//crypto:crypto_unittests",
143 "//google_apis/gcm:gcm_unit_tests",
pkotwicz92e2e2312015-12-15 22:29:46144 ]
145 }
146
Stefano Duo1a1fcca2023-04-03 09:06:37147 if (!is_ios && !is_android && !is_castos) {
Zijie Hed995cb02023-12-14 19:42:48148 if (!is_fuchsia) {
149 deps += [
150 "//chrome",
151 "//chrome/browser/ui/actions:dump_actions",
152 "//chrome/browser/ui/color:dump_colors",
153 "//chrome/test:browser_tests",
154 ]
155 }
pkotwicz061c5a42015-09-30 02:16:54156 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37157 "//components/subresource_filter/tools:subresource_filter_tools",
158 "//components/zucchini:zucchini",
Stefano Duo1a1fcca2023-04-03 09:06:37159 "//net:hpack_example_generator",
Yuly Novikov3eea78b2024-05-28 18:12:53160 "//third_party/spirv-tools/src:SPIRV-Tools",
Stefano Duo1a1fcca2023-04-03 09:06:37161 "//tools/aggregation_service:aggregation_service_tool",
162 "//tools/perf/clear_system_cache",
163 "//tools/polymer:polymer_tools_python_unittests",
164 "//tools/privacy_budget:privacy_budget_tools",
Stefano Duo1a1fcca2023-04-03 09:06:37165 "//ui/accessibility/extensions:extensions",
Dirk Prankef05a1b72025-02-26 20:53:23166 "//ui/webui/resources/tools:webui_resources_tools_python_unittests",
pkotwicz061c5a42015-09-30 02:16:54167 ]
Arthur Eubanks87cdea12022-02-17 21:18:51168 }
dnicoara8c6aa8e2015-03-11 23:20:32169
Zijie Hed995cb02023-12-14 19:42:48170 if (!is_castos && !is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37171 deps += [ "//chrome/installer" ]
Daniel Nicoaracf98a1bf2022-08-09 19:51:44172 }
173
John Abd-El-Malek6eb6dede2024-01-27 05:54:11174 if (!is_fuchsia && enable_updater) {
Stefano Duo1a1fcca2023-04-03 09:06:37175 deps += [ "//chrome/updater" ]
176 }
177
Noah Rose Ledesmaba67f1972024-05-24 21:27:32178 if (enable_enterprise_companion) {
179 deps += [ "//chrome/enterprise_companion" ]
180 }
181
Stefano Duo1a1fcca2023-04-03 09:06:37182 if (!is_ios && !is_castos) {
Zijie Hed995cb02023-12-14 19:42:48183 if (!is_fuchsia) {
184 deps += [ "//chrome/test:unit_tests" ]
185 }
186 deps += [ "//ui/accessibility:accessibility_unittests" ]
Stefano Duo1a1fcca2023-04-03 09:06:37187 }
sherouke1859f92015-08-05 10:19:10188
Stefano Duo1a1fcca2023-04-03 09:06:37189 if (use_blink) {
190 deps += [
191 "//cc:cc_unittests",
192 "//components/policy:policy_templates",
193 "//components/url_formatter/tools:format_url",
194 "//components/viz:viz_perftests",
195 "//components/viz:viz_unittests",
Abigail Katcoffcc1eb9f2024-10-02 20:21:21196 "//content/browser/interest_group/tools:adjustable_auction",
Stefano Duo1a1fcca2023-04-03 09:06:37197 "//content/shell:content_shell",
198 "//content/test:content_browsertests",
199 "//content/test:content_unittests",
200 "//device:device_unittests",
201 "//gpu:gpu_benchmark",
202 "//gpu:gpu_unittests",
203 "//media:media_unittests",
204 "//media/capture:capture_unittests",
Dave Tapuska269a0ca2023-04-05 18:38:20205 "//media/cast:cast_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37206 "//media/midi:midi_unittests",
207 "//media/mojo:media_mojo_unittests",
208 "//mojo",
209 "//mojo:mojo_unittests",
210 "//storage:storage_unittests",
211 "//third_party/blink/common:blink_common_unittests",
212 "//third_party/blink/renderer/controller:blink_unittests",
213 "//third_party/blink/renderer/platform:blink_platform_unittests",
214 "//third_party/blink/renderer/platform/heap:blink_heap_unittests",
215 "//third_party/blink/renderer/platform/wtf:wtf_unittests",
216 "//third_party/libjingle_xmpp:libjingle_xmpp_unittests",
217 "//tools/imagediff",
218 "//tools/memory:all",
219 "//ui/display:display_unittests",
220 "//ui/gl:gl_unittests",
221 "//ui/latency:latency_unittests",
222 "//ui/native_theme:native_theme_unittests",
223 "//ui/touch_selection:ui_touch_selection_unittests",
224 "//v8:gn_all",
225 ]
sugoiabe918902016-09-20 12:53:51226
Stefano Duo1a1fcca2023-04-03 09:06:37227 if (!v8_use_external_startup_data) {
228 deps += [ "//v8:v8_snapshot" ]
229 }
230 }
dprankedb5527d72015-03-08 04:22:47231
Dave Tapuskad74dc902023-03-08 21:45:51232 if (!is_ios) {
233 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37234 ":chromedriver_group",
235 "//components:components_browsertests",
236 "//ipc:ipc_tests",
237 "//net:net_perftests",
238 "//ui/events:events_unittests",
239 "//url/ipc:url_ipc_unittests",
Dave Tapuskad74dc902023-03-08 21:45:51240 ]
241 }
242
Stefano Duo1a1fcca2023-04-03 09:06:37243 if (!is_ios && !is_android) {
244 deps += [ "//components/viz/demo:viz_demo" ]
245 }
246
247 if (!is_ios) {
Daniel Nicoaracf98a1bf2022-08-09 19:51:44248 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37249 "//google_apis/gcm:mcs_probe",
Stefano Duo1a1fcca2023-04-03 09:06:37250 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
agrieve473155b42015-12-28 20:23:11251 ]
Stefano Duo1a1fcca2023-04-03 09:06:37252 if (!is_android) {
Zijie Hed995cb02023-12-14 19:42:48253 if (!is_castos && !is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37254 deps += [ "//chrome/test:telemetry_perf_unittests" ]
255 }
256 } else {
257 import("//tools/perf/chrome_telemetry_build/android_browser_types.gni")
258 foreach(_target_suffix, telemetry_android_browser_target_suffixes) {
259 deps += [ "//chrome/test:telemetry_perf_unittests${_target_suffix}" ]
260 }
261 }
262 } else {
263 deps += [
264 "//ios:all",
265 "//third_party/crashpad/crashpad:crashpad_tests",
266 ]
267 }
268
269 if (is_fuchsia) {
270 # Add targets that only exist on Fuchsia.
271 deps += [
272 ":d8_fuchsia",
273 "//build/fuchsia/cipd",
Stefano Duo1a1fcca2023-04-03 09:06:37274 "//fuchsia_web:gn_all",
275 "//tools/fuchsia/size_tests:fuchsia_sizes",
276
277 # Ensure this target continues to build.
278 "//chromecast/bindings:bindings_manager_fuchsia",
279 ]
280 }
281
282 deps += root_extra_deps
283
Gyuyoung Kim80fd49b2023-11-07 15:44:22284 if (enable_printing || enable_printing_tests) {
Stefano Duo1a1fcca2023-04-03 09:06:37285 deps += [ "//printing:printing_unittests" ]
agrieve473155b42015-12-28 20:23:11286 }
dpranke7e19b472015-11-13 00:49:33287
jamescookfbbf9112016-06-14 16:24:49288 if (enable_extensions) {
Stefano Duo1a1fcca2023-04-03 09:06:37289 deps += [
290 "//extensions:extensions_browsertests",
291 "//extensions:extensions_unittests",
292 "//extensions/browser/api/declarative_net_request/filter_list_converter",
293 "//extensions/shell:app_shell_unittests",
294 ]
jamescookfbbf9112016-06-14 16:24:49295 }
296
John Abd-El-Malekd842f9b2023-11-17 21:59:48297 if (enable_ml_internal) {
Austin Sullivanbd845512025-02-07 22:54:11298 deps += [
299 "//components/optimization_guide/internal:ondevice_model_benchmark",
300 ]
John Abd-El-Malekd842f9b2023-11-17 21:59:48301 }
302
Stefano Duo1a1fcca2023-04-03 09:06:37303 if (enable_pdf) {
304 deps += [
305 "//pdf/pdfium/fuzzers",
Lei Zhang2c2fc392024-05-09 17:21:12306 "//third_party/pdfium/testing:pdfium_test",
Stefano Duo1a1fcca2023-04-03 09:06:37307 ]
308 }
dpranke2bc89212015-11-18 00:24:43309
Stefano Duo1a1fcca2023-04-03 09:06:37310 if (enable_remoting) {
311 deps += [ "//remoting:remoting_all" ]
312 }
313
314 if (toolkit_views) {
315 deps += [
316 "//ui/views:views_unittests",
317 "//ui/views/examples:views_examples",
318 "//ui/views/examples:views_examples_unittests",
319 "//ui/views/examples:views_examples_with_content",
320 ]
321 }
322
Nasser Al-shawwa9954a392024-09-19 21:39:08323 if (enterprise_watermark) {
324 deps += [ "//chrome/browser/enterprise/watermark:watermark_app" ]
325 }
326
Stefano Duo1a1fcca2023-04-03 09:06:37327 if (use_aura) {
328 deps += [
329 "//ui/aura:aura_demo",
330 "//ui/aura:aura_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37331 "//ui/wm:wm_unittests",
332 ]
333 }
334
Sergey Ulanov647ad462025-02-19 19:34:33335 if (!is_android && !is_ios && !is_fuchsia) {
Min Qin3cb9bf72025-06-30 22:44:20336 deps += [
Min Qin39f26842025-07-01 15:46:18337 "//components/sync:sync_full_proto_unittests",
Min Qin3cb9bf72025-06-30 22:44:20338 "//ui/webui/examples:webui_examples",
339 ]
Robert Liao22722492023-06-14 18:35:47340 }
341
Stefano Duo1a1fcca2023-04-03 09:06:37342 if (use_ozone) {
343 deps += [
344 "//ui/ozone",
345 "//ui/ozone:unittests",
346 ]
347 if (!is_fuchsia) {
348 deps += [ "//ui/ozone/demo" ]
dpranke2bc89212015-11-18 00:24:43349 }
dprankedb5527d72015-03-08 04:22:47350 }
351
Stefano Duo1a1fcca2023-04-03 09:06:37352 if (is_win) {
353 deps += [
354 "//chrome/credential_provider",
355 "//chrome/credential_provider/test:gcp_unittests",
356 ]
Robert Liaobaf93e62024-02-16 00:56:15357
358 if (enable_platform_experience) {
359 deps += [
360 "//chrome/browser/platform_experience/win:platform_experience_helper",
361 ]
362 }
Daniel Nicoaracf98a1bf2022-08-09 19:51:44363 }
364
Stefano Duo1a1fcca2023-04-03 09:06:37365 if (is_mac) {
366 deps += [
367 "//chrome/installer/gcapi_mac:gcapi_example",
368 "//tools/mac",
369 ]
dprankefd1813272015-04-13 23:56:00370 }
371
Stefano Duo1a1fcca2023-04-03 09:06:37372 # Allow building md5sum tool for other OSes (android is added below).
373 # For Windows, see: crbug.com/1090428.
374 # TODO(cavalcantii): move it out of 'android' folder.
375 if (!is_win) {
376 deps += [ "//tools/android/md5sum" ]
fdorayfb048bff2016-04-28 22:07:36377 }
rsesek985bd812016-04-26 21:06:15378
Stefano Duo1a1fcca2023-04-03 09:06:37379 if (is_android) {
380 deps += [
381 "//base:base_junit_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37382 "//base/android/linker:chromium_android_linker",
383 "//build/android/gyp/test:hello_world",
384 "//build/android/stacktrace:java_deobfuscate",
385 "//build/config/android/test/proto:test_build_protos",
386 "//build/private_code_test:private_paths",
387 "//chrome/android/monochrome:monochrome_public_apk_checker",
Stefano Duo1a1fcca2023-04-03 09:06:37388 "//chrome/android/webapk/shell_apk:webapk",
389 "//chrome/android/webapk/shell_apk/prepare_upload_dir:prepare_webapk_shell_upload_dir",
390 "//chrome/test:android_browsertests",
391 "//components:components_junit_tests",
392 "//content/public/android:content_junit_tests",
393 "//content/shell/android:content_shell_apk",
394 "//device:device_junit_tests",
395 "//media/gpu:video_decode_accelerator_unittest",
396 "//net/android:net_junit_tests",
397 "//services:services_junit_tests",
398 "//testing/android/junit:junit_unit_tests",
399 "//third_party/android_build_tools/lint:custom_lint_java",
400 "//third_party/androidx_javascriptengine",
401 "//third_party/catapult/devil",
Andrew Grieve7de55312024-04-10 19:27:33402 "//third_party/jni_zero:jni_zero_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37403 "//third_party/r8:custom_d8_java",
404 "//tools/android:android_tools",
405 "//tools/android:memconsumer",
406 "//tools/android:push_apps_to_background",
407 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
408 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
409 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
Peter Wen2dcfa6e2025-03-04 22:42:52410 "//tools/cygprofile:generate_orderfile_android_trichrome_chrome_bundle",
Peter Wen428292c2024-12-02 15:51:21411 "//tools/pgo:generate_profile_android_trichrome_chrome_bundle",
Mark Schillacid1a94d532023-11-09 17:14:27412 "//ui:ui_junit_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37413 ]
414 deps -= [
415 "//net:net_perftests",
416 "//url:url_unittests",
417 ]
Sergey Ulanov07406542019-12-18 00:09:43418
Stefano Duo1a1fcca2023-04-03 09:06:37419 if (!is_cast_android) {
420 deps += [
421 "//android_webview:empty_group",
422 "//android_webview/test",
Andrew Grievee30e95b2024-06-24 19:13:09423 "//android_webview/tools/automated_ui_tests:webview_ui_test_app_test_apk",
Neil Estrada7ccb9ca2023-08-15 21:07:37424 "//android_webview/tools/captured_sites_tests:captured_sites_test_app",
Andrew Grieve46fb7d92023-11-23 22:04:31425 "//android_webview/tools/sdk_sandbox",
Stefano Duo1a1fcca2023-04-03 09:06:37426 "//android_webview/tools/system_webview_shell",
427 "//chrome/android:chrome_junit_tests",
428 "//chrome/android:chrome_public_apk",
429 "//chrome/android:chrome_public_test_apk",
430 "//chrome/android:chrome_public_unit_test_apk",
431 "//chrome/browser/android/examples/custom_tabs_client:custom_tabs_client_example_apk",
Friedrich Horschigc7c13cbb2025-01-16 10:34:18432 "//chrome/browser/android/examples/inline_autofill_service:inline_autofill_service_example_apk",
Stefano Duo1a1fcca2023-04-03 09:06:37433 "//chrome/browser/android/examples/partner_browser_customizations_provider:partner_browser_customizations_example_apk",
434 "//content/shell/android:content_shell_test_apk",
435 ]
agrieve473155b42015-12-28 20:23:11436 }
dprankeb0713542015-07-31 21:07:21437
Stefano Duo1a1fcca2023-04-03 09:06:37438 if (enable_chrome_android_internal) {
Peter Wen428292c2024-12-02 15:51:21439 deps += [ "//clank" ]
Stefano Duo1a1fcca2023-04-03 09:06:37440 }
441 }
442
443 if (is_linux || is_chromeos || is_android) {
444 deps += [
445 "//third_party/breakpad:breakpad_unittests",
446 "//third_party/breakpad:core-2-minidump",
447 "//third_party/breakpad:generate_test_dump",
448 "//third_party/breakpad:minidump-2-core",
449 "//tools/dump_process_memory:dump_process",
450 ]
451 }
Jonathan Metzman2656ecd2018-11-21 08:22:41452
Yuta Hijikata7128f0822025-03-06 05:44:15453 if (is_chromeos) {
Stefano Duo1a1fcca2023-04-03 09:06:37454 deps += [
455 "//ash:ash_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37456 "//ash/keyboard/ui:keyboard_unittests",
457 "//ash/webui:ash_webui_unittests",
Eriko Kurimoto107af142024-07-08 13:40:02458 "//chrome/browser/ash/child_accounts/time_limit_consistency_test:usage_time_limit_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37459 "//chrome/browser/metrics/perf:profile_provider_unittest",
Yuta Hijikata7128f0822025-03-06 05:44:15460 "//chromeos:chromeos_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37461 "//chromeos/ash/components/proximity_auth:proximity_auth_unittests",
Hidehiko Abed145e342025-02-03 11:23:00462 "//chromeos/ash/experiences:ash_components_unittests",
Stefano Duo1a1fcca2023-04-03 09:06:37463 "//chromeos/components:chromeos_components_unittests",
464 "//components/exo/wayland:wayland_client_compatibility_tests",
465 "//components/session_manager/core",
466 "//third_party/shell-encryption:shell_encryption_unittests",
467 "//ui/chromeos:ui_chromeos_unittests",
468 ]
Lei Zhang8baa2942021-05-19 03:59:48469 }
470
Yuta Hijikata7128f0822025-03-06 05:44:15471 if (is_chromeos || is_mac || is_win) {
Stefano Duo1a1fcca2023-04-03 09:06:37472 deps += [
473 "//rlz:rlz_id",
474 "//rlz:rlz_lib",
475 "//rlz:rlz_unittests",
476 ]
477 }
sbc92b4d572016-02-18 03:28:23478
Stefano Duo1a1fcca2023-04-03 09:06:37479 if (is_linux || is_chromeos) {
480 # The following are definitely linux-only.
481 deps += [
482 "//net:disk_cache_memory_test",
483 "//net:quic_client",
484 "//net:quic_server",
485 "//sandbox/linux:chrome_sandbox",
486 "//sandbox/linux:sandbox_linux_unittests",
487 ]
488 if (!is_clang) {
489 deps += [ "//testing:empty_main" ]
490 }
Christopher Grant193648b2017-06-07 15:08:36491
Stefano Duo1a1fcca2023-04-03 09:06:37492 if (!is_castos) {
493 deps += [ "//chrome:xdg_mime" ]
494 }
495
496 if (use_dbus) {
Brian Sheedyf74819b2021-06-04 01:38:38497 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37498 "//dbus:dbus_test_server",
499 "//dbus:dbus_unittests",
Brian Sheedyf74819b2021-06-04 01:38:38500 ]
501 }
Stefano Duo1a1fcca2023-04-03 09:06:37502
503 if (is_chrome_branded && is_official_build) {
504 # TODO(dpranke): add the linux_dump_symbols flag?
505 deps += [ "//chrome:linux_symbols" ]
506 }
Yash Malik8109b5bb2017-07-13 22:40:03507 }
Scott Grahamf24e3742017-08-11 17:50:22508
Georg Neisa324c502025-03-03 06:04:54509 if (is_ios || is_win || is_linux || is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37510 deps += [
511 "//base:base_i18n_perftests",
512 "//google_apis:google_apis_unittests",
513 ]
514 }
515
516 if ((is_win || is_mac || is_linux || is_chromeos || is_fuchsia) &&
517 (target_cpu == "x86" || target_cpu == "x64")) {
518 deps += [
519 "//third_party/swiftshader/src/Vulkan:icd_file",
520 "//third_party/swiftshader/src/Vulkan:swiftshader_libvulkan",
521 ]
522 }
523
524 # TODO(GYP): Figure out which of these should (and can) build
525 # for Chrome OS and iOS (without blink).
Yuta Hijikata7128f0822025-03-06 05:44:15526 if (!is_chromeos && use_blink) {
Stefano Duo1a1fcca2023-04-03 09:06:37527 deps += [
528 "//cc:cc_perftests",
529 "//device:device_unittests",
530 "//gin:gin_shell",
531 "//gin:gin_unittests",
532 "//gpu:command_buffer_perftests",
533 "//gpu:gl_tests",
534 "//gpu:gpu_perftests",
535 "//media:media_perftests",
536 "//third_party/libphonenumber:libphonenumber_unittests",
537 "//ui/compositor:compositor_unittests",
538 ]
539
540 if (!is_ios) {
541 deps += [
542 "//base:build_utf8_validator_tables",
543 "//base:check_example",
544 "//components:components_perftests",
545 "//ipc:ipc_perftests",
546 "//net:dump_cache",
547 ]
548 }
549
Zijie Hed995cb02023-12-14 19:42:48550 if (!is_android && !is_castos && !is_ios && !is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37551 deps += [
552 "//chrome/test:load_library_perf_tests",
553 "//chrome/test:sync_performance_tests",
554 ]
555 }
556
557 if (!is_android && !is_ios) {
558 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37559 "//net:crash_cache",
560 "//net:net_watcher", # TODO(GYP): This should be conditional on
561 # use_v8_in_net
562 "//net:run_testserver",
563 "//net:stress_cache",
564 "//net:tld_cleanup",
565 "//third_party/leveldatabase:env_chromium_unittests",
566 "//third_party/libaddressinput:libaddressinput_unittests",
567 ]
568 }
569
570 if (enable_extensions) {
571 deps += [ "//extensions/shell:app_shell" ]
572 }
573
Stefano Duo1a1fcca2023-04-03 09:06:37574 if (media_use_ffmpeg && !is_android) {
575 deps += [ "//media:ffmpeg_regression_tests" ]
576 }
577 }
578
Georg Neisa324c502025-03-03 06:04:54579 if (is_android || is_linux) {
Stefano Duo1a1fcca2023-04-03 09:06:37580 deps += [
581 "//components/network_hints/browser",
582 "//content/public/app",
583 "//mojo:mojo_perftests",
584 "//services/service_manager/public/cpp",
585 "//testing/gmock:gmock_main",
danakj7b174142024-07-03 17:00:17586 "//third_party/breakpad:dump_syms($host_system_allocator_toolchain)",
587 "//third_party/breakpad:microdump_stackwalk($host_system_allocator_toolchain)",
588 "//third_party/breakpad:minidump_dump($host_system_allocator_toolchain)",
589 "//third_party/breakpad:minidump_stackwalk($host_system_allocator_toolchain)",
Stefano Duo1a1fcca2023-04-03 09:06:37590 ]
591 }
592
Georg Neisa324c502025-03-03 06:04:54593 if (is_linux) {
Stefano Duo1a1fcca2023-04-03 09:06:37594 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37595 "//skia:filter_fuzz_stub",
596 "//skia:image_operations_bench",
597 "//ui/snapshot:snapshot_unittests",
598 ]
599
600 if (!is_castos) {
601 deps += [ "//chrome/test:chrome_app_unittests" ]
602 }
603
604 if (!is_debug && !is_component_build && !is_castos) {
605 deps += [ "//chrome/tools/service_discovery_sniffer" ]
606 }
607 }
608
609 if (is_mac) {
610 deps += [
danakj7b174142024-07-03 17:00:17611 "//third_party/breakpad:dump_syms($host_system_allocator_toolchain)",
Stefano Duo1a1fcca2023-04-03 09:06:37612
613 # The following are accessibility API tools.
614 "//tools/accessibility/inspect:ax_dump_events",
615 "//tools/accessibility/inspect:ax_dump_tree",
616 ]
617 deps -= [
618 # Mojo in GN contains some things which are never compiled in GYP on Mac,
619 # so compilation fails on Mac. They need porting.
620 "//mojo",
621 ]
622 }
623
624 if (is_win) {
625 deps += [
626 "//base:pe_image_test",
Stefano Duo1a1fcca2023-04-03 09:06:37627 "//chrome/chrome_elf:chrome_elf_unittests",
628 "//chrome/chrome_elf:dll_hash_main",
629 "//chrome/elevation_service:elevation_service_unittests",
630 "//chrome/install_static:install_static_unittests",
631 "//chrome/installer/gcapi",
632 "//chrome/installer/setup:setup_unittests",
633 "//chrome/notification_helper:notification_helper_unittests",
634 "//chrome/test:delayloads_unittests",
635 "//components/wifi:wifi_test",
636 "//components/zucchini",
637 "//net:quic_client",
638 "//net:quic_server",
639 "//sandbox/win:sbox_integration_tests",
640 "//sandbox/win:sbox_unittests",
641 "//sandbox/win:sbox_validation_tests",
642 "//testing/gtest:gtest_main",
643
644 # The following two are accessibility API debugging tools.
645 "//tools/accessibility/inspect:ax_dump_events",
646 "//tools/accessibility/inspect:ax_dump_tree",
647 "//tools/win/chromeexts:chromeexts",
648 ]
649
650 # TODO(thakis): Enable this in cross builds, https://crbug.com/799827
651 if (!(is_component_build && is_debug && target_cpu == "x86") &&
652 host_os == "win") {
653 deps += [ "//chrome/test/mini_installer:mini_installer_tests" ]
654 }
danakj7b174142024-07-03 17:00:17655 }
656
657 if (!is_fuchsia) {
658 # The official builders use this binary from the default toolchain's
659 # output directory after building in order to upload the symbols of that
660 # binary. They build the binary like `ninja symupload` which requires the
661 # target to be a dependency in the default_toolchain from `gn_all` for the
662 # name to resolve.
663 deps += [ "//third_party/breakpad:symupload" ]
664 }
danakj6c3b7152024-07-04 16:40:49665 if (is_mac && host_cpu == "arm64") {
danakj7b174142024-07-03 17:00:17666 # TODO(crbug.com/349268750): This alias exists because the official Mac
667 # arm64 builders (which cross-build the x64 binaries) use the hardcoded
668 # path of the `$host_toolchain/symupload` to build and run the symupload
669 # binary. And the same recipes are used on all branches!! So we would break
670 # the stable branch builders by changing the recipe to build and run the
671 # binary from the root_build_dir.
672 #
673 # Once this code is in stable, we can land the following CLs to change how
674 # symupload is built and run on Mac arm64 official builders, and then this
675 # alias can be removed.
676 # Build: https://chrome-internal-review.googlesource.com/c/chrome/src-internal/+/7430844
677 # Run: https://chrome-internal-review.googlesource.com/c/chrome/tools/release/scripts/+/7430843
Will Yeagerc1b50eb2024-06-26 05:24:44678 deps += [ "//third_party/breakpad:symupload($host_toolchain)" ]
Stefano Duo1a1fcca2023-04-03 09:06:37679 }
680
681 if (is_cast_android || is_castos || (is_fuchsia && enable_cast_receiver)) {
682 deps += [ "//chromecast:cast_test_lists" ]
683 }
684
685 if (is_cast_android || is_castos) {
686 deps += [
687 "//chromecast:cast_shell",
688 "//chromecast/cast_core:core_runtime_simple",
689 ]
690 }
691
692 if (is_mac || is_win || is_android || is_linux || is_chromeos) {
693 deps += [
694 "//third_party/crashpad/crashpad:crashpad_tests",
695 "//third_party/crashpad/crashpad/handler:crashpad_handler",
696 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
697 ]
698 }
699
700 if (enable_message_center) {
701 deps += [ "//ui/message_center:message_center_unittests" ]
702 }
703
704 if (!is_android && !is_ios) {
705 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
706 }
707
708 if (is_win || is_linux || is_chromeos) {
709 deps += [ "//mojo" ]
710 }
711
712 if (is_mac || is_linux || is_chromeos || is_android || is_fuchsia) {
713 deps += [ "//third_party/perfetto:all" ]
714 }
715
716 if (is_win || is_mac || is_linux || is_chromeos) {
717 deps += [ "//third_party/sqlite:sqlite_shell" ]
718 }
719
Georg Neisa324c502025-03-03 06:04:54720 if ((is_linux && !is_castos) || is_fuchsia) {
Stefano Duo1a1fcca2023-04-03 09:06:37721 # TODO(https://crbug.com/1329673): Figure out if this should be in gn_all
722 # and how cross-platform this is.
723 deps +=
724 [ "//components/services/filesystem:filesystem_service_unittests" ]
725 }
726
Georg Neisa324c502025-03-03 06:04:54727 if (is_linux && !is_castos) {
Stefano Duo1a1fcca2023-04-03 09:06:37728 # TODO(https://crbug.com/1329673): Figure out if any of these should be in
729 # gn_all and figure out how cross-platform they are.
730 deps += [
731 "//chrome/installer/util:strings",
732 "//chrome/tools/convert_dict",
733 "//components/constrained_window:unit_tests",
734 "//components/metrics:serialization",
735 "//components/sessions:unit_tests",
Stefano Duo1a1fcca2023-04-03 09:06:37736 "//storage/browser:dump_file_system",
737 "//third_party/angle:libANGLE",
738 "//third_party/angle:libEGL",
739 "//third_party/angle:libGLESv2",
740 "//third_party/leveldatabase:leveldb_test_targets",
741 "//third_party/libjpeg_turbo:simd",
742 "//third_party/opus:opus_compare",
743 "//third_party/opus:opus_demo",
744 "//third_party/opus:test_opus_api",
745 "//third_party/opus:test_opus_decode",
746 "//third_party/opus:test_opus_encode",
747 "//third_party/opus:test_opus_padding",
748 "//ui/display/types",
749 "//ui/shell_dialogs:shell_dialogs_unittests",
750 ]
751
752 if (target_cpu == "x86" || target_cpu == "x64") {
753 if (!is_android) {
754 deps += [ "//chrome/test:load_library_perf_tests" ]
755 }
756 deps += [ "//third_party/libjpeg_turbo:simd_asm" ]
757 }
758 if ((is_linux || is_chromeos) && current_toolchain == host_toolchain) {
759 deps += [ "//v8:v8_shell" ]
760 }
761 }
762
763 if ((is_linux && !is_castos) || is_chromeos ||
764 ((is_win || is_mac) && use_fuzzing_engine)) {
765 deps += [
766 "//testing/libfuzzer/fuzzers",
Adrian Taylorde84dff2024-11-01 18:00:22767 "//testing/libfuzzer/research",
Stefano Duo1a1fcca2023-04-03 09:06:37768 "//third_party/icu/fuzzers",
Stefano Duo1a1fcca2023-04-03 09:06:37769 "//third_party/ukey2/fuzzers",
770 "//third_party/zlib/contrib/tests/fuzzers",
771 ]
772
Yuta Hijikata7128f0822025-03-06 05:44:15773 if (is_chromeos) {
Stefano Duo1a1fcca2023-04-03 09:06:37774 deps += [ "//chrome/services/ipp_parser/public/cpp:fuzzers" ]
775 }
Stefano Duo1a1fcca2023-04-03 09:06:37776 }
777
Stefano Duo1a1fcca2023-04-03 09:06:37778 if (((is_linux || is_chromeos) && use_ozone) || is_fuchsia) {
779 deps += [
780 "//headless:headless_non_renderer",
781 "//headless:headless_tests",
782 ]
783 }
784
785 if (enable_vr) {
786 deps += [
787 "//chrome/browser/vr:vr_common_perftests",
788 "//chrome/browser/vr:vr_common_unittests",
789 ]
790 if (!is_android) {
791 deps += [ "//tools/perf/contrib/vr_benchmarks:vr_perf_tests" ]
792 } else {
793 deps += [ "//chrome/browser/android/vr:vr_android_unittests" ]
794 import("//tools/perf/chrome_telemetry_build/android_browser_types.gni")
795 foreach(_target_suffix, telemetry_android_browser_target_suffixes) {
796 deps += [
797 "//tools/perf/contrib/vr_benchmarks:vr_perf_tests${_target_suffix}",
798 ]
799 }
800 }
801 }
802
803 if (use_atk) {
804 deps += [
805 "//tools/accessibility/inspect:ax_dump_events",
806 "//tools/accessibility/inspect:ax_dump_tree",
807 ]
808 }
809
810 if (build_dawn_tests) {
811 deps += [
812 "//third_party/dawn/src/dawn/fuzzers:fuzzers",
813 "//third_party/dawn/src/dawn/tests:dawn_end2end_tests",
814 "//third_party/dawn/src/dawn/tests:dawn_unittests",
Ben Clayton3b40f9b2023-10-21 00:16:56815 "//third_party/dawn/src/tint:fuzzers",
816 "//third_party/dawn/src/tint:tests",
Stefano Duo1a1fcca2023-04-03 09:06:37817 ]
818 }
819
820 # PFFFT.
Martin Robinsone4fddede2018-09-18 10:30:21821 deps += [
Stefano Duo1a1fcca2023-04-03 09:06:37822 "//third_party/pffft:fuzzers",
823 "//third_party/pffft:pffft_benchmark",
824 "//third_party/pffft:pffft_unittest",
Martin Robinsone4fddede2018-09-18 10:30:21825 ]
Stefano Duo1a1fcca2023-04-03 09:06:37826
827 # Rust build targets.
Kalvin Lee1b60e6e72023-07-20 05:09:31828 if (enable_rust) {
829 deps += [ ":all_rust" ]
830 }
Alessio Bazzica383dcef92019-02-08 14:14:42831
Stefano Duo8d358e32023-04-14 09:45:29832 if (!is_android && !is_ios) {
833 deps += [ "//components/cronet:cronet_tests" ]
834 }
Stefano Duo1a1fcca2023-04-03 09:06:37835 }
Thiago Perrotta942ed3e2023-09-05 09:26:52836
837 if (is_chrome_for_testing) {
838 deps += [ "//chrome/browser/chrome_for_testing:chrome_for_testing" ]
839 }
Ivan Kirichenko84cd3452024-09-25 08:14:04840
841 if (checkout_src_internal) {
842 deps += [ "//internal:all" ]
843 }
Collin Baker153146f32023-03-09 20:08:41844}
Collina1e27a42022-01-26 20:12:03845
Collin Baker153146f32023-03-09 20:08:41846# All Rust targets. This is provided for convenience while developing Rust to
847# e.g. test build config or toolchain changes.
848group("all_rust") {
849 testonly = true
850
danakj6fdddfa22024-10-29 17:10:49851 deps = [
852 ":rust_build_tests",
danakj9ddc16242024-11-07 22:14:14853 "//base:base_unittests", # There is rust stuff in here.
danakj9ddc16242024-11-07 22:14:14854 "//third_party/cloud_authenticator/processor",
danakj6fdddfa22024-10-29 17:10:49855 ]
Collin Baker153146f32023-03-09 20:08:41856
Justin Cohen6f39b1e2025-03-21 20:39:11857 # TODO(https://crbug.com/405379314): This fails to build on some iOS ASAN
858 # builders.
859 if (!is_ios || !is_asan) {
860 deps += [ "//testing/rust_gtest_interop:rust_gtest_interop_unittests" ]
861 }
862
Kalvin Lee1b60e6e72023-07-20 05:09:31863 if (enable_rust_mojo) {
864 deps += [
danakj62e4aae2023-12-15 22:31:22865 "//mojo/public/rust:mojo_rust",
Kalvin Lee1b60e6e72023-07-20 05:09:31866 "//mojo/public/rust:mojo_rust_integration_unittests",
867 "//mojo/public/rust:mojo_rust_unittests",
868 ]
869 }
Lukasz Anforowiczdadccfc2025-06-27 15:16:17870 if (!is_cronet_build) {
danakj6fdddfa22024-10-29 17:10:49871 deps += [ "//skia" ]
872 }
Adrian Taylor21dcb362021-09-01 14:58:14873}
874
Adrian Taylor0ea2a34b2023-03-18 08:08:32875# This group exists to give targets for the waterfall to refer to.
Adrian Taylor21dcb362021-09-01 14:58:14876group("rust_build_tests") {
Lukasz Anforowicz8524e3562021-09-23 14:12:26877 testonly = true
Adrian Taylor21dcb362021-09-01 14:58:14878 deps = [ "//build/rust/tests" ]
tfarinafbc992492017-03-08 22:44:04879}
880
Maksim Sisov25c86c82020-08-18 19:25:08881# TODO(https://crbug.com/1112776): ensure remoting is functional on Linux builds with
Maksim Sisov941ac832021-11-09 06:34:19882# other than X11 Ozone backends.
883if (enable_remoting && ((is_linux && ozone_platform_x11) ||
884 ((is_chromeos || is_win) && !use_ozone))) {
Nicolas Ouellet-Payeurebe785238d2021-11-12 14:49:55885 # On CQ, run the Traffic Annotation Auditor when a change affects one of these
886 # targets.
887 group("traffic_annotation_auditor_dependencies") {
Takuto Ikuta9d11eb12018-11-20 02:30:00888 deps = [
889 "//chrome:chrome",
890 "//remoting/host:host",
Nicolas Ouellet-Payeur8026e2a2022-10-03 18:27:55891 "//tools/traffic_annotation:annotations_xml",
Takuto Ikuta9d11eb12018-11-20 02:30:00892 ]
Nicolas Ouellet-Payeur84d90162024-07-10 18:07:54893 if (enable_enterprise_companion) {
894 deps += [ "//chrome/enterprise_companion" ]
895 }
Takuto Ikuta9d11eb12018-11-20 02:30:00896 }
897}
898
Yuta Hijikata7128f0822025-03-06 05:44:15899if (is_chromeos) {
Baijun Zhua9842652022-05-19 23:28:34900 group("traffic_annotation_auditor_dependencies") {
901 deps = [
902 "//chrome",
Nicolas Ouellet-Payeur8026e2a2022-10-03 18:27:55903 "//tools/traffic_annotation:annotations_xml",
Baijun Zhua9842652022-05-19 23:28:34904 ]
905 }
906}
907
Stefano Duo1a1fcca2023-04-03 09:06:37908if (is_android && !is_cronet_build) {
Nicolas Ouellet-Payeurebe785238d2021-11-12 14:49:55909 # On CQ, run the Traffic Annotation Auditor when a change affects one of these
910 # targets.
911 group("traffic_annotation_auditor_dependencies") {
912 deps = [
913 "//chrome/android:chrome_public_apk",
Nicolas Ouellet-Payeur8026e2a2022-10-03 18:27:55914 "//tools/traffic_annotation:annotations_xml",
Nicolas Ouellet-Payeurebe785238d2021-11-12 14:49:55915 ]
916 }
917}
918
Scott Graham677e79102017-08-15 20:07:37919if (is_fuchsia) {
920 # TODO(https://crbug.com/731217): This can't practically be in //v8 without
921 # duplicating all the Fuchsia running infrastructure there.
Greg Thompsonada4b212022-09-12 13:31:49922 fuchsia_component("d8_component") {
Kevin Marshall57a19db2018-09-12 20:07:05923 testonly = true
Greg Thompsonada4b212022-09-12 13:31:49924 manifest = "//v8/gni/v8.cml"
925 data_deps = [ "//v8:d8" ]
Kevin Marshall39b4aa82018-06-23 00:12:15926 }
Greg Thompsonada4b212022-09-12 13:31:49927 fuchsia_package("d8_pkg") {
928 testonly = true
929 package_name = "d8"
930 deps = [ ":d8_component" ]
931 }
Kevin Marshall5fadadd2021-10-16 00:08:25932 fuchsia_package_installer("d8_fuchsia") {
Kevin Marshall57a19db2018-09-12 20:07:05933 testonly = true
Greg Thompsonada4b212022-09-12 13:31:49934 package = ":d8_pkg"
Kevin Marshall5fadadd2021-10-16 00:08:25935 package_name = "d8"
Scott Graham677e79102017-08-15 20:07:37936 }
937}
938
tfarinafbc992492017-03-08 22:44:04939# TODO(GYP_GONE): Figure out if we really need this target or if there's
940# some better way to specify things.
941if (is_win) {
942 group("chrome_official_builder_no_unittests") {
943 deps = [
probergefe476002017-06-23 14:29:01944 "//chrome/common/win:eventlog_provider",
Roger Tawa5cb75d72018-11-09 21:56:38945 "//chrome/credential_provider",
Noah Rose Ledesma1b9e9082024-09-10 04:55:06946 "//chrome/enterprise_companion:enterprise_companion_zip",
tfarinafbc992492017-03-08 22:44:04947 "//chrome/installer/gcapi",
948 "//chrome/installer/mini_installer",
Joshua Pawlickie7e42ef2021-11-10 00:19:19949 "//chrome/updater/win:updater_zip",
tfarinafbc992492017-03-08 22:44:04950 "//components/policy:pack_policy_templates",
Samuel Huang577ef6c2018-03-13 18:19:34951 "//components/zucchini",
Will Harris62dfa042022-11-16 00:54:21952 "//components/zucchini:zucchini64",
Koji Ishii4adc9c072020-09-07 04:03:43953 "//third_party/hyphenation-patterns",
holteb87f01f52017-04-10 20:45:53954 "//tools/metrics:metrics_metadata",
tfarinafbc992492017-03-08 22:44:04955 ]
956
tfarinafbc992492017-03-08 22:44:04957 if (is_chrome_branded) {
958 deps += [ "//remoting/host:remoting_host_installation" ]
959 }
Jesse McKennac4445a22024-05-31 23:36:22960 if (enable_platform_experience) {
961 deps += [
962 "//chrome/browser/platform_experience/win:platform_experience_helper",
963 ]
964 }
tfarinafbc992492017-03-08 22:44:04965 }
966
967 group("chrome_official_builder") {
968 testonly = true
969
970 deps = [
Xinan Lin4df5e822023-06-28 18:54:58971 ":blink_wpt_tests",
tfarinafbc992492017-03-08 22:44:04972 ":chrome_official_builder_no_unittests",
973 "//base:base_unittests",
974 "//chrome/test:browser_tests",
Xinan Lin4df5e822023-06-28 18:54:58975 "//chrome/test:interactive_ui_tests",
tfarinafbc992492017-03-08 22:44:04976 "//ipc:ipc_tests",
977 "//media:media_unittests",
978 "//media/midi:midi_unittests",
979 "//net:net_unittests",
tfarinafbc992492017-03-08 22:44:04980 "//sql:sql_unittests",
danakj7b174142024-07-03 17:00:17981 "//third_party/breakpad:symupload",
tfarinafbc992492017-03-08 22:44:04982 "//ui/base:ui_base_unittests",
983 "//ui/gfx:gfx_unittests",
984 "//ui/touch_selection:ui_touch_selection_unittests",
985 "//ui/views:views_unittests",
986 "//url:url_unittests",
987 ]
Dominik Röttsches1716cf92024-09-03 17:32:39988
989 if (enable_printing || enable_printing_tests) {
990 deps += [ "//printing:printing_unittests" ]
991 }
tfarinafbc992492017-03-08 22:44:04992 }
tfarinafbc992492017-03-08 22:44:04993}
994
Yuta Hijikata7128f0822025-03-06 05:44:15995if (is_chromeos) {
Ben Pastenebbb9bf142020-03-30 17:51:14996 # This group is used to collect all targets used when verifying a new version
997 # of Chrome for Chrome OS.
tfarinafbc992492017-03-08 22:44:04998 group("chromiumos_preflight") {
999 testonly = true
Ben Pastene3ea517912020-07-02 00:20:421000 data_deps = [
tfarinafbc992492017-03-08 22:44:041001 "//chrome",
Vladimir Nechaev83555c02022-11-04 05:26:411002 "//chrome/test/chromedriver:chromedriver_server",
Wei Lee01d63ef2019-05-09 09:24:501003 "//components/chromeos_camera:jpeg_decode_accelerator_unittest",
Jim Shargo906dbce2021-10-14 18:48:461004 "//components/exo/wayland:wayland_client_integration_tests",
Ben Pastenebbb9bf142020-03-30 17:51:141005 "//components/exo/wayland:wayland_client_perftests",
Lucas Berthou8841d6272021-02-24 20:28:501006 "//components/exo/wayland:wayland_client_tests",
Femi Adegunloye6a953a52023-02-07 19:33:531007 "//components/exo/wayland:wayland_hdr_client",
Mohamed Omar42fe5872022-08-10 17:25:531008 "//components/policy/test_support:fake_dmserver",
tfarinafbc992492017-03-08 22:44:041009 "//media:media_unittests",
Ben Pastenebbb9bf142020-03-30 17:51:141010 "//media/capture:capture_unittests",
tfarinafbc992492017-03-08 22:44:041011 "//sandbox/linux:chrome_sandbox",
Henrique Nakashima87b6d8b2022-07-13 13:59:041012 "//sandbox/linux:sandbox_linux_unittests",
Chu-Hsuan Yang98ad7f92024-06-27 05:15:341013 "//services/screen_ai:screen_ai_ocr_perf_test",
danakj7b174142024-07-03 17:00:171014 "//third_party/breakpad:minidump_stackwalk($host_system_allocator_toolchain)",
Austin Engbab1a5d2022-02-10 17:35:101015 "//third_party/dawn/src/dawn/tests:dawn_end2end_tests",
1016 "//third_party/dawn/src/dawn/tests:dawn_unittests",
Jim Shargoc84cb582022-04-28 17:10:571017 "//ui/ozone:ozone_integration_tests",
tfarinafbc992492017-03-08 22:44:041018
1019 # Blocked on https://github.com/catapult-project/catapult/issues/2297
1020 #"//third_party/catapult/telemetry:bitmaptools",
1021 "//tools/perf/clear_system_cache",
Xiyuan Xia93b801e2023-07-01 17:28:461022 "//ui/ozone/gl:ozone_gl_unittests",
tfarinafbc992492017-03-08 22:44:041023 ]
Alexandre Courbot8ad2427d2017-08-25 14:04:551024
Alexandre Courbot8ad2427d2017-08-25 14:04:551025 if (use_v4l2_codec || use_vaapi) {
Ben Pastene3ea517912020-07-02 00:20:421026 data_deps += [
Wei Lee01d63ef2019-05-09 09:24:501027 "//components/chromeos_camera:jpeg_encode_accelerator_unittest",
Collin Baker7ce81ea2023-03-30 19:35:451028 "//media/gpu/chromeos:image_processor_test",
Miguel Casasadc54be2023-03-27 18:20:441029 "//media/gpu/test/:video_decode_accelerator_perf_tests",
1030 "//media/gpu/test/:video_decode_accelerator_tests",
1031 "//media/gpu/test/:video_encode_accelerator_perf_tests",
1032 "//media/gpu/test/:video_encode_accelerator_tests",
Alexandre Courbot8ad2427d2017-08-25 14:04:551033 ]
Ben Pastenebbb9bf142020-03-30 17:51:141034 if (use_vaapi) {
Jao-ke Chin-Lee994de272020-12-28 20:05:081035 data_deps += [
1036 "//media/gpu/vaapi:decode_test",
1037 "//media/gpu/vaapi:vaapi_unittest",
Grayson LaFleur5e224832022-12-16 04:30:131038 "//media/gpu/vaapi/test/fake_libva_driver:fake_libva_driver_unittest",
Jao-ke Chin-Lee994de272020-12-28 20:05:081039 ]
Ben Pastenebbb9bf142020-03-30 17:51:141040 }
Steve Cho2ac5f2d2022-02-04 17:15:421041 if (use_v4l2_codec) {
Steve Cho9bf47812023-05-17 19:02:581042 data_deps += [
Bijan Choobinehe2113a12023-06-13 17:55:171043 "//media/gpu/chromeos:image_processor_perf_test",
Steve Cho9bf47812023-05-17 19:02:581044 "//media/gpu/v4l2:v4l2_stateless_decoder",
1045 "//media/gpu/v4l2:v4l2_unittest",
1046 ]
Steve Cho2ac5f2d2022-02-04 17:15:421047 }
Alexandre Courbot8ad2427d2017-08-25 14:04:551048 }
tfarinafbc992492017-03-08 22:44:041049 }
dprankedb5527d72015-03-08 04:22:471050}
1051
Gyuyoung Kim136038292023-09-01 01:32:341052if (use_blink && !is_cronet_build) {
Vladimir Nechaeveb261292022-11-18 06:18:051053 group("chromedriver_group") {
David Dorwin776712222022-04-13 23:01:541054 testonly = true
1055
1056 if (is_fuchsia || is_android) {
Ryan Keanea67d8022022-06-18 00:20:321057 # On Fuchsia and non-Cast Android, ChromeDriver runs on the host, not the
1058 # device.
1059 if (!is_cast_android) {
Vladimir Nechaev83555c02022-11-04 05:26:411060 deps = [
1061 "//chrome/test/chromedriver:chromedriver_server($host_toolchain)",
1062 ]
Ryan Keanea67d8022022-06-18 00:20:321063 }
1064 if (is_android && !is_cast_android) {
1065 deps += [ "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk" ]
David Dorwin776712222022-04-13 23:01:541066 }
Gyuyoung Kim136038292023-09-01 01:32:341067 } else if (!is_castos && !is_ios) {
David Dorwin776712222022-04-13 23:01:541068 deps = [
Vladimir Nechaev83555c02022-11-04 05:26:411069 "//chrome/test/chromedriver:chromedriver_server",
David Dorwin776712222022-04-13 23:01:541070 "//chrome/test/chromedriver:chromedriver_unittests",
Vladimir Nechaevc672deb2024-06-07 14:53:051071 "//chrome/test/chromedriver:copy_license",
1072 "//chrome/test/chromedriver:generate_chromedriver_notices",
David Dorwin776712222022-04-13 23:01:541073 ]
1074 }
1075 }
1076
tfarinacb2638b2015-05-12 03:24:151077 # This group includes all of the targets needed to build and test Blink,
Giovanni Ortuño Urquidie7f98f82019-10-29 00:26:591078 # including running web tests (see below). This target is defined here because
1079 # previously //third_party/WebKit, now //third_party/blink, couldn't depend on
1080 # //content/shell. This might not longer be true, see
1081 # https://crbug.com/1018659.
tfarinacb2638b2015-05-12 03:24:151082 group("blink_tests") {
1083 testonly = true
1084
1085 deps = [
Kent Tamuraef54e402019-02-14 07:18:361086 ":blink_web_tests",
Weizhong Xia8b786422022-06-23 14:46:511087 ":blink_wpt_tests",
Blink Reformata30d4232018-04-07 15:31:061088 "//third_party/blink/public:all_blink",
tansell88df42592016-11-15 07:22:591089 ]
Weizhong Xia0895abfa2025-01-08 23:55:381090
Yuta Hijikata7128f0822025-03-06 05:44:151091 if (!is_chromeos && !is_ios && !is_fuchsia && !is_android && !is_castos) {
Weizhong Xia0895abfa2025-01-08 23:55:381092 deps += [
1093 ":chrome_wpt_tests",
1094 ":headless_shell_wpt",
1095 ]
1096 }
tansell88df42592016-11-15 07:22:591097 }
1098
Jonathan Lee133d8d32024-09-03 17:55:441099 # Options shared by all script test targets that call `run_web_tests.py` or
1100 # `run_wpt_tests.py`.
1101 _common_web_test_options = [
1102 "--no-show-results",
1103 "--zero-tests-executed-ok",
Ben Pastene8661004b2024-11-13 18:36:421104 "--build-directory",
1105 "@WrappedPath(.)",
Jonathan Lee133d8d32024-09-03 17:55:441106 ]
1107 if (is_debug) {
1108 _common_web_test_options += [ "--debug" ]
1109 } else {
1110 _common_web_test_options += [ "--release" ]
1111 }
Jonathan Leef4865a12024-09-03 19:51:051112 if (is_asan) {
1113 _common_web_test_options += [
1114 "--enable-sanitizer",
1115 "--additional-expectations",
1116 "@WrappedPath(" +
1117 rebase_path("//third_party/blink/web_tests/ASANExpectations",
1118 root_out_dir) + ")",
1119 ]
1120 }
An Sungd75ea3332024-12-05 18:45:231121 if (is_chrome_for_testing) {
1122 _common_web_test_options += [
1123 "--additional-expectations",
1124 "@WrappedPath(" +
Weizhong Xiad51f84042025-04-04 01:53:431125 rebase_path("//third_party/blink/web_tests/CfTTestExpectations",
An Sungd75ea3332024-12-05 18:45:231126 root_out_dir) + ")",
1127 ]
1128 }
Jonathan Leef4865a12024-09-03 19:51:051129 if (is_msan) {
1130 _common_web_test_options += [
1131 "--enable-sanitizer",
1132 "--additional-expectations",
1133 "@WrappedPath(" +
1134 rebase_path("//third_party/blink/web_tests/MSANExpectations",
1135 root_out_dir) + ")",
1136 ]
1137 }
Jonathan Lee133d8d32024-09-03 17:55:441138 if (is_fuchsia) {
1139 _common_web_test_options += [
1140 "--out-dir",
1141 "@WrappedPath(.)",
Ben Pasteneea815792024-08-23 15:47:471142 ]
Jonathan Lee133d8d32024-09-03 17:55:441143 }
1144
Yuta Hijikata7128f0822025-03-06 05:44:151145 if (!is_chromeos && !is_ios && !is_fuchsia && !is_android && !is_castos) {
Weizhong Xia0895abfa2025-01-08 23:55:381146 # https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/run_web_platform_tests.md
Weizhong Xia711d3e62023-09-11 18:04:351147 script_test("chrome_wpt_tests") {
Nihar Damarasingu509ce0c2022-09-01 14:18:201148 script = "//third_party/blink/tools/run_wpt_tests.py"
Jonathan Leed6f15c942025-05-28 00:27:021149 args = _common_web_test_options + [
1150 "--product=chrome",
1151 "--verbose",
1152 ]
Weizhong Xia635631352023-12-01 21:28:351153 if (dcheck_always_on) {
1154 args += [ "--timeout-multiplier=2" ]
1155 } else {
1156 args += [ "--timeout-multiplier=1" ]
1157 }
Weizhong Xia803d9cf2024-09-05 05:30:131158 if (is_chrome_branded) {
1159 args += [
1160 "--driver-name",
1161 "Google Chrome",
1162 ]
1163 }
Luke Zielinski218ddea32019-07-15 16:52:241164 data_deps = [
Jonathan Lee943799b2023-11-02 00:29:521165 ":blink_web_tests_expectations",
Mike Jackson7a4e8032024-01-08 19:41:011166 ":blink_web_tests_support_data",
Luke Zielinski218ddea32019-07-15 16:52:241167 "//chrome:chrome",
Vladimir Nechaev83555c02022-11-04 05:26:411168 "//chrome/test/chromedriver:chromedriver_server",
Luke Zielinski57397c7c2021-03-04 22:53:511169 "//third_party/blink/tools:wpt_tests_isolate",
Luke Zielinski218ddea32019-07-15 16:52:241170 ]
Luke Zielinski218ddea32019-07-15 16:52:241171 }
Weizhong Xia0895abfa2025-01-08 23:55:381172
1173 # https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/run_web_platform_tests.md
Weizhong Xia258547b2024-04-17 21:12:531174 script_test("headless_shell_wpt") {
1175 script = "//third_party/blink/tools/run_wpt_tests.py"
Jonathan Leed6f15c942025-05-28 00:27:021176 args = _common_web_test_options + [
1177 "--product=headless_shell",
1178 "--verbose",
1179 ]
Weizhong Xia258547b2024-04-17 21:12:531180 data_deps = [
1181 ":blink_web_tests_expectations",
1182 ":blink_web_tests_support_data",
Weizhong Xia258547b2024-04-17 21:12:531183 "//chrome/test/chromedriver:chromedriver_server",
Jonathan Lee532106f2024-06-03 23:40:001184 "//headless:headless_shell",
Weizhong Xia258547b2024-04-17 21:12:531185 "//third_party/blink/tools:wpt_tests_isolate",
1186 ]
Jonathan Lee532106f2024-06-03 23:40:001187 if (is_mac || is_linux) {
1188 data_deps += [ "//third_party/hyphenation-patterns:bundle_hyphen_data" ]
1189 }
Weizhong Xia258547b2024-04-17 21:12:531190 }
kyle Juf8cdeac2019-02-07 00:10:011191 }
1192
Kai Ninomiyafb9e5962020-03-17 06:11:381193 group("blink_web_tests_support_data") {
John Budorick7c8273b2019-04-25 15:27:471194 testonly = true
tansell88df42592016-11-15 07:22:591195 data_deps = [
yzshena0646992017-04-02 22:01:271196 ":layout_test_data_mojo_bindings",
Ken Rockot86d360462018-10-24 02:50:091197 ":layout_test_data_mojo_bindings_lite",
tansell88df42592016-11-15 07:22:591198 "//content/shell:content_shell",
Ken Rockot3d21f6a2020-10-09 03:39:431199 "//content/test:mojo_bindings_web_test_mojom_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201200 "//content/test:mojo_web_test_bindings_js_data_deps",
Reilly Grantfa93b142018-02-01 02:13:481201 "//device/bluetooth/public/mojom:fake_bluetooth_interfaces_js_data_deps",
Rafael Cintron5b95b8d2020-11-04 01:58:101202 "//device/vr/public/mojom:vr_service_js_data_deps",
Christian Fremerey65d1f5e2018-03-02 23:46:481203 "//media/capture/mojom:image_capture_js_data_deps",
Adithya Srinivasan5b82b2e2018-12-14 16:08:091204 "//media/midi:mojo_js_data_deps",
Evan Liud7252282024-05-16 20:10:321205 "//media/mojo/mojom:web_speech_recognition_js_data_deps",
yzshen9e737bf2017-06-21 19:38:231206 "//mojo/public/interfaces/bindings/tests:test_data_deps",
Giovanni Ortuño Urquidif07d80c2019-10-03 07:43:381207 "//mojo/public/js/ts/bindings/tests:test_interfaces_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201208 "//mojo/public/mojom/base:base_js_data_deps",
Ke He31d0bb02018-02-24 07:16:241209 "//services/device/public/mojom:generic_sensor_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201210 "//services/device/public/mojom:mojom_js_data_deps",
Donna Wu4dc9df32019-05-20 03:56:211211 "//services/device/public/mojom:usb_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201212 "//services/shape_detection/public/mojom:mojom_js_data_deps",
Miyoung Shin40adbd62019-07-30 07:33:401213 "//skia/public/mojom:mojom_js_data_deps",
jonrossc1179f2c2019-04-23 22:56:151214 "//testing/buildbot/filters:blink_web_tests_filter",
Zhenyao Mo5110fce2024-08-06 19:18:331215 "//third_party/angle:includes",
Blink Reformata30d4232018-04-07 15:31:061216 "//third_party/blink/public:blink_devtools_frontend_resources_files",
Alex Rudenko9d994132020-06-02 12:37:001217 "//third_party/blink/public:blink_devtools_inspector_resources",
Julie Jeongeun Kim4f1b5aa2019-05-08 01:32:091218 "//third_party/blink/public/mojom:mojom_platform_js_data_deps",
Kouhei Uenoa72ecc862023-07-12 02:26:051219 "//third_party/blink/renderer/core:gen_files_for_web_tests",
Rakib M. Hasan995ca2e2019-10-14 19:48:401220 "//third_party/catapult/third_party/typ",
Koji Ishiia507ce82020-10-20 21:39:451221 "//third_party/hyphenation-patterns:test_data",
agrieve993374cf2016-04-13 00:05:391222 "//tools/imagediff",
Brian Sheedy6bcba67d2022-02-23 23:45:111223 "//ui/base:goldctl",
tfarinacb2638b2015-05-12 03:24:151224 ]
1225
tfarinacb2638b2015-05-12 03:24:151226 if (is_android) {
tansell88df42592016-11-15 07:22:591227 data_deps += [
Mark Mentovaiebb9ddd62017-09-25 17:24:411228 "//third_party/breakpad:breakpad_unittests",
danakj7b174142024-07-03 17:00:171229 "//tools/android/forwarder2",
1230
1231 # Using the target toolchain for this tool, as it's run during tests not
1232 # during the build. This places a symlink in the root_build_dir for
1233 # scrips to use.
Mark Mentovaiebb9ddd62017-09-25 17:24:411234 "//third_party/breakpad:dump_syms",
1235 "//third_party/breakpad:microdump_stackwalk",
1236 "//third_party/breakpad:minidump_dump",
1237 "//third_party/breakpad:minidump_stackwalk",
1238 "//third_party/breakpad:symupload",
ojan94989c72015-07-17 21:56:421239 ]
Peter Kotwiczdeb8c9fda2020-07-03 23:34:091240 } else {
danakj89f47082020-09-02 17:53:431241 data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ]
tfarinacb2638b2015-05-12 03:24:151242 }
1243
tfarinacb2638b2015-05-12 03:24:151244 if (!is_win && !is_android) {
danakj7b174142024-07-03 17:00:171245 # Using the default toolchain for this tool, as it's run during tests not
1246 # during the build. This places a symlink in the root_build_dir for scrips
1247 # to use.
1248 data_deps += [ "//third_party/breakpad:minidump_stackwalk" ]
tfarinacb2638b2015-05-12 03:24:151249 }
1250
1251 if (is_mac) {
danakj7b174142024-07-03 17:00:171252 # Using the default toolchain for this tool, as it's run during tests not
1253 # during the build, and on Mac we support cross-building from a different
1254 # architecture.
1255 data_deps += [ "//third_party/breakpad:dump_syms" ]
tfarinacb2638b2015-05-12 03:24:151256 }
1257
Sean McAllisterdeaa7402020-07-31 04:42:541258 if (is_linux || is_chromeos) {
danakj7b174142024-07-03 17:00:171259 # Using the default toolchain for this tool, as it's run during tests not
1260 # during the build. This places a symlink in the root_build_dir for scrips
1261 # to use.
1262 data_deps += [ "//third_party/breakpad:dump_syms" ]
tfarinacb2638b2015-05-12 03:24:151263 }
qyearsley165a17a82016-08-01 17:58:501264
Sergey Ulanovdaa25ebc2018-01-02 18:17:171265 if (is_fuchsia) {
Kevin Marshall5fadadd2021-10-16 00:08:251266 data_deps += [
1267 "//build/config/fuchsia:deployment_resources",
1268 "//content/shell:content_shell_fuchsia",
1269 "//content/shell:content_shell_pkg__archive-manifest",
1270 "//content/shell:content_shell_pkg__archive-metadata",
1271 ]
Sergey Ulanovdaa25ebc2018-01-02 18:17:171272 }
1273
qyearsley165a17a82016-08-01 17:58:501274 data = [
Brian Sheedy6bcba67d2022-02-23 23:45:111275 "//build/skia_gold_common/",
Austin Eng11eba3d2020-10-01 15:08:191276 "//testing/scripts/common.py",
1277 "//testing/scripts/run_isolated_script_test.py",
1278 "//testing/xvfb.py",
Kent Tamurac1e4c412018-04-19 02:01:361279 "//third_party/blink/tools/",
Weizhong Xiacf53fb42024-10-12 03:50:421280 "//third_party/blink/web_tests/external/wpt/.config.json",
Kai Ninomiyafb9e5962020-03-17 06:11:381281 "//third_party/blink/web_tests/resources/",
An Sung65d9eab2023-07-26 01:38:431282 "//third_party/blink/web_tests/TestLists/",
Keita Suzuki9ff17d42020-03-10 06:19:511283 "//third_party/pywebsocket3/src/mod_pywebsocket/",
Kent Tamura5a9c7e42020-06-18 10:38:141284 "//third_party/test_fonts/test_fonts/",
Stephen McGruere934d52e2021-01-27 22:26:101285 "//third_party/wpt_tools/",
qyearsley165a17a82016-08-01 17:58:501286 ]
tansell0e6baaf22017-02-16 09:14:531287
tansell820f7df2017-02-16 13:59:151288 if (is_win) {
tansell1b05bbd2017-05-04 09:30:321289 data += [
1290 "//third_party/apache-win32/",
Nihar Damarasingu591cda32023-06-01 15:37:251291 "//third_party/apache-windows-arm64/",
Takuto Ikuta1623ca32018-11-12 15:16:081292 "//third_party/perl/perl/",
tansell1b05bbd2017-05-04 09:30:321293 ]
Scott Violet0a4949d32020-02-11 18:53:031294 data_deps += [ "//build/win:copy_cdb_to_output" ]
tansell820f7df2017-02-16 13:59:151295 }
1296
Gyuyoung Kim369e4c42024-03-23 20:37:011297 if (is_mac || (is_ios && target_environment == "simulator")) {
Nico Weber5a0046e2022-03-23 20:46:301298 data += [
1299 "//third_party/apache-mac/",
1300 "//third_party/apache-mac-arm64/",
1301 ]
Weizhong Xia05781fc2022-03-16 01:05:091302 }
1303
Dave Tapuska187a43f2023-11-28 21:44:471304 if (is_linux || is_chromeos || is_fuchsia) {
Weizhong Xiaa14eaad2022-04-01 02:04:441305 data += [ "//third_party/apache-linux/" ]
1306 }
1307
tansell0e6baaf22017-02-16 09:14:531308 if (is_android) {
1309 data += [
1310 "//third_party/catapult/",
1311 "//build/android/",
1312 ]
1313 }
tfarinacb2638b2015-05-12 03:24:151314 }
yzshena0646992017-04-02 22:01:271315
Dirk Pranke67bc5a9d2020-10-09 16:33:481316 _common_web_test_script = "//testing/scripts/run_isolated_script_test.py"
1317
Chong Gu70ee43a12022-12-08 22:57:371318 if (is_fuchsia) {
1319 _common_web_test_args = [
1320 "@WrappedPath(" +
1321 rebase_path("//build/fuchsia/test/run_test.py", root_build_dir) + ")",
1322 "blink",
Jonathan Lee133d8d32024-09-03 17:55:441323 "--platform",
1324 "fuchsia",
1325 "--jobs",
1326 "1",
Chong Gu70ee43a12022-12-08 22:57:371327 ]
1328 } else {
Jonathan Lee133d8d32024-09-03 17:55:441329 _common_web_test_args = [ "@WrappedPath(" + rebase_path(
1330 "//third_party/blink/tools/run_web_tests.py",
1331 root_build_dir) + ")" ]
Chong Gu70ee43a12022-12-08 22:57:371332 }
Jonathan Lee133d8d32024-09-03 17:55:441333 _common_web_test_args += _common_web_test_options
1334
1335 if (!is_debug) {
Dirk Prankef452bb2a2020-10-09 22:11:551336 if (dcheck_always_on) {
Weizhong Xia91b53362022-01-05 17:13:351337 _common_web_test_args += [ "--timeout-ms=12000" ]
Michael Achenbach62f72d62024-06-10 06:51:091338 } else if (v8_enable_debugging_features) {
1339 # In a pure release build with a debug V8, tests run slower.
1340 _common_web_test_args += [ "--timeout-ms=30000" ]
Dirk Prankef452bb2a2020-10-09 22:11:551341 }
Dirk Pranke67bc5a9d2020-10-09 16:33:481342 }
Michael Achenbach62f72d62024-06-10 06:51:091343
Dave Tapuska37fbd612023-11-29 18:31:251344 if (is_chrome_branded) {
1345 _common_web_test_args += [ "--chrome-branded" ]
1346 }
Dirk Pranke67bc5a9d2020-10-09 16:33:481347
1348 if (is_android) {
1349 _common_web_test_args += [
1350 "--platform",
1351 "android",
1352 ]
1353 }
1354
1355 _common_web_test_args += [
1356 "--seed",
1357 "4",
Weizhong Xiaeaff2f22022-01-24 18:34:141358 "--debug-rwt-logging",
Dirk Pranke67bc5a9d2020-10-09 16:33:481359 "--clobber-old-results",
Ben Pastene8661004b2024-11-13 18:36:421360 "--build-directory",
1361 "@WrappedPath(.)",
Dirk Pranke67bc5a9d2020-10-09 16:33:481362 ]
1363
John Palmer0e0f72bf2021-06-07 09:10:201364 # https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_tests.md
Dirk Pranke6188075b2020-10-01 19:31:281365 script_test("blink_web_tests") {
Dirk Pranke67bc5a9d2020-10-09 16:33:481366 script = _common_web_test_script
Dirk Pranke6188075b2020-10-01 19:31:281367
Dirk Pranke67bc5a9d2020-10-09 16:33:481368 args = _common_web_test_args
Dirk Pranke6188075b2020-10-01 19:31:281369
Jonathan Lee784954c2023-11-01 22:39:421370 data_deps = [
1371 ":blink_web_tests_expectations",
1372 ":blink_web_tests_support_data",
1373 ]
Kai Ninomiyafb9e5962020-03-17 06:11:381374 data = [
1375 "//third_party/blink/perf_tests/",
Weizhong Xia53c492162021-09-09 17:08:241376 "//third_party/blink/web_tests/VirtualTestSuites",
Alastair Donaldson308bb212021-09-14 20:50:271377
Weizhong Xia53c492162021-09-09 17:08:241378 # === List Test Cases folders here ===
1379 "//third_party/blink/web_tests/accessibility/",
Weizhong Xia53c492162021-09-09 17:08:241380 "//third_party/blink/web_tests/animations/",
1381 "//third_party/blink/web_tests/app_banner/",
1382 "//third_party/blink/web_tests/bindings/",
1383 "//third_party/blink/web_tests/clipboard/",
1384 "//third_party/blink/web_tests/compositing/",
1385 "//third_party/blink/web_tests/crypto/",
1386 "//third_party/blink/web_tests/css-parser/",
1387 "//third_party/blink/web_tests/css1/",
1388 "//third_party/blink/web_tests/css2.1/",
1389 "//third_party/blink/web_tests/css3/",
1390 "//third_party/blink/web_tests/cssom/",
1391 "//third_party/blink/web_tests/custom-elements/",
1392 "//third_party/blink/web_tests/custom-properties/",
1393 "//third_party/blink/web_tests/dark-mode/",
1394 "//third_party/blink/web_tests/dom/",
1395 "//third_party/blink/web_tests/editing/",
Weizhong Xia53c492162021-09-09 17:08:241396 "//third_party/blink/web_tests/fast/",
1397 "//third_party/blink/web_tests/fonts/",
1398 "//third_party/blink/web_tests/fragmentation/",
1399 "//third_party/blink/web_tests/fullscreen/",
1400 "//third_party/blink/web_tests/gamepad/",
1401 "//third_party/blink/web_tests/harness-tests/",
1402 "//third_party/blink/web_tests/hittesting/",
1403 "//third_party/blink/web_tests/html/",
1404 "//third_party/blink/web_tests/html5lib/",
1405 "//third_party/blink/web_tests/http/",
1406 "//third_party/blink/web_tests/idle-callback/",
1407 "//third_party/blink/web_tests/ietestcenter/",
1408 "//third_party/blink/web_tests/images/",
1409 "//third_party/blink/web_tests/inspector-protocol/",
1410 "//third_party/blink/web_tests/intersection-observer/",
1411 "//third_party/blink/web_tests/jquery/",
1412 "//third_party/blink/web_tests/js/",
Weizhong Xia53c492162021-09-09 17:08:241413 "//third_party/blink/web_tests/loader/",
1414 "//third_party/blink/web_tests/media/",
1415 "//third_party/blink/web_tests/media_capabilities/",
1416 "//third_party/blink/web_tests/mhtml/",
1417 "//third_party/blink/web_tests/navigator_language/",
1418 "//third_party/blink/web_tests/navigator_webdriver/",
1419 "//third_party/blink/web_tests/netinfo/",
1420 "//third_party/blink/web_tests/overflow/",
1421 "//third_party/blink/web_tests/paint/",
1422 "//third_party/blink/web_tests/payments/",
Hao Liu8646d342023-09-07 15:52:461423 "//third_party/blink/web_tests/performance_timeline/",
Weizhong Xia53c492162021-09-09 17:08:241424 "//third_party/blink/web_tests/permissionclient/",
1425 "//third_party/blink/web_tests/plugins/",
1426 "//third_party/blink/web_tests/pointer-lock/",
Dave Tapuska7459ffa62023-11-20 18:45:491427 "//third_party/blink/web_tests/ppapi/",
Weizhong Xia53c492162021-09-09 17:08:241428 "//third_party/blink/web_tests/printing/",
1429 "//third_party/blink/web_tests/register-protocol-handler/",
1430 "//third_party/blink/web_tests/regress/",
1431 "//third_party/blink/web_tests/resize-observer/",
1432 "//third_party/blink/web_tests/resources/",
1433 "//third_party/blink/web_tests/rootscroller/",
1434 "//third_party/blink/web_tests/screen_orientation/",
1435 "//third_party/blink/web_tests/scrollbars/",
Weizhong Xia53c492162021-09-09 17:08:241436 "//third_party/blink/web_tests/security/",
Jiewei Qian4db71f42021-12-09 02:31:071437 "//third_party/blink/web_tests/handwriting/",
Weizhong Xia53c492162021-09-09 17:08:241438 "//third_party/blink/web_tests/shadow-dom/",
1439 "//third_party/blink/web_tests/storage/",
1440 "//third_party/blink/web_tests/svg/",
1441 "//third_party/blink/web_tests/synthetic_gestures/",
1442 "//third_party/blink/web_tests/tables/",
1443 "//third_party/blink/web_tests/test_runner/",
1444 "//third_party/blink/web_tests/third_party/",
1445 "//third_party/blink/web_tests/timezonechange/",
1446 "//third_party/blink/web_tests/touchadjustment/",
1447 "//third_party/blink/web_tests/transforms/",
1448 "//third_party/blink/web_tests/transitions/",
1449 "//third_party/blink/web_tests/traversal/",
1450 "//third_party/blink/web_tests/typedcssom/",
1451 "//third_party/blink/web_tests/vibration/",
Vladimir Levin501455e2022-11-04 20:04:541452 "//third_party/blink/web_tests/view-transition/",
Weizhong Xia53c492162021-09-09 17:08:241453 "//third_party/blink/web_tests/virtual/",
1454 "//third_party/blink/web_tests/virtualkeyboard/",
Weizhong Xia53c492162021-09-09 17:08:241455 "//third_party/blink/web_tests/wasm/",
1456 "//third_party/blink/web_tests/webaudio/",
1457 "//third_party/blink/web_tests/webexposed/",
1458 "//third_party/blink/web_tests/webgpu/",
Weizhong Xia53c492162021-09-09 17:08:241459 "//third_party/blink/web_tests/xmlviewer/",
Alastair Donaldson308bb212021-09-14 20:50:271460
Weizhong Xia53c492162021-09-09 17:08:241461 # === Test Case Folders Ends ===
Kai Ninomiyafb9e5962020-03-17 06:11:381462 ]
Jonathan Lee784954c2023-11-01 22:39:421463 }
1464
1465 group("blink_web_tests_expectations") {
1466 testonly = true
1467
1468 data = [
1469 # Include virtual baselines.
1470 "//third_party/blink/web_tests/virtual/",
1471
1472 # List all test expectations here
Jonathan Lee784954c2023-11-01 22:39:421473 "//third_party/blink/web_tests/LeakExpectations",
Jonathan Lee784954c2023-11-01 22:39:421474 "//third_party/blink/web_tests/NeverFixTests",
1475 "//third_party/blink/web_tests/SlowTests",
1476 "//third_party/blink/web_tests/StaleTestExpectations",
1477 "//third_party/blink/web_tests/TestExpectations",
1478 ]
Weizhong Xia53c492162021-09-09 17:08:241479
Jonathan Leef4865a12024-09-03 19:51:051480 if (is_asan) {
1481 data += [ "//third_party/blink/web_tests/ASANExpectations" ]
1482 }
An Sungd75ea3332024-12-05 18:45:231483 if (is_chrome_for_testing) {
Weizhong Xiad51f84042025-04-04 01:53:431484 data += [ "//third_party/blink/web_tests/CfTTestExpectations" ]
An Sungd75ea3332024-12-05 18:45:231485 }
Jonathan Leef4865a12024-09-03 19:51:051486 if (is_msan) {
1487 data += [ "//third_party/blink/web_tests/MSANExpectations" ]
1488 }
1489
Weizhong Xia53c492162021-09-09 17:08:241490 if (is_win || is_linux || is_fuchsia) {
1491 data += [
1492 "//third_party/blink/web_tests/platform/win/",
Weizhong Xiadfb5304f2022-05-12 20:36:261493 "//third_party/blink/web_tests/platform/win10/",
Nihar Damarasingua9b1c932023-06-11 23:55:231494 "//third_party/blink/web_tests/platform/win11-arm64/",
Weizhong Xia53c492162021-09-09 17:08:241495 ]
1496 if (is_linux || is_fuchsia) {
1497 data += [ "//third_party/blink/web_tests/platform/linux/" ]
1498 }
1499 if (is_fuchsia) {
Chong Gu70ee43a12022-12-08 22:57:371500 data += [
1501 "//third_party/blink/web_tests/platform/fuchsia/",
1502 "$root_gen_dir/package_metadata/content_shell.meta",
1503 ]
Weizhong Xia53c492162021-09-09 17:08:241504 }
1505 } else if (is_mac) {
1506 data += [
1507 "//third_party/blink/web_tests/platform/mac/",
Nihar Damarasingu24703e22023-02-06 23:39:391508 "//third_party/blink/web_tests/platform/mac-mac12/",
Jonathan Leedbea4d4d2022-05-25 15:35:091509 "//third_party/blink/web_tests/platform/mac-mac12-arm64/",
An Sungf33f8522024-03-08 19:12:331510 "//third_party/blink/web_tests/platform/mac-mac13/",
Nihar Damarasingu24703e22023-02-06 23:39:391511 "//third_party/blink/web_tests/platform/mac-mac13-arm64/",
An Sung2dca54a2024-08-06 20:24:361512 "//third_party/blink/web_tests/platform/mac-mac14/",
An Sungf33f8522024-03-08 19:12:331513 "//third_party/blink/web_tests/platform/mac-mac14-arm64/",
An Sung2dca54a2024-08-06 20:24:361514 "//third_party/blink/web_tests/platform/mac-mac15-arm64/",
Weizhong Xia53c492162021-09-09 17:08:241515 ]
1516 }
1517
Le Hoang Quyen400daa82024-01-07 14:24:121518 # flag-specific tests only runs on linux & mac as of now
1519 if (is_linux || is_mac) {
Weizhong Xia53c492162021-09-09 17:08:241520 data += [
1521 "//third_party/blink/web_tests/FlagSpecificConfig",
1522 "//third_party/blink/web_tests/FlagExpectations/",
1523 "//third_party/blink/web_tests/flag-specific/",
1524 ]
1525 }
Kai Ninomiyafb9e5962020-03-17 06:11:381526 }
1527
Weizhong Xia0895abfa2025-01-08 23:55:381528 # https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/web_tests.md
Weizhong Xia8b786422022-06-23 14:46:511529 script_test("blink_wpt_tests") {
1530 script = _common_web_test_script
1531
1532 args = _common_web_test_args
1533
Weizhong Xia904cdf562022-08-25 02:00:331534 # Use --wpt-only to skip tests under web_tests/virtual/
Weizhong Xia650ce432024-08-14 22:08:261535 args += [
1536 "--wpt-only",
Jonathan Leebf8fd4ee2024-09-05 19:24:261537 "--inverted-test-launcher-filter-file",
1538 "@WrappedPath(" +
1539 rebase_path("//third_party/blink/web_tests/TestLists/chrome.filter",
1540 root_out_dir) + ")",
Weizhong Xia89577452025-01-10 04:14:361541 "--test-launcher-filter-file",
Jonathan Leebf8fd4ee2024-09-05 19:24:261542 "@WrappedPath(" + rebase_path(
Weizhong Xia89577452025-01-10 04:14:361543 "//third_party/blink/web_tests/TestLists/content_shell.filter",
Jonathan Leebf8fd4ee2024-09-05 19:24:261544 root_out_dir) + ")",
Weizhong Xia650ce432024-08-14 22:08:261545 ]
Weizhong Xia904cdf562022-08-25 02:00:331546
Jonathan Lee784954c2023-11-01 22:39:421547 data_deps = [
1548 ":blink_web_tests_expectations",
1549 ":blink_web_tests_support_data",
1550 ]
Weizhong Xia8b786422022-06-23 14:46:511551 data = [
1552 "//third_party/blink/perf_tests/",
Weizhong Xia8b786422022-06-23 14:46:511553 "//third_party/blink/web_tests/VirtualTestSuites",
1554
Weizhong Xia8b786422022-06-23 14:46:511555 # === List Test Cases folders here ===
1556 "//third_party/blink/web_tests/external/",
1557 "//third_party/blink/web_tests/wpt_internal/",
1558
1559 # === Test Case Folders Ends ===
1560 ]
Weizhong Xia8b786422022-06-23 14:46:511561 }
1562
Dirk Pranke67bc5a9d2020-10-09 16:33:481563 script_test("webgpu_blink_web_tests") {
1564 # This target differs from :blink_web_tests in that it uses the same
1565 # test harness and a few additional flags but, more importantly, only runs
1566 # the web_tests/wpt_internal/webgpu tests, so it doesn't have a data
Austin Eng2cddb7752022-06-09 02:40:291567 # dependency on the whole web_test directory.
Dirk Pranke67bc5a9d2020-10-09 16:33:481568 script = _common_web_test_script
Austin Eng4beb5d62021-03-24 16:29:591569
Austin Eng2cddb7752022-06-09 02:40:291570 args = _common_web_test_args
Austin Eng8e638d92021-04-02 17:08:081571 if (is_asan) {
Weizhong Xia91b53362022-01-05 17:13:351572 args += [ "--timeout-ms=30000" ]
Austin Eng8e638d92021-04-02 17:08:081573 }
Austin Eng4beb5d62021-03-24 16:29:591574 args += [
Austin Eng2cddb7752022-06-09 02:40:291575 "--ignore-default-expectations",
1576 "--additional-expectations",
Austin Eng4beb5d62021-03-24 16:29:591577 "@WrappedPath(../../third_party/blink/web_tests/WebGPUExpectations)",
shrekshao96b18a762023-03-20 18:28:571578 "--isolated-script-test-filter=wpt_internal/webgpu/*",
Austin Eng4beb5d62021-03-24 16:29:591579 ]
Kai Ninomiyafb9e5962020-03-17 06:11:381580
Austin Eng32e07032021-03-18 16:30:101581 data_deps = [
1582 ":blink_web_tests_support_data",
1583 "//third_party/webgpu-cts",
1584 ]
Kai Ninomiyafb9e5962020-03-17 06:11:381585 data = [
Weizhong Xiad8a66332022-07-30 00:34:201586 "//third_party/blink/web_tests/external/wpt/common/",
Jean-Philippe Gravel0276ab72025-03-17 23:56:151587 "//third_party/blink/web_tests/external/wpt/html/canvas/resources/",
Weizhong Xiad8a66332022-07-30 00:34:201588 "//third_party/blink/web_tests/external/wpt/resources/",
Brian Sheedy10ddf0a2021-08-16 23:19:071589 "//third_party/blink/web_tests/FlagSpecificConfig",
Weizhong Xiad8a66332022-07-30 00:34:201590 "//third_party/blink/web_tests/VirtualTestSuites",
Kai Ninomiyafb9e5962020-03-17 06:11:381591 "//third_party/blink/web_tests/WebGPUExpectations",
Weizhong Xia64ec8c22022-06-24 03:39:341592 "//third_party/blink/web_tests/wpt_internal/",
Austin Eng4beb5d62021-03-24 16:29:591593 "//third_party/webgpu-cts/scripts/",
Kai Ninomiyafb9e5962020-03-17 06:11:381594 ]
1595 }
1596
yzshena0646992017-04-02 22:01:271597 copy("layout_test_data_mojo_bindings") {
1598 testonly = true
1599
Nico Weber77da4942020-01-13 20:13:351600 sources = [ "$root_gen_dir/mojo/public/js/mojo_bindings.js" ]
yzshena0646992017-04-02 22:01:271601
Nico Weber77da4942020-01-13 20:13:351602 outputs =
1603 [ "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings.js" ]
yzshena0646992017-04-02 22:01:271604
Nico Weber77da4942020-01-13 20:13:351605 deps = [ "//mojo/public/js:bindings" ]
yzshena0646992017-04-02 22:01:271606 }
Dirk Pranke43a5c812017-09-06 03:25:411607
Ken Rockot86d360462018-10-24 02:50:091608 copy("layout_test_data_mojo_bindings_lite") {
1609 testonly = true
1610
Nico Weber77da4942020-01-13 20:13:351611 sources = [ "$root_gen_dir/mojo/public/js/mojo_bindings_lite.js" ]
Ken Rockot86d360462018-10-24 02:50:091612
1613 outputs = [
1614 "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings_lite.js",
1615 ]
1616
Nico Weber77da4942020-01-13 20:13:351617 deps = [ "//mojo/public/js:bindings_lite" ]
Ken Rockot86d360462018-10-24 02:50:091618 }
1619
Dirk Pranke6188075b2020-10-01 19:31:281620 script_test("blink_python_tests") {
1621 script = "//testing/scripts/run_isolated_script_test.py"
Weizhong Xia51f1f692023-12-05 22:03:331622 args = [
1623 "@WrappedPath(" +
1624 rebase_path("//third_party/blink/tools/run_blinkpy_tests.py",
1625 root_build_dir) + ")",
1626 "-v",
1627 "-t",
1628 ]
Dirk Pranke6188075b2020-10-01 19:31:281629
Dirk Pranke43a5c812017-09-06 03:25:411630 data = [
Andrew Grieve4c4cede2020-11-20 22:09:361631 # These tests use //build/android/devil_chromium.py even when !is_android,
1632 # so cannot use the helpers in //build/android (they assert(is_android)).
Dirk Pranke43a5c812017-09-06 03:25:411633 "//build/android/",
Andrew Grieve4c4cede2020-11-20 22:09:361634 "//build/gn_helpers.py",
1635 "//build/config/gclient_args.gni",
Brian Sheedy6bcba67d2022-02-23 23:45:111636 "//build/skia_gold_common/",
Dirk Pranke43a5c812017-09-06 03:25:411637 "//components/crash/content/tools/generate_breakpad_symbols.py",
Brian Sheedyfe26b942021-08-05 16:00:501638 "//testing/unexpected_passes_common/",
Preethi Mohanca2d0eb2022-10-11 19:22:051639 "//testing/flake_suppressor_common/",
Kent Tamura968e76912018-04-17 23:05:571640 "//third_party/blink/renderer/bindings/scripts/",
1641 "//third_party/blink/renderer/build/scripts/",
Dirk Pranke43a5c812017-09-06 03:25:411642 "//third_party/blink/tools/",
Kent Tamura77578cc2018-11-25 22:33:431643 "//third_party/blink/web_tests/ASANExpectations",
Weizhong Xiad51f84042025-04-04 01:53:431644 "//third_party/blink/web_tests/CfTTestExpectations",
Brian Sheedy72b971e2023-01-06 16:46:501645 "//third_party/blink/web_tests/FlagExpectations/",
Kent Tamura77578cc2018-11-25 22:33:431646 "//third_party/blink/web_tests/LeakExpectations",
1647 "//third_party/blink/web_tests/MSANExpectations",
1648 "//third_party/blink/web_tests/NeverFixTests",
1649 "//third_party/blink/web_tests/SlowTests",
1650 "//third_party/blink/web_tests/StaleTestExpectations",
1651 "//third_party/blink/web_tests/TestExpectations",
1652 "//third_party/blink/web_tests/VirtualTestSuites",
Brian Sheedy72b971e2023-01-06 16:46:501653 "//third_party/blink/web_tests/W3CImportExpectations",
Xianzhu Wang9a5ee012023-06-23 22:02:351654 "//third_party/blink/web_tests/paint/invalidation/repaint-overlay/",
Dirk Pranke43a5c812017-09-06 03:25:411655 "//third_party/catapult/common/py_utils/",
1656 "//third_party/catapult/devil/",
1657 "//third_party/catapult/dependency_manager/",
Ned Nguyenc335c432018-04-23 01:16:461658 "//third_party/catapult/third_party/typ/",
Josip Sokcevicafb4a032023-05-02 23:30:011659 "//third_party/depot_tools/pylint-2.7",
Mike Frysinger8f8404b2019-08-21 02:20:291660 "//third_party/depot_tools/pylint_main.py",
chromium-autoroll70acbe452025-01-11 05:08:361661 "//third_party/depot_tools/pylintrc-2.7",
Dirk Pranke43a5c812017-09-06 03:25:411662 "//third_party/ply/",
Kent Tamura1ede2842023-05-14 23:32:581663 "//third_party/pyjson5/",
Jonathan Leeee7f45862022-08-02 00:13:021664 "//third_party/wpt_tools/",
Dirk Pranke43a5c812017-09-06 03:25:411665 "//tools/idl_parser/",
1666 ]
Brian Sheedy6bcba67d2022-02-23 23:45:111667
Minju Kimc9e6dd162023-10-16 23:39:421668 if (is_ios) {
1669 data += [ "//third_party/blink/web_tests/IOSTestExpectations" ]
1670 }
1671
Brian Sheedy6bcba67d2022-02-23 23:45:111672 data_deps = [ "//ui/base:goldctl" ]
Dirk Pranke43a5c812017-09-06 03:25:411673 }
tfarinacb2638b2015-05-12 03:24:151674}
1675
Will Cassella857c8d82022-04-12 15:01:051676# TODO(cassew): Add more OS's that don't support x86.
1677is_valid_x86_target =
1678 target_os != "ios" && target_os != "mac" &&
1679 (target_os != "linux" || use_libfuzzer || !build_with_chromium)
Michael Achenbachc4273962022-06-27 09:12:511680
1681# Note: v8_target_cpu == arm allows using the V8 arm simulator on x86 for fuzzing.
Will Cassella857c8d82022-04-12 15:01:051682assert(
Michael Achenbach1a7961012022-06-27 11:19:001683 is_valid_x86_target || target_cpu != "x86" || v8_target_cpu == "arm",
Will Cassella857c8d82022-04-12 15:01:051684 "'target_cpu=x86' is not supported for 'target_os=$target_os'. Consider omitting 'target_cpu' (default) or using 'target_cpu=x64' instead.")
1685
dpranke2302dfa2015-09-29 02:21:521686group("chromium_builder_perf") {
1687 testonly = true
1688
Stefano Duo1a1fcca2023-04-03 09:06:371689 if (!is_ios && !is_android && !is_castos && !is_cronet_build) {
malets6b7062402016-09-15 08:14:261690 data_deps = [
kraynovc0797582016-10-25 16:45:061691 "//components/tracing:tracing_perftests",
Antoine Labourc6ade252017-10-19 01:01:161692 "//gpu:command_buffer_perftests",
dpranke2302dfa2015-09-29 02:21:521693 "//gpu:gpu_perftests",
1694 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:191695 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:521696 ]
1697
Zijie Hed995cb02023-12-14 19:42:481698 if (!is_fuchsia) {
1699 data_deps += [
1700 "//chrome/test:load_library_perf_tests",
1701 "//chrome/test:performance_test_suite",
1702 ]
1703 }
1704
Yuta Hijikata7128f0822025-03-06 05:44:151705 if (!is_chromeos && !is_fuchsia) {
malets6b7062402016-09-15 08:14:261706 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:521707 }
dpranke2302dfa2015-09-29 02:21:521708
Ryan Keanea67d8022022-06-18 00:20:321709 if (!is_win) {
danakj7b174142024-07-03 17:00:171710 data_deps += [ "//third_party/breakpad:minidump_stackwalk($host_system_allocator_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:521711 }
Ryan Keanea67d8022022-06-18 00:20:321712 }
1713
Georg Neisa324c502025-03-03 06:04:541714 if (is_linux && !is_castos) {
Ryan Keanea67d8022022-06-18 00:20:321715 if (is_official_build) {
1716 # In GN builds, this is controlled by the 'linux_dump_symbols'
1717 # flag, which defaults to 1 for official builds. For now,
1718 # we skip the separate flag and just key off of is_official_build.
1719 data_deps += [ "//chrome:linux_symbols" ]
Yuly Novikov8a6e6352017-11-11 02:00:401720 }
David Dorwin0b132172022-03-30 04:56:111721
Ryan Keanea67d8022022-06-18 00:20:321722 data_deps += [ "//tools/perf/clear_system_cache" ]
1723 }
1724
1725 if (is_win) {
1726 data_deps += [
1727 "//chrome/installer/mini_installer:mini_installer",
1728 "//components:components_perftests",
1729 "//third_party/angle/src/tests:angle_perftests",
1730 ]
1731 }
dpranke2302dfa2015-09-29 02:21:521732}
agrieve017b91f2016-02-29 20:15:061733
Stefano Duo1a1fcca2023-04-03 09:06:371734if (!is_ios && !is_android && !is_castos && !is_cronet_build) {
thakis3f7d4fc2016-06-10 18:47:501735 group("chromium_builder_asan") {
1736 testonly = true
1737
1738 deps = [
thakis3f7d4fc2016-06-10 18:47:501739 "//content/shell:content_shell",
Adrian Taylore6288432021-09-09 22:59:501740 "//third_party/blink/public/mojom:mojom_modules_js",
thakis3f7d4fc2016-06-10 18:47:501741 "//v8:d8",
1742 ]
Zijie Hed995cb02023-12-14 19:42:481743 if (!is_fuchsia) {
1744 deps += [ "//chrome:chrome" ]
1745 }
thakis3f7d4fc2016-06-10 18:47:501746 if (!is_win) {
Eric Orthdd5b8632020-11-13 02:59:421747 deps += [ "//skia:filter_fuzz_stub" ]
thakis3f7d4fc2016-06-10 18:47:501748 }
Yuta Hijikata7128f0822025-03-06 05:44:151749 if (!is_chromeos) {
Lei Zhange6d4106f2024-02-20 22:44:581750 deps += [ "//v8:v8_shell($v8_snapshot_toolchain)" ]
1751 if (enable_pdf) {
Lei Zhang2c2fc392024-05-09 17:21:121752 deps += [ "//third_party/pdfium/testing:pdfium_test" ]
Lei Zhange6d4106f2024-02-20 22:44:581753 }
thakis3f7d4fc2016-06-10 18:47:501754 }
Max Moroz109e76b2020-02-10 17:19:521755
Alastair Donaldson308bb212021-09-14 20:50:271756 if (build_dawn_tests) {
Ben Clayton3b40f9b2023-10-21 00:16:561757 deps += [ "//third_party/dawn/src/tint:fuzzers" ]
Alastair Donaldson308bb212021-09-14 20:50:271758 }
thakis3f7d4fc2016-06-10 18:47:501759 }
1760}
1761
Stefano Duo1a1fcca2023-04-03 09:06:371762if (is_android && !is_cronet_build) {
agrieve95ba4442016-04-25 15:47:131763 group("optimize_gn_gen") {
1764 deps = [
1765 # These run expensive scripts in non-default toolchains. Generally, host
1766 # toolchain targets are loaded in the later part of the run, and the
1767 # result is they push out the end of generation. By preloading these, the
1768 # scripts can be parallelized with the rest of the load.
1769 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1770 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1771
1772 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1773 # generation.
1774 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1775 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1776 ]
1777 }
1778}
1779
Yuta Hijikata7128f0822025-03-06 05:44:151780if (is_chromeos && enable_js_type_check) {
Christopher Lam739a90d2018-03-07 03:54:371781 group("webui_closure_compile") {
Trent Apted572ba7552018-10-17 00:03:301782 testonly = true
Rebekah Potter66968ea2023-01-19 23:24:411783 data_deps = [
1784 "ash/webui:closure_compile",
1785 "chrome/browser/resources:closure_compile",
1786 "chrome/test/data/webui:closure_compile",
1787 "mojo/public/tools/bindings/generators/js_templates/lite/test:closure_compile",
Giovanni Ortuño Urquidi0acdd9a2023-05-09 02:22:351788 "mojo/public/tools/bindings/generators/js_templates/lite/test:closure_compile_modules",
Rebekah Potter66968ea2023-01-19 23:24:411789 ]
Christopher Lam739a90d2018-03-07 03:54:371790 }
1791}
1792
Fumitoshi Ukai60476b812025-03-28 01:22:451793if (use_remoteexec && target_os != "chromeos" && rbe_exec_root != "/") {
Fumitoshi Ukai04f61592025-03-26 17:33:501794 # Different nesting levels technically work, but cache hits are basically zero.
Fumitoshi Ukai60476b812025-03-28 01:22:451795 # for `target_os="chromeos" rbe_exec_root="/"` is used for chromeos chroot
1796 # and it doesn't use 2-level out dir.
Fumitoshi Ukai04f61592025-03-26 17:33:501797 assert(
1798 rebase_path("//", root_build_dir) == "../../",
1799 "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")
1800}
1801
1802# GN evaluates each .gn file once per toolchain, so restricting to default
1803# toolchain will ensure write_file() is called only once.
1804assert(current_toolchain == default_toolchain)
1805
Andrew Grievefebea022020-08-07 17:17:531806# Write debug logs to gn_logs.txt.
1807_lines = [
1808 "Generated during 'gn gen' by //BUILD.gn.",
1809 "",
1810 ] + build_gn_logs
1811
Andrew Grievefebea022020-08-07 17:17:531812write_file("$root_build_dir/gn_logs.txt", _lines)