blob: abe33805e0d0e3a9dd20ad08870173cde2ce9473 [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
22 'dawn_ninja_version': 'version:2@1.8.2.chromium.3',
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': {
Corentin Wallezd5b64ec2022-10-03 13:31:27 +000040 'url': '{chromium_git}/chromium/src/build@01569374d46a14b225586c564146a8e1749520b6',
Corentin Wallez21a23852018-07-31 18:50:03 +020041 'condition': 'dawn_standalone',
42 },
Corentin Wallez1a0596d2018-09-10 15:16:10 +020043 'buildtools': {
Corentin Wallezd5b64ec2022-10-03 13:31:27 +000044 'url': '{chromium_git}/chromium/src/buildtools@cccaf48c82bcf4ddafa6f8aa9f06014a1ef434bf',
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': {
Corentin Wallezd5b64ec2022-10-03 13:31:27 +000077 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxx.git@26d0ab4151fd10c523fdbb5bbdb59aa5a5774820',
Corentin Wallez60ca94b2021-03-24 16:22:32 +000078 'condition': 'dawn_standalone',
79 },
80
81 'buildtools/third_party/libc++abi/trunk': {
Corentin Wallezd5b64ec2022-10-03 13:31:27 +000082 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxxabi.git@5c3e02e92ae8bbc1bf1001bd9ef0d76e044ddb86',
Corentin Wallez60ca94b2021-03-24 16:22:32 +000083 'condition': 'dawn_standalone',
84 },
85
Corentin Wallez1a0596d2018-09-10 15:16:10 +020086 'tools/clang': {
Corentin Wallezd5b64ec2022-10-03 13:31:27 +000087 'url': '{chromium_git}/chromium/src/tools/clang@a5e0d72349d028a4023927d6d166a8478355fac3',
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': {
Corentin Wallezd5b64ec2022-10-03 13:31:27 +0000101 'url': '{chromium_git}/chromium/src/testing@e3e8c19554e8f47da85d35e4f990cdc30a061196',
Corentin Wallez21a23852018-07-31 18:50:03 +0200102 'condition': 'dawn_standalone',
103 },
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200104 'third_party/googletest': {
Corentin Wallezd5b64ec2022-10-03 13:31:27 +0000105 'url': '{chromium_git}/external/github.com/google/googletest@d1a0039b97291dd1dc14f123b906bb7622ffe07c',
Corentin Wallezd5203662022-01-05 15:54:08 +0000106 'condition': 'dawn_standalone',
107 },
108 # This is a dependency of //testing
109 'third_party/catapult': {
Corentin Wallezd5b64ec2022-10-03 13:31:27 +0000110 'url': '{chromium_git}/catapult.git@4a0e6f034e9756605cfc837c8526588d6c13436b',
Corentin Wallez649e2fe2018-08-03 15:57:43 +0200111 'condition': 'dawn_standalone',
112 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200113
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200114 # Jinja2 and MarkupSafe for the code generator
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200115 'third_party/jinja2': {
James Pricee97594d2021-11-02 08:31:02 +0000116 'url': '{chromium_git}/chromium/src/third_party/jinja2@ee69aa00ee8536f61db6a451f3858745cf587de6',
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200117 'condition': 'dawn_standalone',
118 },
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200119 'third_party/markupsafe': {
Corentin Wallezbf1e9532020-11-04 09:44:47 +0000120 'url': '{chromium_git}/chromium/src/third_party/markupsafe@0944e71f4b2cb9a871bcbe353f95e889b64a611a',
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200121 'condition': 'dawn_standalone',
122 },
123
Corentin Wallez4d7d1692018-08-13 08:23:27 +0200124 # GLFW for tests and samples
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200125 'third_party/glfw': {
Corentin Wallez6903c462022-05-25 17:46:04 +0000126 'url': '{chromium_git}/external/github.com/glfw/glfw@62e175ef9fae75335575964c845a302447c012c7',
Corentin Wallez4d7d1692018-08-13 08:23:27 +0200127 },
128
Stephen White77fcdf72021-01-11 15:52:12 +0000129 'third_party/vulkan_memory_allocator': {
Austin Eng972c2382021-12-21 21:21:42 +0000130 'url': '{chromium_git}/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator@5e49f57a6e71a026a54eb42e366de09a4142d24e',
Stephen White77fcdf72021-01-11 15:52:12 +0000131 'condition': 'dawn_standalone',
132 },
133
134 'third_party/angle': {
Dawn Autorollerec1849d2022-12-27 00:09:35 +0000135 'url': '{chromium_git}/angle/angle@03b928dbf40c3a4721682af9d7b5d3c9faaecbb6',
Stephen White77fcdf72021-01-11 15:52:12 +0000136 'condition': 'dawn_standalone',
137 },
138
Corentin Wallez74cebd62019-11-26 18:21:51 +0000139 'third_party/swiftshader': {
Dawn Autorollere4848f72022-12-23 08:29:38 +0000140 'url': '{swiftshader_git}/SwiftShader@5f9ed9b16931c7155171d31f75004f73f0a3abc8',
Corentin Wallez74cebd62019-11-26 18:21:51 +0000141 'condition': 'dawn_standalone',
142 },
143
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000144 'third_party/vulkan-deps': {
dawn-autorolle2705902022-12-27 03:40:40 +0000145 'url': '{chromium_git}/vulkan-deps@3c1cf9017a4cb4ecad429c88ab43200b19f1a722',
Corentin Wallez1fdd0592021-04-02 18:04:27 +0000146 'condition': 'dawn_standalone',
Stephen White77fcdf72021-01-11 15:52:12 +0000147 },
148
149 'third_party/zlib': {
Austin Eng99ad82a2022-07-27 21:57:30 +0000150 'url': '{chromium_git}/chromium/src/third_party/zlib@64bbf988543996eb8df9a86877b32917187eba8f',
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000151 'condition': 'dawn_standalone',
152 },
Brandon Jonesa04663c2021-09-23 20:36:03 +0000153
154 'third_party/abseil-cpp': {
Corentin Wallezedf650c2022-07-12 09:55:29 +0000155 'url': '{chromium_git}/chromium/src/third_party/abseil-cpp@bc3ab29356a081d0b5dd4ac55e30f4b45d8794cc',
Brandon Jonesa04663c2021-09-23 20:36:03 +0000156 'condition': 'dawn_standalone',
157 },
Ben Claytondc890d62021-09-27 22:55:39 +0000158
Kai Ninomiya5c780d72022-03-17 21:43:17 +0000159 # WebGPU CTS - not used directly by Dawn, only transitively by Chromium.
160 'third_party/webgpu-cts': {
Dan Sinclair02858012022-11-29 12:39:39 +0000161 'url': '{chromium_git}/external/github.com/gpuweb/cts@09447faf1a22821f35ca4a3fc9c06e3bf1125756',
Kai Ninomiya5c780d72022-03-17 21:43:17 +0000162 'condition': 'build_with_chromium',
163 },
164
Ben Clayton6f8ff742022-03-28 19:55:42 +0000165 # Dependencies required to build / run Dawn NodeJS bindings
Ben Claytondc890d62021-09-27 22:55:39 +0000166 'third_party/node-api-headers': {
167 'url': '{github_git}/nodejs/node-api-headers.git@d68505e4055ecb630e14c26c32e5c2c65e179bba',
168 'condition': 'dawn_node',
169 },
170 'third_party/node-addon-api': {
171 'url': '{github_git}/nodejs/node-addon-api.git@4a3de56c3e4ed0031635a2f642b27efeeed00add',
172 'condition': 'dawn_node',
173 },
174 'third_party/gpuweb': {
Corentin Wallezcf8513d2022-12-01 13:03:06 +0000175 'url': '{github_git}/gpuweb/gpuweb.git@0f5fc665a0d5b281e8119f0201e9067b05cf7927',
Ben Claytondc890d62021-09-27 22:55:39 +0000176 'condition': 'dawn_node',
177 },
Austin Eng4948c812021-10-15 14:28:32 +0000178
179 'tools/golang': {
Austin Eng4948c812021-10-15 14:28:32 +0000180 'packages': [{
181 'package': 'infra/3pp/tools/go/${{platform}}',
182 'version': Var('dawn_go_version'),
183 }],
184 'dep_type': 'cipd',
185 },
186
187 'tools/cmake': {
188 'condition': 'dawn_node and (host_os == "mac" or host_os == "linux")',
189 'packages': [{
190 'package': 'infra/3pp/tools/cmake/${{platform}}',
191 'version': Var('dawn_cmake_version'),
192 }],
193 'dep_type': 'cipd',
194 },
Ryan Harrisone87ac762022-04-06 15:37:27 -0400195
Junji Watanabe4ad7f012022-10-03 02:48:52 +0000196 'third_party/ninja': {
197 'packages': [
198 {
199 'package': 'infra/3pp/tools/ninja/${{platform}}',
200 'version': Var('dawn_ninja_version'),
201 }
202 ],
203 'dep_type': 'cipd',
204 },
205
Ryan Harrisone87ac762022-04-06 15:37:27 -0400206 # Misc dependencies inherited from Tint
Ryan Harrison3374f432022-03-28 18:01:02 +0000207 'third_party/benchmark': {
208 'url': '{chromium_git}/external/github.com/google/benchmark.git@e991355c02b93fe17713efe04cbc2e278e00fdbd',
Ryan Harrisone87ac762022-04-06 15:37:27 -0400209 'condition': 'dawn_standalone',
Ryan Harrison3374f432022-03-28 18:01:02 +0000210 },
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 {
Corentin Wallez682c44a2018-08-13 17:48:16 +0200242 # Update the Windows toolchain if necessary. Must run before 'clang' below.
Corentin Wallez21a23852018-07-31 18:50:03 +0200243 'name': 'win_toolchain',
244 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000245 'condition': 'dawn_standalone and checkout_win',
Corentin Wallezd5203662022-01-05 15:54:08 +0000246 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'],
Corentin Wallez21a23852018-07-31 18:50:03 +0200247 },
248 {
249 # Note: On Win, this should run after win_toolchain, as it may use it.
250 'name': 'clang',
251 'pattern': '.',
Corentin Wallezd5203662022-01-05 15:54:08 +0000252 'action': ['python3', 'tools/clang/scripts/update.py'],
Corentin Wallez21a23852018-07-31 18:50:03 +0200253 'condition': 'dawn_standalone',
254 },
255 {
dan sinclair93cf3462022-05-16 12:58:24 +0000256 # This is also supposed to support the same set of platforms as 'clang'
257 # above. LLVM ToT support isn't provided at the moment.
258 'name': 'clang_tidy',
259 'pattern': '.',
Corentin Wallezc4051b12022-05-17 08:21:02 +0000260 'condition': 'dawn_standalone and checkout_clang_tidy',
dan sinclair93cf3462022-05-16 12:58:24 +0000261 'action': ['python3', 'tools/clang/scripts/update.py',
262 '--package=clang-tidy'],
263 },
264 {
Corentin Wallez21a23852018-07-31 18:50:03 +0200265 # Pull rc binaries using checked-in hashes.
266 'name': 'rc_win',
267 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000268 'condition': 'dawn_standalone and checkout_win and host_os == "win"',
Corentin Wallez21a23852018-07-31 18:50:03 +0200269 'action': [ 'download_from_google_storage',
270 '--no_resume',
271 '--no_auth',
272 '--bucket', 'chromium-browser-clang/rc',
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200273 '-s', 'build/toolchain/win/rc/win/rc.exe.sha1',
Corentin Wallez21a23852018-07-31 18:50:03 +0200274 ],
275 },
Corentin Wallez131e6192020-11-03 18:18:06 +0000276 # Pull clang-format binaries using checked-in hashes.
277 {
Corentin Wallez51723bd2022-04-07 10:40:46 +0000278 'name': 'clang_format_win',
279 'pattern': '.',
280 'condition': 'dawn_standalone and host_os == "win"',
281 'action': [ 'download_from_google_storage',
282 '--no_resume',
283 '--no_auth',
284 '--bucket', 'chromium-clang-format',
285 '-s', 'buildtools/win/clang-format.exe.sha1',
286 ],
287 },
288 {
Ben Clayton088a6002022-04-06 19:57:42 +0000289 'name': 'clang_format_mac_x64',
Corentin Wallez131e6192020-11-03 18:18:06 +0000290 'pattern': '.',
Ben Clayton088a6002022-04-06 19:57:42 +0000291 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "x64"',
Corentin Wallez131e6192020-11-03 18:18:06 +0000292 'action': [ 'download_from_google_storage',
293 '--no_resume',
294 '--no_auth',
295 '--bucket', 'chromium-clang-format',
Ben Clayton088a6002022-04-06 19:57:42 +0000296 '-s', 'buildtools/mac/clang-format.x64.sha1',
297 '-o', 'buildtools/mac/clang-format',
Corentin Wallez131e6192020-11-03 18:18:06 +0000298 ],
299 },
300 {
Ben Clayton088a6002022-04-06 19:57:42 +0000301 'name': 'clang_format_mac_arm64',
Corentin Wallez131e6192020-11-03 18:18:06 +0000302 'pattern': '.',
Ben Clayton088a6002022-04-06 19:57:42 +0000303 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "arm64"',
Corentin Wallez131e6192020-11-03 18:18:06 +0000304 'action': [ 'download_from_google_storage',
305 '--no_resume',
306 '--no_auth',
307 '--bucket', 'chromium-clang-format',
Ben Clayton088a6002022-04-06 19:57:42 +0000308 '-s', 'buildtools/mac/clang-format.arm64.sha1',
309 '-o', 'buildtools/mac/clang-format',
Corentin Wallez131e6192020-11-03 18:18:06 +0000310 ],
311 },
312 {
313 'name': 'clang_format_linux',
314 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000315 'condition': 'dawn_standalone and host_os == "linux"',
Corentin Wallez131e6192020-11-03 18:18:06 +0000316 'action': [ 'download_from_google_storage',
317 '--no_resume',
318 '--no_auth',
319 '--bucket', 'chromium-clang-format',
320 '-s', 'buildtools/linux64/clang-format.sha1',
321 ],
322 },
Corentin Wallez15d8cb72018-11-19 10:13:31 +0000323 # Update build/util/LASTCHANGE.
324 {
325 'name': 'lastchange',
326 'pattern': '.',
Jiajie Hu2ffc55a2020-07-01 05:08:36 +0000327 'condition': 'dawn_standalone',
Corentin Wallezd5203662022-01-05 15:54:08 +0000328 'action': ['python3', 'build/util/lastchange.py',
Corentin Wallez15d8cb72018-11-19 10:13:31 +0000329 '-o', 'build/util/LASTCHANGE'],
330 },
Austin Eng4948c812021-10-15 14:28:32 +0000331 # TODO(https://crbug.com/1180257): Use CIPD for CMake on Windows.
332 {
333 'name': 'cmake_win32',
334 'pattern': '.',
335 'condition': 'dawn_node and host_os == "win"',
336 'action': [ 'download_from_google_storage',
337 '--no_resume',
338 '--platform=win32',
339 '--no_auth',
340 '--bucket', 'chromium-tools',
341 Var('dawn_cmake_win32_sha1'),
342 '-o', 'tools/cmake-win32.zip'
343 ],
344 },
345 {
346 'name': 'cmake_win32_extract',
347 'pattern': '.',
348 'condition': 'dawn_node and host_os == "win"',
Corentin Wallezd5203662022-01-05 15:54:08 +0000349 'action': [ 'python3',
Austin Eng4948c812021-10-15 14:28:32 +0000350 'scripts/extract.py',
351 'tools/cmake-win32.zip',
352 'tools/cmake-win32/',
353 ],
354 },
Ben Clayton6f8ff742022-03-28 19:55:42 +0000355
356 # Node binaries, when dawn_node is enabled
357 {
358 'name': 'node_linux64',
359 'pattern': '.',
360 'condition': 'dawn_node and host_os == "linux"',
361 'action': [ 'download_from_google_storage',
362 '--no_resume',
363 '--extract',
364 '--no_auth',
365 '--bucket', 'chromium-nodejs/16.13.0',
366 Var('node_linux_x64_sha'),
367 '-o', 'third_party/node/node-linux-x64.tar.gz',
368 ],
369 },
370 {
371 'name': 'node_mac',
372 'pattern': '.',
373 'condition': 'dawn_node and host_os == "mac"',
374 'action': [ 'download_from_google_storage',
375 '--no_resume',
376 '--extract',
377 '--no_auth',
378 '--bucket', 'chromium-nodejs/16.13.0',
379 Var('node_darwin_x64_sha'),
380 '-o', 'third_party/node/node-darwin-x64.tar.gz',
381 ],
382 },
383 {
384 'name': 'node_mac_arm64',
385 'pattern': '.',
386 'condition': 'dawn_node and host_os == "mac"',
387 'action': [ 'download_from_google_storage',
388 '--no_resume',
389 '--extract',
390 '--no_auth',
391 '--bucket', 'chromium-nodejs/16.13.0',
392 Var('node_darwin_arm64_sha'),
393 '-o', 'third_party/node/node-darwin-arm64.tar.gz',
394 ],
395 },
396 {
397 'name': 'node_win',
398 'pattern': '.',
399 'condition': 'dawn_node and host_os == "win"',
400 'action': [ 'download_from_google_storage',
401 '--no_resume',
402 '--no_auth',
403 '--bucket', 'chromium-nodejs/16.13.0',
404 Var('node_win_x64_sha'),
405 '-o', 'third_party/node/node.exe',
406 ],
407 },
408
Corentin Wallezca81bd32018-09-03 11:55:58 +0200409]
410
411recursedeps = [
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000412 'third_party/vulkan-deps',
Corentin Wallez21a23852018-07-31 18:50:03 +0200413]