blob: 26eb4218573cedcd7719914740852de7d893f579 [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
Corentin Wallez21a23852018-07-31 18:50:03 +02009vars = {
10 'chromium_git': 'https://chromium.googlesource.com',
Corentin Wallez4c351012018-08-27 10:10:28 +020011 'dawn_git': 'https://dawn.googlesource.com',
Corentin Wallez21a23852018-07-31 18:50:03 +020012 'github_git': 'https://github.com',
Corentin Wallez74cebd62019-11-26 18:21:51 +000013 'swiftshader_git': 'https://swiftshader.googlesource.com',
Corentin Wallez21a23852018-07-31 18:50:03 +020014
Corentin Wallez21a23852018-07-31 18:50:03 +020015 'dawn_standalone': True,
Ben Claytondc890d62021-09-27 22:55:39 +000016 'dawn_node': False, # Also fetches dependencies required for building NodeJS bindings.
Corentin Wallezfa1a5472022-08-02 16:07:45 +000017 'dawn_cmake_version': 'version:2@3.23.3',
Austin Eng4948c812021-10-15 14:28:32 +000018 'dawn_cmake_win32_sha1': 'b106d66bcdc8a71ea2cdf5446091327bfdb1bcd7',
Corentin Wallez49b3b112022-03-23 18:45:14 +000019 'dawn_gn_version': 'git_revision:bd99dbf98cbdefe18a4128189665c5761263bcfb',
Junji Watanabe4ad7f012022-10-03 02:48:52 +000020 # ninja CIPD package version.
21 # https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja
Corentin Wallez89b78092023-01-27 15:36:18 +000022 'dawn_ninja_version': 'version:2@1.11.1.chromium.6',
Corentin Wallezfa1a5472022-08-02 16:07:45 +000023 'dawn_go_version': 'version:2@1.18.4',
Corentin Wallezd5203662022-01-05 15:54:08 +000024
Ben Clayton6f8ff742022-03-28 19:55:42 +000025 'node_darwin_arm64_sha': '31859fc1fa0994a95f44f09c367d6ff63607cfde',
26 'node_darwin_x64_sha': '16dfd094763b71988933a31735f9dea966f9abd6',
27 'node_linux_x64_sha': 'ab9544e24e752d3d17f335fb7b2055062e582d11',
28 'node_win_x64_sha': '5ef847033c517c499f56f9d136d159b663bab717',
29
Corentin Wallezd5203662022-01-05 15:54:08 +000030 # GN variable required by //testing that will be output in the gclient_args.gni
31 'generate_location_tags': False,
dan sinclair93cf3462022-05-16 12:58:24 +000032
33 # Fetch clang-tidy into the same bin/ directory as our clang binary.
34 'checkout_clang_tidy': False,
Corentin Wallez21a23852018-07-31 18:50:03 +020035}
36
37deps = {
38 # Dependencies required to use GN/Clang in standalone
Corentin Wallez1a0596d2018-09-10 15:16:10 +020039 'build': {
Austin Enga0e96b52023-02-18 00:39:01 +000040 'url': '{chromium_git}/chromium/src/build@1103ef535ca1e100db5d4e59781a4e59369a9818',
Corentin Wallez21a23852018-07-31 18:50:03 +020041 'condition': 'dawn_standalone',
42 },
Corentin Wallez1a0596d2018-09-10 15:16:10 +020043 'buildtools': {
Austin Enga0e96b52023-02-18 00:39:01 +000044 'url': '{chromium_git}/chromium/src/buildtools@2ff42d2008f09f65de12e70c6ff0ad58ddb090ad',
Corentin Wallez21a23852018-07-31 18:50:03 +020045 'condition': 'dawn_standalone',
46 },
Loko Kung2d988ce2023-05-25 23:28:34 +000047 'third_party/clang-format/script': {
Austin Eng99ad82a2022-07-27 21:57:30 +000048 'url': '{chromium_git}/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@8b525d2747f2584fc35d8c7e612e66f377858df7',
Corentin Wallez60ca94b2021-03-24 16:22:32 +000049 'condition': 'dawn_standalone',
50 },
Corentin Wallez60ca94b2021-03-24 16:22:32 +000051 'buildtools/linux64': {
52 'packages': [{
53 'package': 'gn/gn/linux-amd64',
Corentin Wallez88d5e072021-12-13 15:24:55 +000054 'version': Var('dawn_gn_version'),
Corentin Wallez60ca94b2021-03-24 16:22:32 +000055 }],
56 'dep_type': 'cipd',
57 'condition': 'dawn_standalone and host_os == "linux"',
58 },
59 'buildtools/mac': {
60 'packages': [{
61 'package': 'gn/gn/mac-${{arch}}',
Corentin Wallez88d5e072021-12-13 15:24:55 +000062 'version': Var('dawn_gn_version'),
Corentin Wallez60ca94b2021-03-24 16:22:32 +000063 }],
64 'dep_type': 'cipd',
65 'condition': 'dawn_standalone and host_os == "mac"',
66 },
67 'buildtools/win': {
68 'packages': [{
69 'package': 'gn/gn/windows-amd64',
Corentin Wallez88d5e072021-12-13 15:24:55 +000070 'version': Var('dawn_gn_version'),
Corentin Wallez60ca94b2021-03-24 16:22:32 +000071 }],
72 'dep_type': 'cipd',
73 'condition': 'dawn_standalone and host_os == "win"',
74 },
75
76 'buildtools/third_party/libc++/trunk': {
Austin Enga0e96b52023-02-18 00:39:01 +000077 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxx.git@c1341b9a1a7de7c193a23bf003d5479c48957f7d',
Corentin Wallez60ca94b2021-03-24 16:22:32 +000078 'condition': 'dawn_standalone',
79 },
80
81 'buildtools/third_party/libc++abi/trunk': {
Austin Enga0e96b52023-02-18 00:39:01 +000082 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxxabi.git@f7460fc60ab56553f0b3b0853f1ea60aa51b9478',
Corentin Wallez60ca94b2021-03-24 16:22:32 +000083 'condition': 'dawn_standalone',
84 },
85
Corentin Wallez1a0596d2018-09-10 15:16:10 +020086 'tools/clang': {
Austin Enga0e96b52023-02-18 00:39:01 +000087 'url': '{chromium_git}/chromium/src/tools/clang@effd9257d456f2d42e9e22fa4f37a24d8cf0b5b5',
Corentin Wallez21a23852018-07-31 18:50:03 +020088 'condition': 'dawn_standalone',
89 },
Kai Ninomiyaf526d772020-04-06 22:27:02 +000090 'tools/clang/dsymutil': {
Corentin Wallez60ca94b2021-03-24 16:22:32 +000091 'packages': [{
92 'package': 'chromium/llvm-build-tools/dsymutil',
93 'version': 'M56jPzDv1620Rnm__jTMYS62Zi8rxHVq7yw0qeBFEgkC',
94 }],
Corentin Wallez2015b2f2021-03-04 17:37:55 +000095 'condition': 'dawn_standalone and (checkout_mac or checkout_ios)',
Kai Ninomiyaf526d772020-04-06 22:27:02 +000096 'dep_type': 'cipd',
97 },
Corentin Wallez21a23852018-07-31 18:50:03 +020098
Corentin Wallez649e2fe2018-08-03 15:57:43 +020099 # Testing, GTest and GMock
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200100 'testing': {
Austin Enga0e96b52023-02-18 00:39:01 +0000101 'url': '{chromium_git}/chromium/src/testing@166db27fd0d53afc0c716b1ae9c15725e380871f',
Corentin Wallez21a23852018-07-31 18:50:03 +0200102 'condition': 'dawn_standalone',
103 },
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200104 'third_party/googletest': {
Austin Enga0e96b52023-02-18 00:39:01 +0000105 'url': '{chromium_git}/external/github.com/google/googletest@7a7231c442484be389fdf01594310349ca0e42a8',
Corentin Wallezd5203662022-01-05 15:54:08 +0000106 'condition': 'dawn_standalone',
107 },
108 # This is a dependency of //testing
109 'third_party/catapult': {
Austin Enga0e96b52023-02-18 00:39:01 +0000110 'url': '{chromium_git}/catapult.git@c1e70d412ce01fb194f73f7abfdac710aae87dae',
Corentin Wallez649e2fe2018-08-03 15:57:43 +0200111 'condition': 'dawn_standalone',
112 },
Austin Eng6a7bba52023-04-17 18:11:51 +0000113 'third_party/google_benchmark/src': {
114 'url': '{chromium_git}/external/github.com/google/benchmark.git' + '@' + 'efc89f0b524780b1994d5dddd83a92718e5be492',
115 'condition': 'dawn_standalone',
116 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200117
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200118 # Jinja2 and MarkupSafe for the code generator
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200119 'third_party/jinja2': {
James Pricee97594d2021-11-02 08:31:02 +0000120 'url': '{chromium_git}/chromium/src/third_party/jinja2@ee69aa00ee8536f61db6a451f3858745cf587de6',
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200121 'condition': 'dawn_standalone',
122 },
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200123 'third_party/markupsafe': {
Corentin Wallezbf1e9532020-11-04 09:44:47 +0000124 'url': '{chromium_git}/chromium/src/third_party/markupsafe@0944e71f4b2cb9a871bcbe353f95e889b64a611a',
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200125 'condition': 'dawn_standalone',
126 },
127
Corentin Wallez4d7d1692018-08-13 08:23:27 +0200128 # GLFW for tests and samples
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200129 'third_party/glfw': {
Corentin Wallez6903c462022-05-25 17:46:04 +0000130 'url': '{chromium_git}/external/github.com/glfw/glfw@62e175ef9fae75335575964c845a302447c012c7',
Corentin Wallez4d7d1692018-08-13 08:23:27 +0200131 },
132
Stephen White77fcdf72021-01-11 15:52:12 +0000133 'third_party/vulkan_memory_allocator': {
Austin Eng972c2382021-12-21 21:21:42 +0000134 'url': '{chromium_git}/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator@5e49f57a6e71a026a54eb42e366de09a4142d24e',
Stephen White77fcdf72021-01-11 15:52:12 +0000135 'condition': 'dawn_standalone',
136 },
137
138 'third_party/angle': {
Dawn Autoroller84aba862023-07-07 17:04:18 +0000139 'url': '{chromium_git}/angle/angle@66c2e4fca248124d9d669f65f60d89bb4a47b271',
Stephen White77fcdf72021-01-11 15:52:12 +0000140 'condition': 'dawn_standalone',
141 },
142
Corentin Wallez74cebd62019-11-26 18:21:51 +0000143 'third_party/swiftshader': {
Dawn Autoroller4c278a62023-07-04 15:44:21 +0000144 'url': '{swiftshader_git}/SwiftShader@3e73cce1c4706a1727077572a06643cd998bd615',
Corentin Wallez74cebd62019-11-26 18:21:51 +0000145 'condition': 'dawn_standalone',
146 },
147
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000148 'third_party/vulkan-deps': {
dawn-autorolla85857c2023-07-06 13:12:34 +0000149 'url': '{chromium_git}/vulkan-deps@c421d230f1c16eae7fc83ca8c3bf82e0b702d1c4',
Corentin Wallez1fdd0592021-04-02 18:04:27 +0000150 'condition': 'dawn_standalone',
Stephen White77fcdf72021-01-11 15:52:12 +0000151 },
152
153 'third_party/zlib': {
Austin Eng99ad82a2022-07-27 21:57:30 +0000154 'url': '{chromium_git}/chromium/src/third_party/zlib@64bbf988543996eb8df9a86877b32917187eba8f',
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000155 'condition': 'dawn_standalone',
156 },
Brandon Jonesa04663c2021-09-23 20:36:03 +0000157
158 'third_party/abseil-cpp': {
Corentin Wallezedf650c2022-07-12 09:55:29 +0000159 'url': '{chromium_git}/chromium/src/third_party/abseil-cpp@bc3ab29356a081d0b5dd4ac55e30f4b45d8794cc',
Brandon Jonesa04663c2021-09-23 20:36:03 +0000160 'condition': 'dawn_standalone',
161 },
Ben Claytondc890d62021-09-27 22:55:39 +0000162
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000163 'third_party/dxc': {
164 'url': '{chromium_git}/external/github.com/microsoft/DirectXShaderCompiler@5e080a772910f147cc447fc34e8eb489f0761144',
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000165 },
166 'third_party/dxheaders': {
167 # The non-Windows build of DXC depends on DirectX-Headers, and at a specific commit (not ToT)
168 'url': '{chromium_git}/external/github.com/microsoft/DirectX-Headers@980971e835876dc0cde415e8f9bc646e64667bf7',
Austin Engc02f1432023-07-05 22:38:39 +0000169 'condition': 'host_os != "win"',
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000170 },
171
Kai Ninomiya5c780d72022-03-17 21:43:17 +0000172 # WebGPU CTS - not used directly by Dawn, only transitively by Chromium.
173 'third_party/webgpu-cts': {
Gregg Tavarese1d87cd2023-06-29 23:36:25 +0000174 'url': '{chromium_git}/external/github.com/gpuweb/cts@82a512494491d0e22a166d5291c86a4bf5a27172',
Kai Ninomiya5c780d72022-03-17 21:43:17 +0000175 'condition': 'build_with_chromium',
176 },
177
Ben Clayton6f8ff742022-03-28 19:55:42 +0000178 # Dependencies required to build / run Dawn NodeJS bindings
Ben Claytondc890d62021-09-27 22:55:39 +0000179 'third_party/node-api-headers': {
180 'url': '{github_git}/nodejs/node-api-headers.git@d68505e4055ecb630e14c26c32e5c2c65e179bba',
181 'condition': 'dawn_node',
182 },
183 'third_party/node-addon-api': {
184 'url': '{github_git}/nodejs/node-addon-api.git@4a3de56c3e4ed0031635a2f642b27efeeed00add',
185 'condition': 'dawn_node',
186 },
187 'third_party/gpuweb': {
Corentin Wallezdbd477f2023-05-31 12:02:12 +0000188 'url': '{github_git}/gpuweb/gpuweb.git@913189072715569b8ad60e5c2e38e501273bd5b0',
Ben Claytondc890d62021-09-27 22:55:39 +0000189 'condition': 'dawn_node',
190 },
Austin Eng4948c812021-10-15 14:28:32 +0000191
192 'tools/golang': {
Austin Eng4948c812021-10-15 14:28:32 +0000193 'packages': [{
194 'package': 'infra/3pp/tools/go/${{platform}}',
195 'version': Var('dawn_go_version'),
196 }],
197 'dep_type': 'cipd',
198 },
199
200 'tools/cmake': {
201 'condition': 'dawn_node and (host_os == "mac" or host_os == "linux")',
202 'packages': [{
203 'package': 'infra/3pp/tools/cmake/${{platform}}',
204 'version': Var('dawn_cmake_version'),
205 }],
206 'dep_type': 'cipd',
207 },
Ryan Harrisone87ac762022-04-06 15:37:27 -0400208
Junji Watanabe4ad7f012022-10-03 02:48:52 +0000209 'third_party/ninja': {
210 'packages': [
211 {
212 'package': 'infra/3pp/tools/ninja/${{platform}}',
213 'version': Var('dawn_ninja_version'),
214 }
215 ],
216 'dep_type': 'cipd',
217 },
218
Ryan Harrisone87ac762022-04-06 15:37:27 -0400219 # Misc dependencies inherited from Tint
Ryan Harrison3374f432022-03-28 18:01:02 +0000220 'third_party/protobuf': {
221 'url': '{chromium_git}/external/github.com/protocolbuffers/protobuf.git@fde7cf7358ec7cd69e8db9be4f1fa6a5c431386a',
Ryan Harrisone87ac762022-04-06 15:37:27 -0400222 'condition': 'dawn_standalone',
Ryan Harrison3374f432022-03-28 18:01:02 +0000223 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200224}
225
226hooks = [
Corentin Wallez21a23852018-07-31 18:50:03 +0200227 # Pull the compilers and system libraries for hermetic builds
228 {
229 'name': 'sysroot_x86',
230 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000231 'condition': 'dawn_standalone and checkout_linux and (checkout_x86 or checkout_x64)',
Corentin Wallezd5203662022-01-05 15:54:08 +0000232 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Corentin Wallez21a23852018-07-31 18:50:03 +0200233 '--arch=x86'],
234 },
235 {
236 'name': 'sysroot_x64',
237 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000238 'condition': 'dawn_standalone and checkout_linux and checkout_x64',
Corentin Wallezd5203662022-01-05 15:54:08 +0000239 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Corentin Wallez21a23852018-07-31 18:50:03 +0200240 '--arch=x64'],
241 },
242 {
Corentin Wallezd4e7f082020-11-17 21:16:31 +0000243 # Update the Mac toolchain if possible, this makes builders use "hermetic XCode" which is
244 # is more consistent (only changes when rolling build/) and is cached.
245 'name': 'mac_toolchain',
246 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000247 'condition': 'dawn_standalone and checkout_mac',
Corentin Wallezd5203662022-01-05 15:54:08 +0000248 'action': ['python3', 'build/mac_toolchain.py'],
Corentin Wallezd4e7f082020-11-17 21:16:31 +0000249 },
250 {
Peng Huang78583a12023-02-10 13:53:31 +0000251 # Case-insensitivity for the Win SDK. Must run before win_toolchain below.
252 'name': 'ciopfs_linux',
253 'pattern': '.',
Peng Huang708a0772023-02-13 11:38:38 +0000254 'condition': 'dawn_standalone and checkout_win and host_os == "linux"',
Peng Huang78583a12023-02-10 13:53:31 +0000255 'action': [ 'download_from_google_storage',
256 '--no_resume',
257 '--no_auth',
258 '--bucket', 'chromium-browser-clang/ciopfs',
259 '-s', 'build/ciopfs.sha1',
260 ]
261 },
262 {
Corentin Wallez682c44a2018-08-13 17:48:16 +0200263 # Update the Windows toolchain if necessary. Must run before 'clang' below.
Corentin Wallez21a23852018-07-31 18:50:03 +0200264 'name': 'win_toolchain',
265 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000266 'condition': 'dawn_standalone and checkout_win',
Corentin Wallezd5203662022-01-05 15:54:08 +0000267 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'],
Corentin Wallez21a23852018-07-31 18:50:03 +0200268 },
269 {
270 # Note: On Win, this should run after win_toolchain, as it may use it.
271 'name': 'clang',
272 'pattern': '.',
Corentin Wallezd5203662022-01-05 15:54:08 +0000273 'action': ['python3', 'tools/clang/scripts/update.py'],
Corentin Wallez21a23852018-07-31 18:50:03 +0200274 'condition': 'dawn_standalone',
275 },
276 {
dan sinclair93cf3462022-05-16 12:58:24 +0000277 # This is also supposed to support the same set of platforms as 'clang'
278 # above. LLVM ToT support isn't provided at the moment.
279 'name': 'clang_tidy',
280 'pattern': '.',
Corentin Wallezc4051b12022-05-17 08:21:02 +0000281 'condition': 'dawn_standalone and checkout_clang_tidy',
dan sinclair93cf3462022-05-16 12:58:24 +0000282 'action': ['python3', 'tools/clang/scripts/update.py',
283 '--package=clang-tidy'],
284 },
285 {
Corentin Wallez21a23852018-07-31 18:50:03 +0200286 # Pull rc binaries using checked-in hashes.
287 'name': 'rc_win',
288 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000289 'condition': 'dawn_standalone and checkout_win and host_os == "win"',
Corentin Wallez21a23852018-07-31 18:50:03 +0200290 'action': [ 'download_from_google_storage',
291 '--no_resume',
292 '--no_auth',
293 '--bucket', 'chromium-browser-clang/rc',
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200294 '-s', 'build/toolchain/win/rc/win/rc.exe.sha1',
Corentin Wallez21a23852018-07-31 18:50:03 +0200295 ],
296 },
Peng Huang78583a12023-02-10 13:53:31 +0000297 {
298 'name': 'rc_linux',
299 'pattern': '.',
Peng Huang708a0772023-02-13 11:38:38 +0000300 'condition': 'dawn_standalone and checkout_win and host_os == "linux"',
Peng Huang78583a12023-02-10 13:53:31 +0000301 'action': [ 'download_from_google_storage',
302 '--no_resume',
303 '--no_auth',
304 '--bucket', 'chromium-browser-clang/rc',
305 '-s', 'build/toolchain/win/rc/linux64/rc.sha1',
306 ]
307 },
Corentin Wallez131e6192020-11-03 18:18:06 +0000308 # Pull clang-format binaries using checked-in hashes.
309 {
Corentin Wallez51723bd2022-04-07 10:40:46 +0000310 'name': 'clang_format_win',
311 'pattern': '.',
312 'condition': 'dawn_standalone and host_os == "win"',
313 'action': [ 'download_from_google_storage',
314 '--no_resume',
315 '--no_auth',
316 '--bucket', 'chromium-clang-format',
317 '-s', 'buildtools/win/clang-format.exe.sha1',
318 ],
319 },
320 {
Ben Clayton088a6002022-04-06 19:57:42 +0000321 'name': 'clang_format_mac_x64',
Corentin Wallez131e6192020-11-03 18:18:06 +0000322 'pattern': '.',
Ben Clayton088a6002022-04-06 19:57:42 +0000323 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "x64"',
Corentin Wallez131e6192020-11-03 18:18:06 +0000324 'action': [ 'download_from_google_storage',
325 '--no_resume',
326 '--no_auth',
327 '--bucket', 'chromium-clang-format',
Ben Clayton088a6002022-04-06 19:57:42 +0000328 '-s', 'buildtools/mac/clang-format.x64.sha1',
329 '-o', 'buildtools/mac/clang-format',
Corentin Wallez131e6192020-11-03 18:18:06 +0000330 ],
331 },
332 {
Ben Clayton088a6002022-04-06 19:57:42 +0000333 'name': 'clang_format_mac_arm64',
Corentin Wallez131e6192020-11-03 18:18:06 +0000334 'pattern': '.',
Ben Clayton088a6002022-04-06 19:57:42 +0000335 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "arm64"',
Corentin Wallez131e6192020-11-03 18:18:06 +0000336 'action': [ 'download_from_google_storage',
337 '--no_resume',
338 '--no_auth',
339 '--bucket', 'chromium-clang-format',
Ben Clayton088a6002022-04-06 19:57:42 +0000340 '-s', 'buildtools/mac/clang-format.arm64.sha1',
341 '-o', 'buildtools/mac/clang-format',
Corentin Wallez131e6192020-11-03 18:18:06 +0000342 ],
343 },
344 {
345 'name': 'clang_format_linux',
346 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000347 'condition': 'dawn_standalone and host_os == "linux"',
Corentin Wallez131e6192020-11-03 18:18:06 +0000348 'action': [ 'download_from_google_storage',
349 '--no_resume',
350 '--no_auth',
351 '--bucket', 'chromium-clang-format',
352 '-s', 'buildtools/linux64/clang-format.sha1',
353 ],
354 },
Corentin Wallez15d8cb72018-11-19 10:13:31 +0000355 # Update build/util/LASTCHANGE.
356 {
357 'name': 'lastchange',
358 'pattern': '.',
Jiajie Hu2ffc55a2020-07-01 05:08:36 +0000359 'condition': 'dawn_standalone',
Corentin Wallezd5203662022-01-05 15:54:08 +0000360 'action': ['python3', 'build/util/lastchange.py',
Corentin Wallez15d8cb72018-11-19 10:13:31 +0000361 '-o', 'build/util/LASTCHANGE'],
362 },
Austin Eng4948c812021-10-15 14:28:32 +0000363 # TODO(https://crbug.com/1180257): Use CIPD for CMake on Windows.
364 {
365 'name': 'cmake_win32',
366 'pattern': '.',
367 'condition': 'dawn_node and host_os == "win"',
368 'action': [ 'download_from_google_storage',
369 '--no_resume',
370 '--platform=win32',
371 '--no_auth',
372 '--bucket', 'chromium-tools',
373 Var('dawn_cmake_win32_sha1'),
374 '-o', 'tools/cmake-win32.zip'
375 ],
376 },
377 {
378 'name': 'cmake_win32_extract',
379 'pattern': '.',
380 'condition': 'dawn_node and host_os == "win"',
Corentin Wallezd5203662022-01-05 15:54:08 +0000381 'action': [ 'python3',
Austin Eng4948c812021-10-15 14:28:32 +0000382 'scripts/extract.py',
383 'tools/cmake-win32.zip',
384 'tools/cmake-win32/',
385 ],
386 },
Ben Clayton6f8ff742022-03-28 19:55:42 +0000387
388 # Node binaries, when dawn_node is enabled
389 {
390 'name': 'node_linux64',
391 'pattern': '.',
392 'condition': 'dawn_node and host_os == "linux"',
393 'action': [ 'download_from_google_storage',
394 '--no_resume',
395 '--extract',
396 '--no_auth',
397 '--bucket', 'chromium-nodejs/16.13.0',
398 Var('node_linux_x64_sha'),
399 '-o', 'third_party/node/node-linux-x64.tar.gz',
400 ],
401 },
402 {
403 'name': 'node_mac',
404 'pattern': '.',
405 'condition': 'dawn_node and host_os == "mac"',
406 'action': [ 'download_from_google_storage',
407 '--no_resume',
408 '--extract',
409 '--no_auth',
410 '--bucket', 'chromium-nodejs/16.13.0',
411 Var('node_darwin_x64_sha'),
412 '-o', 'third_party/node/node-darwin-x64.tar.gz',
413 ],
414 },
415 {
416 'name': 'node_mac_arm64',
417 'pattern': '.',
418 'condition': 'dawn_node and host_os == "mac"',
419 'action': [ 'download_from_google_storage',
420 '--no_resume',
421 '--extract',
422 '--no_auth',
423 '--bucket', 'chromium-nodejs/16.13.0',
424 Var('node_darwin_arm64_sha'),
425 '-o', 'third_party/node/node-darwin-arm64.tar.gz',
426 ],
427 },
428 {
429 'name': 'node_win',
430 'pattern': '.',
431 'condition': 'dawn_node and host_os == "win"',
432 'action': [ 'download_from_google_storage',
433 '--no_resume',
434 '--no_auth',
435 '--bucket', 'chromium-nodejs/16.13.0',
436 Var('node_win_x64_sha'),
437 '-o', 'third_party/node/node.exe',
438 ],
439 },
440
Corentin Wallezca81bd32018-09-03 11:55:58 +0200441]
442
443recursedeps = [
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000444 'third_party/vulkan-deps',
Corentin Wallez21a23852018-07-31 18:50:03 +0200445]