Avi Drissman | 2497659 | 2022-09-12 15:24:31 | [diff] [blame] | 1 | # Copyright 2013 The Chromium Authors |
[email protected] | f0e7ff88 | 2013-12-26 21:23:09 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | # This is the root build file for GN. GN will start processing by loading this |
| 6 | # file, and recursively load all dependencies until all dependencies are either |
| 7 | # resolved or known not to exist (which will cause the build to fail). So if |
| 8 | # you add a new build file, there must be some path of dependencies from this |
| 9 | # file to your new one or GN won't know about it. |
| 10 | |
mark a. foltz | e185ab2fa | 2023-11-06 21:21:20 | [diff] [blame] | 11 | import("//build/config/cast.gni") |
dpranke | ad249c7 | 2016-06-11 18:01:22 | [diff] [blame] | 12 | import("//build/config/compiler/compiler.gni") |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 13 | import("//build/config/cronet/config.gni") |
Dirk Pranke | f452bb2a | 2020-10-09 22:11:55 | [diff] [blame] | 14 | import("//build/config/dcheck_always_on.gni") |
rockot | 2f1326e | 2015-02-23 23:53:51 | [diff] [blame] | 15 | import("//build/config/features.gni") |
Collin | a1e27a4 | 2022-01-26 20:12:03 | [diff] [blame] | 16 | import("//build/config/rust.gni") |
aizatsky | fc46a9f | 2015-10-09 21:20:08 | [diff] [blame] | 17 | import("//build/config/sanitizers/sanitizers.gni") |
[email protected] | 378b4f0 | 2014-06-10 15:58:45 | [diff] [blame] | 18 | import("//build/config/ui.gni") |
Andrew Grieve | febea02 | 2020-08-07 17:17:53 | [diff] [blame] | 19 | import("//build/gn_logs.gni") |
Fumitoshi Ukai | 04f6159 | 2025-03-26 17:33:50 | [diff] [blame] | 20 | import("//build/toolchain/rbe.gni") |
John Budorick | 7c8273b | 2019-04-25 15:27:47 | [diff] [blame] | 21 | import("//build/util/generate_wrapper.gni") |
Noah Rose Ledesma | ba67f197 | 2024-05-24 21:27:32 | [diff] [blame] | 22 | import("//chrome/enterprise_companion/buildflags.gni") |
Nasser Al-shawwa | d3ea535e | 2024-01-19 21:05:12 | [diff] [blame] | 23 | import("//components/enterprise/buildflags/buildflags.gni") |
Scott Violet | c8240b0 | 2018-03-08 22:03:59 | [diff] [blame] | 24 | import("//device/vr/buildflags/buildflags.gni") |
| 25 | import("//extensions/buildflags/buildflags.gni") |
Sam McNally | 11dc014 | 2018-11-23 01:11:05 | [diff] [blame] | 26 | import("//gpu/vulkan/features.gni") |
Alexandre Courbot | 8ad2427d | 2017-08-25 14:04:55 | [diff] [blame] | 27 | import("//media/gpu/args.gni") |
Sam McNally | 11dc014 | 2018-11-23 01:11:05 | [diff] [blame] | 28 | import("//media/media_options.gni") |
danakj | 9ddc1624 | 2024-11-07 22:14:14 | [diff] [blame] | 29 | import("//mojo/public/rust/rust.gni") |
Lei Zhang | 242fc9a | 2021-05-18 23:48:42 | [diff] [blame] | 30 | import("//pdf/features.gni") |
Lei Zhang | 8baa294 | 2021-05-19 03:59:48 | [diff] [blame] | 31 | import("//printing/buildflags/buildflags.gni") |
brettw | 2b112cd | 2016-10-12 19:35:36 | [diff] [blame] | 32 | import("//remoting/remoting_enable.gni") |
John Abd-El-Malek | d842f9b | 2023-11-17 21:59:48 | [diff] [blame] | 33 | import("//services/on_device_model/on_device_model.gni") |
Josip Sokcevic | 4d590cf | 2020-07-07 10:48:23 | [diff] [blame] | 34 | import("//third_party/closure_compiler/compile_js.gni") |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 35 | import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
Peter Beverloo | 6994832 | 2017-07-28 19:01:57 | [diff] [blame] | 36 | import("//ui/base/ui_features.gni") |
Elly Fong-Jones | b03817a | 2019-11-14 18:10:12 | [diff] [blame] | 37 | import("//ui/gl/features.gni") |
machenbach | d65ec5c | 2016-07-22 09:05:23 | [diff] [blame] | 38 | import("//v8/gni/v8.gni") |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 39 | |
cjhopman | ca675d3e | 2014-10-24 03:50:45 | [diff] [blame] | 40 | if (is_android) { |
| 41 | import("//build/config/android/config.gni") |
| 42 | } |
[email protected] | 378b4f0 | 2014-06-10 15:58:45 | [diff] [blame] | 43 | |
Greg Thompson | ada4b21 | 2022-09-12 13:31:49 | [diff] [blame] | 44 | if (is_fuchsia) { |
| 45 | import("//build/config/fuchsia/generate_runner_scripts.gni") |
Wez | 691dde4 | 2023-10-19 17:47:29 | [diff] [blame] | 46 | import("//third_party/fuchsia-gn-sdk/src/component.gni") |
| 47 | import("//third_party/fuchsia-gn-sdk/src/package.gni") |
John Abd-El-Malek | 6eb6dede | 2024-01-27 05:54:11 | [diff] [blame] | 48 | } else { |
| 49 | import("//chrome/browser/buildflags.gni") |
Greg Thompson | ada4b21 | 2022-09-12 13:31:49 | [diff] [blame] | 50 | } |
| 51 | |
Rohit Rao | 92edf2c | 2024-11-14 17:35:16 | [diff] [blame] | 52 | if (is_ios) { |
| 53 | import("//build/config/apple/mobile_config.gni") |
| 54 | } |
| 55 | |
Andrey Kosyakov | 0e234d90 | 2021-03-30 19:00:27 | [diff] [blame] | 56 | if (is_linux) { |
| 57 | import("build/config/linux/gtk/gtk.gni") |
| 58 | } |
| 59 | |
Dave Tapuska | 2ff385f | 2023-02-07 17:08:59 | [diff] [blame] | 60 | if (use_blink) { |
Rohit Rao | 123b39e | 2021-09-17 19:52:38 | [diff] [blame] | 61 | import("//v8/gni/snapshot_toolchain.gni") |
| 62 | } |
| 63 | |
brettw | b84b2947 | 2014-10-22 22:58:45 | [diff] [blame] | 64 | declare_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 | |
brucedawson | c8d6d65 | 2016-09-02 19:43:18 | [diff] [blame] | 71 | if (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 Pranke | 0356f6f | 2023-02-24 00:27:46 | [diff] [blame] | 77 | # 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. |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 80 | # |
Dirk Pranke | 0356f6f | 2023-02-24 00:27:46 | [diff] [blame] | 81 | # 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`. |
dpranke | ff30e3d | 2015-02-24 06:52:39 | [diff] [blame] | 86 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 87 | group("gn_all") { |
| 88 | testonly = true |
| 89 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 90 | if (is_cronet_build) { |
Stefano Duo | 8d358e3 | 2023-04-14 09:45:29 | [diff] [blame] | 91 | if (is_android) { |
| 92 | deps = [ "//components/cronet/android:cronet_package_android" ] |
Stefano Duo | 8d358e3 | 2023-04-14 09:45:29 | [diff] [blame] | 93 | } else { |
| 94 | deps = [] |
Brian Sheedy | f74819b | 2021-06-04 01:38:38 | [diff] [blame] | 95 | } |
David Dorwin | 9985426fc | 2022-03-30 00:06:04 | [diff] [blame] | 96 | } else { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 97 | 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 Taylor | 11f0b422 | 2023-10-30 17:38:26 | [diff] [blame] | 110 | "//testing/libfuzzer/tests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 111 | "//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 Eubanks | dfcb041 | 2024-12-12 18:13:06 | [diff] [blame] | 115 | "//third_party/highway:highway_tests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 116 | "//third_party/liburlpattern:liburlpattern_unittests", |
Steinar H. Gunderson | ba476bb | 2024-07-12 18:25:14 | [diff] [blame] | 117 | "//third_party/rapidhash:rapidhash_fuzztests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 118 | "//tools/binary_size:binary_size_trybot_py", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 119 | "//tools/metrics:metrics_metadata", |
| 120 | "//ui/base:ui_base_unittests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 121 | "//ui/gfx:gfx_unittests", |
Allen Bauer | 66dc0e14 | 2023-09-12 01:08:29 | [diff] [blame] | 122 | "//ui/tests:ui_unittests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 123 | "//url:url_unittests", |
[email protected] | 26046b5 | 2014-07-16 00:11:03 | [diff] [blame] | 124 | ] |
| 125 | |
Tarcisio Fischer | fef19c5 | 2024-09-06 19:06:09 | [diff] [blame] | 126 | if (current_cpu == "arm64" && is_android && host_os == "linux") { |
| 127 | deps += [ |
| 128 | "//components/allocation_recorder/tools:dump_allocation_recorder_data", |
| 129 | ] |
| 130 | } |
| 131 | |
pkotwicz | 92e2e231 | 2015-12-15 22:29:46 | [diff] [blame] | 132 | if (!is_component_build) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 133 | deps += [ "//third_party/abseil-cpp:absl_tests" ] |
| 134 | } |
| 135 | |
Yuta Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 136 | if (is_chromeos && enable_js_type_check) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 137 | deps += [ ":webui_closure_compile" ] |
| 138 | } |
| 139 | |
| 140 | if (!is_android && !is_castos) { |
pkotwicz | 92e2e231 | 2015-12-15 22:29:46 | [diff] [blame] | 141 | deps += [ |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 142 | "//crypto:crypto_unittests", |
| 143 | "//google_apis/gcm:gcm_unit_tests", |
pkotwicz | 92e2e231 | 2015-12-15 22:29:46 | [diff] [blame] | 144 | ] |
| 145 | } |
| 146 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 147 | if (!is_ios && !is_android && !is_castos) { |
Zijie He | d995cb0 | 2023-12-14 19:42:48 | [diff] [blame] | 148 | 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 | } |
pkotwicz | 061c5a4 | 2015-09-30 02:16:54 | [diff] [blame] | 156 | deps += [ |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 157 | "//components/subresource_filter/tools:subresource_filter_tools", |
| 158 | "//components/zucchini:zucchini", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 159 | "//net:hpack_example_generator", |
Yuly Novikov | 3eea78b | 2024-05-28 18:12:53 | [diff] [blame] | 160 | "//third_party/spirv-tools/src:SPIRV-Tools", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 161 | "//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 Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 165 | "//ui/accessibility/extensions:extensions", |
Dirk Pranke | f05a1b7 | 2025-02-26 20:53:23 | [diff] [blame] | 166 | "//ui/webui/resources/tools:webui_resources_tools_python_unittests", |
pkotwicz | 061c5a4 | 2015-09-30 02:16:54 | [diff] [blame] | 167 | ] |
Arthur Eubanks | 87cdea1 | 2022-02-17 21:18:51 | [diff] [blame] | 168 | } |
dnicoara | 8c6aa8e | 2015-03-11 23:20:32 | [diff] [blame] | 169 | |
Zijie He | d995cb0 | 2023-12-14 19:42:48 | [diff] [blame] | 170 | if (!is_castos && !is_fuchsia) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 171 | deps += [ "//chrome/installer" ] |
Daniel Nicoara | cf98a1bf | 2022-08-09 19:51:44 | [diff] [blame] | 172 | } |
| 173 | |
John Abd-El-Malek | 6eb6dede | 2024-01-27 05:54:11 | [diff] [blame] | 174 | if (!is_fuchsia && enable_updater) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 175 | deps += [ "//chrome/updater" ] |
| 176 | } |
| 177 | |
Noah Rose Ledesma | ba67f197 | 2024-05-24 21:27:32 | [diff] [blame] | 178 | if (enable_enterprise_companion) { |
| 179 | deps += [ "//chrome/enterprise_companion" ] |
| 180 | } |
| 181 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 182 | if (!is_ios && !is_castos) { |
Zijie He | d995cb0 | 2023-12-14 19:42:48 | [diff] [blame] | 183 | if (!is_fuchsia) { |
| 184 | deps += [ "//chrome/test:unit_tests" ] |
| 185 | } |
| 186 | deps += [ "//ui/accessibility:accessibility_unittests" ] |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 187 | } |
sherouk | e1859f9 | 2015-08-05 10:19:10 | [diff] [blame] | 188 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 189 | 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 Katcoff | cc1eb9f | 2024-10-02 20:21:21 | [diff] [blame] | 196 | "//content/browser/interest_group/tools:adjustable_auction", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 197 | "//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 Tapuska | 269a0ca | 2023-04-05 18:38:20 | [diff] [blame] | 205 | "//media/cast:cast_unittests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 206 | "//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 | ] |
sugoi | abe91890 | 2016-09-20 12:53:51 | [diff] [blame] | 226 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 227 | if (!v8_use_external_startup_data) { |
| 228 | deps += [ "//v8:v8_snapshot" ] |
| 229 | } |
| 230 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 231 | |
Dave Tapuska | d74dc90 | 2023-03-08 21:45:51 | [diff] [blame] | 232 | if (!is_ios) { |
| 233 | deps += [ |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 234 | ":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 Tapuska | d74dc90 | 2023-03-08 21:45:51 | [diff] [blame] | 240 | ] |
| 241 | } |
| 242 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 243 | if (!is_ios && !is_android) { |
| 244 | deps += [ "//components/viz/demo:viz_demo" ] |
| 245 | } |
| 246 | |
| 247 | if (!is_ios) { |
Daniel Nicoara | cf98a1bf | 2022-08-09 19:51:44 | [diff] [blame] | 248 | deps += [ |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 249 | "//google_apis/gcm:mcs_probe", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 250 | "//third_party/catapult/telemetry:bitmaptools($host_toolchain)", |
agrieve | 473155b4 | 2015-12-28 20:23:11 | [diff] [blame] | 251 | ] |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 252 | if (!is_android) { |
Zijie He | d995cb0 | 2023-12-14 19:42:48 | [diff] [blame] | 253 | if (!is_castos && !is_fuchsia) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 254 | 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 Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 274 | "//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 Kim | 80fd49b | 2023-11-07 15:44:22 | [diff] [blame] | 284 | if (enable_printing || enable_printing_tests) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 285 | deps += [ "//printing:printing_unittests" ] |
agrieve | 473155b4 | 2015-12-28 20:23:11 | [diff] [blame] | 286 | } |
dpranke | 7e19b47 | 2015-11-13 00:49:33 | [diff] [blame] | 287 | |
jamescook | fbbf911 | 2016-06-14 16:24:49 | [diff] [blame] | 288 | if (enable_extensions) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 289 | 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 | ] |
jamescook | fbbf911 | 2016-06-14 16:24:49 | [diff] [blame] | 295 | } |
| 296 | |
John Abd-El-Malek | d842f9b | 2023-11-17 21:59:48 | [diff] [blame] | 297 | if (enable_ml_internal) { |
Austin Sullivan | bd84551 | 2025-02-07 22:54:11 | [diff] [blame] | 298 | deps += [ |
| 299 | "//components/optimization_guide/internal:ondevice_model_benchmark", |
| 300 | ] |
John Abd-El-Malek | d842f9b | 2023-11-17 21:59:48 | [diff] [blame] | 301 | } |
| 302 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 303 | if (enable_pdf) { |
| 304 | deps += [ |
| 305 | "//pdf/pdfium/fuzzers", |
Lei Zhang | 2c2fc39 | 2024-05-09 17:21:12 | [diff] [blame] | 306 | "//third_party/pdfium/testing:pdfium_test", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 307 | ] |
| 308 | } |
dpranke | 2bc8921 | 2015-11-18 00:24:43 | [diff] [blame] | 309 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 310 | 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-shawwa | 9954a39 | 2024-09-19 21:39:08 | [diff] [blame] | 323 | if (enterprise_watermark) { |
| 324 | deps += [ "//chrome/browser/enterprise/watermark:watermark_app" ] |
| 325 | } |
| 326 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 327 | if (use_aura) { |
| 328 | deps += [ |
| 329 | "//ui/aura:aura_demo", |
| 330 | "//ui/aura:aura_unittests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 331 | "//ui/wm:wm_unittests", |
| 332 | ] |
| 333 | } |
| 334 | |
Sergey Ulanov | 647ad46 | 2025-02-19 19:34:33 | [diff] [blame] | 335 | if (!is_android && !is_ios && !is_fuchsia) { |
Min Qin | 3cb9bf7 | 2025-06-30 22:44:20 | [diff] [blame] | 336 | deps += [ |
Min Qin | 39f2684 | 2025-07-01 15:46:18 | [diff] [blame] | 337 | "//components/sync:sync_full_proto_unittests", |
Min Qin | 3cb9bf7 | 2025-06-30 22:44:20 | [diff] [blame] | 338 | "//ui/webui/examples:webui_examples", |
| 339 | ] |
Robert Liao | 2272249 | 2023-06-14 18:35:47 | [diff] [blame] | 340 | } |
| 341 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 342 | if (use_ozone) { |
| 343 | deps += [ |
| 344 | "//ui/ozone", |
| 345 | "//ui/ozone:unittests", |
| 346 | ] |
| 347 | if (!is_fuchsia) { |
| 348 | deps += [ "//ui/ozone/demo" ] |
dpranke | 2bc8921 | 2015-11-18 00:24:43 | [diff] [blame] | 349 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 350 | } |
| 351 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 352 | if (is_win) { |
| 353 | deps += [ |
| 354 | "//chrome/credential_provider", |
| 355 | "//chrome/credential_provider/test:gcp_unittests", |
| 356 | ] |
Robert Liao | baf93e6 | 2024-02-16 00:56:15 | [diff] [blame] | 357 | |
| 358 | if (enable_platform_experience) { |
| 359 | deps += [ |
| 360 | "//chrome/browser/platform_experience/win:platform_experience_helper", |
| 361 | ] |
| 362 | } |
Daniel Nicoara | cf98a1bf | 2022-08-09 19:51:44 | [diff] [blame] | 363 | } |
| 364 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 365 | if (is_mac) { |
| 366 | deps += [ |
| 367 | "//chrome/installer/gcapi_mac:gcapi_example", |
| 368 | "//tools/mac", |
| 369 | ] |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 370 | } |
| 371 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 372 | # 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" ] |
fdoray | fb048bff | 2016-04-28 22:07:36 | [diff] [blame] | 377 | } |
rsesek | 985bd81 | 2016-04-26 21:06:15 | [diff] [blame] | 378 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 379 | if (is_android) { |
| 380 | deps += [ |
| 381 | "//base:base_junit_tests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 382 | "//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 Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 388 | "//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 Grieve | 7de5531 | 2024-04-10 19:27:33 | [diff] [blame] | 402 | "//third_party/jni_zero:jni_zero_tests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 403 | "//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 Wen | 2dcfa6e | 2025-03-04 22:42:52 | [diff] [blame] | 410 | "//tools/cygprofile:generate_orderfile_android_trichrome_chrome_bundle", |
Peter Wen | 428292c | 2024-12-02 15:51:21 | [diff] [blame] | 411 | "//tools/pgo:generate_profile_android_trichrome_chrome_bundle", |
Mark Schillaci | d1a94d53 | 2023-11-09 17:14:27 | [diff] [blame] | 412 | "//ui:ui_junit_tests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 413 | ] |
| 414 | deps -= [ |
| 415 | "//net:net_perftests", |
| 416 | "//url:url_unittests", |
| 417 | ] |
Sergey Ulanov | 0740654 | 2019-12-18 00:09:43 | [diff] [blame] | 418 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 419 | if (!is_cast_android) { |
| 420 | deps += [ |
| 421 | "//android_webview:empty_group", |
| 422 | "//android_webview/test", |
Andrew Grieve | e30e95b | 2024-06-24 19:13:09 | [diff] [blame] | 423 | "//android_webview/tools/automated_ui_tests:webview_ui_test_app_test_apk", |
Neil Estrada | 7ccb9ca | 2023-08-15 21:07:37 | [diff] [blame] | 424 | "//android_webview/tools/captured_sites_tests:captured_sites_test_app", |
Andrew Grieve | 46fb7d9 | 2023-11-23 22:04:31 | [diff] [blame] | 425 | "//android_webview/tools/sdk_sandbox", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 426 | "//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 Horschig | c7c13cbb | 2025-01-16 10:34:18 | [diff] [blame] | 432 | "//chrome/browser/android/examples/inline_autofill_service:inline_autofill_service_example_apk", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 433 | "//chrome/browser/android/examples/partner_browser_customizations_provider:partner_browser_customizations_example_apk", |
| 434 | "//content/shell/android:content_shell_test_apk", |
| 435 | ] |
agrieve | 473155b4 | 2015-12-28 20:23:11 | [diff] [blame] | 436 | } |
dpranke | b071354 | 2015-07-31 21:07:21 | [diff] [blame] | 437 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 438 | if (enable_chrome_android_internal) { |
Peter Wen | 428292c | 2024-12-02 15:51:21 | [diff] [blame] | 439 | deps += [ "//clank" ] |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 440 | } |
| 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 Metzman | 2656ecd | 2018-11-21 08:22:41 | [diff] [blame] | 452 | |
Yuta Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 453 | if (is_chromeos) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 454 | deps += [ |
| 455 | "//ash:ash_unittests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 456 | "//ash/keyboard/ui:keyboard_unittests", |
| 457 | "//ash/webui:ash_webui_unittests", |
Eriko Kurimoto | 107af14 | 2024-07-08 13:40:02 | [diff] [blame] | 458 | "//chrome/browser/ash/child_accounts/time_limit_consistency_test:usage_time_limit_unittests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 459 | "//chrome/browser/metrics/perf:profile_provider_unittest", |
Yuta Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 460 | "//chromeos:chromeos_unittests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 461 | "//chromeos/ash/components/proximity_auth:proximity_auth_unittests", |
Hidehiko Abe | d145e34 | 2025-02-03 11:23:00 | [diff] [blame] | 462 | "//chromeos/ash/experiences:ash_components_unittests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 463 | "//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 Zhang | 8baa294 | 2021-05-19 03:59:48 | [diff] [blame] | 469 | } |
| 470 | |
Yuta Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 471 | if (is_chromeos || is_mac || is_win) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 472 | deps += [ |
| 473 | "//rlz:rlz_id", |
| 474 | "//rlz:rlz_lib", |
| 475 | "//rlz:rlz_unittests", |
| 476 | ] |
| 477 | } |
sbc | 92b4d57 | 2016-02-18 03:28:23 | [diff] [blame] | 478 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 479 | 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 Grant | 193648b | 2017-06-07 15:08:36 | [diff] [blame] | 491 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 492 | if (!is_castos) { |
| 493 | deps += [ "//chrome:xdg_mime" ] |
| 494 | } |
| 495 | |
| 496 | if (use_dbus) { |
Brian Sheedy | f74819b | 2021-06-04 01:38:38 | [diff] [blame] | 497 | deps += [ |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 498 | "//dbus:dbus_test_server", |
| 499 | "//dbus:dbus_unittests", |
Brian Sheedy | f74819b | 2021-06-04 01:38:38 | [diff] [blame] | 500 | ] |
| 501 | } |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 502 | |
| 503 | if (is_chrome_branded && is_official_build) { |
| 504 | # TODO(dpranke): add the linux_dump_symbols flag? |
| 505 | deps += [ "//chrome:linux_symbols" ] |
| 506 | } |
Yash Malik | 8109b5bb | 2017-07-13 22:40:03 | [diff] [blame] | 507 | } |
Scott Graham | f24e374 | 2017-08-11 17:50:22 | [diff] [blame] | 508 | |
Georg Neis | a324c50 | 2025-03-03 06:04:54 | [diff] [blame] | 509 | if (is_ios || is_win || is_linux || is_fuchsia) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 510 | 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 Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 526 | if (!is_chromeos && use_blink) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 527 | 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 He | d995cb0 | 2023-12-14 19:42:48 | [diff] [blame] | 550 | if (!is_android && !is_castos && !is_ios && !is_fuchsia) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 551 | 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 Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 559 | "//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 Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 574 | if (media_use_ffmpeg && !is_android) { |
| 575 | deps += [ "//media:ffmpeg_regression_tests" ] |
| 576 | } |
| 577 | } |
| 578 | |
Georg Neis | a324c50 | 2025-03-03 06:04:54 | [diff] [blame] | 579 | if (is_android || is_linux) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 580 | 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", |
danakj | 7b17414 | 2024-07-03 17:00:17 | [diff] [blame] | 586 | "//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 Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 590 | ] |
| 591 | } |
| 592 | |
Georg Neis | a324c50 | 2025-03-03 06:04:54 | [diff] [blame] | 593 | if (is_linux) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 594 | deps += [ |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 595 | "//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 += [ |
danakj | 7b17414 | 2024-07-03 17:00:17 | [diff] [blame] | 611 | "//third_party/breakpad:dump_syms($host_system_allocator_toolchain)", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 612 | |
| 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 Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 627 | "//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 | } |
danakj | 7b17414 | 2024-07-03 17:00:17 | [diff] [blame] | 655 | } |
| 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 | } |
danakj | 6c3b715 | 2024-07-04 16:40:49 | [diff] [blame] | 665 | if (is_mac && host_cpu == "arm64") { |
danakj | 7b17414 | 2024-07-03 17:00:17 | [diff] [blame] | 666 | # 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 Yeager | c1b50eb | 2024-06-26 05:24:44 | [diff] [blame] | 678 | deps += [ "//third_party/breakpad:symupload($host_toolchain)" ] |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 679 | } |
| 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 Neis | a324c50 | 2025-03-03 06:04:54 | [diff] [blame] | 720 | if ((is_linux && !is_castos) || is_fuchsia) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 721 | # 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 Neis | a324c50 | 2025-03-03 06:04:54 | [diff] [blame] | 727 | if (is_linux && !is_castos) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 728 | # 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 Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 736 | "//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 Taylor | de84dff | 2024-11-01 18:00:22 | [diff] [blame] | 767 | "//testing/libfuzzer/research", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 768 | "//third_party/icu/fuzzers", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 769 | "//third_party/ukey2/fuzzers", |
| 770 | "//third_party/zlib/contrib/tests/fuzzers", |
| 771 | ] |
| 772 | |
Yuta Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 773 | if (is_chromeos) { |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 774 | deps += [ "//chrome/services/ipp_parser/public/cpp:fuzzers" ] |
| 775 | } |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 776 | } |
| 777 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 778 | 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 Clayton | 3b40f9b | 2023-10-21 00:16:56 | [diff] [blame] | 815 | "//third_party/dawn/src/tint:fuzzers", |
| 816 | "//third_party/dawn/src/tint:tests", |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 817 | ] |
| 818 | } |
| 819 | |
| 820 | # PFFFT. |
Martin Robinson | e4fddede | 2018-09-18 10:30:21 | [diff] [blame] | 821 | deps += [ |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 822 | "//third_party/pffft:fuzzers", |
| 823 | "//third_party/pffft:pffft_benchmark", |
| 824 | "//third_party/pffft:pffft_unittest", |
Martin Robinson | e4fddede | 2018-09-18 10:30:21 | [diff] [blame] | 825 | ] |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 826 | |
| 827 | # Rust build targets. |
Kalvin Lee | 1b60e6e7 | 2023-07-20 05:09:31 | [diff] [blame] | 828 | if (enable_rust) { |
| 829 | deps += [ ":all_rust" ] |
| 830 | } |
Alessio Bazzica | 383dcef9 | 2019-02-08 14:14:42 | [diff] [blame] | 831 | |
Stefano Duo | 8d358e3 | 2023-04-14 09:45:29 | [diff] [blame] | 832 | if (!is_android && !is_ios) { |
| 833 | deps += [ "//components/cronet:cronet_tests" ] |
| 834 | } |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 835 | } |
Thiago Perrotta | 942ed3e | 2023-09-05 09:26:52 | [diff] [blame] | 836 | |
| 837 | if (is_chrome_for_testing) { |
| 838 | deps += [ "//chrome/browser/chrome_for_testing:chrome_for_testing" ] |
| 839 | } |
Ivan Kirichenko | 84cd345 | 2024-09-25 08:14:04 | [diff] [blame] | 840 | |
| 841 | if (checkout_src_internal) { |
| 842 | deps += [ "//internal:all" ] |
| 843 | } |
Collin Baker | 153146f3 | 2023-03-09 20:08:41 | [diff] [blame] | 844 | } |
Collin | a1e27a4 | 2022-01-26 20:12:03 | [diff] [blame] | 845 | |
Collin Baker | 153146f3 | 2023-03-09 20:08:41 | [diff] [blame] | 846 | # All Rust targets. This is provided for convenience while developing Rust to |
| 847 | # e.g. test build config or toolchain changes. |
| 848 | group("all_rust") { |
| 849 | testonly = true |
| 850 | |
danakj | 6fdddfa2 | 2024-10-29 17:10:49 | [diff] [blame] | 851 | deps = [ |
| 852 | ":rust_build_tests", |
danakj | 9ddc1624 | 2024-11-07 22:14:14 | [diff] [blame] | 853 | "//base:base_unittests", # There is rust stuff in here. |
danakj | 9ddc1624 | 2024-11-07 22:14:14 | [diff] [blame] | 854 | "//third_party/cloud_authenticator/processor", |
danakj | 6fdddfa2 | 2024-10-29 17:10:49 | [diff] [blame] | 855 | ] |
Collin Baker | 153146f3 | 2023-03-09 20:08:41 | [diff] [blame] | 856 | |
Justin Cohen | 6f39b1e | 2025-03-21 20:39:11 | [diff] [blame] | 857 | # 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 Lee | 1b60e6e7 | 2023-07-20 05:09:31 | [diff] [blame] | 863 | if (enable_rust_mojo) { |
| 864 | deps += [ |
danakj | 62e4aae | 2023-12-15 22:31:22 | [diff] [blame] | 865 | "//mojo/public/rust:mojo_rust", |
Kalvin Lee | 1b60e6e7 | 2023-07-20 05:09:31 | [diff] [blame] | 866 | "//mojo/public/rust:mojo_rust_integration_unittests", |
| 867 | "//mojo/public/rust:mojo_rust_unittests", |
| 868 | ] |
| 869 | } |
Lukasz Anforowicz | dadccfc | 2025-06-27 15:16:17 | [diff] [blame] | 870 | if (!is_cronet_build) { |
danakj | 6fdddfa2 | 2024-10-29 17:10:49 | [diff] [blame] | 871 | deps += [ "//skia" ] |
| 872 | } |
Adrian Taylor | 21dcb36 | 2021-09-01 14:58:14 | [diff] [blame] | 873 | } |
| 874 | |
Adrian Taylor | 0ea2a34b | 2023-03-18 08:08:32 | [diff] [blame] | 875 | # This group exists to give targets for the waterfall to refer to. |
Adrian Taylor | 21dcb36 | 2021-09-01 14:58:14 | [diff] [blame] | 876 | group("rust_build_tests") { |
Lukasz Anforowicz | 8524e356 | 2021-09-23 14:12:26 | [diff] [blame] | 877 | testonly = true |
Adrian Taylor | 21dcb36 | 2021-09-01 14:58:14 | [diff] [blame] | 878 | deps = [ "//build/rust/tests" ] |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 879 | } |
| 880 | |
Maksim Sisov | 25c86c8 | 2020-08-18 19:25:08 | [diff] [blame] | 881 | # TODO(https://crbug.com/1112776): ensure remoting is functional on Linux builds with |
Maksim Sisov | 941ac83 | 2021-11-09 06:34:19 | [diff] [blame] | 882 | # other than X11 Ozone backends. |
| 883 | if (enable_remoting && ((is_linux && ozone_platform_x11) || |
| 884 | ((is_chromeos || is_win) && !use_ozone))) { |
Nicolas Ouellet-Payeur | ebe785238d | 2021-11-12 14:49:55 | [diff] [blame] | 885 | # On CQ, run the Traffic Annotation Auditor when a change affects one of these |
| 886 | # targets. |
| 887 | group("traffic_annotation_auditor_dependencies") { |
Takuto Ikuta | 9d11eb1 | 2018-11-20 02:30:00 | [diff] [blame] | 888 | deps = [ |
| 889 | "//chrome:chrome", |
| 890 | "//remoting/host:host", |
Nicolas Ouellet-Payeur | 8026e2a | 2022-10-03 18:27:55 | [diff] [blame] | 891 | "//tools/traffic_annotation:annotations_xml", |
Takuto Ikuta | 9d11eb1 | 2018-11-20 02:30:00 | [diff] [blame] | 892 | ] |
Nicolas Ouellet-Payeur | 84d9016 | 2024-07-10 18:07:54 | [diff] [blame] | 893 | if (enable_enterprise_companion) { |
| 894 | deps += [ "//chrome/enterprise_companion" ] |
| 895 | } |
Takuto Ikuta | 9d11eb1 | 2018-11-20 02:30:00 | [diff] [blame] | 896 | } |
| 897 | } |
| 898 | |
Yuta Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 899 | if (is_chromeos) { |
Baijun Zhu | a984265 | 2022-05-19 23:28:34 | [diff] [blame] | 900 | group("traffic_annotation_auditor_dependencies") { |
| 901 | deps = [ |
| 902 | "//chrome", |
Nicolas Ouellet-Payeur | 8026e2a | 2022-10-03 18:27:55 | [diff] [blame] | 903 | "//tools/traffic_annotation:annotations_xml", |
Baijun Zhu | a984265 | 2022-05-19 23:28:34 | [diff] [blame] | 904 | ] |
| 905 | } |
| 906 | } |
| 907 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 908 | if (is_android && !is_cronet_build) { |
Nicolas Ouellet-Payeur | ebe785238d | 2021-11-12 14:49:55 | [diff] [blame] | 909 | # 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-Payeur | 8026e2a | 2022-10-03 18:27:55 | [diff] [blame] | 914 | "//tools/traffic_annotation:annotations_xml", |
Nicolas Ouellet-Payeur | ebe785238d | 2021-11-12 14:49:55 | [diff] [blame] | 915 | ] |
| 916 | } |
| 917 | } |
| 918 | |
Scott Graham | 677e7910 | 2017-08-15 20:07:37 | [diff] [blame] | 919 | if (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 Thompson | ada4b21 | 2022-09-12 13:31:49 | [diff] [blame] | 922 | fuchsia_component("d8_component") { |
Kevin Marshall | 57a19db | 2018-09-12 20:07:05 | [diff] [blame] | 923 | testonly = true |
Greg Thompson | ada4b21 | 2022-09-12 13:31:49 | [diff] [blame] | 924 | manifest = "//v8/gni/v8.cml" |
| 925 | data_deps = [ "//v8:d8" ] |
Kevin Marshall | 39b4aa8 | 2018-06-23 00:12:15 | [diff] [blame] | 926 | } |
Greg Thompson | ada4b21 | 2022-09-12 13:31:49 | [diff] [blame] | 927 | fuchsia_package("d8_pkg") { |
| 928 | testonly = true |
| 929 | package_name = "d8" |
| 930 | deps = [ ":d8_component" ] |
| 931 | } |
Kevin Marshall | 5fadadd | 2021-10-16 00:08:25 | [diff] [blame] | 932 | fuchsia_package_installer("d8_fuchsia") { |
Kevin Marshall | 57a19db | 2018-09-12 20:07:05 | [diff] [blame] | 933 | testonly = true |
Greg Thompson | ada4b21 | 2022-09-12 13:31:49 | [diff] [blame] | 934 | package = ":d8_pkg" |
Kevin Marshall | 5fadadd | 2021-10-16 00:08:25 | [diff] [blame] | 935 | package_name = "d8" |
Scott Graham | 677e7910 | 2017-08-15 20:07:37 | [diff] [blame] | 936 | } |
| 937 | } |
| 938 | |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 939 | # TODO(GYP_GONE): Figure out if we really need this target or if there's |
| 940 | # some better way to specify things. |
| 941 | if (is_win) { |
| 942 | group("chrome_official_builder_no_unittests") { |
| 943 | deps = [ |
proberge | fe47600 | 2017-06-23 14:29:01 | [diff] [blame] | 944 | "//chrome/common/win:eventlog_provider", |
Roger Tawa | 5cb75d7 | 2018-11-09 21:56:38 | [diff] [blame] | 945 | "//chrome/credential_provider", |
Noah Rose Ledesma | 1b9e908 | 2024-09-10 04:55:06 | [diff] [blame] | 946 | "//chrome/enterprise_companion:enterprise_companion_zip", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 947 | "//chrome/installer/gcapi", |
| 948 | "//chrome/installer/mini_installer", |
Joshua Pawlicki | e7e42ef | 2021-11-10 00:19:19 | [diff] [blame] | 949 | "//chrome/updater/win:updater_zip", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 950 | "//components/policy:pack_policy_templates", |
Samuel Huang | 577ef6c | 2018-03-13 18:19:34 | [diff] [blame] | 951 | "//components/zucchini", |
Will Harris | 62dfa04 | 2022-11-16 00:54:21 | [diff] [blame] | 952 | "//components/zucchini:zucchini64", |
Koji Ishii | 4adc9c07 | 2020-09-07 04:03:43 | [diff] [blame] | 953 | "//third_party/hyphenation-patterns", |
holte | b87f01f5 | 2017-04-10 20:45:53 | [diff] [blame] | 954 | "//tools/metrics:metrics_metadata", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 955 | ] |
| 956 | |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 957 | if (is_chrome_branded) { |
| 958 | deps += [ "//remoting/host:remoting_host_installation" ] |
| 959 | } |
Jesse McKenna | c4445a2 | 2024-05-31 23:36:22 | [diff] [blame] | 960 | if (enable_platform_experience) { |
| 961 | deps += [ |
| 962 | "//chrome/browser/platform_experience/win:platform_experience_helper", |
| 963 | ] |
| 964 | } |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 965 | } |
| 966 | |
| 967 | group("chrome_official_builder") { |
| 968 | testonly = true |
| 969 | |
| 970 | deps = [ |
Xinan Lin | 4df5e82 | 2023-06-28 18:54:58 | [diff] [blame] | 971 | ":blink_wpt_tests", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 972 | ":chrome_official_builder_no_unittests", |
| 973 | "//base:base_unittests", |
| 974 | "//chrome/test:browser_tests", |
Xinan Lin | 4df5e82 | 2023-06-28 18:54:58 | [diff] [blame] | 975 | "//chrome/test:interactive_ui_tests", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 976 | "//ipc:ipc_tests", |
| 977 | "//media:media_unittests", |
| 978 | "//media/midi:midi_unittests", |
| 979 | "//net:net_unittests", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 980 | "//sql:sql_unittests", |
danakj | 7b17414 | 2024-07-03 17:00:17 | [diff] [blame] | 981 | "//third_party/breakpad:symupload", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 982 | "//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öttsches | 1716cf9 | 2024-09-03 17:32:39 | [diff] [blame] | 988 | |
| 989 | if (enable_printing || enable_printing_tests) { |
| 990 | deps += [ "//printing:printing_unittests" ] |
| 991 | } |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 992 | } |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 993 | } |
| 994 | |
Yuta Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 995 | if (is_chromeos) { |
Ben Pastene | bbb9bf14 | 2020-03-30 17:51:14 | [diff] [blame] | 996 | # This group is used to collect all targets used when verifying a new version |
| 997 | # of Chrome for Chrome OS. |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 998 | group("chromiumos_preflight") { |
| 999 | testonly = true |
Ben Pastene | 3ea51791 | 2020-07-02 00:20:42 | [diff] [blame] | 1000 | data_deps = [ |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 1001 | "//chrome", |
Vladimir Nechaev | 83555c0 | 2022-11-04 05:26:41 | [diff] [blame] | 1002 | "//chrome/test/chromedriver:chromedriver_server", |
Wei Lee | 01d63ef | 2019-05-09 09:24:50 | [diff] [blame] | 1003 | "//components/chromeos_camera:jpeg_decode_accelerator_unittest", |
Jim Shargo | 906dbce | 2021-10-14 18:48:46 | [diff] [blame] | 1004 | "//components/exo/wayland:wayland_client_integration_tests", |
Ben Pastene | bbb9bf14 | 2020-03-30 17:51:14 | [diff] [blame] | 1005 | "//components/exo/wayland:wayland_client_perftests", |
Lucas Berthou | 8841d627 | 2021-02-24 20:28:50 | [diff] [blame] | 1006 | "//components/exo/wayland:wayland_client_tests", |
Femi Adegunloye | 6a953a5 | 2023-02-07 19:33:53 | [diff] [blame] | 1007 | "//components/exo/wayland:wayland_hdr_client", |
Mohamed Omar | 42fe587 | 2022-08-10 17:25:53 | [diff] [blame] | 1008 | "//components/policy/test_support:fake_dmserver", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 1009 | "//media:media_unittests", |
Ben Pastene | bbb9bf14 | 2020-03-30 17:51:14 | [diff] [blame] | 1010 | "//media/capture:capture_unittests", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 1011 | "//sandbox/linux:chrome_sandbox", |
Henrique Nakashima | 87b6d8b | 2022-07-13 13:59:04 | [diff] [blame] | 1012 | "//sandbox/linux:sandbox_linux_unittests", |
Chu-Hsuan Yang | 98ad7f9 | 2024-06-27 05:15:34 | [diff] [blame] | 1013 | "//services/screen_ai:screen_ai_ocr_perf_test", |
danakj | 7b17414 | 2024-07-03 17:00:17 | [diff] [blame] | 1014 | "//third_party/breakpad:minidump_stackwalk($host_system_allocator_toolchain)", |
Austin Eng | bab1a5d | 2022-02-10 17:35:10 | [diff] [blame] | 1015 | "//third_party/dawn/src/dawn/tests:dawn_end2end_tests", |
| 1016 | "//third_party/dawn/src/dawn/tests:dawn_unittests", |
Jim Shargo | c84cb58 | 2022-04-28 17:10:57 | [diff] [blame] | 1017 | "//ui/ozone:ozone_integration_tests", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 1018 | |
| 1019 | # Blocked on https://github.com/catapult-project/catapult/issues/2297 |
| 1020 | #"//third_party/catapult/telemetry:bitmaptools", |
| 1021 | "//tools/perf/clear_system_cache", |
Xiyuan Xia | 93b801e | 2023-07-01 17:28:46 | [diff] [blame] | 1022 | "//ui/ozone/gl:ozone_gl_unittests", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 1023 | ] |
Alexandre Courbot | 8ad2427d | 2017-08-25 14:04:55 | [diff] [blame] | 1024 | |
Alexandre Courbot | 8ad2427d | 2017-08-25 14:04:55 | [diff] [blame] | 1025 | if (use_v4l2_codec || use_vaapi) { |
Ben Pastene | 3ea51791 | 2020-07-02 00:20:42 | [diff] [blame] | 1026 | data_deps += [ |
Wei Lee | 01d63ef | 2019-05-09 09:24:50 | [diff] [blame] | 1027 | "//components/chromeos_camera:jpeg_encode_accelerator_unittest", |
Collin Baker | 7ce81ea | 2023-03-30 19:35:45 | [diff] [blame] | 1028 | "//media/gpu/chromeos:image_processor_test", |
Miguel Casas | adc54be | 2023-03-27 18:20:44 | [diff] [blame] | 1029 | "//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 Courbot | 8ad2427d | 2017-08-25 14:04:55 | [diff] [blame] | 1033 | ] |
Ben Pastene | bbb9bf14 | 2020-03-30 17:51:14 | [diff] [blame] | 1034 | if (use_vaapi) { |
Jao-ke Chin-Lee | 994de27 | 2020-12-28 20:05:08 | [diff] [blame] | 1035 | data_deps += [ |
| 1036 | "//media/gpu/vaapi:decode_test", |
| 1037 | "//media/gpu/vaapi:vaapi_unittest", |
Grayson LaFleur | 5e22483 | 2022-12-16 04:30:13 | [diff] [blame] | 1038 | "//media/gpu/vaapi/test/fake_libva_driver:fake_libva_driver_unittest", |
Jao-ke Chin-Lee | 994de27 | 2020-12-28 20:05:08 | [diff] [blame] | 1039 | ] |
Ben Pastene | bbb9bf14 | 2020-03-30 17:51:14 | [diff] [blame] | 1040 | } |
Steve Cho | 2ac5f2d | 2022-02-04 17:15:42 | [diff] [blame] | 1041 | if (use_v4l2_codec) { |
Steve Cho | 9bf4781 | 2023-05-17 19:02:58 | [diff] [blame] | 1042 | data_deps += [ |
Bijan Choobineh | e2113a1 | 2023-06-13 17:55:17 | [diff] [blame] | 1043 | "//media/gpu/chromeos:image_processor_perf_test", |
Steve Cho | 9bf4781 | 2023-05-17 19:02:58 | [diff] [blame] | 1044 | "//media/gpu/v4l2:v4l2_stateless_decoder", |
| 1045 | "//media/gpu/v4l2:v4l2_unittest", |
| 1046 | ] |
Steve Cho | 2ac5f2d | 2022-02-04 17:15:42 | [diff] [blame] | 1047 | } |
Alexandre Courbot | 8ad2427d | 2017-08-25 14:04:55 | [diff] [blame] | 1048 | } |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 1049 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 1050 | } |
| 1051 | |
Gyuyoung Kim | 13603829 | 2023-09-01 01:32:34 | [diff] [blame] | 1052 | if (use_blink && !is_cronet_build) { |
Vladimir Nechaev | eb26129 | 2022-11-18 06:18:05 | [diff] [blame] | 1053 | group("chromedriver_group") { |
David Dorwin | 77671222 | 2022-04-13 23:01:54 | [diff] [blame] | 1054 | testonly = true |
| 1055 | |
| 1056 | if (is_fuchsia || is_android) { |
Ryan Keane | a67d802 | 2022-06-18 00:20:32 | [diff] [blame] | 1057 | # On Fuchsia and non-Cast Android, ChromeDriver runs on the host, not the |
| 1058 | # device. |
| 1059 | if (!is_cast_android) { |
Vladimir Nechaev | 83555c0 | 2022-11-04 05:26:41 | [diff] [blame] | 1060 | deps = [ |
| 1061 | "//chrome/test/chromedriver:chromedriver_server($host_toolchain)", |
| 1062 | ] |
Ryan Keane | a67d802 | 2022-06-18 00:20:32 | [diff] [blame] | 1063 | } |
| 1064 | if (is_android && !is_cast_android) { |
| 1065 | deps += [ "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk" ] |
David Dorwin | 77671222 | 2022-04-13 23:01:54 | [diff] [blame] | 1066 | } |
Gyuyoung Kim | 13603829 | 2023-09-01 01:32:34 | [diff] [blame] | 1067 | } else if (!is_castos && !is_ios) { |
David Dorwin | 77671222 | 2022-04-13 23:01:54 | [diff] [blame] | 1068 | deps = [ |
Vladimir Nechaev | 83555c0 | 2022-11-04 05:26:41 | [diff] [blame] | 1069 | "//chrome/test/chromedriver:chromedriver_server", |
David Dorwin | 77671222 | 2022-04-13 23:01:54 | [diff] [blame] | 1070 | "//chrome/test/chromedriver:chromedriver_unittests", |
Vladimir Nechaev | c672deb | 2024-06-07 14:53:05 | [diff] [blame] | 1071 | "//chrome/test/chromedriver:copy_license", |
| 1072 | "//chrome/test/chromedriver:generate_chromedriver_notices", |
David Dorwin | 77671222 | 2022-04-13 23:01:54 | [diff] [blame] | 1073 | ] |
| 1074 | } |
| 1075 | } |
| 1076 | |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 1077 | # This group includes all of the targets needed to build and test Blink, |
Giovanni Ortuño Urquidi | e7f98f8 | 2019-10-29 00:26:59 | [diff] [blame] | 1078 | # 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. |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 1082 | group("blink_tests") { |
| 1083 | testonly = true |
| 1084 | |
| 1085 | deps = [ |
Kent Tamura | ef54e40 | 2019-02-14 07:18:36 | [diff] [blame] | 1086 | ":blink_web_tests", |
Weizhong Xia | 8b78642 | 2022-06-23 14:46:51 | [diff] [blame] | 1087 | ":blink_wpt_tests", |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 1088 | "//third_party/blink/public:all_blink", |
tansell | 88df4259 | 2016-11-15 07:22:59 | [diff] [blame] | 1089 | ] |
Weizhong Xia | 0895abfa | 2025-01-08 23:55:38 | [diff] [blame] | 1090 | |
Yuta Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 1091 | if (!is_chromeos && !is_ios && !is_fuchsia && !is_android && !is_castos) { |
Weizhong Xia | 0895abfa | 2025-01-08 23:55:38 | [diff] [blame] | 1092 | deps += [ |
| 1093 | ":chrome_wpt_tests", |
| 1094 | ":headless_shell_wpt", |
| 1095 | ] |
| 1096 | } |
tansell | 88df4259 | 2016-11-15 07:22:59 | [diff] [blame] | 1097 | } |
| 1098 | |
Jonathan Lee | 133d8d3 | 2024-09-03 17:55:44 | [diff] [blame] | 1099 | # 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 Pastene | 8661004b | 2024-11-13 18:36:42 | [diff] [blame] | 1104 | "--build-directory", |
| 1105 | "@WrappedPath(.)", |
Jonathan Lee | 133d8d3 | 2024-09-03 17:55:44 | [diff] [blame] | 1106 | ] |
| 1107 | if (is_debug) { |
| 1108 | _common_web_test_options += [ "--debug" ] |
| 1109 | } else { |
| 1110 | _common_web_test_options += [ "--release" ] |
| 1111 | } |
Jonathan Lee | f4865a1 | 2024-09-03 19:51:05 | [diff] [blame] | 1112 | 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 Sung | d75ea333 | 2024-12-05 18:45:23 | [diff] [blame] | 1121 | if (is_chrome_for_testing) { |
| 1122 | _common_web_test_options += [ |
| 1123 | "--additional-expectations", |
| 1124 | "@WrappedPath(" + |
Weizhong Xia | d51f8404 | 2025-04-04 01:53:43 | [diff] [blame] | 1125 | rebase_path("//third_party/blink/web_tests/CfTTestExpectations", |
An Sung | d75ea333 | 2024-12-05 18:45:23 | [diff] [blame] | 1126 | root_out_dir) + ")", |
| 1127 | ] |
| 1128 | } |
Jonathan Lee | f4865a1 | 2024-09-03 19:51:05 | [diff] [blame] | 1129 | 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 Lee | 133d8d3 | 2024-09-03 17:55:44 | [diff] [blame] | 1138 | if (is_fuchsia) { |
| 1139 | _common_web_test_options += [ |
| 1140 | "--out-dir", |
| 1141 | "@WrappedPath(.)", |
Ben Pastene | ea81579 | 2024-08-23 15:47:47 | [diff] [blame] | 1142 | ] |
Jonathan Lee | 133d8d3 | 2024-09-03 17:55:44 | [diff] [blame] | 1143 | } |
| 1144 | |
Yuta Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 1145 | if (!is_chromeos && !is_ios && !is_fuchsia && !is_android && !is_castos) { |
Weizhong Xia | 0895abfa | 2025-01-08 23:55:38 | [diff] [blame] | 1146 | # https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/run_web_platform_tests.md |
Weizhong Xia | 711d3e6 | 2023-09-11 18:04:35 | [diff] [blame] | 1147 | script_test("chrome_wpt_tests") { |
Nihar Damarasingu | 509ce0c | 2022-09-01 14:18:20 | [diff] [blame] | 1148 | script = "//third_party/blink/tools/run_wpt_tests.py" |
Jonathan Lee | d6f15c94 | 2025-05-28 00:27:02 | [diff] [blame] | 1149 | args = _common_web_test_options + [ |
| 1150 | "--product=chrome", |
| 1151 | "--verbose", |
| 1152 | ] |
Weizhong Xia | 63563135 | 2023-12-01 21:28:35 | [diff] [blame] | 1153 | if (dcheck_always_on) { |
| 1154 | args += [ "--timeout-multiplier=2" ] |
| 1155 | } else { |
| 1156 | args += [ "--timeout-multiplier=1" ] |
| 1157 | } |
Weizhong Xia | 803d9cf | 2024-09-05 05:30:13 | [diff] [blame] | 1158 | if (is_chrome_branded) { |
| 1159 | args += [ |
| 1160 | "--driver-name", |
| 1161 | "Google Chrome", |
| 1162 | ] |
| 1163 | } |
Luke Zielinski | 218ddea3 | 2019-07-15 16:52:24 | [diff] [blame] | 1164 | data_deps = [ |
Jonathan Lee | 943799b | 2023-11-02 00:29:52 | [diff] [blame] | 1165 | ":blink_web_tests_expectations", |
Mike Jackson | 7a4e803 | 2024-01-08 19:41:01 | [diff] [blame] | 1166 | ":blink_web_tests_support_data", |
Luke Zielinski | 218ddea3 | 2019-07-15 16:52:24 | [diff] [blame] | 1167 | "//chrome:chrome", |
Vladimir Nechaev | 83555c0 | 2022-11-04 05:26:41 | [diff] [blame] | 1168 | "//chrome/test/chromedriver:chromedriver_server", |
Luke Zielinski | 57397c7c | 2021-03-04 22:53:51 | [diff] [blame] | 1169 | "//third_party/blink/tools:wpt_tests_isolate", |
Luke Zielinski | 218ddea3 | 2019-07-15 16:52:24 | [diff] [blame] | 1170 | ] |
Luke Zielinski | 218ddea3 | 2019-07-15 16:52:24 | [diff] [blame] | 1171 | } |
Weizhong Xia | 0895abfa | 2025-01-08 23:55:38 | [diff] [blame] | 1172 | |
| 1173 | # https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/run_web_platform_tests.md |
Weizhong Xia | 258547b | 2024-04-17 21:12:53 | [diff] [blame] | 1174 | script_test("headless_shell_wpt") { |
| 1175 | script = "//third_party/blink/tools/run_wpt_tests.py" |
Jonathan Lee | d6f15c94 | 2025-05-28 00:27:02 | [diff] [blame] | 1176 | args = _common_web_test_options + [ |
| 1177 | "--product=headless_shell", |
| 1178 | "--verbose", |
| 1179 | ] |
Weizhong Xia | 258547b | 2024-04-17 21:12:53 | [diff] [blame] | 1180 | data_deps = [ |
| 1181 | ":blink_web_tests_expectations", |
| 1182 | ":blink_web_tests_support_data", |
Weizhong Xia | 258547b | 2024-04-17 21:12:53 | [diff] [blame] | 1183 | "//chrome/test/chromedriver:chromedriver_server", |
Jonathan Lee | 532106f | 2024-06-03 23:40:00 | [diff] [blame] | 1184 | "//headless:headless_shell", |
Weizhong Xia | 258547b | 2024-04-17 21:12:53 | [diff] [blame] | 1185 | "//third_party/blink/tools:wpt_tests_isolate", |
| 1186 | ] |
Jonathan Lee | 532106f | 2024-06-03 23:40:00 | [diff] [blame] | 1187 | if (is_mac || is_linux) { |
| 1188 | data_deps += [ "//third_party/hyphenation-patterns:bundle_hyphen_data" ] |
| 1189 | } |
Weizhong Xia | 258547b | 2024-04-17 21:12:53 | [diff] [blame] | 1190 | } |
kyle Ju | f8cdeac | 2019-02-07 00:10:01 | [diff] [blame] | 1191 | } |
| 1192 | |
Kai Ninomiya | fb9e596 | 2020-03-17 06:11:38 | [diff] [blame] | 1193 | group("blink_web_tests_support_data") { |
John Budorick | 7c8273b | 2019-04-25 15:27:47 | [diff] [blame] | 1194 | testonly = true |
tansell | 88df4259 | 2016-11-15 07:22:59 | [diff] [blame] | 1195 | data_deps = [ |
yzshen | a064699 | 2017-04-02 22:01:27 | [diff] [blame] | 1196 | ":layout_test_data_mojo_bindings", |
Ken Rockot | 86d36046 | 2018-10-24 02:50:09 | [diff] [blame] | 1197 | ":layout_test_data_mojo_bindings_lite", |
tansell | 88df4259 | 2016-11-15 07:22:59 | [diff] [blame] | 1198 | "//content/shell:content_shell", |
Ken Rockot | 3d21f6a | 2020-10-09 03:39:43 | [diff] [blame] | 1199 | "//content/test:mojo_bindings_web_test_mojom_js_data_deps", |
Natalie Chouinard | 3f8829c | 2019-12-17 02:39:20 | [diff] [blame] | 1200 | "//content/test:mojo_web_test_bindings_js_data_deps", |
Reilly Grant | fa93b14 | 2018-02-01 02:13:48 | [diff] [blame] | 1201 | "//device/bluetooth/public/mojom:fake_bluetooth_interfaces_js_data_deps", |
Rafael Cintron | 5b95b8d | 2020-11-04 01:58:10 | [diff] [blame] | 1202 | "//device/vr/public/mojom:vr_service_js_data_deps", |
Christian Fremerey | 65d1f5e | 2018-03-02 23:46:48 | [diff] [blame] | 1203 | "//media/capture/mojom:image_capture_js_data_deps", |
Adithya Srinivasan | 5b82b2e | 2018-12-14 16:08:09 | [diff] [blame] | 1204 | "//media/midi:mojo_js_data_deps", |
Evan Liu | d725228 | 2024-05-16 20:10:32 | [diff] [blame] | 1205 | "//media/mojo/mojom:web_speech_recognition_js_data_deps", |
yzshen | 9e737bf | 2017-06-21 19:38:23 | [diff] [blame] | 1206 | "//mojo/public/interfaces/bindings/tests:test_data_deps", |
Giovanni Ortuño Urquidi | f07d80c | 2019-10-03 07:43:38 | [diff] [blame] | 1207 | "//mojo/public/js/ts/bindings/tests:test_interfaces_js_data_deps", |
Natalie Chouinard | 3f8829c | 2019-12-17 02:39:20 | [diff] [blame] | 1208 | "//mojo/public/mojom/base:base_js_data_deps", |
Ke He | 31d0bb0 | 2018-02-24 07:16:24 | [diff] [blame] | 1209 | "//services/device/public/mojom:generic_sensor_js_data_deps", |
Natalie Chouinard | 3f8829c | 2019-12-17 02:39:20 | [diff] [blame] | 1210 | "//services/device/public/mojom:mojom_js_data_deps", |
Donna Wu | 4dc9df3 | 2019-05-20 03:56:21 | [diff] [blame] | 1211 | "//services/device/public/mojom:usb_js_data_deps", |
Natalie Chouinard | 3f8829c | 2019-12-17 02:39:20 | [diff] [blame] | 1212 | "//services/shape_detection/public/mojom:mojom_js_data_deps", |
Miyoung Shin | 40adbd6 | 2019-07-30 07:33:40 | [diff] [blame] | 1213 | "//skia/public/mojom:mojom_js_data_deps", |
jonross | c1179f2c | 2019-04-23 22:56:15 | [diff] [blame] | 1214 | "//testing/buildbot/filters:blink_web_tests_filter", |
Zhenyao Mo | 5110fce | 2024-08-06 19:18:33 | [diff] [blame] | 1215 | "//third_party/angle:includes", |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 1216 | "//third_party/blink/public:blink_devtools_frontend_resources_files", |
Alex Rudenko | 9d99413 | 2020-06-02 12:37:00 | [diff] [blame] | 1217 | "//third_party/blink/public:blink_devtools_inspector_resources", |
Julie Jeongeun Kim | 4f1b5aa | 2019-05-08 01:32:09 | [diff] [blame] | 1218 | "//third_party/blink/public/mojom:mojom_platform_js_data_deps", |
Kouhei Ueno | a72ecc86 | 2023-07-12 02:26:05 | [diff] [blame] | 1219 | "//third_party/blink/renderer/core:gen_files_for_web_tests", |
Rakib M. Hasan | 995ca2e | 2019-10-14 19:48:40 | [diff] [blame] | 1220 | "//third_party/catapult/third_party/typ", |
Koji Ishii | a507ce8 | 2020-10-20 21:39:45 | [diff] [blame] | 1221 | "//third_party/hyphenation-patterns:test_data", |
agrieve | 993374cf | 2016-04-13 00:05:39 | [diff] [blame] | 1222 | "//tools/imagediff", |
Brian Sheedy | 6bcba67d | 2022-02-23 23:45:11 | [diff] [blame] | 1223 | "//ui/base:goldctl", |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 1224 | ] |
| 1225 | |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 1226 | if (is_android) { |
tansell | 88df4259 | 2016-11-15 07:22:59 | [diff] [blame] | 1227 | data_deps += [ |
Mark Mentovai | ebb9ddd6 | 2017-09-25 17:24:41 | [diff] [blame] | 1228 | "//third_party/breakpad:breakpad_unittests", |
danakj | 7b17414 | 2024-07-03 17:00:17 | [diff] [blame] | 1229 | "//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 Mentovai | ebb9ddd6 | 2017-09-25 17:24:41 | [diff] [blame] | 1234 | "//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", |
ojan | 94989c7 | 2015-07-17 21:56:42 | [diff] [blame] | 1239 | ] |
Peter Kotwicz | deb8c9fda | 2020-07-03 23:34:09 | [diff] [blame] | 1240 | } else { |
danakj | 89f4708 | 2020-09-02 17:53:43 | [diff] [blame] | 1241 | data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ] |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 1242 | } |
| 1243 | |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 1244 | if (!is_win && !is_android) { |
danakj | 7b17414 | 2024-07-03 17:00:17 | [diff] [blame] | 1245 | # 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" ] |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 1249 | } |
| 1250 | |
| 1251 | if (is_mac) { |
danakj | 7b17414 | 2024-07-03 17:00:17 | [diff] [blame] | 1252 | # 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" ] |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 1256 | } |
| 1257 | |
Sean McAllister | deaa740 | 2020-07-31 04:42:54 | [diff] [blame] | 1258 | if (is_linux || is_chromeos) { |
danakj | 7b17414 | 2024-07-03 17:00:17 | [diff] [blame] | 1259 | # 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" ] |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 1263 | } |
qyearsley | 165a17a8 | 2016-08-01 17:58:50 | [diff] [blame] | 1264 | |
Sergey Ulanov | daa25ebc | 2018-01-02 18:17:17 | [diff] [blame] | 1265 | if (is_fuchsia) { |
Kevin Marshall | 5fadadd | 2021-10-16 00:08:25 | [diff] [blame] | 1266 | 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 Ulanov | daa25ebc | 2018-01-02 18:17:17 | [diff] [blame] | 1272 | } |
| 1273 | |
qyearsley | 165a17a8 | 2016-08-01 17:58:50 | [diff] [blame] | 1274 | data = [ |
Brian Sheedy | 6bcba67d | 2022-02-23 23:45:11 | [diff] [blame] | 1275 | "//build/skia_gold_common/", |
Austin Eng | 11eba3d | 2020-10-01 15:08:19 | [diff] [blame] | 1276 | "//testing/scripts/common.py", |
| 1277 | "//testing/scripts/run_isolated_script_test.py", |
| 1278 | "//testing/xvfb.py", |
Kent Tamura | c1e4c41 | 2018-04-19 02:01:36 | [diff] [blame] | 1279 | "//third_party/blink/tools/", |
Weizhong Xia | cf53fb4 | 2024-10-12 03:50:42 | [diff] [blame] | 1280 | "//third_party/blink/web_tests/external/wpt/.config.json", |
Kai Ninomiya | fb9e596 | 2020-03-17 06:11:38 | [diff] [blame] | 1281 | "//third_party/blink/web_tests/resources/", |
An Sung | 65d9eab | 2023-07-26 01:38:43 | [diff] [blame] | 1282 | "//third_party/blink/web_tests/TestLists/", |
Keita Suzuki | 9ff17d4 | 2020-03-10 06:19:51 | [diff] [blame] | 1283 | "//third_party/pywebsocket3/src/mod_pywebsocket/", |
Kent Tamura | 5a9c7e4 | 2020-06-18 10:38:14 | [diff] [blame] | 1284 | "//third_party/test_fonts/test_fonts/", |
Stephen McGruer | e934d52e | 2021-01-27 22:26:10 | [diff] [blame] | 1285 | "//third_party/wpt_tools/", |
qyearsley | 165a17a8 | 2016-08-01 17:58:50 | [diff] [blame] | 1286 | ] |
tansell | 0e6baaf2 | 2017-02-16 09:14:53 | [diff] [blame] | 1287 | |
tansell | 820f7df | 2017-02-16 13:59:15 | [diff] [blame] | 1288 | if (is_win) { |
tansell | 1b05bbd | 2017-05-04 09:30:32 | [diff] [blame] | 1289 | data += [ |
| 1290 | "//third_party/apache-win32/", |
Nihar Damarasingu | 591cda3 | 2023-06-01 15:37:25 | [diff] [blame] | 1291 | "//third_party/apache-windows-arm64/", |
Takuto Ikuta | 1623ca3 | 2018-11-12 15:16:08 | [diff] [blame] | 1292 | "//third_party/perl/perl/", |
tansell | 1b05bbd | 2017-05-04 09:30:32 | [diff] [blame] | 1293 | ] |
Scott Violet | 0a4949d3 | 2020-02-11 18:53:03 | [diff] [blame] | 1294 | data_deps += [ "//build/win:copy_cdb_to_output" ] |
tansell | 820f7df | 2017-02-16 13:59:15 | [diff] [blame] | 1295 | } |
| 1296 | |
Gyuyoung Kim | 369e4c4 | 2024-03-23 20:37:01 | [diff] [blame] | 1297 | if (is_mac || (is_ios && target_environment == "simulator")) { |
Nico Weber | 5a0046e | 2022-03-23 20:46:30 | [diff] [blame] | 1298 | data += [ |
| 1299 | "//third_party/apache-mac/", |
| 1300 | "//third_party/apache-mac-arm64/", |
| 1301 | ] |
Weizhong Xia | 05781fc | 2022-03-16 01:05:09 | [diff] [blame] | 1302 | } |
| 1303 | |
Dave Tapuska | 187a43f | 2023-11-28 21:44:47 | [diff] [blame] | 1304 | if (is_linux || is_chromeos || is_fuchsia) { |
Weizhong Xia | a14eaad | 2022-04-01 02:04:44 | [diff] [blame] | 1305 | data += [ "//third_party/apache-linux/" ] |
| 1306 | } |
| 1307 | |
tansell | 0e6baaf2 | 2017-02-16 09:14:53 | [diff] [blame] | 1308 | if (is_android) { |
| 1309 | data += [ |
| 1310 | "//third_party/catapult/", |
| 1311 | "//build/android/", |
| 1312 | ] |
| 1313 | } |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 1314 | } |
yzshen | a064699 | 2017-04-02 22:01:27 | [diff] [blame] | 1315 | |
Dirk Pranke | 67bc5a9d | 2020-10-09 16:33:48 | [diff] [blame] | 1316 | _common_web_test_script = "//testing/scripts/run_isolated_script_test.py" |
| 1317 | |
Chong Gu | 70ee43a1 | 2022-12-08 22:57:37 | [diff] [blame] | 1318 | 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 Lee | 133d8d3 | 2024-09-03 17:55:44 | [diff] [blame] | 1323 | "--platform", |
| 1324 | "fuchsia", |
| 1325 | "--jobs", |
| 1326 | "1", |
Chong Gu | 70ee43a1 | 2022-12-08 22:57:37 | [diff] [blame] | 1327 | ] |
| 1328 | } else { |
Jonathan Lee | 133d8d3 | 2024-09-03 17:55:44 | [diff] [blame] | 1329 | _common_web_test_args = [ "@WrappedPath(" + rebase_path( |
| 1330 | "//third_party/blink/tools/run_web_tests.py", |
| 1331 | root_build_dir) + ")" ] |
Chong Gu | 70ee43a1 | 2022-12-08 22:57:37 | [diff] [blame] | 1332 | } |
Jonathan Lee | 133d8d3 | 2024-09-03 17:55:44 | [diff] [blame] | 1333 | _common_web_test_args += _common_web_test_options |
| 1334 | |
| 1335 | if (!is_debug) { |
Dirk Pranke | f452bb2a | 2020-10-09 22:11:55 | [diff] [blame] | 1336 | if (dcheck_always_on) { |
Weizhong Xia | 91b5336 | 2022-01-05 17:13:35 | [diff] [blame] | 1337 | _common_web_test_args += [ "--timeout-ms=12000" ] |
Michael Achenbach | 62f72d6 | 2024-06-10 06:51:09 | [diff] [blame] | 1338 | } 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 Pranke | f452bb2a | 2020-10-09 22:11:55 | [diff] [blame] | 1341 | } |
Dirk Pranke | 67bc5a9d | 2020-10-09 16:33:48 | [diff] [blame] | 1342 | } |
Michael Achenbach | 62f72d6 | 2024-06-10 06:51:09 | [diff] [blame] | 1343 | |
Dave Tapuska | 37fbd61 | 2023-11-29 18:31:25 | [diff] [blame] | 1344 | if (is_chrome_branded) { |
| 1345 | _common_web_test_args += [ "--chrome-branded" ] |
| 1346 | } |
Dirk Pranke | 67bc5a9d | 2020-10-09 16:33:48 | [diff] [blame] | 1347 | |
| 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 Xia | eaff2f2 | 2022-01-24 18:34:14 | [diff] [blame] | 1358 | "--debug-rwt-logging", |
Dirk Pranke | 67bc5a9d | 2020-10-09 16:33:48 | [diff] [blame] | 1359 | "--clobber-old-results", |
Ben Pastene | 8661004b | 2024-11-13 18:36:42 | [diff] [blame] | 1360 | "--build-directory", |
| 1361 | "@WrappedPath(.)", |
Dirk Pranke | 67bc5a9d | 2020-10-09 16:33:48 | [diff] [blame] | 1362 | ] |
| 1363 | |
John Palmer | 0e0f72bf | 2021-06-07 09:10:20 | [diff] [blame] | 1364 | # https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_tests.md |
Dirk Pranke | 6188075b | 2020-10-01 19:31:28 | [diff] [blame] | 1365 | script_test("blink_web_tests") { |
Dirk Pranke | 67bc5a9d | 2020-10-09 16:33:48 | [diff] [blame] | 1366 | script = _common_web_test_script |
Dirk Pranke | 6188075b | 2020-10-01 19:31:28 | [diff] [blame] | 1367 | |
Dirk Pranke | 67bc5a9d | 2020-10-09 16:33:48 | [diff] [blame] | 1368 | args = _common_web_test_args |
Dirk Pranke | 6188075b | 2020-10-01 19:31:28 | [diff] [blame] | 1369 | |
Jonathan Lee | 784954c | 2023-11-01 22:39:42 | [diff] [blame] | 1370 | data_deps = [ |
| 1371 | ":blink_web_tests_expectations", |
| 1372 | ":blink_web_tests_support_data", |
| 1373 | ] |
Kai Ninomiya | fb9e596 | 2020-03-17 06:11:38 | [diff] [blame] | 1374 | data = [ |
| 1375 | "//third_party/blink/perf_tests/", |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1376 | "//third_party/blink/web_tests/VirtualTestSuites", |
Alastair Donaldson | 308bb21 | 2021-09-14 20:50:27 | [diff] [blame] | 1377 | |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1378 | # === List Test Cases folders here === |
| 1379 | "//third_party/blink/web_tests/accessibility/", |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1380 | "//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 Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1396 | "//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 Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1413 | "//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 Liu | 8646d34 | 2023-09-07 15:52:46 | [diff] [blame] | 1423 | "//third_party/blink/web_tests/performance_timeline/", |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1424 | "//third_party/blink/web_tests/permissionclient/", |
| 1425 | "//third_party/blink/web_tests/plugins/", |
| 1426 | "//third_party/blink/web_tests/pointer-lock/", |
Dave Tapuska | 7459ffa6 | 2023-11-20 18:45:49 | [diff] [blame] | 1427 | "//third_party/blink/web_tests/ppapi/", |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1428 | "//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 Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1436 | "//third_party/blink/web_tests/security/", |
Jiewei Qian | 4db71f4 | 2021-12-09 02:31:07 | [diff] [blame] | 1437 | "//third_party/blink/web_tests/handwriting/", |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1438 | "//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 Levin | 501455e | 2022-11-04 20:04:54 | [diff] [blame] | 1452 | "//third_party/blink/web_tests/view-transition/", |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1453 | "//third_party/blink/web_tests/virtual/", |
| 1454 | "//third_party/blink/web_tests/virtualkeyboard/", |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1455 | "//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 Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1459 | "//third_party/blink/web_tests/xmlviewer/", |
Alastair Donaldson | 308bb21 | 2021-09-14 20:50:27 | [diff] [blame] | 1460 | |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1461 | # === Test Case Folders Ends === |
Kai Ninomiya | fb9e596 | 2020-03-17 06:11:38 | [diff] [blame] | 1462 | ] |
Jonathan Lee | 784954c | 2023-11-01 22:39:42 | [diff] [blame] | 1463 | } |
| 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 Lee | 784954c | 2023-11-01 22:39:42 | [diff] [blame] | 1473 | "//third_party/blink/web_tests/LeakExpectations", |
Jonathan Lee | 784954c | 2023-11-01 22:39:42 | [diff] [blame] | 1474 | "//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 Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1479 | |
Jonathan Lee | f4865a1 | 2024-09-03 19:51:05 | [diff] [blame] | 1480 | if (is_asan) { |
| 1481 | data += [ "//third_party/blink/web_tests/ASANExpectations" ] |
| 1482 | } |
An Sung | d75ea333 | 2024-12-05 18:45:23 | [diff] [blame] | 1483 | if (is_chrome_for_testing) { |
Weizhong Xia | d51f8404 | 2025-04-04 01:53:43 | [diff] [blame] | 1484 | data += [ "//third_party/blink/web_tests/CfTTestExpectations" ] |
An Sung | d75ea333 | 2024-12-05 18:45:23 | [diff] [blame] | 1485 | } |
Jonathan Lee | f4865a1 | 2024-09-03 19:51:05 | [diff] [blame] | 1486 | if (is_msan) { |
| 1487 | data += [ "//third_party/blink/web_tests/MSANExpectations" ] |
| 1488 | } |
| 1489 | |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1490 | if (is_win || is_linux || is_fuchsia) { |
| 1491 | data += [ |
| 1492 | "//third_party/blink/web_tests/platform/win/", |
Weizhong Xia | dfb5304f | 2022-05-12 20:36:26 | [diff] [blame] | 1493 | "//third_party/blink/web_tests/platform/win10/", |
Nihar Damarasingu | a9b1c93 | 2023-06-11 23:55:23 | [diff] [blame] | 1494 | "//third_party/blink/web_tests/platform/win11-arm64/", |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1495 | ] |
| 1496 | if (is_linux || is_fuchsia) { |
| 1497 | data += [ "//third_party/blink/web_tests/platform/linux/" ] |
| 1498 | } |
| 1499 | if (is_fuchsia) { |
Chong Gu | 70ee43a1 | 2022-12-08 22:57:37 | [diff] [blame] | 1500 | data += [ |
| 1501 | "//third_party/blink/web_tests/platform/fuchsia/", |
| 1502 | "$root_gen_dir/package_metadata/content_shell.meta", |
| 1503 | ] |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1504 | } |
| 1505 | } else if (is_mac) { |
| 1506 | data += [ |
| 1507 | "//third_party/blink/web_tests/platform/mac/", |
Nihar Damarasingu | 24703e2 | 2023-02-06 23:39:39 | [diff] [blame] | 1508 | "//third_party/blink/web_tests/platform/mac-mac12/", |
Jonathan Lee | dbea4d4d | 2022-05-25 15:35:09 | [diff] [blame] | 1509 | "//third_party/blink/web_tests/platform/mac-mac12-arm64/", |
An Sung | f33f852 | 2024-03-08 19:12:33 | [diff] [blame] | 1510 | "//third_party/blink/web_tests/platform/mac-mac13/", |
Nihar Damarasingu | 24703e2 | 2023-02-06 23:39:39 | [diff] [blame] | 1511 | "//third_party/blink/web_tests/platform/mac-mac13-arm64/", |
An Sung | 2dca54a | 2024-08-06 20:24:36 | [diff] [blame] | 1512 | "//third_party/blink/web_tests/platform/mac-mac14/", |
An Sung | f33f852 | 2024-03-08 19:12:33 | [diff] [blame] | 1513 | "//third_party/blink/web_tests/platform/mac-mac14-arm64/", |
An Sung | 2dca54a | 2024-08-06 20:24:36 | [diff] [blame] | 1514 | "//third_party/blink/web_tests/platform/mac-mac15-arm64/", |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1515 | ] |
| 1516 | } |
| 1517 | |
Le Hoang Quyen | 400daa8 | 2024-01-07 14:24:12 | [diff] [blame] | 1518 | # flag-specific tests only runs on linux & mac as of now |
| 1519 | if (is_linux || is_mac) { |
Weizhong Xia | 53c49216 | 2021-09-09 17:08:24 | [diff] [blame] | 1520 | 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 Ninomiya | fb9e596 | 2020-03-17 06:11:38 | [diff] [blame] | 1526 | } |
| 1527 | |
Weizhong Xia | 0895abfa | 2025-01-08 23:55:38 | [diff] [blame] | 1528 | # https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/web_tests.md |
Weizhong Xia | 8b78642 | 2022-06-23 14:46:51 | [diff] [blame] | 1529 | script_test("blink_wpt_tests") { |
| 1530 | script = _common_web_test_script |
| 1531 | |
| 1532 | args = _common_web_test_args |
| 1533 | |
Weizhong Xia | 904cdf56 | 2022-08-25 02:00:33 | [diff] [blame] | 1534 | # Use --wpt-only to skip tests under web_tests/virtual/ |
Weizhong Xia | 650ce43 | 2024-08-14 22:08:26 | [diff] [blame] | 1535 | args += [ |
| 1536 | "--wpt-only", |
Jonathan Lee | bf8fd4ee | 2024-09-05 19:24:26 | [diff] [blame] | 1537 | "--inverted-test-launcher-filter-file", |
| 1538 | "@WrappedPath(" + |
| 1539 | rebase_path("//third_party/blink/web_tests/TestLists/chrome.filter", |
| 1540 | root_out_dir) + ")", |
Weizhong Xia | 8957745 | 2025-01-10 04:14:36 | [diff] [blame] | 1541 | "--test-launcher-filter-file", |
Jonathan Lee | bf8fd4ee | 2024-09-05 19:24:26 | [diff] [blame] | 1542 | "@WrappedPath(" + rebase_path( |
Weizhong Xia | 8957745 | 2025-01-10 04:14:36 | [diff] [blame] | 1543 | "//third_party/blink/web_tests/TestLists/content_shell.filter", |
Jonathan Lee | bf8fd4ee | 2024-09-05 19:24:26 | [diff] [blame] | 1544 | root_out_dir) + ")", |
Weizhong Xia | 650ce43 | 2024-08-14 22:08:26 | [diff] [blame] | 1545 | ] |
Weizhong Xia | 904cdf56 | 2022-08-25 02:00:33 | [diff] [blame] | 1546 | |
Jonathan Lee | 784954c | 2023-11-01 22:39:42 | [diff] [blame] | 1547 | data_deps = [ |
| 1548 | ":blink_web_tests_expectations", |
| 1549 | ":blink_web_tests_support_data", |
| 1550 | ] |
Weizhong Xia | 8b78642 | 2022-06-23 14:46:51 | [diff] [blame] | 1551 | data = [ |
| 1552 | "//third_party/blink/perf_tests/", |
Weizhong Xia | 8b78642 | 2022-06-23 14:46:51 | [diff] [blame] | 1553 | "//third_party/blink/web_tests/VirtualTestSuites", |
| 1554 | |
Weizhong Xia | 8b78642 | 2022-06-23 14:46:51 | [diff] [blame] | 1555 | # === 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 Xia | 8b78642 | 2022-06-23 14:46:51 | [diff] [blame] | 1561 | } |
| 1562 | |
Dirk Pranke | 67bc5a9d | 2020-10-09 16:33:48 | [diff] [blame] | 1563 | 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 Eng | 2cddb775 | 2022-06-09 02:40:29 | [diff] [blame] | 1567 | # dependency on the whole web_test directory. |
Dirk Pranke | 67bc5a9d | 2020-10-09 16:33:48 | [diff] [blame] | 1568 | script = _common_web_test_script |
Austin Eng | 4beb5d6 | 2021-03-24 16:29:59 | [diff] [blame] | 1569 | |
Austin Eng | 2cddb775 | 2022-06-09 02:40:29 | [diff] [blame] | 1570 | args = _common_web_test_args |
Austin Eng | 8e638d9 | 2021-04-02 17:08:08 | [diff] [blame] | 1571 | if (is_asan) { |
Weizhong Xia | 91b5336 | 2022-01-05 17:13:35 | [diff] [blame] | 1572 | args += [ "--timeout-ms=30000" ] |
Austin Eng | 8e638d9 | 2021-04-02 17:08:08 | [diff] [blame] | 1573 | } |
Austin Eng | 4beb5d6 | 2021-03-24 16:29:59 | [diff] [blame] | 1574 | args += [ |
Austin Eng | 2cddb775 | 2022-06-09 02:40:29 | [diff] [blame] | 1575 | "--ignore-default-expectations", |
| 1576 | "--additional-expectations", |
Austin Eng | 4beb5d6 | 2021-03-24 16:29:59 | [diff] [blame] | 1577 | "@WrappedPath(../../third_party/blink/web_tests/WebGPUExpectations)", |
shrekshao | 96b18a76 | 2023-03-20 18:28:57 | [diff] [blame] | 1578 | "--isolated-script-test-filter=wpt_internal/webgpu/*", |
Austin Eng | 4beb5d6 | 2021-03-24 16:29:59 | [diff] [blame] | 1579 | ] |
Kai Ninomiya | fb9e596 | 2020-03-17 06:11:38 | [diff] [blame] | 1580 | |
Austin Eng | 32e0703 | 2021-03-18 16:30:10 | [diff] [blame] | 1581 | data_deps = [ |
| 1582 | ":blink_web_tests_support_data", |
| 1583 | "//third_party/webgpu-cts", |
| 1584 | ] |
Kai Ninomiya | fb9e596 | 2020-03-17 06:11:38 | [diff] [blame] | 1585 | data = [ |
Weizhong Xia | d8a6633 | 2022-07-30 00:34:20 | [diff] [blame] | 1586 | "//third_party/blink/web_tests/external/wpt/common/", |
Jean-Philippe Gravel | 0276ab7 | 2025-03-17 23:56:15 | [diff] [blame] | 1587 | "//third_party/blink/web_tests/external/wpt/html/canvas/resources/", |
Weizhong Xia | d8a6633 | 2022-07-30 00:34:20 | [diff] [blame] | 1588 | "//third_party/blink/web_tests/external/wpt/resources/", |
Brian Sheedy | 10ddf0a | 2021-08-16 23:19:07 | [diff] [blame] | 1589 | "//third_party/blink/web_tests/FlagSpecificConfig", |
Weizhong Xia | d8a6633 | 2022-07-30 00:34:20 | [diff] [blame] | 1590 | "//third_party/blink/web_tests/VirtualTestSuites", |
Kai Ninomiya | fb9e596 | 2020-03-17 06:11:38 | [diff] [blame] | 1591 | "//third_party/blink/web_tests/WebGPUExpectations", |
Weizhong Xia | 64ec8c2 | 2022-06-24 03:39:34 | [diff] [blame] | 1592 | "//third_party/blink/web_tests/wpt_internal/", |
Austin Eng | 4beb5d6 | 2021-03-24 16:29:59 | [diff] [blame] | 1593 | "//third_party/webgpu-cts/scripts/", |
Kai Ninomiya | fb9e596 | 2020-03-17 06:11:38 | [diff] [blame] | 1594 | ] |
| 1595 | } |
| 1596 | |
yzshen | a064699 | 2017-04-02 22:01:27 | [diff] [blame] | 1597 | copy("layout_test_data_mojo_bindings") { |
| 1598 | testonly = true |
| 1599 | |
Nico Weber | 77da494 | 2020-01-13 20:13:35 | [diff] [blame] | 1600 | sources = [ "$root_gen_dir/mojo/public/js/mojo_bindings.js" ] |
yzshen | a064699 | 2017-04-02 22:01:27 | [diff] [blame] | 1601 | |
Nico Weber | 77da494 | 2020-01-13 20:13:35 | [diff] [blame] | 1602 | outputs = |
| 1603 | [ "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings.js" ] |
yzshen | a064699 | 2017-04-02 22:01:27 | [diff] [blame] | 1604 | |
Nico Weber | 77da494 | 2020-01-13 20:13:35 | [diff] [blame] | 1605 | deps = [ "//mojo/public/js:bindings" ] |
yzshen | a064699 | 2017-04-02 22:01:27 | [diff] [blame] | 1606 | } |
Dirk Pranke | 43a5c81 | 2017-09-06 03:25:41 | [diff] [blame] | 1607 | |
Ken Rockot | 86d36046 | 2018-10-24 02:50:09 | [diff] [blame] | 1608 | copy("layout_test_data_mojo_bindings_lite") { |
| 1609 | testonly = true |
| 1610 | |
Nico Weber | 77da494 | 2020-01-13 20:13:35 | [diff] [blame] | 1611 | sources = [ "$root_gen_dir/mojo/public/js/mojo_bindings_lite.js" ] |
Ken Rockot | 86d36046 | 2018-10-24 02:50:09 | [diff] [blame] | 1612 | |
| 1613 | outputs = [ |
| 1614 | "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings_lite.js", |
| 1615 | ] |
| 1616 | |
Nico Weber | 77da494 | 2020-01-13 20:13:35 | [diff] [blame] | 1617 | deps = [ "//mojo/public/js:bindings_lite" ] |
Ken Rockot | 86d36046 | 2018-10-24 02:50:09 | [diff] [blame] | 1618 | } |
| 1619 | |
Dirk Pranke | 6188075b | 2020-10-01 19:31:28 | [diff] [blame] | 1620 | script_test("blink_python_tests") { |
| 1621 | script = "//testing/scripts/run_isolated_script_test.py" |
Weizhong Xia | 51f1f69 | 2023-12-05 22:03:33 | [diff] [blame] | 1622 | args = [ |
| 1623 | "@WrappedPath(" + |
| 1624 | rebase_path("//third_party/blink/tools/run_blinkpy_tests.py", |
| 1625 | root_build_dir) + ")", |
| 1626 | "-v", |
| 1627 | "-t", |
| 1628 | ] |
Dirk Pranke | 6188075b | 2020-10-01 19:31:28 | [diff] [blame] | 1629 | |
Dirk Pranke | 43a5c81 | 2017-09-06 03:25:41 | [diff] [blame] | 1630 | data = [ |
Andrew Grieve | 4c4cede | 2020-11-20 22:09:36 | [diff] [blame] | 1631 | # 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 Pranke | 43a5c81 | 2017-09-06 03:25:41 | [diff] [blame] | 1633 | "//build/android/", |
Andrew Grieve | 4c4cede | 2020-11-20 22:09:36 | [diff] [blame] | 1634 | "//build/gn_helpers.py", |
| 1635 | "//build/config/gclient_args.gni", |
Brian Sheedy | 6bcba67d | 2022-02-23 23:45:11 | [diff] [blame] | 1636 | "//build/skia_gold_common/", |
Dirk Pranke | 43a5c81 | 2017-09-06 03:25:41 | [diff] [blame] | 1637 | "//components/crash/content/tools/generate_breakpad_symbols.py", |
Brian Sheedy | fe26b94 | 2021-08-05 16:00:50 | [diff] [blame] | 1638 | "//testing/unexpected_passes_common/", |
Preethi Mohan | ca2d0eb | 2022-10-11 19:22:05 | [diff] [blame] | 1639 | "//testing/flake_suppressor_common/", |
Kent Tamura | 968e7691 | 2018-04-17 23:05:57 | [diff] [blame] | 1640 | "//third_party/blink/renderer/bindings/scripts/", |
| 1641 | "//third_party/blink/renderer/build/scripts/", |
Dirk Pranke | 43a5c81 | 2017-09-06 03:25:41 | [diff] [blame] | 1642 | "//third_party/blink/tools/", |
Kent Tamura | 77578cc | 2018-11-25 22:33:43 | [diff] [blame] | 1643 | "//third_party/blink/web_tests/ASANExpectations", |
Weizhong Xia | d51f8404 | 2025-04-04 01:53:43 | [diff] [blame] | 1644 | "//third_party/blink/web_tests/CfTTestExpectations", |
Brian Sheedy | 72b971e | 2023-01-06 16:46:50 | [diff] [blame] | 1645 | "//third_party/blink/web_tests/FlagExpectations/", |
Kent Tamura | 77578cc | 2018-11-25 22:33:43 | [diff] [blame] | 1646 | "//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 Sheedy | 72b971e | 2023-01-06 16:46:50 | [diff] [blame] | 1653 | "//third_party/blink/web_tests/W3CImportExpectations", |
Xianzhu Wang | 9a5ee01 | 2023-06-23 22:02:35 | [diff] [blame] | 1654 | "//third_party/blink/web_tests/paint/invalidation/repaint-overlay/", |
Dirk Pranke | 43a5c81 | 2017-09-06 03:25:41 | [diff] [blame] | 1655 | "//third_party/catapult/common/py_utils/", |
| 1656 | "//third_party/catapult/devil/", |
| 1657 | "//third_party/catapult/dependency_manager/", |
Ned Nguyen | c335c43 | 2018-04-23 01:16:46 | [diff] [blame] | 1658 | "//third_party/catapult/third_party/typ/", |
Josip Sokcevic | afb4a03 | 2023-05-02 23:30:01 | [diff] [blame] | 1659 | "//third_party/depot_tools/pylint-2.7", |
Mike Frysinger | 8f8404b | 2019-08-21 02:20:29 | [diff] [blame] | 1660 | "//third_party/depot_tools/pylint_main.py", |
chromium-autoroll | 70acbe45 | 2025-01-11 05:08:36 | [diff] [blame] | 1661 | "//third_party/depot_tools/pylintrc-2.7", |
Dirk Pranke | 43a5c81 | 2017-09-06 03:25:41 | [diff] [blame] | 1662 | "//third_party/ply/", |
Kent Tamura | 1ede284 | 2023-05-14 23:32:58 | [diff] [blame] | 1663 | "//third_party/pyjson5/", |
Jonathan Lee | ee7f4586 | 2022-08-02 00:13:02 | [diff] [blame] | 1664 | "//third_party/wpt_tools/", |
Dirk Pranke | 43a5c81 | 2017-09-06 03:25:41 | [diff] [blame] | 1665 | "//tools/idl_parser/", |
| 1666 | ] |
Brian Sheedy | 6bcba67d | 2022-02-23 23:45:11 | [diff] [blame] | 1667 | |
Minju Kim | c9e6dd16 | 2023-10-16 23:39:42 | [diff] [blame] | 1668 | if (is_ios) { |
| 1669 | data += [ "//third_party/blink/web_tests/IOSTestExpectations" ] |
| 1670 | } |
| 1671 | |
Brian Sheedy | 6bcba67d | 2022-02-23 23:45:11 | [diff] [blame] | 1672 | data_deps = [ "//ui/base:goldctl" ] |
Dirk Pranke | 43a5c81 | 2017-09-06 03:25:41 | [diff] [blame] | 1673 | } |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 1674 | } |
| 1675 | |
Will Cassella | 857c8d8 | 2022-04-12 15:01:05 | [diff] [blame] | 1676 | # TODO(cassew): Add more OS's that don't support x86. |
| 1677 | is_valid_x86_target = |
| 1678 | target_os != "ios" && target_os != "mac" && |
| 1679 | (target_os != "linux" || use_libfuzzer || !build_with_chromium) |
Michael Achenbach | c427396 | 2022-06-27 09:12:51 | [diff] [blame] | 1680 | |
| 1681 | # Note: v8_target_cpu == arm allows using the V8 arm simulator on x86 for fuzzing. |
Will Cassella | 857c8d8 | 2022-04-12 15:01:05 | [diff] [blame] | 1682 | assert( |
Michael Achenbach | 1a796101 | 2022-06-27 11:19:00 | [diff] [blame] | 1683 | is_valid_x86_target || target_cpu != "x86" || v8_target_cpu == "arm", |
Will Cassella | 857c8d8 | 2022-04-12 15:01:05 | [diff] [blame] | 1684 | "'target_cpu=x86' is not supported for 'target_os=$target_os'. Consider omitting 'target_cpu' (default) or using 'target_cpu=x64' instead.") |
| 1685 | |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1686 | group("chromium_builder_perf") { |
| 1687 | testonly = true |
| 1688 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 1689 | if (!is_ios && !is_android && !is_castos && !is_cronet_build) { |
malets | 6b706240 | 2016-09-15 08:14:26 | [diff] [blame] | 1690 | data_deps = [ |
kraynov | c079758 | 2016-10-25 16:45:06 | [diff] [blame] | 1691 | "//components/tracing:tracing_perftests", |
Antoine Labour | c6ade25 | 2017-10-19 01:01:16 | [diff] [blame] | 1692 | "//gpu:command_buffer_perftests", |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1693 | "//gpu:gpu_perftests", |
| 1694 | "//media:media_perftests", |
kbr | 1e58e78 | 2016-05-27 17:21:19 | [diff] [blame] | 1695 | "//tools/perf/chrome_telemetry_build:telemetry_chrome_test", |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1696 | ] |
| 1697 | |
Zijie He | d995cb0 | 2023-12-14 19:42:48 | [diff] [blame] | 1698 | if (!is_fuchsia) { |
| 1699 | data_deps += [ |
| 1700 | "//chrome/test:load_library_perf_tests", |
| 1701 | "//chrome/test:performance_test_suite", |
| 1702 | ] |
| 1703 | } |
| 1704 | |
Yuta Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 1705 | if (!is_chromeos && !is_fuchsia) { |
malets | 6b706240 | 2016-09-15 08:14:26 | [diff] [blame] | 1706 | data_deps += [ "//chrome/test:performance_browser_tests" ] |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1707 | } |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1708 | |
Ryan Keane | a67d802 | 2022-06-18 00:20:32 | [diff] [blame] | 1709 | if (!is_win) { |
danakj | 7b17414 | 2024-07-03 17:00:17 | [diff] [blame] | 1710 | data_deps += [ "//third_party/breakpad:minidump_stackwalk($host_system_allocator_toolchain)" ] |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1711 | } |
Ryan Keane | a67d802 | 2022-06-18 00:20:32 | [diff] [blame] | 1712 | } |
| 1713 | |
Georg Neis | a324c50 | 2025-03-03 06:04:54 | [diff] [blame] | 1714 | if (is_linux && !is_castos) { |
Ryan Keane | a67d802 | 2022-06-18 00:20:32 | [diff] [blame] | 1715 | 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 Novikov | 8a6e635 | 2017-11-11 02:00:40 | [diff] [blame] | 1720 | } |
David Dorwin | 0b13217 | 2022-03-30 04:56:11 | [diff] [blame] | 1721 | |
Ryan Keane | a67d802 | 2022-06-18 00:20:32 | [diff] [blame] | 1722 | 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 | } |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1732 | } |
agrieve | 017b91f | 2016-02-29 20:15:06 | [diff] [blame] | 1733 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 1734 | if (!is_ios && !is_android && !is_castos && !is_cronet_build) { |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1735 | group("chromium_builder_asan") { |
| 1736 | testonly = true |
| 1737 | |
| 1738 | deps = [ |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1739 | "//content/shell:content_shell", |
Adrian Taylor | e628843 | 2021-09-09 22:59:50 | [diff] [blame] | 1740 | "//third_party/blink/public/mojom:mojom_modules_js", |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1741 | "//v8:d8", |
| 1742 | ] |
Zijie He | d995cb0 | 2023-12-14 19:42:48 | [diff] [blame] | 1743 | if (!is_fuchsia) { |
| 1744 | deps += [ "//chrome:chrome" ] |
| 1745 | } |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1746 | if (!is_win) { |
Eric Orth | dd5b863 | 2020-11-13 02:59:42 | [diff] [blame] | 1747 | deps += [ "//skia:filter_fuzz_stub" ] |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1748 | } |
Yuta Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 1749 | if (!is_chromeos) { |
Lei Zhang | e6d4106f | 2024-02-20 22:44:58 | [diff] [blame] | 1750 | deps += [ "//v8:v8_shell($v8_snapshot_toolchain)" ] |
| 1751 | if (enable_pdf) { |
Lei Zhang | 2c2fc39 | 2024-05-09 17:21:12 | [diff] [blame] | 1752 | deps += [ "//third_party/pdfium/testing:pdfium_test" ] |
Lei Zhang | e6d4106f | 2024-02-20 22:44:58 | [diff] [blame] | 1753 | } |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1754 | } |
Max Moroz | 109e76b | 2020-02-10 17:19:52 | [diff] [blame] | 1755 | |
Alastair Donaldson | 308bb21 | 2021-09-14 20:50:27 | [diff] [blame] | 1756 | if (build_dawn_tests) { |
Ben Clayton | 3b40f9b | 2023-10-21 00:16:56 | [diff] [blame] | 1757 | deps += [ "//third_party/dawn/src/tint:fuzzers" ] |
Alastair Donaldson | 308bb21 | 2021-09-14 20:50:27 | [diff] [blame] | 1758 | } |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1759 | } |
| 1760 | } |
| 1761 | |
Stefano Duo | 1a1fcca | 2023-04-03 09:06:37 | [diff] [blame] | 1762 | if (is_android && !is_cronet_build) { |
agrieve | 95ba444 | 2016-04-25 15:47:13 | [diff] [blame] | 1763 | 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 Hijikata | 7128f082 | 2025-03-06 05:44:15 | [diff] [blame] | 1780 | if (is_chromeos && enable_js_type_check) { |
Christopher Lam | 739a90d | 2018-03-07 03:54:37 | [diff] [blame] | 1781 | group("webui_closure_compile") { |
Trent Apted | 572ba755 | 2018-10-17 00:03:30 | [diff] [blame] | 1782 | testonly = true |
Rebekah Potter | 66968ea | 2023-01-19 23:24:41 | [diff] [blame] | 1783 | 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 Urquidi | 0acdd9a | 2023-05-09 02:22:35 | [diff] [blame] | 1788 | "mojo/public/tools/bindings/generators/js_templates/lite/test:closure_compile_modules", |
Rebekah Potter | 66968ea | 2023-01-19 23:24:41 | [diff] [blame] | 1789 | ] |
Christopher Lam | 739a90d | 2018-03-07 03:54:37 | [diff] [blame] | 1790 | } |
| 1791 | } |
| 1792 | |
Fumitoshi Ukai | 60476b81 | 2025-03-28 01:22:45 | [diff] [blame] | 1793 | if (use_remoteexec && target_os != "chromeos" && rbe_exec_root != "/") { |
Fumitoshi Ukai | 04f6159 | 2025-03-26 17:33:50 | [diff] [blame] | 1794 | # Different nesting levels technically work, but cache hits are basically zero. |
Fumitoshi Ukai | 60476b81 | 2025-03-28 01:22:45 | [diff] [blame] | 1795 | # for `target_os="chromeos" rbe_exec_root="/"` is used for chromeos chroot |
| 1796 | # and it doesn't use 2-level out dir. |
Fumitoshi Ukai | 04f6159 | 2025-03-26 17:33:50 | [diff] [blame] | 1797 | 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. |
| 1804 | assert(current_toolchain == default_toolchain) |
| 1805 | |
Andrew Grieve | febea02 | 2020-08-07 17:17:53 | [diff] [blame] | 1806 | # Write debug logs to gn_logs.txt. |
| 1807 | _lines = [ |
| 1808 | "Generated during 'gn gen' by //BUILD.gn.", |
| 1809 | "", |
| 1810 | ] + build_gn_logs |
| 1811 | |
Andrew Grieve | febea02 | 2020-08-07 17:17:53 | [diff] [blame] | 1812 | write_file("$root_build_dir/gn_logs.txt", _lines) |