Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 1 | use_relative_paths = True |
| 2 | use_relative_hooks = True |
| 3 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 4 | vars = { |
| 5 | 'chromium_git': 'https://chromium.googlesource.com', |
Corentin Wallez | 4c35101 | 2018-08-27 10:10:28 +0200 | [diff] [blame] | 6 | 'dawn_git': 'https://dawn.googlesource.com', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 7 | 'github_git': 'https://github.com', |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 8 | 'swiftshader_git': 'https://swiftshader.googlesource.com', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 9 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 10 | 'dawn_standalone': True, |
| 11 | } |
| 12 | |
| 13 | deps = { |
| 14 | # Dependencies required to use GN/Clang in standalone |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 15 | 'build': { |
Corentin Wallez | 15b9531 | 2020-04-15 19:58:17 +0000 | [diff] [blame] | 16 | 'url': '{chromium_git}/chromium/src/build@896323eeda1bd1b01156b70625d5e14de225ebc3', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 17 | 'condition': 'dawn_standalone', |
| 18 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 19 | 'buildtools': { |
Corentin Wallez | 15b9531 | 2020-04-15 19:58:17 +0000 | [diff] [blame] | 20 | 'url': '{chromium_git}/chromium/src/buildtools@2c41dfb19abe40908834803b6fed797b0f341fe1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 21 | 'condition': 'dawn_standalone', |
| 22 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 23 | 'tools/clang': { |
Corentin Wallez | 15b9531 | 2020-04-15 19:58:17 +0000 | [diff] [blame] | 24 | 'url': '{chromium_git}/chromium/src/tools/clang@698732d5db36040c07d5cc5f9137fcc943494c11', |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 25 | 'condition': 'dawn_standalone', |
| 26 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 27 | 'third_party/binutils': { |
Corentin Wallez | 15b9531 | 2020-04-15 19:58:17 +0000 | [diff] [blame] | 28 | 'url': '{chromium_git}/chromium/src/third_party/binutils@f9ce777698a819dff4d6a033b31122d91a49b62e', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 29 | 'condition': 'dawn_standalone', |
| 30 | }, |
Kai Ninomiya | f526d77 | 2020-04-06 22:27:02 +0000 | [diff] [blame] | 31 | 'tools/clang/dsymutil': { |
| 32 | 'packages': [ |
| 33 | { |
| 34 | 'package': 'chromium/llvm-build-tools/dsymutil', |
| 35 | 'version': 'M56jPzDv1620Rnm__jTMYS62Zi8rxHVq7yw0qeBFEgkC', |
| 36 | } |
| 37 | ], |
| 38 | 'condition': 'checkout_mac or checkout_ios', |
| 39 | 'dep_type': 'cipd', |
| 40 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 41 | |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 42 | # Testing, GTest and GMock |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 43 | 'testing': { |
Victor Costan | 0721c1c | 2020-04-15 20:06:27 +0000 | [diff] [blame] | 44 | 'url': '{chromium_git}/chromium/src/testing@e5ced5141379ee8ae28b4f93d3c02df039d2b052', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 45 | 'condition': 'dawn_standalone', |
| 46 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 47 | 'third_party/googletest': { |
Victor Costan | 0721c1c | 2020-04-15 20:06:27 +0000 | [diff] [blame] | 48 | 'url': '{chromium_git}/external/github.com/google/googletest@e3f0319d89f4cbf32993de595d984183b1a9fc57', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 49 | 'condition': 'dawn_standalone', |
| 50 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 51 | |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 52 | # Jinja2 and MarkupSafe for the code generator |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 53 | 'third_party/jinja2': { |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 54 | 'url': '{chromium_git}/chromium/src/third_party/jinja2@b41863e42637544c2941b574c7877d3e1f663e25', |
| 55 | 'condition': 'dawn_standalone', |
| 56 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 57 | 'third_party/markupsafe': { |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 58 | 'url': '{chromium_git}/chromium/src/third_party/markupsafe@8f45f5cfa0009d2a70589bcda0349b8cb2b72783', |
| 59 | 'condition': 'dawn_standalone', |
| 60 | }, |
| 61 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 62 | # SPIRV-Cross |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 63 | 'third_party/spirv-cross': { |
Ryan Harrison | beaaa5a | 2020-04-14 18:40:34 +0000 | [diff] [blame] | 64 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@54658d62559a364319cb222afe826d0d68c55ad0', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 65 | 'condition': 'dawn_standalone', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 66 | }, |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 67 | |
| 68 | # SPIRV compiler dependencies: SPIRV-Tools, SPIRV-headers, glslang and shaderc |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 69 | 'third_party/SPIRV-Tools': { |
Corentin Wallez | 3d9fe4a | 2020-04-15 19:04:17 +0000 | [diff] [blame] | 70 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@61b7de3c39f01a0eeb717f444c86990547752e26', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 71 | 'condition': 'dawn_standalone', |
| 72 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 73 | 'third_party/spirv-headers': { |
Ryan Harrison | beaaa5a | 2020-04-14 18:40:34 +0000 | [diff] [blame] | 74 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@2ad0492fb00919d99500f1da74abf5ad3c870e4e', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 75 | 'condition': 'dawn_standalone', |
| 76 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 77 | 'third_party/glslang': { |
Ryan Harrison | beaaa5a | 2020-04-14 18:40:34 +0000 | [diff] [blame] | 78 | 'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@4d2298bfd78a82f77f2325c4ade096ccdab1f00d', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 79 | 'condition': 'dawn_standalone', |
| 80 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 81 | 'third_party/shaderc': { |
Ryan Harrison | beaaa5a | 2020-04-14 18:40:34 +0000 | [diff] [blame] | 82 | 'url': '{chromium_git}/external/github.com/google/shaderc@1926de0638b6dd74b759293a5bd21c473d0b1ade', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 83 | 'condition': 'dawn_standalone', |
| 84 | }, |
| 85 | |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 86 | # GLFW for tests and samples |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 87 | 'third_party/glfw': { |
Corentin Wallez | a5a6e4f | 2020-01-23 15:10:58 +0000 | [diff] [blame] | 88 | 'url': '{chromium_git}/external/github.com/glfw/glfw@d973acc123826666ecc9e6fd475682e3d84c54a6', |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 89 | 'condition': 'dawn_standalone', |
| 90 | }, |
| 91 | |
Austin Eng | f3f5bf4 | 2019-05-18 03:14:46 +0000 | [diff] [blame] | 92 | # Dependencies for samples: GLM |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 93 | 'third_party/glm': { |
Zhenyao Mo | 37193aa | 2020-04-14 16:20:14 +0000 | [diff] [blame] | 94 | 'url': '{github_git}/g-truc/glm.git@bf71a834948186f4097caa076cd2663c69a10e1e', |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 95 | 'condition': 'dawn_standalone', |
| 96 | }, |
Corentin Wallez | 4c35101 | 2018-08-27 10:10:28 +0200 | [diff] [blame] | 97 | |
| 98 | # Our own pre-compiled Linux clang-format 7.0 for presubmit |
| 99 | 'third_party/clang-format': { |
| 100 | 'url': '{dawn_git}/clang-format@2451c56cd368676cdb230fd5ad11731ab859f1a3', |
| 101 | 'condition': 'dawn_standalone and checkout_linux', |
| 102 | }, |
Li, Hao | 0e1bef3 | 2019-11-07 12:13:27 +0000 | [diff] [blame] | 103 | |
Corentin Wallez | 0925720 | 2020-04-17 08:22:25 +0000 | [diff] [blame^] | 104 | # Khronos Vulkan headers, validation layers and loader. |
Li, Hao | 0e1bef3 | 2019-11-07 12:13:27 +0000 | [diff] [blame] | 105 | 'third_party/vulkan-headers': { |
Corentin Wallez | 955f8a3 | 2020-04-16 17:24:16 +0000 | [diff] [blame] | 106 | 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@e01f13e1f777cf592ebd1a5f4836d4cd10ed85f6', |
Li, Hao | 0e1bef3 | 2019-11-07 12:13:27 +0000 | [diff] [blame] | 107 | 'condition': 'dawn_standalone', |
| 108 | }, |
Li, Hao | 0e1bef3 | 2019-11-07 12:13:27 +0000 | [diff] [blame] | 109 | 'third_party/vulkan-validation-layers': { |
Corentin Wallez | 955f8a3 | 2020-04-16 17:24:16 +0000 | [diff] [blame] | 110 | 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@1533266eac486fae0c34bffe4868c4bc91dbe078', |
Li, Hao | 0e1bef3 | 2019-11-07 12:13:27 +0000 | [diff] [blame] | 111 | 'condition': 'dawn_standalone', |
| 112 | }, |
Corentin Wallez | 0925720 | 2020-04-17 08:22:25 +0000 | [diff] [blame^] | 113 | 'third_party/vulkan-loader': { |
| 114 | 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@3f7e3cbf33a732e945b3780212aad853ca0add29', |
| 115 | 'condition': 'dawn_standalone', |
| 116 | }, |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 117 | |
| 118 | 'third_party/swiftshader': { |
Corentin Wallez | c08a0d4 | 2020-04-08 16:01:22 +0000 | [diff] [blame] | 119 | 'url': '{swiftshader_git}/SwiftShader@63ed0e445fa525ee01637350ea92fbdaa2226c73', |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 120 | 'condition': 'dawn_standalone', |
| 121 | }, |
| 122 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 123 | } |
| 124 | |
| 125 | hooks = [ |
| 126 | # Pull clang-format binaries using checked-in hashes. |
| 127 | { |
| 128 | 'name': 'clang_format_win', |
| 129 | 'pattern': '.', |
| 130 | 'condition': 'host_os == "win" and dawn_standalone', |
| 131 | 'action': [ 'download_from_google_storage', |
| 132 | '--no_resume', |
| 133 | '--platform=win32', |
| 134 | '--no_auth', |
| 135 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 136 | '-s', 'buildtools/win/clang-format.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 137 | ], |
| 138 | }, |
| 139 | { |
| 140 | 'name': 'clang_format_mac', |
| 141 | 'pattern': '.', |
| 142 | 'condition': 'host_os == "mac" and dawn_standalone', |
| 143 | 'action': [ 'download_from_google_storage', |
| 144 | '--no_resume', |
| 145 | '--platform=darwin', |
| 146 | '--no_auth', |
| 147 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 148 | '-s', 'buildtools/mac/clang-format.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 149 | ], |
| 150 | }, |
| 151 | { |
| 152 | 'name': 'clang_format_linux', |
| 153 | 'pattern': '.', |
| 154 | 'condition': 'host_os == "linux" and dawn_standalone', |
| 155 | 'action': [ 'download_from_google_storage', |
| 156 | '--no_resume', |
| 157 | '--platform=linux*', |
| 158 | '--no_auth', |
| 159 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 160 | '-s', 'buildtools/linux64/clang-format.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 161 | ], |
| 162 | }, |
| 163 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 164 | # Pull the compilers and system libraries for hermetic builds |
| 165 | { |
| 166 | 'name': 'sysroot_x86', |
| 167 | 'pattern': '.', |
| 168 | 'condition': 'checkout_linux and ((checkout_x86 or checkout_x64) and dawn_standalone)', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 169 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 170 | '--arch=x86'], |
| 171 | }, |
| 172 | { |
| 173 | 'name': 'sysroot_x64', |
| 174 | 'pattern': '.', |
| 175 | 'condition': 'checkout_linux and (checkout_x64 and dawn_standalone)', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 176 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 177 | '--arch=x64'], |
| 178 | }, |
| 179 | { |
Corentin Wallez | 682c44a | 2018-08-13 17:48:16 +0200 | [diff] [blame] | 180 | # Update the Windows toolchain if necessary. Must run before 'clang' below. |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 181 | 'name': 'win_toolchain', |
| 182 | 'pattern': '.', |
| 183 | 'condition': 'checkout_win and dawn_standalone', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 184 | 'action': ['python', 'build/vs_toolchain.py', 'update', '--force'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 185 | }, |
| 186 | { |
| 187 | # Note: On Win, this should run after win_toolchain, as it may use it. |
| 188 | 'name': 'clang', |
| 189 | 'pattern': '.', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 190 | 'action': ['python', 'tools/clang/scripts/update.py'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 191 | 'condition': 'dawn_standalone', |
| 192 | }, |
| 193 | { |
| 194 | # Pull rc binaries using checked-in hashes. |
| 195 | 'name': 'rc_win', |
| 196 | 'pattern': '.', |
| 197 | 'condition': 'checkout_win and (host_os == "win" and dawn_standalone)', |
| 198 | 'action': [ 'download_from_google_storage', |
| 199 | '--no_resume', |
| 200 | '--no_auth', |
| 201 | '--bucket', 'chromium-browser-clang/rc', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 202 | '-s', 'build/toolchain/win/rc/win/rc.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 203 | ], |
| 204 | }, |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 205 | # Pull binutils for linux hermetic builds |
| 206 | { |
| 207 | 'name': 'binutils', |
| 208 | 'pattern': 'src/third_party/binutils', |
| 209 | 'condition': 'host_os == "linux"', |
| 210 | 'action': [ |
| 211 | 'python', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 212 | 'third_party/binutils/download.py', |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 213 | ], |
| 214 | }, |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 215 | # Update build/util/LASTCHANGE. |
| 216 | { |
| 217 | 'name': 'lastchange', |
| 218 | 'pattern': '.', |
| 219 | 'action': ['python', 'build/util/lastchange.py', |
| 220 | '-o', 'build/util/LASTCHANGE'], |
| 221 | }, |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 222 | ] |
| 223 | |
| 224 | recursedeps = [ |
| 225 | # buildtools provides clang_format, libc++, and libc++abi |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 226 | 'buildtools', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 227 | ] |