blob: b685d47c5f7317afb714dfea68a24274462df6b0 [file] [log] [blame]
Corentin Wallez1a0596d2018-09-10 15:16:10 +02001use_relative_paths = True
Corentin Wallez1a0596d2018-09-10 15:16:10 +02002
Corentin Wallez4e2d7cf2020-07-14 15:53:34 +00003gclient_gn_args_file = 'build/config/gclient_args.gni'
Corentin Wallez4e2d7cf2020-07-14 15:53:34 +00004
Corentin Wallezd5203662022-01-05 15:54:08 +00005gclient_gn_args = [
6 'generate_location_tags',
7]
8
Joanna Wang77ce5592023-08-04 22:26:55 +00009git_dependencies = 'SYNC'
10
Corentin Wallez21a23852018-07-31 18:50:03 +020011vars = {
12 'chromium_git': 'https://chromium.googlesource.com',
Corentin Wallez4c351012018-08-27 10:10:28 +020013 'dawn_git': 'https://dawn.googlesource.com',
Corentin Wallez21a23852018-07-31 18:50:03 +020014 'github_git': 'https://github.com',
Corentin Wallez74cebd62019-11-26 18:21:51 +000015 'swiftshader_git': 'https://swiftshader.googlesource.com',
Corentin Wallez21a23852018-07-31 18:50:03 +020016
Corentin Wallez21a23852018-07-31 18:50:03 +020017 'dawn_standalone': True,
Ben Claytondc890d62021-09-27 22:55:39 +000018 'dawn_node': False, # Also fetches dependencies required for building NodeJS bindings.
Corentin Wallezfa1a5472022-08-02 16:07:45 +000019 'dawn_cmake_version': 'version:2@3.23.3',
Austin Eng4948c812021-10-15 14:28:32 +000020 'dawn_cmake_win32_sha1': 'b106d66bcdc8a71ea2cdf5446091327bfdb1bcd7',
danakj352b6302023-10-19 22:27:14 +000021 'dawn_gn_version': 'git_revision:182a6eb05d15cc76d2302f7928fdb4f645d52c53',
Junji Watanabe4ad7f012022-10-03 02:48:52 +000022 # ninja CIPD package version.
23 # https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja
Corentin Wallez89b78092023-01-27 15:36:18 +000024 'dawn_ninja_version': 'version:2@1.11.1.chromium.6',
Ben Clayton08c4ea32023-10-30 18:46:42 +000025 'dawn_go_version': 'version:2@1.21.3',
Corentin Wallezd5203662022-01-05 15:54:08 +000026
Ben Clayton442f3d02023-11-13 17:56:32 +000027 'node_darwin_arm64_sha': '523ee26632045e664cd0ddd5aef31a378a563025',
28 'node_darwin_x64_sha': 'b930bbfa9f232fe12d5fcf39b38614ae4be99e1a',
29 'node_linux_x64_sha': '179cfb7d2a0d90bbd72271481fd0bda2b297eaa9',
30 'node_win_x64_sha': '9bfd52de11d5bf9645bdabc469bded1da0bf12e7',
Ben Clayton6f8ff742022-03-28 19:55:42 +000031
Corentin Wallezd5203662022-01-05 15:54:08 +000032 # GN variable required by //testing that will be output in the gclient_args.gni
33 'generate_location_tags': False,
dan sinclair93cf3462022-05-16 12:58:24 +000034
35 # Fetch clang-tidy into the same bin/ directory as our clang binary.
36 'checkout_clang_tidy': False,
Ryan Harrison29fc5e92023-07-17 16:12:27 +000037
danakj4090b7d2023-10-24 17:49:01 +000038 # Fetch the rust toolchain.
39 #
40 # Use a custom_vars section to enable it:
41 # "custom_vars": {
42 # "checkout_rust": True,
43 # }
44 'checkout_rust': False,
45
Ryan Harrison29fc5e92023-07-17 16:12:27 +000046 # Fetch configuration files required for the 'use_remoteexec' gn arg
47 'download_remoteexec_cfg': False,
48 # RBE instance to use for running remote builds
Corentin Wallez5905d922023-07-27 21:33:21 +000049 'rbe_instance': 'projects/rbe-chrome-untrusted/instances/default_instance',
Ryan Harrison29fc5e92023-07-17 16:12:27 +000050 # RBE project to download rewrapper config files for. Only needed if
51 # different from the project used in 'rbe_instance'
Corentin Wallez5905d922023-07-27 21:33:21 +000052 'rewrapper_cfg_project': '',
Ryan Harrison29fc5e92023-07-17 16:12:27 +000053 # reclient CIPD package
54 'reclient_package': 'infra/rbe/client/',
55 # reclient CIPD package version
Yuly Novikov27324dd2023-09-22 15:10:33 +000056 'reclient_version': 're_client_version:0.114.2.81e819b-gomaip',
Joanna Wang77ce5592023-08-04 22:26:55 +000057
58 # 'magic' text to tell depot_tools that git submodules should be accepted
59 # but parity with DEPS file is expected.
60 'SUBMODULE_MIGRATION': 'True'
Corentin Wallez21a23852018-07-31 18:50:03 +020061}
62
63deps = {
Corentin Wallez1a0596d2018-09-10 15:16:10 +020064 'buildtools': {
Arthur Sonzognib0e40542023-11-08 17:34:19 +000065 'url': '{chromium_git}/chromium/src/buildtools@48ab3bd053bfe2fef4635d7cb1861f8923167b96',
Corentin Wallez21a23852018-07-31 18:50:03 +020066 'condition': 'dawn_standalone',
67 },
Loko Kung2d988ce2023-05-25 23:28:34 +000068 'third_party/clang-format/script': {
Austin Eng99ad82a2022-07-27 21:57:30 +000069 'url': '{chromium_git}/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@8b525d2747f2584fc35d8c7e612e66f377858df7',
Corentin Wallez60ca94b2021-03-24 16:22:32 +000070 'condition': 'dawn_standalone',
71 },
Corentin Wallez60ca94b2021-03-24 16:22:32 +000072 'buildtools/linux64': {
73 'packages': [{
74 'package': 'gn/gn/linux-amd64',
Corentin Wallez88d5e072021-12-13 15:24:55 +000075 'version': Var('dawn_gn_version'),
Corentin Wallez60ca94b2021-03-24 16:22:32 +000076 }],
77 'dep_type': 'cipd',
78 'condition': 'dawn_standalone and host_os == "linux"',
79 },
80 'buildtools/mac': {
81 'packages': [{
82 'package': 'gn/gn/mac-${{arch}}',
Corentin Wallez88d5e072021-12-13 15:24:55 +000083 'version': Var('dawn_gn_version'),
Corentin Wallez60ca94b2021-03-24 16:22:32 +000084 }],
85 'dep_type': 'cipd',
86 'condition': 'dawn_standalone and host_os == "mac"',
87 },
88 'buildtools/win': {
89 'packages': [{
90 'package': 'gn/gn/windows-amd64',
Corentin Wallez88d5e072021-12-13 15:24:55 +000091 'version': Var('dawn_gn_version'),
Corentin Wallez60ca94b2021-03-24 16:22:32 +000092 }],
93 'dep_type': 'cipd',
94 'condition': 'dawn_standalone and host_os == "win"',
95 },
96
Joanna Wangff5d8b52023-08-02 16:35:08 +000097 'third_party/libc++/src': {
Arthur Sonzognib0e40542023-11-08 17:34:19 +000098 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxx.git@278060665f956b98b54922e3cb5e38b07884ce7d',
Joanna Wange7e54c02023-07-25 17:59:41 +000099 'condition': 'dawn_standalone',
100 },
101
Joanna Wangff5d8b52023-08-02 16:35:08 +0000102 'third_party/libc++abi/src': {
Arthur Sonzognib0e40542023-11-08 17:34:19 +0000103 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxxabi.git@0226cb1cdfe740b173394e1cebbd0dcf293e38ad',
Joanna Wange7e54c02023-07-25 17:59:41 +0000104 'condition': 'dawn_standalone',
105 },
106
danakj4090b7d2023-10-24 17:49:01 +0000107 # Dependencies required to use GN, Clang, and Rust in standalone.
108 # The //build, //tools/clang, and //tools/rust deps should all be updated
109 # in unison, as there are dependencies between them.
110 'build': {
Arthur Sonzognib0e40542023-11-08 17:34:19 +0000111 'url': '{chromium_git}/chromium/src/build@df6338f68f66357d27ea7f0354d50216c8c74473',
Corentin Wallez21a23852018-07-31 18:50:03 +0200112 'condition': 'dawn_standalone',
113 },
danakj4090b7d2023-10-24 17:49:01 +0000114 'tools/clang': {
Arthur Sonzognib0e40542023-11-08 17:34:19 +0000115 'url': '{chromium_git}/chromium/src/tools/clang@419fc5706504be3cc8d17cc61bdc6b45226927e9',
danakj4090b7d2023-10-24 17:49:01 +0000116 'condition': 'dawn_standalone',
117 },
118 'tools/rust': {
Arthur Sonzognib0e40542023-11-08 17:34:19 +0000119 'url': '{chromium_git}/chromium/src/tools/rust@c2a0e44aaa68e02826feea4a4e152bdd8b897266',
danakj4090b7d2023-10-24 17:49:01 +0000120 'condition': 'dawn_standalone and checkout_rust',
121 },
Kai Ninomiyaf526d772020-04-06 22:27:02 +0000122 'tools/clang/dsymutil': {
Corentin Wallez60ca94b2021-03-24 16:22:32 +0000123 'packages': [{
124 'package': 'chromium/llvm-build-tools/dsymutil',
125 'version': 'M56jPzDv1620Rnm__jTMYS62Zi8rxHVq7yw0qeBFEgkC',
126 }],
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000127 'condition': 'dawn_standalone and (checkout_mac or checkout_ios)',
Kai Ninomiyaf526d772020-04-06 22:27:02 +0000128 'dep_type': 'cipd',
129 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200130
Corentin Wallez649e2fe2018-08-03 15:57:43 +0200131 # Testing, GTest and GMock
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200132 'testing': {
Ben Clayton3610fc92023-09-29 12:13:00 +0000133 'url': '{chromium_git}/chromium/src/testing@035a9b18047370df7403758b006e6c9696d6b84d',
Ben Claytonb7bd8d82023-09-28 14:10:51 +0000134 'condition': 'dawn_standalone',
135 },
136 'third_party/libFuzzer/src': {
137 'url': '{chromium_git}/external/github.com/llvm/llvm-project/compiler-rt/lib/fuzzer.git' + '@' + '26cc39e59b2bf5cbc20486296248a842c536878d',
Corentin Wallez21a23852018-07-31 18:50:03 +0200138 'condition': 'dawn_standalone',
139 },
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200140 'third_party/googletest': {
Austin Enga0e96b52023-02-18 00:39:01 +0000141 'url': '{chromium_git}/external/github.com/google/googletest@7a7231c442484be389fdf01594310349ca0e42a8',
Corentin Wallezd5203662022-01-05 15:54:08 +0000142 'condition': 'dawn_standalone',
143 },
144 # This is a dependency of //testing
145 'third_party/catapult': {
Anne Redulla3bcc93f2023-08-09 15:12:58 +0000146 'url': '{chromium_git}/catapult.git@dd218dfd815774289f8a81015f7a3131f72afbde',
Corentin Wallez649e2fe2018-08-03 15:57:43 +0200147 'condition': 'dawn_standalone',
148 },
Austin Eng6a7bba52023-04-17 18:11:51 +0000149 'third_party/google_benchmark/src': {
150 'url': '{chromium_git}/external/github.com/google/benchmark.git' + '@' + 'efc89f0b524780b1994d5dddd83a92718e5be492',
151 'condition': 'dawn_standalone',
152 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200153
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200154 # Jinja2 and MarkupSafe for the code generator
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200155 'third_party/jinja2': {
Anne Redulla3bcc93f2023-08-09 15:12:58 +0000156 'url': '{chromium_git}/chromium/src/third_party/jinja2@515dd10de9bf63040045902a4a310d2ba25213a0',
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200157 'condition': 'dawn_standalone',
158 },
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200159 'third_party/markupsafe': {
Anne Redulla3bcc93f2023-08-09 15:12:58 +0000160 'url': '{chromium_git}/chromium/src/third_party/markupsafe@006709ba3ed87660a17bd4548c45663628f5ed85',
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200161 'condition': 'dawn_standalone',
162 },
163
Corentin Wallez4d7d1692018-08-13 08:23:27 +0200164 # GLFW for tests and samples
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200165 'third_party/glfw': {
Corentin Wallez6903c462022-05-25 17:46:04 +0000166 'url': '{chromium_git}/external/github.com/glfw/glfw@62e175ef9fae75335575964c845a302447c012c7',
Corentin Wallez4d7d1692018-08-13 08:23:27 +0200167 },
168
Stephen White77fcdf72021-01-11 15:52:12 +0000169 'third_party/vulkan_memory_allocator': {
Shahbaz Youssefieaa4e7e2023-07-14 17:17:20 +0000170 'url': '{chromium_git}/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator@e87036508bb156f9986ea959323de1869e328f58',
Stephen White77fcdf72021-01-11 15:52:12 +0000171 'condition': 'dawn_standalone',
172 },
173
174 'third_party/angle': {
Dawn Autoroller85a7c7f2023-12-07 13:52:39 +0000175 'url': '{chromium_git}/angle/angle@e4f1f1e35d40fea295c7249134e4965c5759342f',
Stephen White77fcdf72021-01-11 15:52:12 +0000176 'condition': 'dawn_standalone',
177 },
178
Corentin Wallez74cebd62019-11-26 18:21:51 +0000179 'third_party/swiftshader': {
Dawn Autorollerd08111b2023-12-06 22:25:05 +0000180 'url': '{swiftshader_git}/SwiftShader@77be35e337bb80df52c5ea4dd4cf2d2072abad25',
Corentin Wallez74cebd62019-11-26 18:21:51 +0000181 'condition': 'dawn_standalone',
182 },
183
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000184 'third_party/vulkan-deps': {
dawn-autorollb2111392023-12-07 14:53:54 +0000185 'url': '{chromium_git}/vulkan-deps@fb2389e52832250e05c0a5f08a624e31e6401106',
Corentin Wallez1fdd0592021-04-02 18:04:27 +0000186 'condition': 'dawn_standalone',
Stephen White77fcdf72021-01-11 15:52:12 +0000187 },
188
189 'third_party/zlib': {
Anne Redulla3bcc93f2023-08-09 15:12:58 +0000190 'url': '{chromium_git}/chromium/src/third_party/zlib@526382e41c9c5275dc329db4328b54e4f344a204',
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000191 'condition': 'dawn_standalone',
192 },
Brandon Jonesa04663c2021-09-23 20:36:03 +0000193
194 'third_party/abseil-cpp': {
James Price39bbc582023-08-22 17:59:02 +0000195 'url': '{chromium_git}/chromium/src/third_party/abseil-cpp@4ef9b33175828ea46d091e7e5ec28259d39a8ba5',
Brandon Jonesa04663c2021-09-23 20:36:03 +0000196 'condition': 'dawn_standalone',
197 },
Ben Claytondc890d62021-09-27 22:55:39 +0000198
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000199 'third_party/dxc': {
Dawn Autoroller2b86be72023-12-07 13:12:46 +0000200 'url': '{chromium_git}/external/github.com/microsoft/DirectXShaderCompiler@3f8236e6dd1cba22beac8e93a789fb36ef2ef1c5',
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000201 },
Antonio Maiorano83bdc7f2023-08-21 15:29:35 +0000202
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000203 'third_party/dxheaders': {
204 # The non-Windows build of DXC depends on DirectX-Headers, and at a specific commit (not ToT)
205 'url': '{chromium_git}/external/github.com/microsoft/DirectX-Headers@980971e835876dc0cde415e8f9bc646e64667bf7',
Austin Engc02f1432023-07-05 22:38:39 +0000206 'condition': 'host_os != "win"',
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000207 },
208
Antonio Maiorano83bdc7f2023-08-21 15:29:35 +0000209 'third_party/khronos/OpenGL-Registry': {
210 'url': '{chromium_git}/external/github.com/KhronosGroup/OpenGL-Registry@5bae8738b23d06968e7c3a41308568120943ae77',
211 },
212
213 'third_party/khronos/EGL-Registry': {
214 'url': '{chromium_git}/external/github.com/KhronosGroup/EGL-Registry@7dea2ed79187cd13f76183c4b9100159b9e3e071',
215 },
216
Kai Ninomiya5c780d72022-03-17 21:43:17 +0000217 # WebGPU CTS - not used directly by Dawn, only transitively by Chromium.
218 'third_party/webgpu-cts': {
Dawn Automated Expectationsadfc5902023-12-06 15:46:13 +0000219 'url': '{chromium_git}/external/github.com/gpuweb/cts@6590a34b55bca2cd9bb93a58a1a6a95271f27334',
Kai Ninomiya5c780d72022-03-17 21:43:17 +0000220 'condition': 'build_with_chromium',
221 },
222
Ben Clayton6f8ff742022-03-28 19:55:42 +0000223 # Dependencies required to build / run Dawn NodeJS bindings
Ben Claytondc890d62021-09-27 22:55:39 +0000224 'third_party/node-api-headers': {
225 'url': '{github_git}/nodejs/node-api-headers.git@d68505e4055ecb630e14c26c32e5c2c65e179bba',
226 'condition': 'dawn_node',
227 },
228 'third_party/node-addon-api': {
229 'url': '{github_git}/nodejs/node-addon-api.git@4a3de56c3e4ed0031635a2f642b27efeeed00add',
230 'condition': 'dawn_node',
231 },
232 'third_party/gpuweb': {
François Beaufortcdfcfca2023-11-25 06:05:33 +0000233 'url': '{github_git}/gpuweb/gpuweb.git@a6805d5298c6979392768ed13f442e35b9a35b22',
Ben Claytondc890d62021-09-27 22:55:39 +0000234 'condition': 'dawn_node',
235 },
Austin Eng4948c812021-10-15 14:28:32 +0000236
237 'tools/golang': {
Austin Eng4948c812021-10-15 14:28:32 +0000238 'packages': [{
239 'package': 'infra/3pp/tools/go/${{platform}}',
240 'version': Var('dawn_go_version'),
241 }],
242 'dep_type': 'cipd',
243 },
244
245 'tools/cmake': {
246 'condition': 'dawn_node and (host_os == "mac" or host_os == "linux")',
247 'packages': [{
248 'package': 'infra/3pp/tools/cmake/${{platform}}',
249 'version': Var('dawn_cmake_version'),
250 }],
251 'dep_type': 'cipd',
252 },
Ryan Harrisone87ac762022-04-06 15:37:27 -0400253
Junji Watanabe4ad7f012022-10-03 02:48:52 +0000254 'third_party/ninja': {
255 'packages': [
256 {
257 'package': 'infra/3pp/tools/ninja/${{platform}}',
258 'version': Var('dawn_ninja_version'),
259 }
260 ],
261 'dep_type': 'cipd',
262 },
263
Ryan Harrison29fc5e92023-07-17 16:12:27 +0000264 # RBE dependencies
265 'buildtools/reclient': {
266 'packages': [
267 {
268 'package': Var('reclient_package') + '${{platform}}',
269 'version': Var('reclient_version'),
270 }
271 ],
272 'dep_type': 'cipd',
273 'condition': 'dawn_standalone',
274 },
Ryan Harrison29fc5e92023-07-17 16:12:27 +0000275
Ryan Harrisone87ac762022-04-06 15:37:27 -0400276 # Misc dependencies inherited from Tint
Ryan Harrison3374f432022-03-28 18:01:02 +0000277 'third_party/protobuf': {
Ben Claytonde2686e2023-11-16 12:39:06 +0000278 'url': '{chromium_git}/chromium/src/third_party/protobuf@41759e11ec427e29e1a72b9401d2af3f6e02d839',
279 'condition': 'dawn_standalone',
280 },
281
282 'tools/protoc_wrapper': {
283 'url': '{chromium_git}/chromium/src/tools/protoc_wrapper@b5ea227bd88235ab3ccda964d5f3819c4e2d8032',
Ryan Harrisone87ac762022-04-06 15:37:27 -0400284 'condition': 'dawn_standalone',
Ryan Harrison3374f432022-03-28 18:01:02 +0000285 },
Arthur Sonzogni8b28afe2023-10-12 16:06:04 +0000286
287 # Dependencies for PartitionAlloc.
288 # Doc: https://docs.google.com/document/d/1wz45t0alQthsIU9P7_rQcfQyqnrBMXzrOjSzdQo-V-A
289 'third_party/partition_alloc': {
Arthur Sonzogni58f8ed22023-11-30 09:30:52 +0000290 'url': '{chromium_git}/chromium/src/base/allocator/partition_allocator.git@6f90cb04abb81942abaab7b63d34c02882208172',
Arthur Sonzogni8b28afe2023-10-12 16:06:04 +0000291 'condition': 'dawn_standalone',
292 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200293}
294
295hooks = [
Corentin Wallez21a23852018-07-31 18:50:03 +0200296 # Pull the compilers and system libraries for hermetic builds
297 {
298 'name': 'sysroot_x86',
299 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000300 'condition': 'dawn_standalone and checkout_linux and (checkout_x86 or checkout_x64)',
Corentin Wallezd5203662022-01-05 15:54:08 +0000301 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Corentin Wallez21a23852018-07-31 18:50:03 +0200302 '--arch=x86'],
303 },
304 {
305 'name': 'sysroot_x64',
306 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000307 'condition': 'dawn_standalone and checkout_linux and checkout_x64',
Corentin Wallezd5203662022-01-05 15:54:08 +0000308 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Corentin Wallez21a23852018-07-31 18:50:03 +0200309 '--arch=x64'],
310 },
311 {
Corentin Wallezd4e7f082020-11-17 21:16:31 +0000312 # Update the Mac toolchain if possible, this makes builders use "hermetic XCode" which is
313 # is more consistent (only changes when rolling build/) and is cached.
314 'name': 'mac_toolchain',
315 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000316 'condition': 'dawn_standalone and checkout_mac',
Corentin Wallezd5203662022-01-05 15:54:08 +0000317 'action': ['python3', 'build/mac_toolchain.py'],
Corentin Wallezd4e7f082020-11-17 21:16:31 +0000318 },
319 {
Peng Huang78583a12023-02-10 13:53:31 +0000320 # Case-insensitivity for the Win SDK. Must run before win_toolchain below.
321 'name': 'ciopfs_linux',
322 'pattern': '.',
Peng Huang708a0772023-02-13 11:38:38 +0000323 'condition': 'dawn_standalone and checkout_win and host_os == "linux"',
Peng Huang78583a12023-02-10 13:53:31 +0000324 'action': [ 'download_from_google_storage',
325 '--no_resume',
326 '--no_auth',
327 '--bucket', 'chromium-browser-clang/ciopfs',
328 '-s', 'build/ciopfs.sha1',
329 ]
330 },
331 {
Corentin Wallez682c44a2018-08-13 17:48:16 +0200332 # Update the Windows toolchain if necessary. Must run before 'clang' below.
Corentin Wallez21a23852018-07-31 18:50:03 +0200333 'name': 'win_toolchain',
334 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000335 'condition': 'dawn_standalone and checkout_win',
Corentin Wallezd5203662022-01-05 15:54:08 +0000336 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'],
Corentin Wallez21a23852018-07-31 18:50:03 +0200337 },
338 {
339 # Note: On Win, this should run after win_toolchain, as it may use it.
340 'name': 'clang',
341 'pattern': '.',
Corentin Wallezd5203662022-01-05 15:54:08 +0000342 'action': ['python3', 'tools/clang/scripts/update.py'],
Corentin Wallez21a23852018-07-31 18:50:03 +0200343 'condition': 'dawn_standalone',
344 },
345 {
dan sinclair93cf3462022-05-16 12:58:24 +0000346 # This is also supposed to support the same set of platforms as 'clang'
347 # above. LLVM ToT support isn't provided at the moment.
348 'name': 'clang_tidy',
349 'pattern': '.',
Corentin Wallezc4051b12022-05-17 08:21:02 +0000350 'condition': 'dawn_standalone and checkout_clang_tidy',
dan sinclair93cf3462022-05-16 12:58:24 +0000351 'action': ['python3', 'tools/clang/scripts/update.py',
352 '--package=clang-tidy'],
353 },
354 {
danakj4090b7d2023-10-24 17:49:01 +0000355 'name': 'rust',
356 'pattern': '.',
357 'action': ['python3', 'tools/rust/update_rust.py'],
358 'condition': 'dawn_standalone and checkout_rust',
359 },
360 {
Corentin Wallez21a23852018-07-31 18:50:03 +0200361 # Pull rc binaries using checked-in hashes.
362 'name': 'rc_win',
363 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000364 'condition': 'dawn_standalone and checkout_win and host_os == "win"',
Corentin Wallez21a23852018-07-31 18:50:03 +0200365 'action': [ 'download_from_google_storage',
366 '--no_resume',
367 '--no_auth',
368 '--bucket', 'chromium-browser-clang/rc',
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200369 '-s', 'build/toolchain/win/rc/win/rc.exe.sha1',
Corentin Wallez21a23852018-07-31 18:50:03 +0200370 ],
371 },
Peng Huang78583a12023-02-10 13:53:31 +0000372 {
373 'name': 'rc_linux',
374 'pattern': '.',
Peng Huang708a0772023-02-13 11:38:38 +0000375 'condition': 'dawn_standalone and checkout_win and host_os == "linux"',
Peng Huang78583a12023-02-10 13:53:31 +0000376 'action': [ 'download_from_google_storage',
377 '--no_resume',
378 '--no_auth',
379 '--bucket', 'chromium-browser-clang/rc',
380 '-s', 'build/toolchain/win/rc/linux64/rc.sha1',
Antonio Maioranoef9da422023-09-21 17:53:34 +0000381 ],
382 },
383 {
384 'name': 'rc_mac',
385 'pattern': '.',
386 'condition': 'dawn_standalone and checkout_win and host_os == "mac"',
387 'action': [ 'download_from_google_storage',
388 '--no_resume',
389 '--no_auth',
390 '--bucket', 'chromium-browser-clang/rc',
391 '-s', 'build/toolchain/win/rc/mac/rc.sha1',
392 ],
Peng Huang78583a12023-02-10 13:53:31 +0000393 },
Corentin Wallez131e6192020-11-03 18:18:06 +0000394 # Pull clang-format binaries using checked-in hashes.
395 {
Corentin Wallez51723bd2022-04-07 10:40:46 +0000396 'name': 'clang_format_win',
397 'pattern': '.',
398 'condition': 'dawn_standalone and host_os == "win"',
399 'action': [ 'download_from_google_storage',
400 '--no_resume',
401 '--no_auth',
402 '--bucket', 'chromium-clang-format',
403 '-s', 'buildtools/win/clang-format.exe.sha1',
404 ],
405 },
406 {
Ben Clayton088a6002022-04-06 19:57:42 +0000407 'name': 'clang_format_mac_x64',
Corentin Wallez131e6192020-11-03 18:18:06 +0000408 'pattern': '.',
Ben Clayton088a6002022-04-06 19:57:42 +0000409 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "x64"',
Corentin Wallez131e6192020-11-03 18:18:06 +0000410 'action': [ 'download_from_google_storage',
411 '--no_resume',
412 '--no_auth',
413 '--bucket', 'chromium-clang-format',
Ben Clayton088a6002022-04-06 19:57:42 +0000414 '-s', 'buildtools/mac/clang-format.x64.sha1',
415 '-o', 'buildtools/mac/clang-format',
Corentin Wallez131e6192020-11-03 18:18:06 +0000416 ],
417 },
418 {
Ben Clayton088a6002022-04-06 19:57:42 +0000419 'name': 'clang_format_mac_arm64',
Corentin Wallez131e6192020-11-03 18:18:06 +0000420 'pattern': '.',
Ben Clayton088a6002022-04-06 19:57:42 +0000421 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "arm64"',
Corentin Wallez131e6192020-11-03 18:18:06 +0000422 'action': [ 'download_from_google_storage',
423 '--no_resume',
424 '--no_auth',
425 '--bucket', 'chromium-clang-format',
Ben Clayton088a6002022-04-06 19:57:42 +0000426 '-s', 'buildtools/mac/clang-format.arm64.sha1',
427 '-o', 'buildtools/mac/clang-format',
Corentin Wallez131e6192020-11-03 18:18:06 +0000428 ],
429 },
430 {
431 'name': 'clang_format_linux',
432 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000433 'condition': 'dawn_standalone and host_os == "linux"',
Corentin Wallez131e6192020-11-03 18:18:06 +0000434 'action': [ 'download_from_google_storage',
435 '--no_resume',
436 '--no_auth',
437 '--bucket', 'chromium-clang-format',
438 '-s', 'buildtools/linux64/clang-format.sha1',
439 ],
440 },
Corentin Wallez15d8cb72018-11-19 10:13:31 +0000441 # Update build/util/LASTCHANGE.
442 {
443 'name': 'lastchange',
444 'pattern': '.',
Jiajie Hu2ffc55a2020-07-01 05:08:36 +0000445 'condition': 'dawn_standalone',
Corentin Wallezd5203662022-01-05 15:54:08 +0000446 'action': ['python3', 'build/util/lastchange.py',
Corentin Wallez15d8cb72018-11-19 10:13:31 +0000447 '-o', 'build/util/LASTCHANGE'],
448 },
Austin Eng4948c812021-10-15 14:28:32 +0000449 # TODO(https://crbug.com/1180257): Use CIPD for CMake on Windows.
450 {
451 'name': 'cmake_win32',
452 'pattern': '.',
453 'condition': 'dawn_node and host_os == "win"',
454 'action': [ 'download_from_google_storage',
455 '--no_resume',
456 '--platform=win32',
457 '--no_auth',
458 '--bucket', 'chromium-tools',
459 Var('dawn_cmake_win32_sha1'),
460 '-o', 'tools/cmake-win32.zip'
461 ],
462 },
463 {
464 'name': 'cmake_win32_extract',
465 'pattern': '.',
466 'condition': 'dawn_node and host_os == "win"',
Corentin Wallezd5203662022-01-05 15:54:08 +0000467 'action': [ 'python3',
Austin Eng4948c812021-10-15 14:28:32 +0000468 'scripts/extract.py',
469 'tools/cmake-win32.zip',
470 'tools/cmake-win32/',
471 ],
472 },
Ben Clayton6f8ff742022-03-28 19:55:42 +0000473
474 # Node binaries, when dawn_node is enabled
475 {
476 'name': 'node_linux64',
477 'pattern': '.',
478 'condition': 'dawn_node and host_os == "linux"',
479 'action': [ 'download_from_google_storage',
480 '--no_resume',
481 '--extract',
482 '--no_auth',
Ben Clayton442f3d02023-11-13 17:56:32 +0000483 '--bucket', 'chromium-nodejs/20.9.0',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000484 Var('node_linux_x64_sha'),
485 '-o', 'third_party/node/node-linux-x64.tar.gz',
486 ],
487 },
488 {
489 'name': 'node_mac',
490 'pattern': '.',
491 'condition': 'dawn_node and host_os == "mac"',
492 'action': [ 'download_from_google_storage',
493 '--no_resume',
494 '--extract',
495 '--no_auth',
Ben Clayton442f3d02023-11-13 17:56:32 +0000496 '--bucket', 'chromium-nodejs/20.9.0',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000497 Var('node_darwin_x64_sha'),
498 '-o', 'third_party/node/node-darwin-x64.tar.gz',
499 ],
500 },
501 {
502 'name': 'node_mac_arm64',
503 'pattern': '.',
504 'condition': 'dawn_node and host_os == "mac"',
505 'action': [ 'download_from_google_storage',
506 '--no_resume',
507 '--extract',
508 '--no_auth',
Ben Clayton442f3d02023-11-13 17:56:32 +0000509 '--bucket', 'chromium-nodejs/20.9.0',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000510 Var('node_darwin_arm64_sha'),
511 '-o', 'third_party/node/node-darwin-arm64.tar.gz',
512 ],
513 },
514 {
515 'name': 'node_win',
516 'pattern': '.',
517 'condition': 'dawn_node and host_os == "win"',
518 'action': [ 'download_from_google_storage',
519 '--no_resume',
520 '--no_auth',
Ben Clayton442f3d02023-11-13 17:56:32 +0000521 '--bucket', 'chromium-nodejs/20.9.0',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000522 Var('node_win_x64_sha'),
523 '-o', 'third_party/node/node.exe',
524 ],
525 },
Ryan Harrisonce158be2023-07-20 17:06:56 +0000526 {
527 # Download remote exec cfg files
528 'name': 'fetch_reclient_cfgs',
529 'pattern': '.',
Austin Engd6c4f662023-07-21 01:00:22 +0000530 'condition': 'download_remoteexec_cfg and dawn_standalone',
Ryan Harrisonce158be2023-07-20 17:06:56 +0000531 'action': ['python3',
532 'buildtools/reclient_cfgs/fetch_reclient_cfgs.py',
533 '--rbe_instance',
534 Var('rbe_instance'),
535 '--reproxy_cfg_template',
536 'reproxy.cfg.template',
537 '--rewrapper_cfg_project',
538 Var('rewrapper_cfg_project'),
539 '--quiet',
Ryan Harrisonce158be2023-07-20 17:06:56 +0000540 ],
541 },
Corentin Wallezca81bd32018-09-03 11:55:58 +0200542]
543
544recursedeps = [
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000545 'third_party/vulkan-deps',
Corentin Wallez21a23852018-07-31 18:50:03 +0200546]