blob: 51c0fdecd253b6a16a16d60422599de2ff11ce44 [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 Clayton87a190e2024-01-23 15:17:03 +000027 'node_darwin_arm64_sha': '864780996d3be6c9aca03f371a4bd672728f0a75',
28 'node_darwin_x64_sha': '85ccc2202fd4f1615a443248c01a866ae227ba78',
29 'node_linux_x64_sha': '46795170ff5df9831955f163f6966abde581c8af',
30 'node_win_x64_sha': '2cb36010af52bc5e2a2d1e3675c10361c80d8f8d',
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.
Antonio Maiorano762198b2024-03-01 01:06:01 +000060 'SUBMODULE_MIGRATION': 'True',
61
62 'fetch_cmake': False
Corentin Wallez21a23852018-07-31 18:50:03 +020063}
64
65deps = {
Corentin Wallez1a0596d2018-09-10 15:16:10 +020066 'buildtools': {
Arthur Sonzognib0e40542023-11-08 17:34:19 +000067 'url': '{chromium_git}/chromium/src/buildtools@48ab3bd053bfe2fef4635d7cb1861f8923167b96',
Corentin Wallez21a23852018-07-31 18:50:03 +020068 'condition': 'dawn_standalone',
69 },
Loko Kung2d988ce2023-05-25 23:28:34 +000070 'third_party/clang-format/script': {
Austin Eng99ad82a2022-07-27 21:57:30 +000071 'url': '{chromium_git}/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@8b525d2747f2584fc35d8c7e612e66f377858df7',
Corentin Wallez60ca94b2021-03-24 16:22:32 +000072 'condition': 'dawn_standalone',
73 },
Corentin Wallez60ca94b2021-03-24 16:22:32 +000074 'buildtools/linux64': {
75 'packages': [{
76 'package': 'gn/gn/linux-amd64',
Corentin Wallez88d5e072021-12-13 15:24:55 +000077 'version': Var('dawn_gn_version'),
Corentin Wallez60ca94b2021-03-24 16:22:32 +000078 }],
79 'dep_type': 'cipd',
80 'condition': 'dawn_standalone and host_os == "linux"',
81 },
82 'buildtools/mac': {
83 'packages': [{
84 'package': 'gn/gn/mac-${{arch}}',
Corentin Wallez88d5e072021-12-13 15:24:55 +000085 'version': Var('dawn_gn_version'),
Corentin Wallez60ca94b2021-03-24 16:22:32 +000086 }],
87 'dep_type': 'cipd',
88 'condition': 'dawn_standalone and host_os == "mac"',
89 },
90 'buildtools/win': {
91 'packages': [{
92 'package': 'gn/gn/windows-amd64',
Corentin Wallez88d5e072021-12-13 15:24:55 +000093 'version': Var('dawn_gn_version'),
Corentin Wallez60ca94b2021-03-24 16:22:32 +000094 }],
95 'dep_type': 'cipd',
96 'condition': 'dawn_standalone and host_os == "win"',
97 },
98
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +000099 'third_party/depot_tools': {
Dawn Autorollerc5fc02a2024-05-29 01:36:59 +0000100 'url': '{chromium_git}/chromium/tools/depot_tools.git@a85dcffff40e537ce931ec7941400a8ef0c4e37a',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000101 'condition': 'dawn_standalone',
102 },
103
Joanna Wangff5d8b52023-08-02 16:35:08 +0000104 'third_party/libc++/src': {
Arthur Sonzognib0e40542023-11-08 17:34:19 +0000105 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxx.git@278060665f956b98b54922e3cb5e38b07884ce7d',
Joanna Wange7e54c02023-07-25 17:59:41 +0000106 'condition': 'dawn_standalone',
107 },
108
Joanna Wangff5d8b52023-08-02 16:35:08 +0000109 'third_party/libc++abi/src': {
Arthur Sonzognib0e40542023-11-08 17:34:19 +0000110 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxxabi.git@0226cb1cdfe740b173394e1cebbd0dcf293e38ad',
Joanna Wange7e54c02023-07-25 17:59:41 +0000111 'condition': 'dawn_standalone',
112 },
113
danakj4090b7d2023-10-24 17:49:01 +0000114 # Dependencies required to use GN, Clang, and Rust in standalone.
115 # The //build, //tools/clang, and //tools/rust deps should all be updated
116 # in unison, as there are dependencies between them.
117 'build': {
Rusty Sammon663c6852024-02-02 18:16:27 +0000118 'url': '{chromium_git}/chromium/src/build@c6118a585ff6b2ef9f9a3b180d57b3cbf79e1788',
Corentin Wallez21a23852018-07-31 18:50:03 +0200119 'condition': 'dawn_standalone',
120 },
danakj4090b7d2023-10-24 17:49:01 +0000121 'tools/clang': {
Rusty Sammon663c6852024-02-02 18:16:27 +0000122 'url': '{chromium_git}/chromium/src/tools/clang@de6b303a8915c2610e6ff30f5e7c89b2c8e4e2af',
danakj4090b7d2023-10-24 17:49:01 +0000123 'condition': 'dawn_standalone',
124 },
125 'tools/rust': {
Rusty Sammon663c6852024-02-02 18:16:27 +0000126 'url': '{chromium_git}/chromium/src/tools/rust@bcaf16e552b19d4f5d67636d8373c172a2cf8a1a',
danakj4090b7d2023-10-24 17:49:01 +0000127 'condition': 'dawn_standalone and checkout_rust',
128 },
Kai Ninomiyaf526d772020-04-06 22:27:02 +0000129 'tools/clang/dsymutil': {
Corentin Wallez60ca94b2021-03-24 16:22:32 +0000130 'packages': [{
131 'package': 'chromium/llvm-build-tools/dsymutil',
132 'version': 'M56jPzDv1620Rnm__jTMYS62Zi8rxHVq7yw0qeBFEgkC',
133 }],
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000134 'condition': 'dawn_standalone and (checkout_mac or checkout_ios)',
Kai Ninomiyaf526d772020-04-06 22:27:02 +0000135 'dep_type': 'cipd',
136 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200137
Antonio Maioranoaf46ea52024-05-03 19:36:58 +0000138 # Linux sysroots for hermetic builds instead of relying on whatever is
139 # available from the system used for compilation. Only applicable to
140 # dawn_standalone since Chromium has its own sysroot copy.
141 'build/linux/debian_bullseye_armhf-sysroot': {
142 'bucket': 'chrome-linux-sysroot',
143 'condition': 'dawn_standalone and checkout_linux and checkout_arm',
144 'dep_type': 'gcs',
145 'objects': [
146 {
147 'object_name': 'e1ace9eea7f5f8906a5de665022abb745efb47ce4931ae774b58005adaf907e9',
148 'sha256sum': 'e1ace9eea7f5f8906a5de665022abb745efb47ce4931ae774b58005adaf907e9',
149 'size_bytes': 96825360,
150 'generation': 1714159610727506,
151 },
152 ],
153 },
154 'build/linux/debian_bullseye_arm64-sysroot': {
155 'bucket': 'chrome-linux-sysroot',
156 'condition': 'dawn_standalone and checkout_linux and checkout_arm64',
157 'dep_type': 'gcs',
158 'objects': [
159 {
160 'object_name': 'd303cf3faf7804c9dd24c9b6b167d0345d41d7fe4bfb7d34add3ab342f6a236c',
161 'sha256sum': 'd303cf3faf7804c9dd24c9b6b167d0345d41d7fe4bfb7d34add3ab342f6a236c',
162 'size_bytes': 103556332,
163 'generation': 1714159596952688,
164 },
165 ],
166 },
167 'build/linux/debian_bullseye_i386-sysroot': {
168 'bucket': 'chrome-linux-sysroot',
169 'condition': 'dawn_standalone and checkout_linux and (checkout_x86 or checkout_x64)',
170 'dep_type': 'gcs',
171 'objects': [
172 {
173 'object_name': '4300851707ad38b204e7f4912950c05ad51da0251ecc4e410de9b9fb94f7decf',
174 'sha256sum': '4300851707ad38b204e7f4912950c05ad51da0251ecc4e410de9b9fb94f7decf',
175 'size_bytes': 116515924,
176 'generation': 1714159579525878,
177 },
178 ],
179 },
180 'build/linux/debian_bullseye_mipsel-sysroot': {
181 'bucket': 'chrome-linux-sysroot',
182 'condition': 'dawn_standalone and checkout_linux and checkout_mips',
183 'dep_type': 'gcs',
184 'objects': [
185 {
186 'object_name': 'cc3202718a58541488e79b0333ce936a32227e07228f6b3c122d99ee45f83270',
187 'sha256sum': 'cc3202718a58541488e79b0333ce936a32227e07228f6b3c122d99ee45f83270',
188 'size_bytes': 93412776,
189 'generation': 1714159559897107,
190 },
191 ],
192 },
193 'build/linux/debian_bullseye_mips64el-sysroot': {
194 'bucket': 'chrome-linux-sysroot',
195 'condition': 'dawn_standalone and checkout_linux and checkout_mips64',
196 'dep_type': 'gcs',
197 'objects': [
198 {
199 'object_name': 'ee94d723b36d1e643820fe7ee2a8f45b3664b4c5d3c3379ebab39e474a2c9f86',
200 'sha256sum': 'ee94d723b36d1e643820fe7ee2a8f45b3664b4c5d3c3379ebab39e474a2c9f86',
201 'size_bytes': 97911708,
202 'generation': 1714159538956875,
203 },
204 ],
205 },
206 'build/linux/debian_bullseye_amd64-sysroot': {
207 'bucket': 'chrome-linux-sysroot',
208 'condition': 'dawn_standalone and checkout_linux and checkout_x64',
209 'dep_type': 'gcs',
210 'objects': [
211 {
212 'object_name': '5df5be9357b425cdd70d92d4697d07e7d55d7a923f037c22dc80a78e85842d2c',
213 'sha256sum': '5df5be9357b425cdd70d92d4697d07e7d55d7a923f037c22dc80a78e85842d2c',
214 'size_bytes': 123084324,
215 'generation': 1714159395960299,
216 },
217 ],
218 },
219
220
Corentin Wallez649e2fe2018-08-03 15:57:43 +0200221 # Testing, GTest and GMock
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200222 'testing': {
Ben Clayton3610fc92023-09-29 12:13:00 +0000223 'url': '{chromium_git}/chromium/src/testing@035a9b18047370df7403758b006e6c9696d6b84d',
Ben Claytonb7bd8d82023-09-28 14:10:51 +0000224 'condition': 'dawn_standalone',
225 },
226 'third_party/libFuzzer/src': {
227 'url': '{chromium_git}/external/github.com/llvm/llvm-project/compiler-rt/lib/fuzzer.git' + '@' + '26cc39e59b2bf5cbc20486296248a842c536878d',
Corentin Wallez21a23852018-07-31 18:50:03 +0200228 'condition': 'dawn_standalone',
229 },
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200230 'third_party/googletest': {
Austin Enga0e96b52023-02-18 00:39:01 +0000231 'url': '{chromium_git}/external/github.com/google/googletest@7a7231c442484be389fdf01594310349ca0e42a8',
Corentin Wallezd5203662022-01-05 15:54:08 +0000232 'condition': 'dawn_standalone',
233 },
234 # This is a dependency of //testing
235 'third_party/catapult': {
Anne Redulla3bcc93f2023-08-09 15:12:58 +0000236 'url': '{chromium_git}/catapult.git@dd218dfd815774289f8a81015f7a3131f72afbde',
Corentin Wallez649e2fe2018-08-03 15:57:43 +0200237 'condition': 'dawn_standalone',
238 },
Austin Eng6a7bba52023-04-17 18:11:51 +0000239 'third_party/google_benchmark/src': {
240 'url': '{chromium_git}/external/github.com/google/benchmark.git' + '@' + 'efc89f0b524780b1994d5dddd83a92718e5be492',
241 'condition': 'dawn_standalone',
242 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200243
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200244 # Jinja2 and MarkupSafe for the code generator
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200245 'third_party/jinja2': {
Corentin Wallezd2c27be2024-01-09 12:37:34 +0000246 'url': '{chromium_git}/chromium/src/third_party/jinja2@e2d024354e11cc6b041b0cff032d73f0c7e43a07',
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200247 'condition': 'dawn_standalone',
248 },
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200249 'third_party/markupsafe': {
Corentin Wallezd2c27be2024-01-09 12:37:34 +0000250 'url': '{chromium_git}/chromium/src/third_party/markupsafe@0bad08bb207bbfc1d6f3bbc82b9242b0c50e5794',
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200251 'condition': 'dawn_standalone',
252 },
253
Corentin Wallez4d7d1692018-08-13 08:23:27 +0200254 # GLFW for tests and samples
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200255 'third_party/glfw': {
Corentin Wallez82d0a2e2024-05-24 14:40:48 +0000256 'url': '{chromium_git}/external/github.com/glfw/glfw@b35641f4a3c62aa86a0b3c983d163bc0fe36026d',
Corentin Wallez4d7d1692018-08-13 08:23:27 +0200257 },
258
Stephen White77fcdf72021-01-11 15:52:12 +0000259 'third_party/vulkan_memory_allocator': {
Corentin Walleze7badbc2024-01-10 19:19:41 +0000260 'url': '{chromium_git}/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator@52dc220fb326e6ae132b7f262133b37b0dc334a3',
Stephen White77fcdf72021-01-11 15:52:12 +0000261 'condition': 'dawn_standalone',
262 },
263
264 'third_party/angle': {
Dawn Autorollerbb0e3692024-05-28 17:23:04 +0000265 'url': '{chromium_git}/angle/angle@0c87d0edb767de3654caf9ffb56bc822b97796a2',
Stephen White77fcdf72021-01-11 15:52:12 +0000266 'condition': 'dawn_standalone',
267 },
268
Corentin Wallez74cebd62019-11-26 18:21:51 +0000269 'third_party/swiftshader': {
Dawn Autoroller20d87bf2024-05-24 21:14:30 +0000270 'url': '{swiftshader_git}/SwiftShader@ec5dbd2dfb4623f5b2721a77bb5388d79fafc506',
Corentin Wallez74cebd62019-11-26 18:21:51 +0000271 'condition': 'dawn_standalone',
272 },
273
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000274 'third_party/vulkan-deps': {
Dawn Autoroller70b36f02024-05-27 16:37:23 +0000275 'url': '{chromium_git}/vulkan-deps@9486d04e3ac1657d7a72ecf2401dbb19529d675f',
Corentin Wallez1fdd0592021-04-02 18:04:27 +0000276 'condition': 'dawn_standalone',
Stephen White77fcdf72021-01-11 15:52:12 +0000277 },
278
Yuly Novikov143523a2024-05-23 15:59:58 +0000279 'third_party/glslang/src': {
Dawn Autoroller70b36f02024-05-27 16:37:23 +0000280 'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@2b19bf7e1bc0b60cf2fe9d33e5ba6b37dfc1cc83',
Yuly Novikov143523a2024-05-23 15:59:58 +0000281 'condition': 'dawn_standalone',
282 },
283
284 'third_party/spirv-cross/src': {
285 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@b8fcf307f1f347089e3c46eb4451d27f32ebc8d3',
286 'condition': 'dawn_standalone',
287 },
288
289 'third_party/spirv-headers/src': {
290 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@49a1fceb9b1d087f3c25ad5ec077bb0e46231297',
291 'condition': 'dawn_standalone',
292 },
293
294 'third_party/spirv-tools/src': {
Dawn Autoroller79f4a6e2024-05-27 12:59:09 +0000295 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@77c40bece1b8b441eee432fc9d74efbf985f777f',
Yuly Novikov143523a2024-05-23 15:59:58 +0000296 'condition': 'dawn_standalone',
297 },
298
299 'third_party/vulkan-headers/src': {
300 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@5677bafb820e476441e9e1f745371b72133407d3',
301 'condition': 'dawn_standalone',
302 },
303
304 'third_party/vulkan-loader/src': {
Dawn Autoroller79f4a6e2024-05-27 12:59:09 +0000305 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@d3d530c90dd6549bcfc7cfaedd3ff85fe8ff04a2',
Yuly Novikov143523a2024-05-23 15:59:58 +0000306 'condition': 'dawn_standalone',
307 },
308
309 'third_party/vulkan-tools/src': {
Dawn Autoroller06b30462024-05-24 18:02:36 +0000310 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Tools@d67a9d3a394e11c1c4c0f480124f5b7925cb1b4d',
Yuly Novikov143523a2024-05-23 15:59:58 +0000311 'condition': 'dawn_standalone',
312 },
313
314 'third_party/vulkan-utility-libraries/src': {
Dawn Autoroller70b36f02024-05-27 16:37:23 +0000315 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Utility-Libraries@8bc338928b5c92489d953e049018eab2359d437a',
Yuly Novikov143523a2024-05-23 15:59:58 +0000316 'condition': 'dawn_standalone',
317 },
318
319 'third_party/vulkan-validation-layers/src': {
Dawn Autoroller70b36f02024-05-27 16:37:23 +0000320 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@ee4ac8ea868cf33da30281e25380415c3434523f',
Yuly Novikov143523a2024-05-23 15:59:58 +0000321 'condition': 'dawn_standalone',
322 },
323
Stephen White77fcdf72021-01-11 15:52:12 +0000324 'third_party/zlib': {
Anne Redulla3bcc93f2023-08-09 15:12:58 +0000325 'url': '{chromium_git}/chromium/src/third_party/zlib@526382e41c9c5275dc329db4328b54e4f344a204',
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000326 'condition': 'dawn_standalone',
327 },
Brandon Jonesa04663c2021-09-23 20:36:03 +0000328
329 'third_party/abseil-cpp': {
Corentin Wallez86e10a62024-05-20 13:48:38 +0000330 'url': '{chromium_git}/chromium/src/third_party/abseil-cpp@f81f6c011baf9b0132a5594c034fe0060820711d',
Brandon Jonesa04663c2021-09-23 20:36:03 +0000331 'condition': 'dawn_standalone',
332 },
Ben Claytondc890d62021-09-27 22:55:39 +0000333
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000334 'third_party/dxc': {
Dawn Autoroller5133d0a2024-05-25 06:00:28 +0000335 'url': '{chromium_git}/external/github.com/microsoft/DirectXShaderCompiler@128e6ce2be8f09539c97cf28d6066d9a6b32b15c',
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000336 },
Antonio Maiorano83bdc7f2023-08-21 15:29:35 +0000337
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000338 'third_party/dxheaders': {
339 # The non-Windows build of DXC depends on DirectX-Headers, and at a specific commit (not ToT)
340 'url': '{chromium_git}/external/github.com/microsoft/DirectX-Headers@980971e835876dc0cde415e8f9bc646e64667bf7',
Austin Engc02f1432023-07-05 22:38:39 +0000341 'condition': 'host_os != "win"',
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000342 },
343
Austin Engb94ef822024-05-02 02:37:35 +0000344 'third_party/webgpu-headers': {
Ho Cheung084cc582024-05-22 15:51:26 +0000345 'url': '{chromium_git}/external/github.com/webgpu-native/webgpu-headers@8049c324dc7b3c09dc96ea04cb02860f272c8686',
Austin Engb94ef822024-05-02 02:37:35 +0000346 },
347
Antonio Maiorano83bdc7f2023-08-21 15:29:35 +0000348 'third_party/khronos/OpenGL-Registry': {
349 'url': '{chromium_git}/external/github.com/KhronosGroup/OpenGL-Registry@5bae8738b23d06968e7c3a41308568120943ae77',
350 },
351
352 'third_party/khronos/EGL-Registry': {
353 'url': '{chromium_git}/external/github.com/KhronosGroup/EGL-Registry@7dea2ed79187cd13f76183c4b9100159b9e3e071',
354 },
355
Kai Ninomiya5c780d72022-03-17 21:43:17 +0000356 # WebGPU CTS - not used directly by Dawn, only transitively by Chromium.
357 'third_party/webgpu-cts': {
Dawn Automated Expectations21006ed2024-05-10 15:21:33 +0000358 'url': '{chromium_git}/external/github.com/gpuweb/cts@4629efe685b7b8db08e1c7aa2cafd1e9e5769ac2',
Kai Ninomiya5c780d72022-03-17 21:43:17 +0000359 'condition': 'build_with_chromium',
360 },
361
Ben Clayton6f8ff742022-03-28 19:55:42 +0000362 # Dependencies required to build / run Dawn NodeJS bindings
Ben Claytondc890d62021-09-27 22:55:39 +0000363 'third_party/node-api-headers': {
Corentin Wallezbcfe0662024-05-20 13:57:04 +0000364 'url': '{github_git}/nodejs/node-api-headers.git@d5cfe19da8b974ca35764dd1c73b91d57cd3c4ce',
Ben Claytondc890d62021-09-27 22:55:39 +0000365 'condition': 'dawn_node',
366 },
367 'third_party/node-addon-api': {
Corentin Wallezbcfe0662024-05-20 13:57:04 +0000368 'url': '{github_git}/nodejs/node-addon-api.git@1e26dcb52829a74260ec262edb41fc22998669b6',
Ben Claytondc890d62021-09-27 22:55:39 +0000369 'condition': 'dawn_node',
370 },
371 'third_party/gpuweb': {
François Beaufortcdfcfca2023-11-25 06:05:33 +0000372 'url': '{github_git}/gpuweb/gpuweb.git@a6805d5298c6979392768ed13f442e35b9a35b22',
Ben Claytondc890d62021-09-27 22:55:39 +0000373 'condition': 'dawn_node',
374 },
Austin Eng4948c812021-10-15 14:28:32 +0000375
376 'tools/golang': {
Austin Eng4948c812021-10-15 14:28:32 +0000377 'packages': [{
378 'package': 'infra/3pp/tools/go/${{platform}}',
379 'version': Var('dawn_go_version'),
380 }],
381 'dep_type': 'cipd',
382 },
383
384 'tools/cmake': {
Antonio Maiorano762198b2024-03-01 01:06:01 +0000385 'condition': '(fetch_cmake or dawn_node) and (host_os == "mac" or host_os == "linux")',
Austin Eng4948c812021-10-15 14:28:32 +0000386 'packages': [{
387 'package': 'infra/3pp/tools/cmake/${{platform}}',
388 'version': Var('dawn_cmake_version'),
389 }],
390 'dep_type': 'cipd',
391 },
Ryan Harrisone87ac762022-04-06 15:37:27 -0400392
Junji Watanabe4ad7f012022-10-03 02:48:52 +0000393 'third_party/ninja': {
394 'packages': [
395 {
396 'package': 'infra/3pp/tools/ninja/${{platform}}',
397 'version': Var('dawn_ninja_version'),
398 }
399 ],
400 'dep_type': 'cipd',
401 },
402
Ryan Harrison29fc5e92023-07-17 16:12:27 +0000403 # RBE dependencies
404 'buildtools/reclient': {
405 'packages': [
406 {
407 'package': Var('reclient_package') + '${{platform}}',
408 'version': Var('reclient_version'),
409 }
410 ],
411 'dep_type': 'cipd',
412 'condition': 'dawn_standalone',
413 },
Ryan Harrison29fc5e92023-07-17 16:12:27 +0000414
Ryan Harrisone87ac762022-04-06 15:37:27 -0400415 # Misc dependencies inherited from Tint
Ryan Harrison3374f432022-03-28 18:01:02 +0000416 'third_party/protobuf': {
Ben Claytonde2686e2023-11-16 12:39:06 +0000417 'url': '{chromium_git}/chromium/src/third_party/protobuf@41759e11ec427e29e1a72b9401d2af3f6e02d839',
418 'condition': 'dawn_standalone',
419 },
420
421 'tools/protoc_wrapper': {
422 'url': '{chromium_git}/chromium/src/tools/protoc_wrapper@b5ea227bd88235ab3ccda964d5f3819c4e2d8032',
Ryan Harrisone87ac762022-04-06 15:37:27 -0400423 'condition': 'dawn_standalone',
Ryan Harrison3374f432022-03-28 18:01:02 +0000424 },
Arthur Sonzogni8b28afe2023-10-12 16:06:04 +0000425
Ben Clayton818dfde2024-05-27 22:48:41 +0000426 'third_party/libprotobuf-mutator/src': {
427 'url': '{chromium_git}/external/github.com/google/libprotobuf-mutator.git@a304ec48dcf15d942607032151f7e9ee504b5dcf',
428 'condition': 'dawn_standalone',
429 },
430
Ben Claytonf9a5b712024-03-13 17:37:33 +0000431 # Dependencies for tintd.
432 'third_party/jsoncpp': {
433 'url': '{github_git}/open-source-parsers/jsoncpp.git@69098a18b9af0c47549d9a271c054d13ca92b006',
434 'condition': 'dawn_standalone',
435 },
436
437 'third_party/langsvr': {
Gregg Tavares498879a2024-05-17 12:12:09 +0000438 'url': '{github_git}/google/langsvr.git@303c526231a90049a3e384549720f3fbd453cf66',
Ben Claytonf9a5b712024-03-13 17:37:33 +0000439 'condition': 'dawn_standalone',
440 },
441
Arthur Sonzogni8b28afe2023-10-12 16:06:04 +0000442 # Dependencies for PartitionAlloc.
443 # Doc: https://docs.google.com/document/d/1wz45t0alQthsIU9P7_rQcfQyqnrBMXzrOjSzdQo-V-A
444 'third_party/partition_alloc': {
Arthur Sonzogni7379e222024-01-09 17:32:25 +0000445 'url': '{chromium_git}/chromium/src/base/allocator/partition_allocator.git@67fd2f86eef40b1357387e2b0fc1eaf3c67d6ed7',
Arthur Sonzogni8b28afe2023-10-12 16:06:04 +0000446 'condition': 'dawn_standalone',
447 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200448}
449
450hooks = [
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000451 {
452 # Ensure that the DEPS'd "depot_tools" has its self-update capability
453 # disabled.
454 'name': 'disable_depot_tools_selfupdate',
455 'pattern': '.',
456 'condition': 'dawn_standalone',
457 'action': [
458 'python3',
459 'third_party/depot_tools/update_depot_tools_toggle.py',
460 '--disable',
461 ],
462 },
463
Corentin Wallez21a23852018-07-31 18:50:03 +0200464 # Pull the compilers and system libraries for hermetic builds
465 {
466 'name': 'sysroot_x86',
467 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000468 'condition': 'dawn_standalone and checkout_linux and (checkout_x86 or checkout_x64)',
Corentin Wallezd5203662022-01-05 15:54:08 +0000469 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Corentin Wallez21a23852018-07-31 18:50:03 +0200470 '--arch=x86'],
471 },
472 {
473 'name': 'sysroot_x64',
474 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000475 'condition': 'dawn_standalone and checkout_linux and checkout_x64',
Corentin Wallezd5203662022-01-05 15:54:08 +0000476 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Corentin Wallez21a23852018-07-31 18:50:03 +0200477 '--arch=x64'],
478 },
479 {
Corentin Wallezd4e7f082020-11-17 21:16:31 +0000480 # Update the Mac toolchain if possible, this makes builders use "hermetic XCode" which is
481 # is more consistent (only changes when rolling build/) and is cached.
482 'name': 'mac_toolchain',
483 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000484 'condition': 'dawn_standalone and checkout_mac',
Corentin Wallezd5203662022-01-05 15:54:08 +0000485 'action': ['python3', 'build/mac_toolchain.py'],
Corentin Wallezd4e7f082020-11-17 21:16:31 +0000486 },
487 {
Peng Huang78583a12023-02-10 13:53:31 +0000488 # Case-insensitivity for the Win SDK. Must run before win_toolchain below.
489 'name': 'ciopfs_linux',
490 'pattern': '.',
Peng Huang708a0772023-02-13 11:38:38 +0000491 'condition': 'dawn_standalone and checkout_win and host_os == "linux"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000492 'action': [ 'python3',
493 'third_party/depot_tools/download_from_google_storage.py',
Peng Huang78583a12023-02-10 13:53:31 +0000494 '--no_resume',
495 '--no_auth',
496 '--bucket', 'chromium-browser-clang/ciopfs',
497 '-s', 'build/ciopfs.sha1',
498 ]
499 },
500 {
Corentin Wallez682c44a2018-08-13 17:48:16 +0200501 # Update the Windows toolchain if necessary. Must run before 'clang' below.
Corentin Wallez21a23852018-07-31 18:50:03 +0200502 'name': 'win_toolchain',
503 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000504 'condition': 'dawn_standalone and checkout_win',
Corentin Wallezd5203662022-01-05 15:54:08 +0000505 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'],
Corentin Wallez21a23852018-07-31 18:50:03 +0200506 },
507 {
508 # Note: On Win, this should run after win_toolchain, as it may use it.
509 'name': 'clang',
510 'pattern': '.',
Corentin Wallezd5203662022-01-05 15:54:08 +0000511 'action': ['python3', 'tools/clang/scripts/update.py'],
Corentin Wallez21a23852018-07-31 18:50:03 +0200512 'condition': 'dawn_standalone',
513 },
514 {
dan sinclair93cf3462022-05-16 12:58:24 +0000515 # This is also supposed to support the same set of platforms as 'clang'
516 # above. LLVM ToT support isn't provided at the moment.
517 'name': 'clang_tidy',
518 'pattern': '.',
Corentin Wallezc4051b12022-05-17 08:21:02 +0000519 'condition': 'dawn_standalone and checkout_clang_tidy',
dan sinclair93cf3462022-05-16 12:58:24 +0000520 'action': ['python3', 'tools/clang/scripts/update.py',
521 '--package=clang-tidy'],
522 },
523 {
danakj4090b7d2023-10-24 17:49:01 +0000524 'name': 'rust',
525 'pattern': '.',
526 'action': ['python3', 'tools/rust/update_rust.py'],
527 'condition': 'dawn_standalone and checkout_rust',
528 },
529 {
Corentin Wallez21a23852018-07-31 18:50:03 +0200530 # Pull rc binaries using checked-in hashes.
531 'name': 'rc_win',
532 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000533 'condition': 'dawn_standalone and checkout_win and host_os == "win"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000534 'action': [ 'python3',
535 'third_party/depot_tools/download_from_google_storage.py',
Corentin Wallez21a23852018-07-31 18:50:03 +0200536 '--no_resume',
537 '--no_auth',
538 '--bucket', 'chromium-browser-clang/rc',
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200539 '-s', 'build/toolchain/win/rc/win/rc.exe.sha1',
Corentin Wallez21a23852018-07-31 18:50:03 +0200540 ],
541 },
Peng Huang78583a12023-02-10 13:53:31 +0000542 {
543 'name': 'rc_linux',
544 'pattern': '.',
Peng Huang708a0772023-02-13 11:38:38 +0000545 'condition': 'dawn_standalone and checkout_win and host_os == "linux"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000546 'action': [ 'python3',
547 'third_party/depot_tools/download_from_google_storage.py',
Peng Huang78583a12023-02-10 13:53:31 +0000548 '--no_resume',
549 '--no_auth',
550 '--bucket', 'chromium-browser-clang/rc',
551 '-s', 'build/toolchain/win/rc/linux64/rc.sha1',
Antonio Maioranoef9da422023-09-21 17:53:34 +0000552 ],
553 },
554 {
555 'name': 'rc_mac',
556 'pattern': '.',
557 'condition': 'dawn_standalone and checkout_win and host_os == "mac"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000558 'action': [ 'python3',
559 'third_party/depot_tools/download_from_google_storage.py',
Antonio Maioranoef9da422023-09-21 17:53:34 +0000560 '--no_resume',
561 '--no_auth',
562 '--bucket', 'chromium-browser-clang/rc',
563 '-s', 'build/toolchain/win/rc/mac/rc.sha1',
564 ],
Peng Huang78583a12023-02-10 13:53:31 +0000565 },
Corentin Wallez131e6192020-11-03 18:18:06 +0000566 # Pull clang-format binaries using checked-in hashes.
567 {
Corentin Wallez51723bd2022-04-07 10:40:46 +0000568 'name': 'clang_format_win',
569 'pattern': '.',
570 'condition': 'dawn_standalone and host_os == "win"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000571 'action': [ 'python3',
572 'third_party/depot_tools/download_from_google_storage.py',
Corentin Wallez51723bd2022-04-07 10:40:46 +0000573 '--no_resume',
574 '--no_auth',
575 '--bucket', 'chromium-clang-format',
576 '-s', 'buildtools/win/clang-format.exe.sha1',
577 ],
578 },
579 {
Ben Clayton088a6002022-04-06 19:57:42 +0000580 'name': 'clang_format_mac_x64',
Corentin Wallez131e6192020-11-03 18:18:06 +0000581 'pattern': '.',
Ben Clayton088a6002022-04-06 19:57:42 +0000582 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "x64"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000583 'action': [ 'python3',
584 'third_party/depot_tools/download_from_google_storage.py',
Corentin Wallez131e6192020-11-03 18:18:06 +0000585 '--no_resume',
586 '--no_auth',
587 '--bucket', 'chromium-clang-format',
Ben Clayton088a6002022-04-06 19:57:42 +0000588 '-s', 'buildtools/mac/clang-format.x64.sha1',
589 '-o', 'buildtools/mac/clang-format',
Corentin Wallez131e6192020-11-03 18:18:06 +0000590 ],
591 },
592 {
Ben Clayton088a6002022-04-06 19:57:42 +0000593 'name': 'clang_format_mac_arm64',
Corentin Wallez131e6192020-11-03 18:18:06 +0000594 'pattern': '.',
Ben Clayton088a6002022-04-06 19:57:42 +0000595 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "arm64"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000596 'action': [ 'python3',
597 'third_party/depot_tools/download_from_google_storage.py',
Corentin Wallez131e6192020-11-03 18:18:06 +0000598 '--no_resume',
599 '--no_auth',
600 '--bucket', 'chromium-clang-format',
Ben Clayton088a6002022-04-06 19:57:42 +0000601 '-s', 'buildtools/mac/clang-format.arm64.sha1',
602 '-o', 'buildtools/mac/clang-format',
Corentin Wallez131e6192020-11-03 18:18:06 +0000603 ],
604 },
605 {
606 'name': 'clang_format_linux',
607 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000608 'condition': 'dawn_standalone and host_os == "linux"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000609 'action': [ 'python3',
610 'third_party/depot_tools/download_from_google_storage.py',
Corentin Wallez131e6192020-11-03 18:18:06 +0000611 '--no_resume',
612 '--no_auth',
613 '--bucket', 'chromium-clang-format',
614 '-s', 'buildtools/linux64/clang-format.sha1',
615 ],
616 },
Corentin Wallez15d8cb72018-11-19 10:13:31 +0000617 # Update build/util/LASTCHANGE.
618 {
619 'name': 'lastchange',
620 'pattern': '.',
Jiajie Hu2ffc55a2020-07-01 05:08:36 +0000621 'condition': 'dawn_standalone',
Corentin Wallezd5203662022-01-05 15:54:08 +0000622 'action': ['python3', 'build/util/lastchange.py',
Corentin Wallez15d8cb72018-11-19 10:13:31 +0000623 '-o', 'build/util/LASTCHANGE'],
624 },
Austin Eng4948c812021-10-15 14:28:32 +0000625 # TODO(https://crbug.com/1180257): Use CIPD for CMake on Windows.
626 {
627 'name': 'cmake_win32',
628 'pattern': '.',
Antonio Maiorano762198b2024-03-01 01:06:01 +0000629 'condition': '(fetch_cmake or dawn_node) and host_os == "win"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000630 'action': [ 'python3',
631 'third_party/depot_tools/download_from_google_storage.py',
Austin Eng4948c812021-10-15 14:28:32 +0000632 '--no_resume',
633 '--platform=win32',
634 '--no_auth',
635 '--bucket', 'chromium-tools',
636 Var('dawn_cmake_win32_sha1'),
637 '-o', 'tools/cmake-win32.zip'
638 ],
639 },
640 {
641 'name': 'cmake_win32_extract',
642 'pattern': '.',
Antonio Maiorano762198b2024-03-01 01:06:01 +0000643 'condition': '(fetch_cmake or dawn_node) and host_os == "win"',
Corentin Wallezd5203662022-01-05 15:54:08 +0000644 'action': [ 'python3',
Austin Eng4948c812021-10-15 14:28:32 +0000645 'scripts/extract.py',
646 'tools/cmake-win32.zip',
647 'tools/cmake-win32/',
648 ],
649 },
Ben Clayton6f8ff742022-03-28 19:55:42 +0000650
651 # Node binaries, when dawn_node is enabled
652 {
653 'name': 'node_linux64',
654 'pattern': '.',
655 'condition': 'dawn_node and host_os == "linux"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000656 'action': [ 'python3',
657 'third_party/depot_tools/download_from_google_storage.py',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000658 '--no_resume',
659 '--extract',
660 '--no_auth',
Ben Clayton87a190e2024-01-23 15:17:03 +0000661 '--bucket', 'chromium-nodejs/20.11.0',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000662 Var('node_linux_x64_sha'),
663 '-o', 'third_party/node/node-linux-x64.tar.gz',
664 ],
665 },
666 {
667 'name': 'node_mac',
668 'pattern': '.',
669 'condition': 'dawn_node and host_os == "mac"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000670 'action': [ 'python3',
671 'third_party/depot_tools/download_from_google_storage.py',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000672 '--no_resume',
673 '--extract',
674 '--no_auth',
Ben Clayton87a190e2024-01-23 15:17:03 +0000675 '--bucket', 'chromium-nodejs/20.11.0',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000676 Var('node_darwin_x64_sha'),
677 '-o', 'third_party/node/node-darwin-x64.tar.gz',
678 ],
679 },
680 {
681 'name': 'node_mac_arm64',
682 'pattern': '.',
683 'condition': 'dawn_node and host_os == "mac"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000684 'action': [ 'python3',
685 'third_party/depot_tools/download_from_google_storage.py',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000686 '--no_resume',
687 '--extract',
688 '--no_auth',
Ben Clayton87a190e2024-01-23 15:17:03 +0000689 '--bucket', 'chromium-nodejs/20.11.0',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000690 Var('node_darwin_arm64_sha'),
691 '-o', 'third_party/node/node-darwin-arm64.tar.gz',
692 ],
693 },
694 {
695 'name': 'node_win',
696 'pattern': '.',
697 'condition': 'dawn_node and host_os == "win"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000698 'action': [ 'python3',
699 'third_party/depot_tools/download_from_google_storage.py',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000700 '--no_resume',
701 '--no_auth',
Ben Clayton87a190e2024-01-23 15:17:03 +0000702 '--bucket', 'chromium-nodejs/20.11.0',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000703 Var('node_win_x64_sha'),
704 '-o', 'third_party/node/node.exe',
705 ],
706 },
Ryan Harrisonce158be2023-07-20 17:06:56 +0000707 {
708 # Download remote exec cfg files
709 'name': 'fetch_reclient_cfgs',
710 'pattern': '.',
Austin Engd6c4f662023-07-21 01:00:22 +0000711 'condition': 'download_remoteexec_cfg and dawn_standalone',
Ryan Harrisonce158be2023-07-20 17:06:56 +0000712 'action': ['python3',
713 'buildtools/reclient_cfgs/fetch_reclient_cfgs.py',
714 '--rbe_instance',
715 Var('rbe_instance'),
716 '--reproxy_cfg_template',
717 'reproxy.cfg.template',
718 '--rewrapper_cfg_project',
719 Var('rewrapper_cfg_project'),
720 '--quiet',
Ryan Harrisonce158be2023-07-20 17:06:56 +0000721 ],
722 },
Corentin Wallezca81bd32018-09-03 11:55:58 +0200723]