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 |
| 22 | 'dawn_ninja_version': 'version:2@1.8.2.chromium.3', |
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': { |
Corentin Wallez | d5b64ec | 2022-10-03 13:31:27 +0000 | [diff] [blame] | 40 | 'url': '{chromium_git}/chromium/src/build@01569374d46a14b225586c564146a8e1749520b6', |
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': { |
Corentin Wallez | d5b64ec | 2022-10-03 13:31:27 +0000 | [diff] [blame] | 44 | 'url': '{chromium_git}/chromium/src/buildtools@cccaf48c82bcf4ddafa6f8aa9f06014a1ef434bf', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 45 | 'condition': 'dawn_standalone', |
| 46 | }, |
Corentin Wallez | 60ca94b | 2021-03-24 16:22:32 +0000 | [diff] [blame] | 47 | 'buildtools/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': { |
Corentin Wallez | d5b64ec | 2022-10-03 13:31:27 +0000 | [diff] [blame] | 77 | 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxx.git@26d0ab4151fd10c523fdbb5bbdb59aa5a5774820', |
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': { |
Corentin Wallez | d5b64ec | 2022-10-03 13:31:27 +0000 | [diff] [blame] | 82 | 'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxxabi.git@5c3e02e92ae8bbc1bf1001bd9ef0d76e044ddb86', |
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': { |
Corentin Wallez | d5b64ec | 2022-10-03 13:31:27 +0000 | [diff] [blame] | 87 | 'url': '{chromium_git}/chromium/src/tools/clang@a5e0d72349d028a4023927d6d166a8478355fac3', |
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': { |
Corentin Wallez | d5b64ec | 2022-10-03 13:31:27 +0000 | [diff] [blame] | 101 | 'url': '{chromium_git}/chromium/src/testing@e3e8c19554e8f47da85d35e4f990cdc30a061196', |
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': { |
Corentin Wallez | d5b64ec | 2022-10-03 13:31:27 +0000 | [diff] [blame] | 105 | 'url': '{chromium_git}/external/github.com/google/googletest@d1a0039b97291dd1dc14f123b906bb7622ffe07c', |
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': { |
Corentin Wallez | d5b64ec | 2022-10-03 13:31:27 +0000 | [diff] [blame] | 110 | 'url': '{chromium_git}/catapult.git@4a0e6f034e9756605cfc837c8526588d6c13436b', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 111 | 'condition': 'dawn_standalone', |
| 112 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 113 | |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 114 | # Jinja2 and MarkupSafe for the code generator |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 115 | 'third_party/jinja2': { |
James Price | e97594d | 2021-11-02 08:31:02 +0000 | [diff] [blame] | 116 | 'url': '{chromium_git}/chromium/src/third_party/jinja2@ee69aa00ee8536f61db6a451f3858745cf587de6', |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 117 | 'condition': 'dawn_standalone', |
| 118 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 119 | 'third_party/markupsafe': { |
Corentin Wallez | bf1e953 | 2020-11-04 09:44:47 +0000 | [diff] [blame] | 120 | 'url': '{chromium_git}/chromium/src/third_party/markupsafe@0944e71f4b2cb9a871bcbe353f95e889b64a611a', |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 121 | 'condition': 'dawn_standalone', |
| 122 | }, |
| 123 | |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 124 | # GLFW for tests and samples |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 125 | 'third_party/glfw': { |
Corentin Wallez | 6903c46 | 2022-05-25 17:46:04 +0000 | [diff] [blame] | 126 | 'url': '{chromium_git}/external/github.com/glfw/glfw@62e175ef9fae75335575964c845a302447c012c7', |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 127 | }, |
| 128 | |
Stephen White | 77fcdf7 | 2021-01-11 15:52:12 +0000 | [diff] [blame] | 129 | 'third_party/vulkan_memory_allocator': { |
Austin Eng | 972c238 | 2021-12-21 21:21:42 +0000 | [diff] [blame] | 130 | 'url': '{chromium_git}/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator@5e49f57a6e71a026a54eb42e366de09a4142d24e', |
Stephen White | 77fcdf7 | 2021-01-11 15:52:12 +0000 | [diff] [blame] | 131 | 'condition': 'dawn_standalone', |
| 132 | }, |
| 133 | |
| 134 | 'third_party/angle': { |
Dawn Autoroller | ec1849d | 2022-12-27 00:09:35 +0000 | [diff] [blame] | 135 | 'url': '{chromium_git}/angle/angle@03b928dbf40c3a4721682af9d7b5d3c9faaecbb6', |
Stephen White | 77fcdf7 | 2021-01-11 15:52:12 +0000 | [diff] [blame] | 136 | 'condition': 'dawn_standalone', |
| 137 | }, |
| 138 | |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 139 | 'third_party/swiftshader': { |
Dawn Autoroller | e4848f7 | 2022-12-23 08:29:38 +0000 | [diff] [blame] | 140 | 'url': '{swiftshader_git}/SwiftShader@5f9ed9b16931c7155171d31f75004f73f0a3abc8', |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 141 | 'condition': 'dawn_standalone', |
| 142 | }, |
| 143 | |
Stephen White | f1fa60b | 2021-01-06 17:41:50 +0000 | [diff] [blame] | 144 | 'third_party/vulkan-deps': { |
dawn-autoroll | e270590 | 2022-12-27 03:40:40 +0000 | [diff] [blame] | 145 | 'url': '{chromium_git}/vulkan-deps@3c1cf9017a4cb4ecad429c88ab43200b19f1a722', |
Corentin Wallez | 1fdd059 | 2021-04-02 18:04:27 +0000 | [diff] [blame] | 146 | 'condition': 'dawn_standalone', |
Stephen White | 77fcdf7 | 2021-01-11 15:52:12 +0000 | [diff] [blame] | 147 | }, |
| 148 | |
| 149 | 'third_party/zlib': { |
Austin Eng | 99ad82a | 2022-07-27 21:57:30 +0000 | [diff] [blame] | 150 | 'url': '{chromium_git}/chromium/src/third_party/zlib@64bbf988543996eb8df9a86877b32917187eba8f', |
Stephen White | f1fa60b | 2021-01-06 17:41:50 +0000 | [diff] [blame] | 151 | 'condition': 'dawn_standalone', |
| 152 | }, |
Brandon Jones | a04663c | 2021-09-23 20:36:03 +0000 | [diff] [blame] | 153 | |
| 154 | 'third_party/abseil-cpp': { |
Corentin Wallez | edf650c | 2022-07-12 09:55:29 +0000 | [diff] [blame] | 155 | 'url': '{chromium_git}/chromium/src/third_party/abseil-cpp@bc3ab29356a081d0b5dd4ac55e30f4b45d8794cc', |
Brandon Jones | a04663c | 2021-09-23 20:36:03 +0000 | [diff] [blame] | 156 | 'condition': 'dawn_standalone', |
| 157 | }, |
Ben Clayton | dc890d6 | 2021-09-27 22:55:39 +0000 | [diff] [blame] | 158 | |
Kai Ninomiya | 5c780d7 | 2022-03-17 21:43:17 +0000 | [diff] [blame] | 159 | # WebGPU CTS - not used directly by Dawn, only transitively by Chromium. |
| 160 | 'third_party/webgpu-cts': { |
Dan Sinclair | 0285801 | 2022-11-29 12:39:39 +0000 | [diff] [blame] | 161 | 'url': '{chromium_git}/external/github.com/gpuweb/cts@09447faf1a22821f35ca4a3fc9c06e3bf1125756', |
Kai Ninomiya | 5c780d7 | 2022-03-17 21:43:17 +0000 | [diff] [blame] | 162 | 'condition': 'build_with_chromium', |
| 163 | }, |
| 164 | |
Ben Clayton | 6f8ff74 | 2022-03-28 19:55:42 +0000 | [diff] [blame] | 165 | # Dependencies required to build / run Dawn NodeJS bindings |
Ben Clayton | dc890d6 | 2021-09-27 22:55:39 +0000 | [diff] [blame] | 166 | 'third_party/node-api-headers': { |
| 167 | 'url': '{github_git}/nodejs/node-api-headers.git@d68505e4055ecb630e14c26c32e5c2c65e179bba', |
| 168 | 'condition': 'dawn_node', |
| 169 | }, |
| 170 | 'third_party/node-addon-api': { |
| 171 | 'url': '{github_git}/nodejs/node-addon-api.git@4a3de56c3e4ed0031635a2f642b27efeeed00add', |
| 172 | 'condition': 'dawn_node', |
| 173 | }, |
| 174 | 'third_party/gpuweb': { |
Corentin Wallez | cf8513d | 2022-12-01 13:03:06 +0000 | [diff] [blame] | 175 | 'url': '{github_git}/gpuweb/gpuweb.git@0f5fc665a0d5b281e8119f0201e9067b05cf7927', |
Ben Clayton | dc890d6 | 2021-09-27 22:55:39 +0000 | [diff] [blame] | 176 | 'condition': 'dawn_node', |
| 177 | }, |
Austin Eng | 4948c81 | 2021-10-15 14:28:32 +0000 | [diff] [blame] | 178 | |
| 179 | 'tools/golang': { |
Austin Eng | 4948c81 | 2021-10-15 14:28:32 +0000 | [diff] [blame] | 180 | 'packages': [{ |
| 181 | 'package': 'infra/3pp/tools/go/${{platform}}', |
| 182 | 'version': Var('dawn_go_version'), |
| 183 | }], |
| 184 | 'dep_type': 'cipd', |
| 185 | }, |
| 186 | |
| 187 | 'tools/cmake': { |
| 188 | 'condition': 'dawn_node and (host_os == "mac" or host_os == "linux")', |
| 189 | 'packages': [{ |
| 190 | 'package': 'infra/3pp/tools/cmake/${{platform}}', |
| 191 | 'version': Var('dawn_cmake_version'), |
| 192 | }], |
| 193 | 'dep_type': 'cipd', |
| 194 | }, |
Ryan Harrison | e87ac76 | 2022-04-06 15:37:27 -0400 | [diff] [blame] | 195 | |
Junji Watanabe | 4ad7f01 | 2022-10-03 02:48:52 +0000 | [diff] [blame] | 196 | 'third_party/ninja': { |
| 197 | 'packages': [ |
| 198 | { |
| 199 | 'package': 'infra/3pp/tools/ninja/${{platform}}', |
| 200 | 'version': Var('dawn_ninja_version'), |
| 201 | } |
| 202 | ], |
| 203 | 'dep_type': 'cipd', |
| 204 | }, |
| 205 | |
Ryan Harrison | e87ac76 | 2022-04-06 15:37:27 -0400 | [diff] [blame] | 206 | # Misc dependencies inherited from Tint |
Ryan Harrison | 3374f43 | 2022-03-28 18:01:02 +0000 | [diff] [blame] | 207 | 'third_party/benchmark': { |
| 208 | 'url': '{chromium_git}/external/github.com/google/benchmark.git@e991355c02b93fe17713efe04cbc2e278e00fdbd', |
Ryan Harrison | e87ac76 | 2022-04-06 15:37:27 -0400 | [diff] [blame] | 209 | 'condition': 'dawn_standalone', |
Ryan Harrison | 3374f43 | 2022-03-28 18:01:02 +0000 | [diff] [blame] | 210 | }, |
Ryan Harrison | 3374f43 | 2022-03-28 18:01:02 +0000 | [diff] [blame] | 211 | 'third_party/protobuf': { |
| 212 | 'url': '{chromium_git}/external/github.com/protocolbuffers/protobuf.git@fde7cf7358ec7cd69e8db9be4f1fa6a5c431386a', |
Ryan Harrison | e87ac76 | 2022-04-06 15:37:27 -0400 | [diff] [blame] | 213 | 'condition': 'dawn_standalone', |
Ryan Harrison | 3374f43 | 2022-03-28 18:01:02 +0000 | [diff] [blame] | 214 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 215 | } |
| 216 | |
| 217 | hooks = [ |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 218 | # Pull the compilers and system libraries for hermetic builds |
| 219 | { |
| 220 | 'name': 'sysroot_x86', |
| 221 | 'pattern': '.', |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 222 | 'condition': 'dawn_standalone and checkout_linux and (checkout_x86 or checkout_x64)', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 223 | 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 224 | '--arch=x86'], |
| 225 | }, |
| 226 | { |
| 227 | 'name': 'sysroot_x64', |
| 228 | 'pattern': '.', |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 229 | 'condition': 'dawn_standalone and checkout_linux and checkout_x64', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 230 | 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 231 | '--arch=x64'], |
| 232 | }, |
| 233 | { |
Corentin Wallez | d4e7f08 | 2020-11-17 21:16:31 +0000 | [diff] [blame] | 234 | # Update the Mac toolchain if possible, this makes builders use "hermetic XCode" which is |
| 235 | # is more consistent (only changes when rolling build/) and is cached. |
| 236 | 'name': 'mac_toolchain', |
| 237 | 'pattern': '.', |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 238 | 'condition': 'dawn_standalone and checkout_mac', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 239 | 'action': ['python3', 'build/mac_toolchain.py'], |
Corentin Wallez | d4e7f08 | 2020-11-17 21:16:31 +0000 | [diff] [blame] | 240 | }, |
| 241 | { |
Corentin Wallez | 682c44a | 2018-08-13 17:48:16 +0200 | [diff] [blame] | 242 | # Update the Windows toolchain if necessary. Must run before 'clang' below. |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 243 | 'name': 'win_toolchain', |
| 244 | 'pattern': '.', |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 245 | 'condition': 'dawn_standalone and checkout_win', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 246 | 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 247 | }, |
| 248 | { |
| 249 | # Note: On Win, this should run after win_toolchain, as it may use it. |
| 250 | 'name': 'clang', |
| 251 | 'pattern': '.', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 252 | 'action': ['python3', 'tools/clang/scripts/update.py'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 253 | 'condition': 'dawn_standalone', |
| 254 | }, |
| 255 | { |
dan sinclair | 93cf346 | 2022-05-16 12:58:24 +0000 | [diff] [blame] | 256 | # This is also supposed to support the same set of platforms as 'clang' |
| 257 | # above. LLVM ToT support isn't provided at the moment. |
| 258 | 'name': 'clang_tidy', |
| 259 | 'pattern': '.', |
Corentin Wallez | c4051b1 | 2022-05-17 08:21:02 +0000 | [diff] [blame] | 260 | 'condition': 'dawn_standalone and checkout_clang_tidy', |
dan sinclair | 93cf346 | 2022-05-16 12:58:24 +0000 | [diff] [blame] | 261 | 'action': ['python3', 'tools/clang/scripts/update.py', |
| 262 | '--package=clang-tidy'], |
| 263 | }, |
| 264 | { |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 265 | # Pull rc binaries using checked-in hashes. |
| 266 | 'name': 'rc_win', |
| 267 | 'pattern': '.', |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 268 | 'condition': 'dawn_standalone and checkout_win and host_os == "win"', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 269 | 'action': [ 'download_from_google_storage', |
| 270 | '--no_resume', |
| 271 | '--no_auth', |
| 272 | '--bucket', 'chromium-browser-clang/rc', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 273 | '-s', 'build/toolchain/win/rc/win/rc.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 274 | ], |
| 275 | }, |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 276 | # Pull clang-format binaries using checked-in hashes. |
| 277 | { |
Corentin Wallez | 51723bd | 2022-04-07 10:40:46 +0000 | [diff] [blame] | 278 | 'name': 'clang_format_win', |
| 279 | 'pattern': '.', |
| 280 | 'condition': 'dawn_standalone and host_os == "win"', |
| 281 | 'action': [ 'download_from_google_storage', |
| 282 | '--no_resume', |
| 283 | '--no_auth', |
| 284 | '--bucket', 'chromium-clang-format', |
| 285 | '-s', 'buildtools/win/clang-format.exe.sha1', |
| 286 | ], |
| 287 | }, |
| 288 | { |
Ben Clayton | 088a600 | 2022-04-06 19:57:42 +0000 | [diff] [blame] | 289 | 'name': 'clang_format_mac_x64', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 290 | 'pattern': '.', |
Ben Clayton | 088a600 | 2022-04-06 19:57:42 +0000 | [diff] [blame] | 291 | 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "x64"', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 292 | 'action': [ 'download_from_google_storage', |
| 293 | '--no_resume', |
| 294 | '--no_auth', |
| 295 | '--bucket', 'chromium-clang-format', |
Ben Clayton | 088a600 | 2022-04-06 19:57:42 +0000 | [diff] [blame] | 296 | '-s', 'buildtools/mac/clang-format.x64.sha1', |
| 297 | '-o', 'buildtools/mac/clang-format', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 298 | ], |
| 299 | }, |
| 300 | { |
Ben Clayton | 088a600 | 2022-04-06 19:57:42 +0000 | [diff] [blame] | 301 | 'name': 'clang_format_mac_arm64', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 302 | 'pattern': '.', |
Ben Clayton | 088a600 | 2022-04-06 19:57:42 +0000 | [diff] [blame] | 303 | 'condition': 'dawn_standalone and host_os == "mac" and host_cpu == "arm64"', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 304 | 'action': [ 'download_from_google_storage', |
| 305 | '--no_resume', |
| 306 | '--no_auth', |
| 307 | '--bucket', 'chromium-clang-format', |
Ben Clayton | 088a600 | 2022-04-06 19:57:42 +0000 | [diff] [blame] | 308 | '-s', 'buildtools/mac/clang-format.arm64.sha1', |
| 309 | '-o', 'buildtools/mac/clang-format', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 310 | ], |
| 311 | }, |
| 312 | { |
| 313 | 'name': 'clang_format_linux', |
| 314 | 'pattern': '.', |
Corentin Wallez | 2015b2f | 2021-03-04 17:37:55 +0000 | [diff] [blame] | 315 | 'condition': 'dawn_standalone and host_os == "linux"', |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 316 | 'action': [ 'download_from_google_storage', |
| 317 | '--no_resume', |
| 318 | '--no_auth', |
| 319 | '--bucket', 'chromium-clang-format', |
| 320 | '-s', 'buildtools/linux64/clang-format.sha1', |
| 321 | ], |
| 322 | }, |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 323 | # Update build/util/LASTCHANGE. |
| 324 | { |
| 325 | 'name': 'lastchange', |
| 326 | 'pattern': '.', |
Jiajie Hu | 2ffc55a | 2020-07-01 05:08:36 +0000 | [diff] [blame] | 327 | 'condition': 'dawn_standalone', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 328 | 'action': ['python3', 'build/util/lastchange.py', |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 329 | '-o', 'build/util/LASTCHANGE'], |
| 330 | }, |
Austin Eng | 4948c81 | 2021-10-15 14:28:32 +0000 | [diff] [blame] | 331 | # TODO(https://crbug.com/1180257): Use CIPD for CMake on Windows. |
| 332 | { |
| 333 | 'name': 'cmake_win32', |
| 334 | 'pattern': '.', |
| 335 | 'condition': 'dawn_node and host_os == "win"', |
| 336 | 'action': [ 'download_from_google_storage', |
| 337 | '--no_resume', |
| 338 | '--platform=win32', |
| 339 | '--no_auth', |
| 340 | '--bucket', 'chromium-tools', |
| 341 | Var('dawn_cmake_win32_sha1'), |
| 342 | '-o', 'tools/cmake-win32.zip' |
| 343 | ], |
| 344 | }, |
| 345 | { |
| 346 | 'name': 'cmake_win32_extract', |
| 347 | 'pattern': '.', |
| 348 | 'condition': 'dawn_node and host_os == "win"', |
Corentin Wallez | d520366 | 2022-01-05 15:54:08 +0000 | [diff] [blame] | 349 | 'action': [ 'python3', |
Austin Eng | 4948c81 | 2021-10-15 14:28:32 +0000 | [diff] [blame] | 350 | 'scripts/extract.py', |
| 351 | 'tools/cmake-win32.zip', |
| 352 | 'tools/cmake-win32/', |
| 353 | ], |
| 354 | }, |
Ben Clayton | 6f8ff74 | 2022-03-28 19:55:42 +0000 | [diff] [blame] | 355 | |
| 356 | # Node binaries, when dawn_node is enabled |
| 357 | { |
| 358 | 'name': 'node_linux64', |
| 359 | 'pattern': '.', |
| 360 | 'condition': 'dawn_node and host_os == "linux"', |
| 361 | 'action': [ 'download_from_google_storage', |
| 362 | '--no_resume', |
| 363 | '--extract', |
| 364 | '--no_auth', |
| 365 | '--bucket', 'chromium-nodejs/16.13.0', |
| 366 | Var('node_linux_x64_sha'), |
| 367 | '-o', 'third_party/node/node-linux-x64.tar.gz', |
| 368 | ], |
| 369 | }, |
| 370 | { |
| 371 | 'name': 'node_mac', |
| 372 | 'pattern': '.', |
| 373 | 'condition': 'dawn_node and host_os == "mac"', |
| 374 | 'action': [ 'download_from_google_storage', |
| 375 | '--no_resume', |
| 376 | '--extract', |
| 377 | '--no_auth', |
| 378 | '--bucket', 'chromium-nodejs/16.13.0', |
| 379 | Var('node_darwin_x64_sha'), |
| 380 | '-o', 'third_party/node/node-darwin-x64.tar.gz', |
| 381 | ], |
| 382 | }, |
| 383 | { |
| 384 | 'name': 'node_mac_arm64', |
| 385 | 'pattern': '.', |
| 386 | 'condition': 'dawn_node and host_os == "mac"', |
| 387 | 'action': [ 'download_from_google_storage', |
| 388 | '--no_resume', |
| 389 | '--extract', |
| 390 | '--no_auth', |
| 391 | '--bucket', 'chromium-nodejs/16.13.0', |
| 392 | Var('node_darwin_arm64_sha'), |
| 393 | '-o', 'third_party/node/node-darwin-arm64.tar.gz', |
| 394 | ], |
| 395 | }, |
| 396 | { |
| 397 | 'name': 'node_win', |
| 398 | 'pattern': '.', |
| 399 | 'condition': 'dawn_node and host_os == "win"', |
| 400 | 'action': [ 'download_from_google_storage', |
| 401 | '--no_resume', |
| 402 | '--no_auth', |
| 403 | '--bucket', 'chromium-nodejs/16.13.0', |
| 404 | Var('node_win_x64_sha'), |
| 405 | '-o', 'third_party/node/node.exe', |
| 406 | ], |
| 407 | }, |
| 408 | |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 409 | ] |
| 410 | |
| 411 | recursedeps = [ |
Stephen White | f1fa60b | 2021-01-06 17:41:50 +0000 | [diff] [blame] | 412 | 'third_party/vulkan-deps', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 413 | ] |