blob: 0774ecfa8b80c92690eb81eb229dcf7728c6002c [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
Loko Kung970b0d22024-06-01 03:26:40 +000056 'reclient_version': 're_client_version:0.143.0.518e369-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
Joanna Wangd486fa32024-08-01 18:02:23 +000062 'fetch_cmake': False,
63
64 # condition to allowlist deps to be synced in Cider. Allowlisting is needed
65 # because not all deps are compatible with Cider. Once we migrate everything
66 # to be compatible we can get rid of this allowlisting mecahnism and remove
67 # this condition. Tracking bug for removing this condition: b/349365433
68 'non_git_source': 'True',
Corentin Wallez21a23852018-07-31 18:50:03 +020069}
70
71deps = {
Corentin Wallez1a0596d2018-09-10 15:16:10 +020072 'buildtools': {
David Neto15893082024-07-04 12:03:53 +000073 'url': '{chromium_git}/chromium/src/buildtools@9cac81256beb5d4d36c8801afeae38fea34b8486',
Corentin Wallez21a23852018-07-31 18:50:03 +020074 'condition': 'dawn_standalone',
75 },
Loko Kung2d988ce2023-05-25 23:28:34 +000076 'third_party/clang-format/script': {
Arthur Sonzogni3aaa0a32024-05-31 14:01:04 +000077 'url': '{chromium_git}/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@95c834f3753e65ce6daa74e345c879566c1491d0',
Corentin Wallez60ca94b2021-03-24 16:22:32 +000078 'condition': 'dawn_standalone',
79 },
Corentin Wallez60ca94b2021-03-24 16:22:32 +000080 'buildtools/linux64': {
81 'packages': [{
82 'package': 'gn/gn/linux-amd64',
Corentin Wallez88d5e072021-12-13 15:24:55 +000083 'version': Var('dawn_gn_version'),
Corentin Wallez60ca94b2021-03-24 16:22:32 +000084 }],
85 'dep_type': 'cipd',
86 'condition': 'dawn_standalone and host_os == "linux"',
87 },
88 'buildtools/mac': {
89 'packages': [{
90 'package': 'gn/gn/mac-${{arch}}',
Corentin Wallez88d5e072021-12-13 15:24:55 +000091 'version': Var('dawn_gn_version'),
Corentin Wallez60ca94b2021-03-24 16:22:32 +000092 }],
93 'dep_type': 'cipd',
94 'condition': 'dawn_standalone and host_os == "mac"',
95 },
96 'buildtools/win': {
97 'packages': [{
98 'package': 'gn/gn/windows-amd64',
Corentin Wallez88d5e072021-12-13 15:24:55 +000099 'version': Var('dawn_gn_version'),
Corentin Wallez60ca94b2021-03-24 16:22:32 +0000100 }],
101 'dep_type': 'cipd',
102 'condition': 'dawn_standalone and host_os == "win"',
103 },
104
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000105 'third_party/depot_tools': {
Dawn Autorollerc70b3252024-09-17 23:12:04 +0000106 'url': '{chromium_git}/chromium/tools/depot_tools.git@b32c4f1abc275d68263cdef4e772c65dcad92d4b',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000107 'condition': 'dawn_standalone',
108 },
109
Joanna Wangff5d8b52023-08-02 16:35:08 +0000110 'third_party/libc++/src': {
David Neto15893082024-07-04 12:03:53 +0000111 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxx.git@450ae0d29766e87ea12148e8c6c3352053f78e15',
Joanna Wange7e54c02023-07-25 17:59:41 +0000112 'condition': 'dawn_standalone',
113 },
114
Joanna Wangff5d8b52023-08-02 16:35:08 +0000115 'third_party/libc++abi/src': {
David Neto03fe3fd2024-07-03 13:38:35 +0000116 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxxabi.git@e5b130d5dc3058457ea0658a55ae6bb968f75f0e',
Joanna Wange7e54c02023-07-25 17:59:41 +0000117 'condition': 'dawn_standalone',
118 },
119
danakj4090b7d2023-10-24 17:49:01 +0000120 # Dependencies required to use GN, Clang, and Rust in standalone.
121 # The //build, //tools/clang, and //tools/rust deps should all be updated
122 # in unison, as there are dependencies between them.
123 'build': {
dan sinclair6765f332024-08-20 21:37:20 +0000124 'url': '{chromium_git}/chromium/src/build@a6c1c751fd8c18d9e051b12600aec2753c1712c3',
Corentin Wallez21a23852018-07-31 18:50:03 +0200125 'condition': 'dawn_standalone',
126 },
danakj4090b7d2023-10-24 17:49:01 +0000127 'tools/clang': {
dan sinclair6765f332024-08-20 21:37:20 +0000128 'url': '{chromium_git}/chromium/src/tools/clang@06a29b5bbf392c68d73dc8df9015163cc5a98c40',
danakj4090b7d2023-10-24 17:49:01 +0000129 'condition': 'dawn_standalone',
130 },
131 'tools/rust': {
dan sinclair6765f332024-08-20 21:37:20 +0000132 'url': '{chromium_git}/chromium/src/tools/rust@a69a8ecdbf7a19fb129ae57650cac9f704cb7cf9',
danakj4090b7d2023-10-24 17:49:01 +0000133 'condition': 'dawn_standalone and checkout_rust',
134 },
Kai Ninomiyaf526d772020-04-06 22:27:02 +0000135 'tools/clang/dsymutil': {
Corentin Wallez60ca94b2021-03-24 16:22:32 +0000136 'packages': [{
137 'package': 'chromium/llvm-build-tools/dsymutil',
138 'version': 'M56jPzDv1620Rnm__jTMYS62Zi8rxHVq7yw0qeBFEgkC',
139 }],
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000140 'condition': 'dawn_standalone and (checkout_mac or checkout_ios)',
Kai Ninomiyaf526d772020-04-06 22:27:02 +0000141 'dep_type': 'cipd',
142 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200143
Antonio Maioranoaf46ea52024-05-03 19:36:58 +0000144 # Linux sysroots for hermetic builds instead of relying on whatever is
145 # available from the system used for compilation. Only applicable to
146 # dawn_standalone since Chromium has its own sysroot copy.
147 'build/linux/debian_bullseye_armhf-sysroot': {
148 'bucket': 'chrome-linux-sysroot',
149 'condition': 'dawn_standalone and checkout_linux and checkout_arm',
150 'dep_type': 'gcs',
151 'objects': [
152 {
153 'object_name': 'e1ace9eea7f5f8906a5de665022abb745efb47ce4931ae774b58005adaf907e9',
154 'sha256sum': 'e1ace9eea7f5f8906a5de665022abb745efb47ce4931ae774b58005adaf907e9',
155 'size_bytes': 96825360,
156 'generation': 1714159610727506,
157 },
158 ],
159 },
160 'build/linux/debian_bullseye_arm64-sysroot': {
161 'bucket': 'chrome-linux-sysroot',
162 'condition': 'dawn_standalone and checkout_linux and checkout_arm64',
163 'dep_type': 'gcs',
164 'objects': [
165 {
166 'object_name': 'd303cf3faf7804c9dd24c9b6b167d0345d41d7fe4bfb7d34add3ab342f6a236c',
167 'sha256sum': 'd303cf3faf7804c9dd24c9b6b167d0345d41d7fe4bfb7d34add3ab342f6a236c',
168 'size_bytes': 103556332,
169 'generation': 1714159596952688,
170 },
171 ],
172 },
173 'build/linux/debian_bullseye_i386-sysroot': {
174 'bucket': 'chrome-linux-sysroot',
175 'condition': 'dawn_standalone and checkout_linux and (checkout_x86 or checkout_x64)',
176 'dep_type': 'gcs',
177 'objects': [
178 {
179 'object_name': '4300851707ad38b204e7f4912950c05ad51da0251ecc4e410de9b9fb94f7decf',
180 'sha256sum': '4300851707ad38b204e7f4912950c05ad51da0251ecc4e410de9b9fb94f7decf',
181 'size_bytes': 116515924,
182 'generation': 1714159579525878,
183 },
184 ],
185 },
186 'build/linux/debian_bullseye_mipsel-sysroot': {
187 'bucket': 'chrome-linux-sysroot',
188 'condition': 'dawn_standalone and checkout_linux and checkout_mips',
189 'dep_type': 'gcs',
190 'objects': [
191 {
192 'object_name': 'cc3202718a58541488e79b0333ce936a32227e07228f6b3c122d99ee45f83270',
193 'sha256sum': 'cc3202718a58541488e79b0333ce936a32227e07228f6b3c122d99ee45f83270',
194 'size_bytes': 93412776,
195 'generation': 1714159559897107,
196 },
197 ],
198 },
199 'build/linux/debian_bullseye_mips64el-sysroot': {
200 'bucket': 'chrome-linux-sysroot',
201 'condition': 'dawn_standalone and checkout_linux and checkout_mips64',
202 'dep_type': 'gcs',
203 'objects': [
204 {
205 'object_name': 'ee94d723b36d1e643820fe7ee2a8f45b3664b4c5d3c3379ebab39e474a2c9f86',
206 'sha256sum': 'ee94d723b36d1e643820fe7ee2a8f45b3664b4c5d3c3379ebab39e474a2c9f86',
207 'size_bytes': 97911708,
208 'generation': 1714159538956875,
209 },
210 ],
211 },
212 'build/linux/debian_bullseye_amd64-sysroot': {
213 'bucket': 'chrome-linux-sysroot',
214 'condition': 'dawn_standalone and checkout_linux and checkout_x64',
215 'dep_type': 'gcs',
216 'objects': [
217 {
218 'object_name': '5df5be9357b425cdd70d92d4697d07e7d55d7a923f037c22dc80a78e85842d2c',
219 'sha256sum': '5df5be9357b425cdd70d92d4697d07e7d55d7a923f037c22dc80a78e85842d2c',
220 'size_bytes': 123084324,
221 'generation': 1714159395960299,
222 },
223 ],
224 },
225
226
Corentin Wallez649e2fe2018-08-03 15:57:43 +0200227 # Testing, GTest and GMock
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200228 'testing': {
Takuto Ikuta6cdf3a12024-06-13 08:26:19 +0000229 'url': '{chromium_git}/chromium/src/testing@1bd0da6657e330cf26ed0702b3f456393587ad7c',
Ben Claytonb7bd8d82023-09-28 14:10:51 +0000230 'condition': 'dawn_standalone',
231 },
232 'third_party/libFuzzer/src': {
233 'url': '{chromium_git}/external/github.com/llvm/llvm-project/compiler-rt/lib/fuzzer.git' + '@' + '26cc39e59b2bf5cbc20486296248a842c536878d',
Corentin Wallez21a23852018-07-31 18:50:03 +0200234 'condition': 'dawn_standalone',
235 },
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200236 'third_party/googletest': {
Austin Enga0e96b52023-02-18 00:39:01 +0000237 'url': '{chromium_git}/external/github.com/google/googletest@7a7231c442484be389fdf01594310349ca0e42a8',
Corentin Wallezd5203662022-01-05 15:54:08 +0000238 'condition': 'dawn_standalone',
239 },
240 # This is a dependency of //testing
241 'third_party/catapult': {
Ho Cheungf87b36a2024-08-07 15:31:34 +0000242 'url': '{chromium_git}/catapult.git@b9db9201194440dc91d7f73d4c939a8488994f60',
Corentin Wallez649e2fe2018-08-03 15:57:43 +0200243 'condition': 'dawn_standalone',
244 },
Austin Eng6a7bba52023-04-17 18:11:51 +0000245 'third_party/google_benchmark/src': {
246 'url': '{chromium_git}/external/github.com/google/benchmark.git' + '@' + 'efc89f0b524780b1994d5dddd83a92718e5be492',
247 'condition': 'dawn_standalone',
248 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200249
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200250 # Jinja2 and MarkupSafe for the code generator
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200251 'third_party/jinja2': {
Corentin Wallezd2c27be2024-01-09 12:37:34 +0000252 'url': '{chromium_git}/chromium/src/third_party/jinja2@e2d024354e11cc6b041b0cff032d73f0c7e43a07',
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200253 'condition': 'dawn_standalone',
254 },
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200255 'third_party/markupsafe': {
Corentin Wallezd2c27be2024-01-09 12:37:34 +0000256 'url': '{chromium_git}/chromium/src/third_party/markupsafe@0bad08bb207bbfc1d6f3bbc82b9242b0c50e5794',
Corentin Wallez3bb0bb92018-08-13 17:47:44 +0200257 'condition': 'dawn_standalone',
258 },
259
Corentin Wallez4d7d1692018-08-13 08:23:27 +0200260 # GLFW for tests and samples
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200261 'third_party/glfw': {
Corentin Wallez82d0a2e2024-05-24 14:40:48 +0000262 'url': '{chromium_git}/external/github.com/glfw/glfw@b35641f4a3c62aa86a0b3c983d163bc0fe36026d',
Corentin Wallez4d7d1692018-08-13 08:23:27 +0200263 },
264
Stephen White77fcdf72021-01-11 15:52:12 +0000265 'third_party/vulkan_memory_allocator': {
Corentin Walleze7badbc2024-01-10 19:19:41 +0000266 'url': '{chromium_git}/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator@52dc220fb326e6ae132b7f262133b37b0dc334a3',
Stephen White77fcdf72021-01-11 15:52:12 +0000267 'condition': 'dawn_standalone',
268 },
269
270 'third_party/angle': {
Dawn Autoroller64ffa542024-10-08 01:51:15 +0000271 'url': '{chromium_git}/angle/angle@166b72c9524094e928c7ebf2f1e94c4828758257',
Stephen White77fcdf72021-01-11 15:52:12 +0000272 'condition': 'dawn_standalone',
273 },
274
Corentin Wallez74cebd62019-11-26 18:21:51 +0000275 'third_party/swiftshader': {
Dawn Autorollerebed9352024-10-04 04:34:10 +0000276 'url': '{swiftshader_git}/SwiftShader@7a9a492a38b7c701f7c96a15a76046aed8f8c0c3',
Corentin Wallez74cebd62019-11-26 18:21:51 +0000277 'condition': 'dawn_standalone',
278 },
279
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000280 'third_party/vulkan-deps': {
Dawn Autoroller90b955a2024-10-07 02:10:25 +0000281 'url': '{chromium_git}/vulkan-deps@dd729cf1f807e2b317a527900734dc528e6c4c19',
Corentin Wallez1fdd0592021-04-02 18:04:27 +0000282 'condition': 'dawn_standalone',
Stephen White77fcdf72021-01-11 15:52:12 +0000283 },
284
Yuly Novikov143523a2024-05-23 15:59:58 +0000285 'third_party/glslang/src': {
Dawn Autorollera2405242024-10-04 22:32:32 +0000286 'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@f69d2768e534132e8626c4817c80e95464dcda8e',
Yuly Novikov143523a2024-05-23 15:59:58 +0000287 'condition': 'dawn_standalone',
288 },
289
290 'third_party/spirv-cross/src': {
291 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@b8fcf307f1f347089e3c46eb4451d27f32ebc8d3',
292 'condition': 'dawn_standalone',
293 },
294
295 'third_party/spirv-headers/src': {
Dawn Autoroller80e1ce32024-10-02 18:49:18 +0000296 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@a62b032007b2e7a69f24a195cbfbd0cf22d31bb0',
Yuly Novikov143523a2024-05-23 15:59:58 +0000297 'condition': 'dawn_standalone',
298 },
299
300 'third_party/spirv-tools/src': {
Dawn Autoroller90b955a2024-10-07 02:10:25 +0000301 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@ada92f84927350c8f3567a06e23e4ff2b04f6810',
Yuly Novikov143523a2024-05-23 15:59:58 +0000302 'condition': 'dawn_standalone',
303 },
304
305 'third_party/vulkan-headers/src': {
Dawn Autorollera2405242024-10-04 22:32:32 +0000306 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@14345dab231912ee9601136e96ca67a6e1f632e7',
Yuly Novikov143523a2024-05-23 15:59:58 +0000307 'condition': 'dawn_standalone',
308 },
309
310 'third_party/vulkan-loader/src': {
Dawn Autoroller80e1ce32024-10-02 18:49:18 +0000311 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@8bdce6d842ca9f9bd0a4119963b0eb10693f5b23',
Yuly Novikov143523a2024-05-23 15:59:58 +0000312 'condition': 'dawn_standalone',
313 },
314
315 'third_party/vulkan-tools/src': {
Dawn Autoroller9d1b7b42024-10-01 16:56:50 +0000316 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Tools@6991ccb68890681b1a3e0f56acd8f53b20ad1e79',
Yuly Novikov143523a2024-05-23 15:59:58 +0000317 'condition': 'dawn_standalone',
318 },
319
320 'third_party/vulkan-utility-libraries/src': {
Dawn Autorollera2405242024-10-04 22:32:32 +0000321 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Utility-Libraries@8c907ea21fe0147f791d79051b18e21bc8c4ede0',
Yuly Novikov143523a2024-05-23 15:59:58 +0000322 'condition': 'dawn_standalone',
323 },
324
325 'third_party/vulkan-validation-layers/src': {
Dawn Autoroller90b955a2024-10-07 02:10:25 +0000326 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@9d084cf28b2f32ef2a43a53801c7d4bf53d8fa2c',
Yuly Novikov143523a2024-05-23 15:59:58 +0000327 'condition': 'dawn_standalone',
328 },
329
Stephen White77fcdf72021-01-11 15:52:12 +0000330 'third_party/zlib': {
Arthur Sonzogni3aaa0a32024-05-31 14:01:04 +0000331 'url': '{chromium_git}/chromium/src/third_party/zlib@209717dd69cd62f24cbacc4758261ae2dd78cfac',
Stephen Whitef1fa60b2021-01-06 17:41:50 +0000332 'condition': 'dawn_standalone',
333 },
Brandon Jonesa04663c2021-09-23 20:36:03 +0000334
335 'third_party/abseil-cpp': {
Corentin Wallez86e10a62024-05-20 13:48:38 +0000336 'url': '{chromium_git}/chromium/src/third_party/abseil-cpp@f81f6c011baf9b0132a5594c034fe0060820711d',
Brandon Jonesa04663c2021-09-23 20:36:03 +0000337 'condition': 'dawn_standalone',
338 },
Ben Claytondc890d62021-09-27 22:55:39 +0000339
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000340 'third_party/dxc': {
Dawn Autoroller26443fa2024-10-05 08:51:16 +0000341 'url': '{chromium_git}/external/github.com/microsoft/DirectXShaderCompiler@b48341e4031fb5e0636c123bcea8e30223dcb340',
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000342 },
Antonio Maiorano83bdc7f2023-08-21 15:29:35 +0000343
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000344 'third_party/dxheaders': {
345 # The non-Windows build of DXC depends on DirectX-Headers, and at a specific commit (not ToT)
346 'url': '{chromium_git}/external/github.com/microsoft/DirectX-Headers@980971e835876dc0cde415e8f9bc646e64667bf7',
Austin Engc02f1432023-07-05 22:38:39 +0000347 'condition': 'host_os != "win"',
Antonio Maioranoad5e1082023-06-22 20:45:54 +0000348 },
349
Austin Engb94ef822024-05-02 02:37:35 +0000350 'third_party/webgpu-headers': {
Ho Cheung084cc582024-05-22 15:51:26 +0000351 'url': '{chromium_git}/external/github.com/webgpu-native/webgpu-headers@8049c324dc7b3c09dc96ea04cb02860f272c8686',
Austin Engb94ef822024-05-02 02:37:35 +0000352 },
353
Antonio Maiorano83bdc7f2023-08-21 15:29:35 +0000354 'third_party/khronos/OpenGL-Registry': {
355 'url': '{chromium_git}/external/github.com/KhronosGroup/OpenGL-Registry@5bae8738b23d06968e7c3a41308568120943ae77',
356 },
357
358 'third_party/khronos/EGL-Registry': {
359 'url': '{chromium_git}/external/github.com/KhronosGroup/EGL-Registry@7dea2ed79187cd13f76183c4b9100159b9e3e071',
360 },
361
Kai Ninomiya5c780d72022-03-17 21:43:17 +0000362 # WebGPU CTS - not used directly by Dawn, only transitively by Chromium.
363 'third_party/webgpu-cts': {
James Priced4255072024-09-24 16:30:14 +0000364 'url': '{chromium_git}/external/github.com/gpuweb/cts@815ff2bb4038144dea89c33021bc4429f22a130f',
Kai Ninomiya5c780d72022-03-17 21:43:17 +0000365 'condition': 'build_with_chromium',
366 },
367
Ben Clayton6f8ff742022-03-28 19:55:42 +0000368 # Dependencies required to build / run Dawn NodeJS bindings
Ben Claytondc890d62021-09-27 22:55:39 +0000369 'third_party/node-api-headers': {
Corentin Wallezbcfe0662024-05-20 13:57:04 +0000370 'url': '{github_git}/nodejs/node-api-headers.git@d5cfe19da8b974ca35764dd1c73b91d57cd3c4ce',
Ben Claytondc890d62021-09-27 22:55:39 +0000371 'condition': 'dawn_node',
372 },
373 'third_party/node-addon-api': {
Corentin Wallezbcfe0662024-05-20 13:57:04 +0000374 'url': '{github_git}/nodejs/node-addon-api.git@1e26dcb52829a74260ec262edb41fc22998669b6',
Ben Claytondc890d62021-09-27 22:55:39 +0000375 'condition': 'dawn_node',
376 },
377 'third_party/gpuweb': {
Geoff Lang417c9082024-09-30 22:54:56 +0000378 'url': '{github_git}/gpuweb/gpuweb.git@010f5c9ddfd21bc963025979d08eb7489058c1c7',
Ben Claytondc890d62021-09-27 22:55:39 +0000379 'condition': 'dawn_node',
380 },
Austin Eng4948c812021-10-15 14:28:32 +0000381
382 'tools/golang': {
Austin Eng4948c812021-10-15 14:28:32 +0000383 'packages': [{
384 'package': 'infra/3pp/tools/go/${{platform}}',
385 'version': Var('dawn_go_version'),
386 }],
387 'dep_type': 'cipd',
Joanna Wangd486fa32024-08-01 18:02:23 +0000388 'condition': 'non_git_source',
Austin Eng4948c812021-10-15 14:28:32 +0000389 },
390
391 'tools/cmake': {
Antonio Maiorano762198b2024-03-01 01:06:01 +0000392 'condition': '(fetch_cmake or dawn_node) and (host_os == "mac" or host_os == "linux")',
Austin Eng4948c812021-10-15 14:28:32 +0000393 'packages': [{
394 'package': 'infra/3pp/tools/cmake/${{platform}}',
395 'version': Var('dawn_cmake_version'),
396 }],
397 'dep_type': 'cipd',
398 },
Ryan Harrisone87ac762022-04-06 15:37:27 -0400399
Junji Watanabe4ad7f012022-10-03 02:48:52 +0000400 'third_party/ninja': {
401 'packages': [
402 {
403 'package': 'infra/3pp/tools/ninja/${{platform}}',
404 'version': Var('dawn_ninja_version'),
405 }
406 ],
407 'dep_type': 'cipd',
408 },
409
Ryan Harrison29fc5e92023-07-17 16:12:27 +0000410 # RBE dependencies
411 'buildtools/reclient': {
412 'packages': [
413 {
414 'package': Var('reclient_package') + '${{platform}}',
415 'version': Var('reclient_version'),
416 }
417 ],
418 'dep_type': 'cipd',
419 'condition': 'dawn_standalone',
420 },
Ryan Harrison29fc5e92023-07-17 16:12:27 +0000421
Ryan Harrisone87ac762022-04-06 15:37:27 -0400422 # Misc dependencies inherited from Tint
Ryan Harrison3374f432022-03-28 18:01:02 +0000423 'third_party/protobuf': {
Stephen Whiteb57ea722024-07-26 22:24:16 +0000424 'url': '{chromium_git}/chromium/src/third_party/protobuf@da2fe725b80ac0ba646fbf77d0ce5b4ac236f823',
Ben Claytonde2686e2023-11-16 12:39:06 +0000425 'condition': 'dawn_standalone',
426 },
427
428 'tools/protoc_wrapper': {
429 'url': '{chromium_git}/chromium/src/tools/protoc_wrapper@b5ea227bd88235ab3ccda964d5f3819c4e2d8032',
Ryan Harrisone87ac762022-04-06 15:37:27 -0400430 'condition': 'dawn_standalone',
Ryan Harrison3374f432022-03-28 18:01:02 +0000431 },
Arthur Sonzogni8b28afe2023-10-12 16:06:04 +0000432
Ben Clayton818dfde2024-05-27 22:48:41 +0000433 'third_party/libprotobuf-mutator/src': {
434 'url': '{chromium_git}/external/github.com/google/libprotobuf-mutator.git@a304ec48dcf15d942607032151f7e9ee504b5dcf',
435 'condition': 'dawn_standalone',
436 },
437
Ben Claytonf9a5b712024-03-13 17:37:33 +0000438 # Dependencies for tintd.
439 'third_party/jsoncpp': {
440 'url': '{github_git}/open-source-parsers/jsoncpp.git@69098a18b9af0c47549d9a271c054d13ca92b006',
441 'condition': 'dawn_standalone',
442 },
443
444 'third_party/langsvr': {
Gregg Tavares498879a2024-05-17 12:12:09 +0000445 'url': '{github_git}/google/langsvr.git@303c526231a90049a3e384549720f3fbd453cf66',
Ben Claytonf9a5b712024-03-13 17:37:33 +0000446 'condition': 'dawn_standalone',
447 },
448
Arthur Sonzogni8b28afe2023-10-12 16:06:04 +0000449 # Dependencies for PartitionAlloc.
450 # Doc: https://docs.google.com/document/d/1wz45t0alQthsIU9P7_rQcfQyqnrBMXzrOjSzdQo-V-A
451 'third_party/partition_alloc': {
Arthur Sonzogni322cffa2024-07-10 17:46:32 +0000452 'url': '{chromium_git}/chromium/src/base/allocator/partition_allocator.git@2e6b2efb6f435aa3dd400cb3bdcead2a601f8f9a',
Arthur Sonzogni8b28afe2023-10-12 16:06:04 +0000453 'condition': 'dawn_standalone',
454 },
Corentin Wallez21a23852018-07-31 18:50:03 +0200455}
456
457hooks = [
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000458 {
459 # Ensure that the DEPS'd "depot_tools" has its self-update capability
460 # disabled.
461 'name': 'disable_depot_tools_selfupdate',
462 'pattern': '.',
463 'condition': 'dawn_standalone',
464 'action': [
465 'python3',
466 'third_party/depot_tools/update_depot_tools_toggle.py',
467 '--disable',
468 ],
469 },
470
Corentin Wallez21a23852018-07-31 18:50:03 +0200471 # Pull the compilers and system libraries for hermetic builds
472 {
473 'name': 'sysroot_x86',
474 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000475 'condition': 'dawn_standalone and checkout_linux and (checkout_x86 or 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=x86'],
478 },
479 {
480 'name': 'sysroot_x64',
481 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000482 'condition': 'dawn_standalone and checkout_linux and checkout_x64',
Corentin Wallezd5203662022-01-05 15:54:08 +0000483 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Corentin Wallez21a23852018-07-31 18:50:03 +0200484 '--arch=x64'],
485 },
486 {
Corentin Wallezd4e7f082020-11-17 21:16:31 +0000487 # Update the Mac toolchain if possible, this makes builders use "hermetic XCode" which is
488 # is more consistent (only changes when rolling build/) and is cached.
489 'name': 'mac_toolchain',
490 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000491 'condition': 'dawn_standalone and checkout_mac',
Corentin Wallezd5203662022-01-05 15:54:08 +0000492 'action': ['python3', 'build/mac_toolchain.py'],
Corentin Wallezd4e7f082020-11-17 21:16:31 +0000493 },
494 {
Peng Huang78583a12023-02-10 13:53:31 +0000495 # Case-insensitivity for the Win SDK. Must run before win_toolchain below.
496 'name': 'ciopfs_linux',
497 'pattern': '.',
Peng Huang708a0772023-02-13 11:38:38 +0000498 'condition': 'dawn_standalone and checkout_win and host_os == "linux"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000499 'action': [ 'python3',
500 'third_party/depot_tools/download_from_google_storage.py',
Peng Huang78583a12023-02-10 13:53:31 +0000501 '--no_resume',
502 '--no_auth',
503 '--bucket', 'chromium-browser-clang/ciopfs',
504 '-s', 'build/ciopfs.sha1',
505 ]
506 },
507 {
Corentin Wallez682c44a2018-08-13 17:48:16 +0200508 # Update the Windows toolchain if necessary. Must run before 'clang' below.
Corentin Wallez21a23852018-07-31 18:50:03 +0200509 'name': 'win_toolchain',
510 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000511 'condition': 'dawn_standalone and checkout_win',
Corentin Wallezd5203662022-01-05 15:54:08 +0000512 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'],
Corentin Wallez21a23852018-07-31 18:50:03 +0200513 },
514 {
515 # Note: On Win, this should run after win_toolchain, as it may use it.
516 'name': 'clang',
517 'pattern': '.',
Corentin Wallezd5203662022-01-05 15:54:08 +0000518 'action': ['python3', 'tools/clang/scripts/update.py'],
Corentin Wallez21a23852018-07-31 18:50:03 +0200519 'condition': 'dawn_standalone',
520 },
521 {
dan sinclair93cf3462022-05-16 12:58:24 +0000522 # This is also supposed to support the same set of platforms as 'clang'
523 # above. LLVM ToT support isn't provided at the moment.
524 'name': 'clang_tidy',
525 'pattern': '.',
Corentin Wallezc4051b12022-05-17 08:21:02 +0000526 'condition': 'dawn_standalone and checkout_clang_tidy',
dan sinclair93cf3462022-05-16 12:58:24 +0000527 'action': ['python3', 'tools/clang/scripts/update.py',
528 '--package=clang-tidy'],
529 },
530 {
danakj4090b7d2023-10-24 17:49:01 +0000531 'name': 'rust',
532 'pattern': '.',
533 'action': ['python3', 'tools/rust/update_rust.py'],
534 'condition': 'dawn_standalone and checkout_rust',
535 },
536 {
Corentin Wallez21a23852018-07-31 18:50:03 +0200537 # Pull rc binaries using checked-in hashes.
538 'name': 'rc_win',
539 'pattern': '.',
Corentin Wallez2015b2f2021-03-04 17:37:55 +0000540 'condition': 'dawn_standalone and checkout_win and host_os == "win"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000541 'action': [ 'python3',
542 'third_party/depot_tools/download_from_google_storage.py',
Corentin Wallez21a23852018-07-31 18:50:03 +0200543 '--no_resume',
544 '--no_auth',
545 '--bucket', 'chromium-browser-clang/rc',
Corentin Wallez1a0596d2018-09-10 15:16:10 +0200546 '-s', 'build/toolchain/win/rc/win/rc.exe.sha1',
Corentin Wallez21a23852018-07-31 18:50:03 +0200547 ],
548 },
Peng Huang78583a12023-02-10 13:53:31 +0000549 {
550 'name': 'rc_linux',
551 'pattern': '.',
Peng Huang708a0772023-02-13 11:38:38 +0000552 'condition': 'dawn_standalone and checkout_win and host_os == "linux"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000553 'action': [ 'python3',
554 'third_party/depot_tools/download_from_google_storage.py',
Peng Huang78583a12023-02-10 13:53:31 +0000555 '--no_resume',
556 '--no_auth',
557 '--bucket', 'chromium-browser-clang/rc',
558 '-s', 'build/toolchain/win/rc/linux64/rc.sha1',
Antonio Maioranoef9da422023-09-21 17:53:34 +0000559 ],
560 },
561 {
562 'name': 'rc_mac',
563 'pattern': '.',
564 'condition': 'dawn_standalone and checkout_win and host_os == "mac"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000565 'action': [ 'python3',
566 'third_party/depot_tools/download_from_google_storage.py',
Antonio Maioranoef9da422023-09-21 17:53:34 +0000567 '--no_resume',
568 '--no_auth',
569 '--bucket', 'chromium-browser-clang/rc',
570 '-s', 'build/toolchain/win/rc/mac/rc.sha1',
571 ],
Peng Huang78583a12023-02-10 13:53:31 +0000572 },
Corentin Wallez15d8cb72018-11-19 10:13:31 +0000573 # Update build/util/LASTCHANGE.
574 {
575 'name': 'lastchange',
576 'pattern': '.',
Jiajie Hu2ffc55a2020-07-01 05:08:36 +0000577 'condition': 'dawn_standalone',
Corentin Wallezd5203662022-01-05 15:54:08 +0000578 'action': ['python3', 'build/util/lastchange.py',
Corentin Wallez15d8cb72018-11-19 10:13:31 +0000579 '-o', 'build/util/LASTCHANGE'],
580 },
Austin Eng4948c812021-10-15 14:28:32 +0000581 # TODO(https://crbug.com/1180257): Use CIPD for CMake on Windows.
582 {
583 'name': 'cmake_win32',
584 'pattern': '.',
Antonio Maiorano762198b2024-03-01 01:06:01 +0000585 'condition': '(fetch_cmake or dawn_node) and host_os == "win"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000586 'action': [ 'python3',
587 'third_party/depot_tools/download_from_google_storage.py',
Austin Eng4948c812021-10-15 14:28:32 +0000588 '--no_resume',
589 '--platform=win32',
590 '--no_auth',
591 '--bucket', 'chromium-tools',
592 Var('dawn_cmake_win32_sha1'),
593 '-o', 'tools/cmake-win32.zip'
594 ],
595 },
596 {
597 'name': 'cmake_win32_extract',
598 'pattern': '.',
Antonio Maiorano762198b2024-03-01 01:06:01 +0000599 'condition': '(fetch_cmake or dawn_node) and host_os == "win"',
Corentin Wallezd5203662022-01-05 15:54:08 +0000600 'action': [ 'python3',
Austin Eng4948c812021-10-15 14:28:32 +0000601 'scripts/extract.py',
602 'tools/cmake-win32.zip',
603 'tools/cmake-win32/',
604 ],
605 },
Ben Clayton6f8ff742022-03-28 19:55:42 +0000606
607 # Node binaries, when dawn_node is enabled
608 {
609 'name': 'node_linux64',
610 'pattern': '.',
611 'condition': 'dawn_node and host_os == "linux"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000612 'action': [ 'python3',
613 'third_party/depot_tools/download_from_google_storage.py',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000614 '--no_resume',
615 '--extract',
616 '--no_auth',
Ben Clayton87a190e2024-01-23 15:17:03 +0000617 '--bucket', 'chromium-nodejs/20.11.0',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000618 Var('node_linux_x64_sha'),
619 '-o', 'third_party/node/node-linux-x64.tar.gz',
620 ],
621 },
622 {
623 'name': 'node_mac',
624 'pattern': '.',
625 'condition': 'dawn_node and host_os == "mac"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000626 'action': [ 'python3',
627 'third_party/depot_tools/download_from_google_storage.py',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000628 '--no_resume',
629 '--extract',
630 '--no_auth',
Ben Clayton87a190e2024-01-23 15:17:03 +0000631 '--bucket', 'chromium-nodejs/20.11.0',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000632 Var('node_darwin_x64_sha'),
633 '-o', 'third_party/node/node-darwin-x64.tar.gz',
634 ],
635 },
636 {
637 'name': 'node_mac_arm64',
638 'pattern': '.',
639 'condition': 'dawn_node and host_os == "mac"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000640 'action': [ 'python3',
641 'third_party/depot_tools/download_from_google_storage.py',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000642 '--no_resume',
643 '--extract',
644 '--no_auth',
Ben Clayton87a190e2024-01-23 15:17:03 +0000645 '--bucket', 'chromium-nodejs/20.11.0',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000646 Var('node_darwin_arm64_sha'),
647 '-o', 'third_party/node/node-darwin-arm64.tar.gz',
648 ],
649 },
650 {
651 'name': 'node_win',
652 'pattern': '.',
653 'condition': 'dawn_node and host_os == "win"',
Antonio Maioranoc4fe82d2024-02-22 00:51:41 +0000654 'action': [ 'python3',
655 'third_party/depot_tools/download_from_google_storage.py',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000656 '--no_resume',
657 '--no_auth',
Ben Clayton87a190e2024-01-23 15:17:03 +0000658 '--bucket', 'chromium-nodejs/20.11.0',
Ben Clayton6f8ff742022-03-28 19:55:42 +0000659 Var('node_win_x64_sha'),
660 '-o', 'third_party/node/node.exe',
661 ],
662 },
Ryan Harrisonce158be2023-07-20 17:06:56 +0000663 {
664 # Download remote exec cfg files
665 'name': 'fetch_reclient_cfgs',
666 'pattern': '.',
Austin Engd6c4f662023-07-21 01:00:22 +0000667 'condition': 'download_remoteexec_cfg and dawn_standalone',
Ryan Harrisonce158be2023-07-20 17:06:56 +0000668 'action': ['python3',
669 'buildtools/reclient_cfgs/fetch_reclient_cfgs.py',
670 '--rbe_instance',
671 Var('rbe_instance'),
672 '--reproxy_cfg_template',
673 'reproxy.cfg.template',
674 '--rewrapper_cfg_project',
675 Var('rewrapper_cfg_project'),
676 '--quiet',
Ryan Harrisonce158be2023-07-20 17:06:56 +0000677 ],
678 },
Corentin Wallezca81bd32018-09-03 11:55:58 +0200679]
Josip Sokcevic57058302024-05-31 07:13:26 +0000680
681recursedeps = [
682 'buildtools',
683]