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', |
| 8 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 9 | 'dawn_standalone': True, |
| 10 | } |
| 11 | |
| 12 | deps = { |
| 13 | # Dependencies required to use GN/Clang in standalone |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 14 | 'build': { |
Li Hao | 90d9787 | 2018-12-12 09:39:00 +0000 | [diff] [blame] | 15 | 'url': '{chromium_git}/chromium/src/build@e439f6082423106f1fe2afa7e22f8fd4c00691df', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 16 | 'condition': 'dawn_standalone', |
| 17 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 18 | 'buildtools': { |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 19 | 'url': '{chromium_git}/chromium/buildtools@24ebce4578745db15274e180da1938ebc1358243', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 20 | 'condition': 'dawn_standalone', |
| 21 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 22 | 'tools/clang': { |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 23 | 'url': '{chromium_git}/chromium/src/tools/clang@1d879cee563167a2b18baffb096cf9e29f2f9376', |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 24 | 'condition': 'dawn_standalone', |
| 25 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 26 | 'third_party/binutils': { |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 27 | 'url': '{chromium_git}/chromium/src/third_party/binutils@2be73f7fbf783d7a0b288e174a5773b67c7656bc', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 28 | 'condition': 'dawn_standalone', |
| 29 | }, |
| 30 | |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 31 | # Testing, GTest and GMock |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 32 | 'testing': { |
Corentin Wallez | 682c44a | 2018-08-13 17:48:16 +0200 | [diff] [blame] | 33 | 'url': '{chromium_git}/chromium/src/testing@b07830f6905ce9e33034ad14820bc0a58b6e9e41', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 34 | 'condition': 'dawn_standalone', |
| 35 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 36 | 'third_party/googletest': { |
Victor Costan | d097e7c | 2019-02-21 09:26:20 +0000 | [diff] [blame] | 37 | 'url': '{chromium_git}/external/github.com/google/googletest@5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 38 | 'condition': 'dawn_standalone', |
| 39 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 40 | |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 41 | # Jinja2 and MarkupSafe for the code generator |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 42 | 'third_party/jinja2': { |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 43 | 'url': '{chromium_git}/chromium/src/third_party/jinja2@b41863e42637544c2941b574c7877d3e1f663e25', |
| 44 | 'condition': 'dawn_standalone', |
| 45 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 46 | 'third_party/markupsafe': { |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 47 | 'url': '{chromium_git}/chromium/src/third_party/markupsafe@8f45f5cfa0009d2a70589bcda0349b8cb2b72783', |
| 48 | 'condition': 'dawn_standalone', |
| 49 | }, |
| 50 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 51 | # SPIRV-Cross |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 52 | 'third_party/spirv-cross': { |
Ryan Harrison | 27e67b5 | 2019-07-09 15:29:29 +0000 | [diff] [blame] | 53 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@53ab2144b90abede33be5161aec5dfc94ddc3caf', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 54 | 'condition': 'dawn_standalone', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 55 | }, |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 56 | |
| 57 | # SPIRV compiler dependencies: SPIRV-Tools, SPIRV-headers, glslang and shaderc |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 58 | 'third_party/SPIRV-Tools': { |
Ryan Harrison | 27e67b5 | 2019-07-09 15:29:29 +0000 | [diff] [blame] | 59 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@0c4feb643b89d1792b02f7cbef315e9d95633bd7', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 60 | 'condition': 'dawn_standalone', |
| 61 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 62 | 'third_party/spirv-headers': { |
Ryan Harrison | c9b9290 | 2019-07-04 14:39:59 +0000 | [diff] [blame] | 63 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@29c11140baaf9f7fdaa39a583672c556bf1795a1', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 64 | 'condition': 'dawn_standalone', |
| 65 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 66 | 'third_party/glslang': { |
Ryan Harrison | 27e67b5 | 2019-07-09 15:29:29 +0000 | [diff] [blame] | 67 | 'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@8aa9a7bb8f74869ab9cfd2c9bd51cef1741004e7', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 68 | 'condition': 'dawn_standalone', |
| 69 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 70 | 'third_party/shaderc': { |
Ryan Harrison | 27e67b5 | 2019-07-09 15:29:29 +0000 | [diff] [blame] | 71 | 'url': '{chromium_git}/external/github.com/google/shaderc@e9bb8f287417084d30c924026de9fa59dd32db41', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 72 | 'condition': 'dawn_standalone', |
| 73 | }, |
| 74 | |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 75 | # GLFW for tests and samples |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 76 | 'third_party/glfw': { |
Corentin Wallez | 391c8a9 | 2018-11-19 10:21:23 +0000 | [diff] [blame] | 77 | 'url': '{chromium_git}/external/github.com/glfw/glfw@2de2589f910b1a85905f425be4d32f33cec092df', |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 78 | 'condition': 'dawn_standalone', |
| 79 | }, |
| 80 | |
Austin Eng | f3f5bf4 | 2019-05-18 03:14:46 +0000 | [diff] [blame] | 81 | # Dependencies for samples: GLM |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 82 | 'third_party/glm': { |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 83 | 'url': '{github_git}/g-truc/glm.git@06f084063fd6d9aa2ef6904517650700ae47b63d', |
| 84 | 'condition': 'dawn_standalone', |
| 85 | }, |
Corentin Wallez | 4c35101 | 2018-08-27 10:10:28 +0200 | [diff] [blame] | 86 | |
| 87 | # Our own pre-compiled Linux clang-format 7.0 for presubmit |
| 88 | 'third_party/clang-format': { |
| 89 | 'url': '{dawn_git}/clang-format@2451c56cd368676cdb230fd5ad11731ab859f1a3', |
| 90 | 'condition': 'dawn_standalone and checkout_linux', |
| 91 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | hooks = [ |
| 95 | # Pull clang-format binaries using checked-in hashes. |
| 96 | { |
| 97 | 'name': 'clang_format_win', |
| 98 | 'pattern': '.', |
| 99 | 'condition': 'host_os == "win" and dawn_standalone', |
| 100 | 'action': [ 'download_from_google_storage', |
| 101 | '--no_resume', |
| 102 | '--platform=win32', |
| 103 | '--no_auth', |
| 104 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 105 | '-s', 'buildtools/win/clang-format.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 106 | ], |
| 107 | }, |
| 108 | { |
| 109 | 'name': 'clang_format_mac', |
| 110 | 'pattern': '.', |
| 111 | 'condition': 'host_os == "mac" and dawn_standalone', |
| 112 | 'action': [ 'download_from_google_storage', |
| 113 | '--no_resume', |
| 114 | '--platform=darwin', |
| 115 | '--no_auth', |
| 116 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 117 | '-s', 'buildtools/mac/clang-format.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 118 | ], |
| 119 | }, |
| 120 | { |
| 121 | 'name': 'clang_format_linux', |
| 122 | 'pattern': '.', |
| 123 | 'condition': 'host_os == "linux" and dawn_standalone', |
| 124 | 'action': [ 'download_from_google_storage', |
| 125 | '--no_resume', |
| 126 | '--platform=linux*', |
| 127 | '--no_auth', |
| 128 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 129 | '-s', 'buildtools/linux64/clang-format.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 130 | ], |
| 131 | }, |
| 132 | |
| 133 | # Pull GN binaries using checked-in hashes. |
| 134 | { |
| 135 | 'name': 'gn_win', |
| 136 | 'pattern': '.', |
| 137 | 'condition': 'host_os == "win" and dawn_standalone', |
| 138 | 'action': [ 'download_from_google_storage', |
| 139 | '--no_resume', |
| 140 | '--platform=win32', |
| 141 | '--no_auth', |
| 142 | '--bucket', 'chromium-gn', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 143 | '-s', 'buildtools/win/gn.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 144 | ], |
| 145 | }, |
| 146 | { |
| 147 | 'name': 'gn_mac', |
| 148 | 'pattern': '.', |
| 149 | 'condition': 'host_os == "mac" and dawn_standalone', |
| 150 | 'action': [ 'download_from_google_storage', |
| 151 | '--no_resume', |
| 152 | '--platform=darwin', |
| 153 | '--no_auth', |
| 154 | '--bucket', 'chromium-gn', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 155 | '-s', 'buildtools/mac/gn.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 156 | ], |
| 157 | }, |
| 158 | { |
| 159 | 'name': 'gn_linux64', |
| 160 | 'pattern': '.', |
| 161 | 'condition': 'host_os == "linux" and dawn_standalone', |
| 162 | 'action': [ 'download_from_google_storage', |
| 163 | '--no_resume', |
| 164 | '--platform=linux*', |
| 165 | '--no_auth', |
| 166 | '--bucket', 'chromium-gn', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 167 | '-s', 'buildtools/linux64/gn.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 168 | ], |
| 169 | }, |
| 170 | |
| 171 | # Pull the compilers and system libraries for hermetic builds |
| 172 | { |
| 173 | 'name': 'sysroot_x86', |
| 174 | 'pattern': '.', |
| 175 | 'condition': 'checkout_linux and ((checkout_x86 or 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=x86'], |
| 178 | }, |
| 179 | { |
| 180 | 'name': 'sysroot_x64', |
| 181 | 'pattern': '.', |
| 182 | 'condition': 'checkout_linux and (checkout_x64 and dawn_standalone)', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 183 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 184 | '--arch=x64'], |
| 185 | }, |
| 186 | { |
Corentin Wallez | 682c44a | 2018-08-13 17:48:16 +0200 | [diff] [blame] | 187 | # Update the Windows toolchain if necessary. Must run before 'clang' below. |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 188 | 'name': 'win_toolchain', |
| 189 | 'pattern': '.', |
| 190 | 'condition': 'checkout_win and dawn_standalone', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 191 | 'action': ['python', 'build/vs_toolchain.py', 'update', '--force'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 192 | }, |
| 193 | { |
| 194 | # Note: On Win, this should run after win_toolchain, as it may use it. |
| 195 | 'name': 'clang', |
| 196 | 'pattern': '.', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 197 | 'action': ['python', 'tools/clang/scripts/update.py'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 198 | 'condition': 'dawn_standalone', |
| 199 | }, |
| 200 | { |
| 201 | # Pull rc binaries using checked-in hashes. |
| 202 | 'name': 'rc_win', |
| 203 | 'pattern': '.', |
| 204 | 'condition': 'checkout_win and (host_os == "win" and dawn_standalone)', |
| 205 | 'action': [ 'download_from_google_storage', |
| 206 | '--no_resume', |
| 207 | '--no_auth', |
| 208 | '--bucket', 'chromium-browser-clang/rc', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 209 | '-s', 'build/toolchain/win/rc/win/rc.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 210 | ], |
| 211 | }, |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 212 | # Pull binutils for linux hermetic builds |
| 213 | { |
| 214 | 'name': 'binutils', |
| 215 | 'pattern': 'src/third_party/binutils', |
| 216 | 'condition': 'host_os == "linux"', |
| 217 | 'action': [ |
| 218 | 'python', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 219 | 'third_party/binutils/download.py', |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 220 | ], |
| 221 | }, |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 222 | # Update build/util/LASTCHANGE. |
| 223 | { |
| 224 | 'name': 'lastchange', |
| 225 | 'pattern': '.', |
| 226 | 'action': ['python', 'build/util/lastchange.py', |
| 227 | '-o', 'build/util/LASTCHANGE'], |
| 228 | }, |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 229 | ] |
| 230 | |
| 231 | recursedeps = [ |
| 232 | # buildtools provides clang_format, libc++, and libc++abi |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 233 | 'buildtools', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 234 | ] |