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