blob: 53ec9e95fc7797086494a4bf2df59c89fa21fd78 [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 },
Corentin Wallez60ca94b2021-03-24 16:22:32 +000047 'buildtools/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 Autoroller0dec17a2023-05-17 17:59:30 +0000139 'url': '{chromium_git}/angle/angle@1caa81ece426c80ca361aa129963a01a2f1aa863',
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 Autorollerdf093e92023-05-17 17:09:21 +0000144 'url': '{swiftshader_git}/SwiftShader@f549d5e6c6635ec8b75fb544a6bdc9f48bfb1dd3',
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-autoroll6d133b82023-05-17 17:36:46 +0000149 'url': '{chromium_git}/vulkan-deps@b2cca2b64d1d797bf60fe9ca47b13f0565aaf59d',
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
Kai Ninomiya5c780d72022-03-17 21:43:17 +0000163 # WebGPU CTS - not used directly by Dawn, only transitively by Chromium.
164 'third_party/webgpu-cts': {
Austin Eng2d6690e2023-05-12 19:14:35 +0000165 'url': '{chromium_git}/external/github.com/gpuweb/cts@4fd26fe4abb31b74e8b5cc9ea6ff0e36970eb7bf',
Kai Ninomiya5c780d72022-03-17 21:43:17 +0000166 'condition': 'build_with_chromium',
167 },
168
Ben Clayton6f8ff742022-03-28 19:55:42 +0000169 # Dependencies required to build / run Dawn NodeJS bindings
Ben Claytondc890d62021-09-27 22:55:39 +0000170 'third_party/node-api-headers': {
171 'url': '{github_git}/nodejs/node-api-headers.git@d68505e4055ecb630e14c26c32e5c2c65e179bba',
172 'condition': 'dawn_node',
173 },
174 'third_party/node-addon-api': {
175 'url': '{github_git}/nodejs/node-addon-api.git@4a3de56c3e4ed0031635a2f642b27efeeed00add',
176 'condition': 'dawn_node',
177 },
178 'third_party/gpuweb': {
Loko Kungc47e05a2023-04-19 09:08:42 +0000179 'url': '{github_git}/gpuweb/gpuweb.git@2e75d5e68e80e4c28575c7836ee00ca22cf4ca63',
Ben Claytondc890d62021-09-27 22:55:39 +0000180 'condition': 'dawn_node',
181 },
Austin Eng4948c812021-10-15 14:28:32 +0000182
183 'tools/golang': {
Austin Eng4948c812021-10-15 14:28:32 +0000184 'packages': [{
185 'package': 'infra/3pp/tools/go/${{platform}}',
186 'version': Var('dawn_go_version'),
187 }],
188 'dep_type': 'cipd',
189 },
190
191 'tools/cmake': {
192 'condition': 'dawn_node and (host_os == "mac" or host_os == "linux")',
193 'packages': [{
194 'package': 'infra/3pp/tools/cmake/${{platform}}',
195 'version': Var('dawn_cmake_version'),
196 }],
197 'dep_type': 'cipd',
198 },
Ryan Harrisone87ac762022-04-06 15:37:27 -0400199
Junji Watanabe4ad7f012022-10-03 02:48:52 +0000200 'third_party/ninja': {
201 'packages': [
202 {
203 'package': 'infra/3pp/tools/ninja/${{platform}}',
204 'version': Var('dawn_ninja_version'),
205 }
206 ],
207 'dep_type': 'cipd',
208 },
209
Ryan Harrisone87ac762022-04-06 15:37:27 -0400210 # Misc dependencies inherited from Tint
Ryan Harrison3374f432022-03-28 18:01:02 +0000211 'third_party/protobuf': {
212 'url': '{chromium_git}/external/github.com/protocolbuffers/protobuf.git@fde7cf7358ec7cd69e8db9be4f1fa6a5c431386a',
Ryan Harrisone87ac762022-04-06 15:37:27 -0400213 'condition': 'dawn_standalone',
Ryan Harrison3374f432022-03-28 18:01:02 +0000214 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200215}
216
217hooks = [
Corentin Wallez21a23852018-07-31 18:50:03 +0200218 # Pull the compilers and system libraries for hermetic builds
219 {
220 'name': 'sysroot_x86',
221 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000222 'condition': 'dawn_standalone and checkout_linux and (checkout_x86 or checkout_x64)',
Corentin Wallezd5203662022-01-05 15:54:08 +0000223 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Corentin Wallez21a23852018-07-31 18:50:03 +0200224 '--arch=x86'],
225 },
226 {
227 'name': 'sysroot_x64',
228 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000229 'condition': 'dawn_standalone and checkout_linux and checkout_x64',
Corentin Wallezd5203662022-01-05 15:54:08 +0000230 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Corentin Wallez21a23852018-07-31 18:50:03 +0200231 '--arch=x64'],
232 },
233 {
Corentin Wallezd4e7f082020-11-17 21:16:31 +0000234 # Update the Mac toolchain if possible, this makes builders use "hermetic XCode" which is
235 # is more consistent (only changes when rolling build/) and is cached.
236 'name': 'mac_toolchain',
237 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000238 'condition': 'dawn_standalone and checkout_mac',
Corentin Wallezd5203662022-01-05 15:54:08 +0000239 'action': ['python3', 'build/mac_toolchain.py'],
Corentin Wallezd4e7f082020-11-17 21:16:31 +0000240 },
241 {
Peng Huang78583a12023-02-10 13:53:31 +0000242 # Case-insensitivity for the Win SDK. Must run before win_toolchain below.
243 'name': 'ciopfs_linux',
244 'pattern': '.',
Peng Huang708a0772023-02-13 11:38:38 +0000245 'condition': 'dawn_standalone and checkout_win and host_os == "linux"',
Peng Huang78583a12023-02-10 13:53:31 +0000246 'action': [ 'download_from_google_storage',
247 '--no_resume',
248 '--no_auth',
249 '--bucket', 'chromium-browser-clang/ciopfs',
250 '-s', 'build/ciopfs.sha1',
251 ]
252 },
253 {
Corentin Wallez682c44a2018-08-13 17:48:16 +0200254 # Update the Windows toolchain if necessary. Must run before 'clang' below.
Corentin Wallez21a23852018-07-31 18:50:03 +0200255 'name': 'win_toolchain',
256 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000257 'condition': 'dawn_standalone and checkout_win',
Corentin Wallezd5203662022-01-05 15:54:08 +0000258 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'],
Corentin Wallez21a23852018-07-31 18:50:03 +0200259 },
260 {
261 # Note: On Win, this should run after win_toolchain, as it may use it.
262 'name': 'clang',
263 'pattern': '.',
Corentin Wallezd5203662022-01-05 15:54:08 +0000264 'action': ['python3', 'tools/clang/scripts/update.py'],
Corentin Wallez21a23852018-07-31 18:50:03 +0200265 'condition': 'dawn_standalone',
266 },
267 {
dan sinclair93cf3462022-05-16 12:58:24 +0000268 # This is also supposed to support the same set of platforms as 'clang'
269 # above. LLVM ToT support isn't provided at the moment.
270 'name': 'clang_tidy',
271 'pattern': '.',
Corentin Wallezc4051b12022-05-17 08:21:02 +0000272 'condition': 'dawn_standalone and checkout_clang_tidy',
dan sinclair93cf3462022-05-16 12:58:24 +0000273 'action': ['python3', 'tools/clang/scripts/update.py',
274 '--package=clang-tidy'],
275 },
276 {
Corentin Wallez21a23852018-07-31 18:50:03 +0200277 # Pull rc binaries using checked-in hashes.
278 'name': 'rc_win',
279 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000280 'condition': 'dawn_standalone and checkout_win and host_os == "win"',
Corentin Wallez21a23852018-07-31 18:50:03 +0200281 'action': [ 'download_from_google_storage',
282 '--no_resume',
283 '--no_auth',
284 '--bucket', 'chromium-browser-clang/rc',
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200285 '-s', 'build/toolchain/win/rc/win/rc.exe.sha1',
Corentin Wallez21a23852018-07-31 18:50:03 +0200286 ],
287 },
Peng Huang78583a12023-02-10 13:53:31 +0000288 {
289 'name': 'rc_linux',
290 'pattern': '.',
Peng Huang708a0772023-02-13 11:38:38 +0000291 'condition': 'dawn_standalone and checkout_win and host_os == "linux"',
Peng Huang78583a12023-02-10 13:53:31 +0000292 'action': [ 'download_from_google_storage',
293 '--no_resume',
294 '--no_auth',
295 '--bucket', 'chromium-browser-clang/rc',
296 '-s', 'build/toolchain/win/rc/linux64/rc.sha1',
297 ]
298 },
Corentin Wallez131e6192020-11-03 18:18:06 +0000299 # Pull clang-format binaries using checked-in hashes.
300 {
Corentin Wallez51723bd2022-04-07 10:40:46 +0000301 'name': 'clang_format_win',
302 'pattern': '.',
303 'condition': 'dawn_standalone and host_os == "win"',
304 'action': [ 'download_from_google_storage',
305 '--no_resume',
306 '--no_auth',
307 '--bucket', 'chromium-clang-format',
308 '-s', 'buildtools/win/clang-format.exe.sha1',
309 ],
310 },
311 {
Ben Clayton088a6002022-04-06 19:57:42 +0000312 'name': 'clang_format_mac_x64',
Corentin Wallez131e6192020-11-03 18:18:06 +0000313 'pattern': '.',
Ben Clayton088a6002022-04-06 19:57:42 +0000314 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "x64"',
Corentin Wallez131e6192020-11-03 18:18:06 +0000315 'action': [ 'download_from_google_storage',
316 '--no_resume',
317 '--no_auth',
318 '--bucket', 'chromium-clang-format',
Ben Clayton088a6002022-04-06 19:57:42 +0000319 '-s', 'buildtools/mac/clang-format.x64.sha1',
320 '-o', 'buildtools/mac/clang-format',
Corentin Wallez131e6192020-11-03 18:18:06 +0000321 ],
322 },
323 {
Ben Clayton088a6002022-04-06 19:57:42 +0000324 'name': 'clang_format_mac_arm64',
Corentin Wallez131e6192020-11-03 18:18:06 +0000325 'pattern': '.',
Ben Clayton088a6002022-04-06 19:57:42 +0000326 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "arm64"',
Corentin Wallez131e6192020-11-03 18:18:06 +0000327 'action': [ 'download_from_google_storage',
328 '--no_resume',
329 '--no_auth',
330 '--bucket', 'chromium-clang-format',
Ben Clayton088a6002022-04-06 19:57:42 +0000331 '-s', 'buildtools/mac/clang-format.arm64.sha1',
332 '-o', 'buildtools/mac/clang-format',
Corentin Wallez131e6192020-11-03 18:18:06 +0000333 ],
334 },
335 {
336 'name': 'clang_format_linux',
337 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000338 'condition': 'dawn_standalone and host_os == "linux"',
Corentin Wallez131e6192020-11-03 18:18:06 +0000339 'action': [ 'download_from_google_storage',
340 '--no_resume',
341 '--no_auth',
342 '--bucket', 'chromium-clang-format',
343 '-s', 'buildtools/linux64/clang-format.sha1',
344 ],
345 },
Corentin Wallez15d8cb72018-11-19 10:13:31 +0000346 # Update build/util/LASTCHANGE.
347 {
348 'name': 'lastchange',
349 'pattern': '.',
Jiajie Hu2ffc55a2020-07-01 05:08:36 +0000350 'condition': 'dawn_standalone',
Corentin Wallezd5203662022-01-05 15:54:08 +0000351 'action': ['python3', 'build/util/lastchange.py',
Corentin Wallez15d8cb72018-11-19 10:13:31 +0000352 '-o', 'build/util/LASTCHANGE'],
353 },
Austin Eng4948c812021-10-15 14:28:32 +0000354 # TODO(https://crbug.com/1180257): Use CIPD for CMake on Windows.
355 {
356 'name': 'cmake_win32',
357 'pattern': '.',
358 'condition': 'dawn_node and host_os == "win"',
359 'action': [ 'download_from_google_storage',
360 '--no_resume',
361 '--platform=win32',
362 '--no_auth',
363 '--bucket', 'chromium-tools',
364 Var('dawn_cmake_win32_sha1'),
365 '-o', 'tools/cmake-win32.zip'
366 ],
367 },
368 {
369 'name': 'cmake_win32_extract',
370 'pattern': '.',
371 'condition': 'dawn_node and host_os == "win"',
Corentin Wallezd5203662022-01-05 15:54:08 +0000372 'action': [ 'python3',
Austin Eng4948c812021-10-15 14:28:32 +0000373 'scripts/extract.py',
374 'tools/cmake-win32.zip',
375 'tools/cmake-win32/',
376 ],
377 },
Ben Clayton6f8ff742022-03-28 19:55:42 +0000378
379 # Node binaries, when dawn_node is enabled
380 {
381 'name': 'node_linux64',
382 'pattern': '.',
383 'condition': 'dawn_node and host_os == "linux"',
384 'action': [ 'download_from_google_storage',
385 '--no_resume',
386 '--extract',
387 '--no_auth',
388 '--bucket', 'chromium-nodejs/16.13.0',
389 Var('node_linux_x64_sha'),
390 '-o', 'third_party/node/node-linux-x64.tar.gz',
391 ],
392 },
393 {
394 'name': 'node_mac',
395 'pattern': '.',
396 'condition': 'dawn_node and host_os == "mac"',
397 'action': [ 'download_from_google_storage',
398 '--no_resume',
399 '--extract',
400 '--no_auth',
401 '--bucket', 'chromium-nodejs/16.13.0',
402 Var('node_darwin_x64_sha'),
403 '-o', 'third_party/node/node-darwin-x64.tar.gz',
404 ],
405 },
406 {
407 'name': 'node_mac_arm64',
408 'pattern': '.',
409 'condition': 'dawn_node and host_os == "mac"',
410 'action': [ 'download_from_google_storage',
411 '--no_resume',
412 '--extract',
413 '--no_auth',
414 '--bucket', 'chromium-nodejs/16.13.0',
415 Var('node_darwin_arm64_sha'),
416 '-o', 'third_party/node/node-darwin-arm64.tar.gz',
417 ],
418 },
419 {
420 'name': 'node_win',
421 'pattern': '.',
422 'condition': 'dawn_node and host_os == "win"',
423 'action': [ 'download_from_google_storage',
424 '--no_resume',
425 '--no_auth',
426 '--bucket', 'chromium-nodejs/16.13.0',
427 Var('node_win_x64_sha'),
428 '-o', 'third_party/node/node.exe',
429 ],
430 },
431
Corentin Wallezca81bd32018-09-03 11:55:58 +0200432]
433
434recursedeps = [
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000435 'third_party/vulkan-deps',
Corentin Wallez21a23852018-07-31 18:50:03 +0200436]