Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 1 | use_relative_paths = True |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 2 | |
Corentin Wallez | 4e2d7cf | 2020-07-14 15:53:34 +0000 | [diff] [blame] | 3 | gclient_gn_args_file = 'build/config/gclient_args.gni' |
Corentin Wallez | 4e2d7cf | 2020-07-14 15:53:34 +0000 | [diff] [blame] | 4 | |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 5 | gclient_gn_args = [ |
| 6 | 'generate_location_tags', |
| 7 | ] |
| 8 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 9 | vars = { |
| 10 | 'chromium_git': 'https://chromium.googlesource.com', |
Corentin Wallez | 4c35101 | 2018-08-27 10:10:28 +0200 | [diff] [blame] | 11 | 'dawn_git': 'https://dawn.googlesource.com', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 12 | 'github_git': 'https://github.com', |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 13 | 'swiftshader_git': 'https://swiftshader.googlesource.com', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 14 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 15 | 'dawn_standalone': True, |
Ben Clayton | dc890d6 | 2021-09-27 22:55:39 +0000 | [diff] [blame] | 16 | 'dawn_node': False, # Also fetches dependencies required for building NodeJS bindings. |
Corentin Wallez | fa1a547 | 2022-08-02 16:07:45 +0000 | [diff] [blame] | 17 | 'dawn_cmake_version': 'version:2@3.23.3', |
Austin Eng | 4948c81 | 2021-10-15 14:28:32 +0000 | [diff] [blame] | 18 | 'dawn_cmake_win32_sha1': 'b106d66bcdc8a71ea2cdf5446091327bfdb1bcd7', |
Corentin Wallez | 49b3b11 | 2022-03-23 18:45:14 +0000 | [diff] [blame] | 19 | 'dawn_gn_version': 'git_revision:bd99dbf98cbdefe18a4128189665c5761263bcfb', |
Junji Watanabe | 4ad7f01 | 2022-10-03 02:48:52 +0000 | [diff] [blame] | 20 | # ninja CIPD package version. |
| 21 | # https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja |
Corentin Wallez | 89b7809 | 2023-01-27 15:36:18 +0000 | [diff] [blame] | 22 | 'dawn_ninja_version': 'version:2@1.11.1.chromium.6', |
Corentin Wallez | fa1a547 | 2022-08-02 16:07:45 +0000 | [diff] [blame] | 23 | 'dawn_go_version': 'version:2@1.18.4', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 24 | |
Ben Clayton | 6f8ff74 | 2022-03-28 19:55:42 +0000 | [diff] [blame] | 25 | '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 Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 30 | # GN variable required by //testing that will be output in the gclient_args.gni |
| 31 | 'generate_location_tags': False, |
dan sinclair | 93cf346 | 2022-05-16 12:58:24 +0000 | [diff] [blame] | 32 | |
| 33 | # Fetch clang-tidy into the same bin/ directory as our clang binary. |
| 34 | 'checkout_clang_tidy': False, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | deps = { |
| 38 | # Dependencies required to use GN/Clang in standalone |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 39 | 'build': { |
Austin Eng | a0e96b5 | 2023-02-18 00:39:01 +0000 | [diff] [blame] | 40 | 'url': '{chromium_git}/chromium/src/build@1103ef535ca1e100db5d4e59781a4e59369a9818', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 41 | 'condition': 'dawn_standalone', |
| 42 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 43 | 'buildtools': { |
Austin Eng | a0e96b5 | 2023-02-18 00:39:01 +0000 | [diff] [blame] | 44 | 'url': '{chromium_git}/chromium/src/buildtools@2ff42d2008f09f65de12e70c6ff0ad58ddb090ad', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 45 | 'condition': 'dawn_standalone', |
| 46 | }, |
Loko Kung | 2d988ce | 2023-05-25 23:28:34 +0000 | [diff] [blame] | 47 | 'third_party/clang-format/script': { |
Austin Eng | 99ad82a | 2022-07-27 21:57:30 +0000 | [diff] [blame] | 48 | 'url': '{chromium_git}/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@8b525d2747f2584fc35d8c7e612e66f377858df7', |
Corentin Wallez | 60ca94b | 2021-03-24 16:22:32 +0000 | [diff] [blame] | 49 | 'condition': 'dawn_standalone', |
| 50 | }, |
Corentin Wallez | 60ca94b | 2021-03-24 16:22:32 +0000 | [diff] [blame] | 51 | 'buildtools/linux64': { |
| 52 | 'packages': [{ |
| 53 | 'package': 'gn/gn/linux-amd64', |
Corentin Wallez | 88d5e07 | 2021-12-13 15:24:55 +0000 | [diff] [blame] | 54 | 'version': Var('dawn_gn_version'), |
Corentin Wallez | 60ca94b | 2021-03-24 16:22:32 +0000 | [diff] [blame] | 55 | }], |
| 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 Wallez | 88d5e07 | 2021-12-13 15:24:55 +0000 | [diff] [blame] | 62 | 'version': Var('dawn_gn_version'), |
Corentin Wallez | 60ca94b | 2021-03-24 16:22:32 +0000 | [diff] [blame] | 63 | }], |
| 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 Wallez | 88d5e07 | 2021-12-13 15:24:55 +0000 | [diff] [blame] | 70 | 'version': Var('dawn_gn_version'), |
Corentin Wallez | 60ca94b | 2021-03-24 16:22:32 +0000 | [diff] [blame] | 71 | }], |
| 72 | 'dep_type': 'cipd', |
| 73 | 'condition': 'dawn_standalone and host_os == "win"', |
| 74 | }, |
| 75 | |
| 76 | 'buildtools/third_party/libc++/trunk': { |
Austin Eng | a0e96b5 | 2023-02-18 00:39:01 +0000 | [diff] [blame] | 77 | 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxx.git@c1341b9a1a7de7c193a23bf003d5479c48957f7d', |
Corentin Wallez | 60ca94b | 2021-03-24 16:22:32 +0000 | [diff] [blame] | 78 | 'condition': 'dawn_standalone', |
| 79 | }, |
| 80 | |
| 81 | 'buildtools/third_party/libc++abi/trunk': { |
Austin Eng | a0e96b5 | 2023-02-18 00:39:01 +0000 | [diff] [blame] | 82 | 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxxabi.git@f7460fc60ab56553f0b3b0853f1ea60aa51b9478', |
Corentin Wallez | 60ca94b | 2021-03-24 16:22:32 +0000 | [diff] [blame] | 83 | 'condition': 'dawn_standalone', |
| 84 | }, |
| 85 | |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 86 | 'tools/clang': { |
Austin Eng | a0e96b5 | 2023-02-18 00:39:01 +0000 | [diff] [blame] | 87 | 'url': '{chromium_git}/chromium/src/tools/clang@effd9257d456f2d42e9e22fa4f37a24d8cf0b5b5', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 88 | 'condition': 'dawn_standalone', |
| 89 | }, |
Kai Ninomiya | f526d77 | 2020-04-06 22:27:02 +0000 | [diff] [blame] | 90 | 'tools/clang/dsymutil': { |
Corentin Wallez | 60ca94b | 2021-03-24 16:22:32 +0000 | [diff] [blame] | 91 | 'packages': [{ |
| 92 | 'package': 'chromium/llvm-build-tools/dsymutil', |
| 93 | 'version': 'M56jPzDv1620Rnm__jTMYS62Zi8rxHVq7yw0qeBFEgkC', |
| 94 | }], |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 95 | 'condition': 'dawn_standalone and (checkout_mac or checkout_ios)', |
Kai Ninomiya | f526d77 | 2020-04-06 22:27:02 +0000 | [diff] [blame] | 96 | 'dep_type': 'cipd', |
| 97 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 98 | |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 99 | # Testing, GTest and GMock |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 100 | 'testing': { |
Austin Eng | a0e96b5 | 2023-02-18 00:39:01 +0000 | [diff] [blame] | 101 | 'url': '{chromium_git}/chromium/src/testing@166db27fd0d53afc0c716b1ae9c15725e380871f', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 102 | 'condition': 'dawn_standalone', |
| 103 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 104 | 'third_party/googletest': { |
Austin Eng | a0e96b5 | 2023-02-18 00:39:01 +0000 | [diff] [blame] | 105 | 'url': '{chromium_git}/external/github.com/google/googletest@7a7231c442484be389fdf01594310349ca0e42a8', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 106 | 'condition': 'dawn_standalone', |
| 107 | }, |
| 108 | # This is a dependency of //testing |
| 109 | 'third_party/catapult': { |
Austin Eng | a0e96b5 | 2023-02-18 00:39:01 +0000 | [diff] [blame] | 110 | 'url': '{chromium_git}/catapult.git@c1e70d412ce01fb194f73f7abfdac710aae87dae', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 111 | 'condition': 'dawn_standalone', |
| 112 | }, |
Austin Eng | 6a7bba5 | 2023-04-17 18:11:51 +0000 | [diff] [blame] | 113 | 'third_party/google_benchmark/src': { |
| 114 | 'url': '{chromium_git}/external/github.com/google/benchmark.git' + '@' + 'efc89f0b524780b1994d5dddd83a92718e5be492', |
| 115 | 'condition': 'dawn_standalone', |
| 116 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 117 | |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 118 | # Jinja2 and MarkupSafe for the code generator |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 119 | 'third_party/jinja2': { |
James Price | e97594d | 2021-11-02 08:31:02 +0000 | [diff] [blame] | 120 | 'url': '{chromium_git}/chromium/src/third_party/jinja2@ee69aa00ee8536f61db6a451f3858745cf587de6', |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 121 | 'condition': 'dawn_standalone', |
| 122 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 123 | 'third_party/markupsafe': { |
Corentin Wallez | bf1e953 | 2020-11-04 09:44:47 +0000 | [diff] [blame] | 124 | 'url': '{chromium_git}/chromium/src/third_party/markupsafe@0944e71f4b2cb9a871bcbe353f95e889b64a611a', |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 125 | 'condition': 'dawn_standalone', |
| 126 | }, |
| 127 | |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 128 | # GLFW for tests and samples |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 129 | 'third_party/glfw': { |
Corentin Wallez | 6903c46 | 2022-05-25 17:46:04 +0000 | [diff] [blame] | 130 | 'url': '{chromium_git}/external/github.com/glfw/glfw@62e175ef9fae75335575964c845a302447c012c7', |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 131 | }, |
| 132 | |
Stephen White | 77fcdf7 | 2021-01-11 15:52:12 +0000 | [diff] [blame] | 133 | 'third_party/vulkan_memory_allocator': { |
Austin Eng | 972c238 | 2021-12-21 21:21:42 +0000 | [diff] [blame] | 134 | 'url': '{chromium_git}/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator@5e49f57a6e71a026a54eb42e366de09a4142d24e', |
Stephen White | 77fcdf7 | 2021-01-11 15:52:12 +0000 | [diff] [blame] | 135 | 'condition': 'dawn_standalone', |
| 136 | }, |
| 137 | |
| 138 | 'third_party/angle': { |
Dawn Autoroller | 84aba86 | 2023-07-07 17:04:18 +0000 | [diff] [blame] | 139 | 'url': '{chromium_git}/angle/angle@66c2e4fca248124d9d669f65f60d89bb4a47b271', |
Stephen White | 77fcdf7 | 2021-01-11 15:52:12 +0000 | [diff] [blame] | 140 | 'condition': 'dawn_standalone', |
| 141 | }, |
| 142 | |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 143 | 'third_party/swiftshader': { |
Dawn Autoroller | 4c278a6 | 2023-07-04 15:44:21 +0000 | [diff] [blame] | 144 | 'url': '{swiftshader_git}/SwiftShader@3e73cce1c4706a1727077572a06643cd998bd615', |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 145 | 'condition': 'dawn_standalone', |
| 146 | }, |
| 147 | |
Stephen White | f1fa60b | 2021-01-06 17:41:50 +0000 | [diff] [blame] | 148 | 'third_party/vulkan-deps': { |
dawn-autoroll | a85857c | 2023-07-06 13:12:34 +0000 | [diff] [blame] | 149 | 'url': '{chromium_git}/vulkan-deps@c421d230f1c16eae7fc83ca8c3bf82e0b702d1c4', |
Corentin Wallez | 1fdd059 | 2021-04-02 18:04:27 +0000 | [diff] [blame] | 150 | 'condition': 'dawn_standalone', |
Stephen White | 77fcdf7 | 2021-01-11 15:52:12 +0000 | [diff] [blame] | 151 | }, |
| 152 | |
| 153 | 'third_party/zlib': { |
Austin Eng | 99ad82a | 2022-07-27 21:57:30 +0000 | [diff] [blame] | 154 | 'url': '{chromium_git}/chromium/src/third_party/zlib@64bbf988543996eb8df9a86877b32917187eba8f', |
Stephen White | f1fa60b | 2021-01-06 17:41:50 +0000 | [diff] [blame] | 155 | 'condition': 'dawn_standalone', |
| 156 | }, |
Brandon Jones | a04663c | 2021-09-23 20:36:03 +0000 | [diff] [blame] | 157 | |
| 158 | 'third_party/abseil-cpp': { |
Corentin Wallez | edf650c | 2022-07-12 09:55:29 +0000 | [diff] [blame] | 159 | 'url': '{chromium_git}/chromium/src/third_party/abseil-cpp@bc3ab29356a081d0b5dd4ac55e30f4b45d8794cc', |
Brandon Jones | a04663c | 2021-09-23 20:36:03 +0000 | [diff] [blame] | 160 | 'condition': 'dawn_standalone', |
| 161 | }, |
Ben Clayton | dc890d6 | 2021-09-27 22:55:39 +0000 | [diff] [blame] | 162 | |
Antonio Maiorano | ad5e108 | 2023-06-22 20:45:54 +0000 | [diff] [blame] | 163 | 'third_party/dxc': { |
| 164 | 'url': '{chromium_git}/external/github.com/microsoft/DirectXShaderCompiler@5e080a772910f147cc447fc34e8eb489f0761144', |
Antonio Maiorano | ad5e108 | 2023-06-22 20:45:54 +0000 | [diff] [blame] | 165 | }, |
| 166 | 'third_party/dxheaders': { |
| 167 | # The non-Windows build of DXC depends on DirectX-Headers, and at a specific commit (not ToT) |
| 168 | 'url': '{chromium_git}/external/github.com/microsoft/DirectX-Headers@980971e835876dc0cde415e8f9bc646e64667bf7', |
Austin Eng | c02f143 | 2023-07-05 22:38:39 +0000 | [diff] [blame] | 169 | 'condition': 'host_os != "win"', |
Antonio Maiorano | ad5e108 | 2023-06-22 20:45:54 +0000 | [diff] [blame] | 170 | }, |
| 171 | |
Kai Ninomiya | 5c780d7 | 2022-03-17 21:43:17 +0000 | [diff] [blame] | 172 | # WebGPU CTS - not used directly by Dawn, only transitively by Chromium. |
| 173 | 'third_party/webgpu-cts': { |
Gregg Tavares | e1d87cd | 2023-06-29 23:36:25 +0000 | [diff] [blame] | 174 | 'url': '{chromium_git}/external/github.com/gpuweb/cts@82a512494491d0e22a166d5291c86a4bf5a27172', |
Kai Ninomiya | 5c780d7 | 2022-03-17 21:43:17 +0000 | [diff] [blame] | 175 | 'condition': 'build_with_chromium', |
| 176 | }, |
| 177 | |
Ben Clayton | 6f8ff74 | 2022-03-28 19:55:42 +0000 | [diff] [blame] | 178 | # Dependencies required to build / run Dawn NodeJS bindings |
Ben Clayton | dc890d6 | 2021-09-27 22:55:39 +0000 | [diff] [blame] | 179 | 'third_party/node-api-headers': { |
| 180 | 'url': '{github_git}/nodejs/node-api-headers.git@d68505e4055ecb630e14c26c32e5c2c65e179bba', |
| 181 | 'condition': 'dawn_node', |
| 182 | }, |
| 183 | 'third_party/node-addon-api': { |
| 184 | 'url': '{github_git}/nodejs/node-addon-api.git@4a3de56c3e4ed0031635a2f642b27efeeed00add', |
| 185 | 'condition': 'dawn_node', |
| 186 | }, |
| 187 | 'third_party/gpuweb': { |
Corentin Wallez | dbd477f | 2023-05-31 12:02:12 +0000 | [diff] [blame] | 188 | 'url': '{github_git}/gpuweb/gpuweb.git@913189072715569b8ad60e5c2e38e501273bd5b0', |
Ben Clayton | dc890d6 | 2021-09-27 22:55:39 +0000 | [diff] [blame] | 189 | 'condition': 'dawn_node', |
| 190 | }, |
Austin Eng | 4948c81 | 2021-10-15 14:28:32 +0000 | [diff] [blame] | 191 | |
| 192 | 'tools/golang': { |
Austin Eng | 4948c81 | 2021-10-15 14:28:32 +0000 | [diff] [blame] | 193 | 'packages': [{ |
| 194 | 'package': 'infra/3pp/tools/go/${{platform}}', |
| 195 | 'version': Var('dawn_go_version'), |
| 196 | }], |
| 197 | 'dep_type': 'cipd', |
| 198 | }, |
| 199 | |
| 200 | 'tools/cmake': { |
| 201 | 'condition': 'dawn_node and (host_os == "mac" or host_os == "linux")', |
| 202 | 'packages': [{ |
| 203 | 'package': 'infra/3pp/tools/cmake/${{platform}}', |
| 204 | 'version': Var('dawn_cmake_version'), |
| 205 | }], |
| 206 | 'dep_type': 'cipd', |
| 207 | }, |
Ryan Harrison | e87ac76 | 2022-04-06 15:37:27 -0400 | [diff] [blame] | 208 | |
Junji Watanabe | 4ad7f01 | 2022-10-03 02:48:52 +0000 | [diff] [blame] | 209 | 'third_party/ninja': { |
| 210 | 'packages': [ |
| 211 | { |
| 212 | 'package': 'infra/3pp/tools/ninja/${{platform}}', |
| 213 | 'version': Var('dawn_ninja_version'), |
| 214 | } |
| 215 | ], |
| 216 | 'dep_type': 'cipd', |
| 217 | }, |
| 218 | |
Ryan Harrison | e87ac76 | 2022-04-06 15:37:27 -0400 | [diff] [blame] | 219 | # Misc dependencies inherited from Tint |
Ryan Harrison | 3374f43 | 2022-03-28 18:01:02 +0000 | [diff] [blame] | 220 | 'third_party/protobuf': { |
| 221 | 'url': '{chromium_git}/external/github.com/protocolbuffers/protobuf.git@fde7cf7358ec7cd69e8db9be4f1fa6a5c431386a', |
Ryan Harrison | e87ac76 | 2022-04-06 15:37:27 -0400 | [diff] [blame] | 222 | 'condition': 'dawn_standalone', |
Ryan Harrison | 3374f43 | 2022-03-28 18:01:02 +0000 | [diff] [blame] | 223 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 224 | } |
| 225 | |
| 226 | hooks = [ |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 227 | # Pull the compilers and system libraries for hermetic builds |
| 228 | { |
| 229 | 'name': 'sysroot_x86', |
| 230 | 'pattern': '.', |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 231 | 'condition': 'dawn_standalone and checkout_linux and (checkout_x86 or checkout_x64)', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 232 | 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 233 | '--arch=x86'], |
| 234 | }, |
| 235 | { |
| 236 | 'name': 'sysroot_x64', |
| 237 | 'pattern': '.', |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 238 | 'condition': 'dawn_standalone and checkout_linux and checkout_x64', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 239 | 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 240 | '--arch=x64'], |
| 241 | }, |
| 242 | { |
Corentin Wallez | d4e7f08 | 2020-11-17 21:16:31 +0000 | [diff] [blame] | 243 | # Update the Mac toolchain if possible, this makes builders use "hermetic XCode" which is |
| 244 | # is more consistent (only changes when rolling build/) and is cached. |
| 245 | 'name': 'mac_toolchain', |
| 246 | 'pattern': '.', |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 247 | 'condition': 'dawn_standalone and checkout_mac', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 248 | 'action': ['python3', 'build/mac_toolchain.py'], |
Corentin Wallez | d4e7f08 | 2020-11-17 21:16:31 +0000 | [diff] [blame] | 249 | }, |
| 250 | { |
Peng Huang | 78583a1 | 2023-02-10 13:53:31 +0000 | [diff] [blame] | 251 | # Case-insensitivity for the Win SDK. Must run before win_toolchain below. |
| 252 | 'name': 'ciopfs_linux', |
| 253 | 'pattern': '.', |
Peng Huang | 708a077 | 2023-02-13 11:38:38 +0000 | [diff] [blame] | 254 | 'condition': 'dawn_standalone and checkout_win and host_os == "linux"', |
Peng Huang | 78583a1 | 2023-02-10 13:53:31 +0000 | [diff] [blame] | 255 | 'action': [ 'download_from_google_storage', |
| 256 | '--no_resume', |
| 257 | '--no_auth', |
| 258 | '--bucket', 'chromium-browser-clang/ciopfs', |
| 259 | '-s', 'build/ciopfs.sha1', |
| 260 | ] |
| 261 | }, |
| 262 | { |
Corentin Wallez | 682c44a | 2018-08-13 17:48:16 +0200 | [diff] [blame] | 263 | # Update the Windows toolchain if necessary. Must run before 'clang' below. |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 264 | 'name': 'win_toolchain', |
| 265 | 'pattern': '.', |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 266 | 'condition': 'dawn_standalone and checkout_win', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 267 | 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 268 | }, |
| 269 | { |
| 270 | # Note: On Win, this should run after win_toolchain, as it may use it. |
| 271 | 'name': 'clang', |
| 272 | 'pattern': '.', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 273 | 'action': ['python3', 'tools/clang/scripts/update.py'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 274 | 'condition': 'dawn_standalone', |
| 275 | }, |
| 276 | { |
dan sinclair | 93cf346 | 2022-05-16 12:58:24 +0000 | [diff] [blame] | 277 | # This is also supposed to support the same set of platforms as 'clang' |
| 278 | # above. LLVM ToT support isn't provided at the moment. |
| 279 | 'name': 'clang_tidy', |
| 280 | 'pattern': '.', |
Corentin Wallez | c4051b1 | 2022-05-17 08:21:02 +0000 | [diff] [blame] | 281 | 'condition': 'dawn_standalone and checkout_clang_tidy', |
dan sinclair | 93cf346 | 2022-05-16 12:58:24 +0000 | [diff] [blame] | 282 | 'action': ['python3', 'tools/clang/scripts/update.py', |
| 283 | '--package=clang-tidy'], |
| 284 | }, |
| 285 | { |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 286 | # Pull rc binaries using checked-in hashes. |
| 287 | 'name': 'rc_win', |
| 288 | 'pattern': '.', |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 289 | 'condition': 'dawn_standalone and checkout_win and host_os == "win"', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 290 | 'action': [ 'download_from_google_storage', |
| 291 | '--no_resume', |
| 292 | '--no_auth', |
| 293 | '--bucket', 'chromium-browser-clang/rc', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 294 | '-s', 'build/toolchain/win/rc/win/rc.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 295 | ], |
| 296 | }, |
Peng Huang | 78583a1 | 2023-02-10 13:53:31 +0000 | [diff] [blame] | 297 | { |
| 298 | 'name': 'rc_linux', |
| 299 | 'pattern': '.', |
Peng Huang | 708a077 | 2023-02-13 11:38:38 +0000 | [diff] [blame] | 300 | 'condition': 'dawn_standalone and checkout_win and host_os == "linux"', |
Peng Huang | 78583a1 | 2023-02-10 13:53:31 +0000 | [diff] [blame] | 301 | 'action': [ 'download_from_google_storage', |
| 302 | '--no_resume', |
| 303 | '--no_auth', |
| 304 | '--bucket', 'chromium-browser-clang/rc', |
| 305 | '-s', 'build/toolchain/win/rc/linux64/rc.sha1', |
| 306 | ] |
| 307 | }, |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 308 | # Pull clang-format binaries using checked-in hashes. |
| 309 | { |
Corentin Wallez | 51723bd | 2022-04-07 10:40:46 +0000 | [diff] [blame] | 310 | 'name': 'clang_format_win', |
| 311 | 'pattern': '.', |
| 312 | 'condition': 'dawn_standalone and host_os == "win"', |
| 313 | 'action': [ 'download_from_google_storage', |
| 314 | '--no_resume', |
| 315 | '--no_auth', |
| 316 | '--bucket', 'chromium-clang-format', |
| 317 | '-s', 'buildtools/win/clang-format.exe.sha1', |
| 318 | ], |
| 319 | }, |
| 320 | { |
Ben Clayton | 088a600 | 2022-04-06 19:57:42 +0000 | [diff] [blame] | 321 | 'name': 'clang_format_mac_x64', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 322 | 'pattern': '.', |
Ben Clayton | 088a600 | 2022-04-06 19:57:42 +0000 | [diff] [blame] | 323 | 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "x64"', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 324 | 'action': [ 'download_from_google_storage', |
| 325 | '--no_resume', |
| 326 | '--no_auth', |
| 327 | '--bucket', 'chromium-clang-format', |
Ben Clayton | 088a600 | 2022-04-06 19:57:42 +0000 | [diff] [blame] | 328 | '-s', 'buildtools/mac/clang-format.x64.sha1', |
| 329 | '-o', 'buildtools/mac/clang-format', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 330 | ], |
| 331 | }, |
| 332 | { |
Ben Clayton | 088a600 | 2022-04-06 19:57:42 +0000 | [diff] [blame] | 333 | 'name': 'clang_format_mac_arm64', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 334 | 'pattern': '.', |
Ben Clayton | 088a600 | 2022-04-06 19:57:42 +0000 | [diff] [blame] | 335 | 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "arm64"', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 336 | 'action': [ 'download_from_google_storage', |
| 337 | '--no_resume', |
| 338 | '--no_auth', |
| 339 | '--bucket', 'chromium-clang-format', |
Ben Clayton | 088a600 | 2022-04-06 19:57:42 +0000 | [diff] [blame] | 340 | '-s', 'buildtools/mac/clang-format.arm64.sha1', |
| 341 | '-o', 'buildtools/mac/clang-format', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 342 | ], |
| 343 | }, |
| 344 | { |
| 345 | 'name': 'clang_format_linux', |
| 346 | 'pattern': '.', |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 347 | 'condition': 'dawn_standalone and host_os == "linux"', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 348 | 'action': [ 'download_from_google_storage', |
| 349 | '--no_resume', |
| 350 | '--no_auth', |
| 351 | '--bucket', 'chromium-clang-format', |
| 352 | '-s', 'buildtools/linux64/clang-format.sha1', |
| 353 | ], |
| 354 | }, |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 355 | # Update build/util/LASTCHANGE. |
| 356 | { |
| 357 | 'name': 'lastchange', |
| 358 | 'pattern': '.', |
Jiajie Hu | 2ffc55a | 2020-07-01 05:08:36 +0000 | [diff] [blame] | 359 | 'condition': 'dawn_standalone', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 360 | 'action': ['python3', 'build/util/lastchange.py', |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 361 | '-o', 'build/util/LASTCHANGE'], |
| 362 | }, |
Austin Eng | 4948c81 | 2021-10-15 14:28:32 +0000 | [diff] [blame] | 363 | # TODO(https://crbug.com/1180257): Use CIPD for CMake on Windows. |
| 364 | { |
| 365 | 'name': 'cmake_win32', |
| 366 | 'pattern': '.', |
| 367 | 'condition': 'dawn_node and host_os == "win"', |
| 368 | 'action': [ 'download_from_google_storage', |
| 369 | '--no_resume', |
| 370 | '--platform=win32', |
| 371 | '--no_auth', |
| 372 | '--bucket', 'chromium-tools', |
| 373 | Var('dawn_cmake_win32_sha1'), |
| 374 | '-o', 'tools/cmake-win32.zip' |
| 375 | ], |
| 376 | }, |
| 377 | { |
| 378 | 'name': 'cmake_win32_extract', |
| 379 | 'pattern': '.', |
| 380 | 'condition': 'dawn_node and host_os == "win"', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 381 | 'action': [ 'python3', |
Austin Eng | 4948c81 | 2021-10-15 14:28:32 +0000 | [diff] [blame] | 382 | 'scripts/extract.py', |
| 383 | 'tools/cmake-win32.zip', |
| 384 | 'tools/cmake-win32/', |
| 385 | ], |
| 386 | }, |
Ben Clayton | 6f8ff74 | 2022-03-28 19:55:42 +0000 | [diff] [blame] | 387 | |
| 388 | # Node binaries, when dawn_node is enabled |
| 389 | { |
| 390 | 'name': 'node_linux64', |
| 391 | 'pattern': '.', |
| 392 | 'condition': 'dawn_node and host_os == "linux"', |
| 393 | 'action': [ 'download_from_google_storage', |
| 394 | '--no_resume', |
| 395 | '--extract', |
| 396 | '--no_auth', |
| 397 | '--bucket', 'chromium-nodejs/16.13.0', |
| 398 | Var('node_linux_x64_sha'), |
| 399 | '-o', 'third_party/node/node-linux-x64.tar.gz', |
| 400 | ], |
| 401 | }, |
| 402 | { |
| 403 | 'name': 'node_mac', |
| 404 | 'pattern': '.', |
| 405 | 'condition': 'dawn_node and host_os == "mac"', |
| 406 | 'action': [ 'download_from_google_storage', |
| 407 | '--no_resume', |
| 408 | '--extract', |
| 409 | '--no_auth', |
| 410 | '--bucket', 'chromium-nodejs/16.13.0', |
| 411 | Var('node_darwin_x64_sha'), |
| 412 | '-o', 'third_party/node/node-darwin-x64.tar.gz', |
| 413 | ], |
| 414 | }, |
| 415 | { |
| 416 | 'name': 'node_mac_arm64', |
| 417 | 'pattern': '.', |
| 418 | 'condition': 'dawn_node and host_os == "mac"', |
| 419 | 'action': [ 'download_from_google_storage', |
| 420 | '--no_resume', |
| 421 | '--extract', |
| 422 | '--no_auth', |
| 423 | '--bucket', 'chromium-nodejs/16.13.0', |
| 424 | Var('node_darwin_arm64_sha'), |
| 425 | '-o', 'third_party/node/node-darwin-arm64.tar.gz', |
| 426 | ], |
| 427 | }, |
| 428 | { |
| 429 | 'name': 'node_win', |
| 430 | 'pattern': '.', |
| 431 | 'condition': 'dawn_node and host_os == "win"', |
| 432 | 'action': [ 'download_from_google_storage', |
| 433 | '--no_resume', |
| 434 | '--no_auth', |
| 435 | '--bucket', 'chromium-nodejs/16.13.0', |
| 436 | Var('node_win_x64_sha'), |
| 437 | '-o', 'third_party/node/node.exe', |
| 438 | ], |
| 439 | }, |
| 440 | |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 441 | ] |
| 442 | |
| 443 | recursedeps = [ |
Stephen White | f1fa60b | 2021-01-06 17:41:50 +0000 | [diff] [blame] | 444 | 'third_party/vulkan-deps', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 445 | ] |