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