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': { |
Robert Iannucci | ebb0539 | 2019-08-09 01:40:38 +0000 | [diff] [blame] | 16 | 'url': '{chromium_git}/chromium/src/build@f3d0ca5f46b7b190dbbdc6be508ca11dd5c54302', |
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': { |
Robert Iannucci | ebb0539 | 2019-08-09 01:40:38 +0000 | [diff] [blame] | 20 | 'url': '{chromium_git}/chromium/src/buildtools@74cfb57006f83cfe050817526db359d5c8a11628', |
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': { |
Robert Iannucci | ebb0539 | 2019-08-09 01:40:38 +0000 | [diff] [blame] | 24 | 'url': '{chromium_git}/chromium/src/tools/clang@3605577b67603ec5776afcfada9e0ff4ea05cf0e', |
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': { |
Robert Iannucci | ebb0539 | 2019-08-09 01:40:38 +0000 | [diff] [blame] | 28 | 'url': '{chromium_git}/chromium/src/third_party/binutils@01aa7745b0bab64ae22600f09fd6483c60f22ebf', |
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': { |
Robert Iannucci | ebb0539 | 2019-08-09 01:40:38 +0000 | [diff] [blame] | 44 | 'url': '{chromium_git}/chromium/src/testing@2ffbbb3c8e33d51ddb3cc6b8cd10588302c33628', |
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 | d097e7c | 2019-02-21 09:26:20 +0000 | [diff] [blame] | 48 | 'url': '{chromium_git}/external/github.com/google/googletest@5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081', |
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 | 27dcffc | 2020-04-06 15:05:32 +0000 | [diff] [blame] | 64 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@6637610b16aacfe43c77ad4060da62008a83cd12', |
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': { |
Ryan Harrison | 27dcffc | 2020-04-06 15:05:32 +0000 | [diff] [blame] | 70 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@e95fbfb1f509ad7a7fdfb72ac35fe412d72fc4a4', |
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 | eb7eb90 | 2020-03-23 18:29:51 +0000 | [diff] [blame] | 74 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@f8bf11a0253a32375c32cad92c841237b96696c0', |
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 | 27dcffc | 2020-04-06 15:05:32 +0000 | [diff] [blame] | 78 | 'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@b5757b95005bbf6b0287096c5b708c5e25645311', |
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 | 61e170b | 2020-04-08 20:30:52 +0000 | [diff] [blame] | 82 | 'url': '{chromium_git}/external/github.com/google/shaderc@8026364968acb2e55390f6ccf295740ab818ebda', |
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 | |
| 104 | # Khronos Vulkan-Headers |
| 105 | 'third_party/vulkan-headers': { |
Austin Eng | bc34d90 | 2020-02-21 18:34:44 +0000 | [diff] [blame] | 106 | 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@d287523f48dba1b669866c5d6625b29931948e39', |
Li, Hao | 0e1bef3 | 2019-11-07 12:13:27 +0000 | [diff] [blame] | 107 | 'condition': 'dawn_standalone', |
| 108 | }, |
| 109 | |
| 110 | # Khronos Vulkan-ValidationLayers |
| 111 | 'third_party/vulkan-validation-layers': { |
Austin Eng | bc34d90 | 2020-02-21 18:34:44 +0000 | [diff] [blame] | 112 | 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@237d818e81fbffa073d29d94f53a2cbac4f25b9f', |
Li, Hao | 0e1bef3 | 2019-11-07 12:13:27 +0000 | [diff] [blame] | 113 | 'condition': 'dawn_standalone', |
| 114 | }, |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 115 | |
| 116 | 'third_party/swiftshader': { |
Corentin Wallez | c08a0d4 | 2020-04-08 16:01:22 +0000 | [diff] [blame] | 117 | 'url': '{swiftshader_git}/SwiftShader@63ed0e445fa525ee01637350ea92fbdaa2226c73', |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 118 | 'condition': 'dawn_standalone', |
| 119 | }, |
| 120 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 121 | } |
| 122 | |
| 123 | hooks = [ |
| 124 | # Pull clang-format binaries using checked-in hashes. |
| 125 | { |
| 126 | 'name': 'clang_format_win', |
| 127 | 'pattern': '.', |
| 128 | 'condition': 'host_os == "win" and dawn_standalone', |
| 129 | 'action': [ 'download_from_google_storage', |
| 130 | '--no_resume', |
| 131 | '--platform=win32', |
| 132 | '--no_auth', |
| 133 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 134 | '-s', 'buildtools/win/clang-format.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 135 | ], |
| 136 | }, |
| 137 | { |
| 138 | 'name': 'clang_format_mac', |
| 139 | 'pattern': '.', |
| 140 | 'condition': 'host_os == "mac" and dawn_standalone', |
| 141 | 'action': [ 'download_from_google_storage', |
| 142 | '--no_resume', |
| 143 | '--platform=darwin', |
| 144 | '--no_auth', |
| 145 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 146 | '-s', 'buildtools/mac/clang-format.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 147 | ], |
| 148 | }, |
| 149 | { |
| 150 | 'name': 'clang_format_linux', |
| 151 | 'pattern': '.', |
| 152 | 'condition': 'host_os == "linux" and dawn_standalone', |
| 153 | 'action': [ 'download_from_google_storage', |
| 154 | '--no_resume', |
| 155 | '--platform=linux*', |
| 156 | '--no_auth', |
| 157 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 158 | '-s', 'buildtools/linux64/clang-format.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 159 | ], |
| 160 | }, |
| 161 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 162 | # Pull the compilers and system libraries for hermetic builds |
| 163 | { |
| 164 | 'name': 'sysroot_x86', |
| 165 | 'pattern': '.', |
| 166 | 'condition': 'checkout_linux and ((checkout_x86 or checkout_x64) and dawn_standalone)', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 167 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 168 | '--arch=x86'], |
| 169 | }, |
| 170 | { |
| 171 | 'name': 'sysroot_x64', |
| 172 | 'pattern': '.', |
| 173 | 'condition': 'checkout_linux and (checkout_x64 and dawn_standalone)', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 174 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 175 | '--arch=x64'], |
| 176 | }, |
| 177 | { |
Corentin Wallez | 682c44a | 2018-08-13 17:48:16 +0200 | [diff] [blame] | 178 | # Update the Windows toolchain if necessary. Must run before 'clang' below. |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 179 | 'name': 'win_toolchain', |
| 180 | 'pattern': '.', |
| 181 | 'condition': 'checkout_win and dawn_standalone', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 182 | 'action': ['python', 'build/vs_toolchain.py', 'update', '--force'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 183 | }, |
| 184 | { |
| 185 | # Note: On Win, this should run after win_toolchain, as it may use it. |
| 186 | 'name': 'clang', |
| 187 | 'pattern': '.', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 188 | 'action': ['python', 'tools/clang/scripts/update.py'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 189 | 'condition': 'dawn_standalone', |
| 190 | }, |
| 191 | { |
| 192 | # Pull rc binaries using checked-in hashes. |
| 193 | 'name': 'rc_win', |
| 194 | 'pattern': '.', |
| 195 | 'condition': 'checkout_win and (host_os == "win" and dawn_standalone)', |
| 196 | 'action': [ 'download_from_google_storage', |
| 197 | '--no_resume', |
| 198 | '--no_auth', |
| 199 | '--bucket', 'chromium-browser-clang/rc', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 200 | '-s', 'build/toolchain/win/rc/win/rc.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 201 | ], |
| 202 | }, |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 203 | # Pull binutils for linux hermetic builds |
| 204 | { |
| 205 | 'name': 'binutils', |
| 206 | 'pattern': 'src/third_party/binutils', |
| 207 | 'condition': 'host_os == "linux"', |
| 208 | 'action': [ |
| 209 | 'python', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 210 | 'third_party/binutils/download.py', |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 211 | ], |
| 212 | }, |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 213 | # Update build/util/LASTCHANGE. |
| 214 | { |
| 215 | 'name': 'lastchange', |
| 216 | 'pattern': '.', |
| 217 | 'action': ['python', 'build/util/lastchange.py', |
| 218 | '-o', 'build/util/LASTCHANGE'], |
| 219 | }, |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 220 | ] |
| 221 | |
| 222 | recursedeps = [ |
| 223 | # buildtools provides clang_format, libc++, and libc++abi |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 224 | 'buildtools', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 225 | ] |