| # |
| 7 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 8 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 9 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
| 10 | # SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 11 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION |
| 12 | # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
| 13 | # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 14 |
| 15 | vars = { |
| 16 | 'chromium_git': 'https://chromium.googlesource.com', |
| 17 |
| 18 | 'checkout_clang': False, |
| 19 | 'checkout_sde': False, |
| 20 | 'checkout_nasm': False, |
| 21 | 'checkout_libcxx': False, |
| 22 |
| 23 | 'android_sdk_platform-tools_version': 'MSnxgXN7IurL-MQs1RrTkSFSb8Xd1UtZjLArI8Ty1FgC', |
| 24 | } |
| 25 |
| 26 | deps = { |
| 27 | 'boringssl/util/bot/android_ndk': { |
| 28 | 'url': Var('chromium_git') + '/android_ndk.git' + '@' + '89e8db0cdf323af8bc24de875d7d2a43a66bf10e', |
| 29 | 'condition': 'checkout_android', |
| 30 | }, |
| 31 |
| 32 | 'boringssl/util/bot/android_sdk/public': { |
| 33 | 'packages': [ |
| 34 | { |
| 35 | 'package': 'chromium/third_party/android_sdk/public/platform-tools', |
| 36 | 'version': Var('android_sdk_platform-tools_version'), |
| 37 | }, |
| 38 | ], |
| 39 | 'condition': 'checkout_android', |
| 40 | 'dep_type': 'cipd', |
| 41 | }, |
| 42 |
| 43 | 'boringssl/util/bot/gyp': |
| 44 | Var('chromium_git') + '/external/gyp.git' + '@' + 'd61a9397e668fa9843c4aa7da9e79460fe590bfb', |
| 45 |
| 46 | 'boringssl/util/bot/libFuzzer': { |
| 47 | 'url': Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git' +'@' + 'b9f51dc8c98065df0c8da13c051046f5bab833db', |
| 48 | 'condition': 'checkout_fuzzer', |
| 49 | }, |
| 50 |
| 51 | # Update the following revisions from |
| 52 | # https://chromium.googlesource.com/chromium/src/+/master/buildtools/DEPS |
| 53 | 'boringssl/util/bot/libcxx': { |
| 54 | 'url': Var('chromium_git') + '/chromium/llvm-project/libcxx.git' + '@' + '5938e0582bac570a41edb3d6a2217c299adc1bc6', |
| 55 | 'condition': 'checkout_libcxx', |
| 56 | }, |
| 57 | 'boringssl/util/bot/libcxxabi': { |
| 58 | 'url': Var('chromium_git') + '/chromium/llvm-project/libcxxabi.git' + '@' + '0d529660e32d77d9111912d73f2c74fc5fa2a858', |
| 59 | 'condition': 'checkout_libcxx', |
| 60 | }, |
| 61 | } |
| 62 |
| 63 | recursedeps = [ |
| 64 | # android_tools pulls in the NDK from a separate repository. |
| 65 | 'boringssl/util/bot/android_tools', |
| 66 | ] |
| 67 |
| 68 | hooks = [ |
| 69 | { |
| 70 | 'name': 'cmake_linux64', |
| 71 | 'pattern': '.', |
| 72 | 'condition': 'host_os == "linux"', |
| 73 | 'action': [ 'download_from_google_storage', |
| 74 | '--no_resume', |
| 75 | '--platform=linux*', |
| 76 | '--no_auth', |
| 77 | '--bucket', 'chromium-tools', |
| 78 | '-s', 'boringssl/util/bot/cmake-linux64.tar.gz.sha1', |
| 79 | ], |
| 80 | }, |
| 81 | { |
| 82 | 'name': 'cmake_linux64_extract', |
| 83 | 'pattern': '.', |
| 84 | 'condition': 'host_os == "linux"', |
| 85 | 'action': [ 'python', |
| 86 | 'boringssl/util/bot/extract.py', |
| 87 | 'boringssl/util/bot/cmake-linux64.tar.gz', |
| 88 | 'boringssl/util/bot/cmake-linux64/', |
| 89 | ], |
| 90 | }, |
| 91 | { |
| 92 | 'name': 'cmake_mac', |
| 93 | 'pattern': '.', |
| 94 | 'condition': 'host_os == "mac"', |
| 95 | 'action': [ 'download_from_google_storage', |
| 96 | '--no_resume', |
| 97 | '--platform=darwin', |
| 98 | '--no_auth', |
| 99 | '--bucket', 'chromium-tools', |
| 100 | '-s', 'boringssl/util/bot/cmake-mac.tar.gz.sha1', |
| 101 | ], |
| 102 | }, |
| 103 | { |
| 104 | 'name': 'cmake_mac_extract', |
| 105 | 'pattern': '.', |
| 106 | 'condition': 'host_os == "mac"', |
| 107 | 'action': [ 'python', |
| 108 | 'boringssl/util/bot/extract.py', |
| 109 | 'boringssl/util/bot/cmake-mac.tar.gz', |
| 110 | 'boringssl/util/bot/cmake-mac/', |
| 111 | ], |
| 112 | }, |
| 113 | { |
| 114 | 'name': 'cmake_win32', |
| 115 | 'pattern': '.', |
| 116 | 'condition': 'host_os == "win"', |
| 117 | 'action': [ 'download_from_google_storage', |
| 118 | '--no_resume', |
| 119 | '--platform=win32', |
| 120 | '--no_auth', |
| 121 | '--bucket', 'chromium-tools', |
| 122 | '-s', 'boringssl/util/bot/cmake-win32.zip.sha1', |
| 123 | ], |
| 124 | }, |
| 125 | { |
| 126 | 'name': 'cmake_win32_extract', |
| 127 | 'pattern': '.', |
| 128 | 'condition': 'host_os == "win"', |
| 129 | 'action': [ 'python', |
| 130 | 'boringssl/util/bot/extract.py', |
| 131 | 'boringssl/util/bot/cmake-win32.zip', |
| 132 | 'boringssl/util/bot/cmake-win32/', |
| 133 | ], |
| 134 | }, |
| 135 | { |
| 136 | 'name': 'perl_win32', |
| 137 | 'pattern': '.', |
| 138 | 'condition': 'host_os == "win"', |
| 139 | 'action': [ 'download_from_google_storage', |
| 140 | '--no_resume', |
| 141 | '--platform=win32', |
| 142 | '--no_auth', |
| 143 | '--bucket', 'chromium-tools', |
| 144 | '-s', 'boringssl/util/bot/perl-win32.zip.sha1', |
| 145 | ], |
| 146 | }, |
| 147 | { |
| 148 | 'name': 'perl_win32_extract', |
| 149 | 'pattern': '.', |
| 150 | 'condition': 'host_os == "win"', |
| 151 | 'action': [ 'python', |
| 152 | 'boringssl/util/bot/extract.py', |
| 153 | '--no-prefix', |
| 154 | 'boringssl/util/bot/perl-win32.zip', |
| 155 | 'boringssl/util/bot/perl-win32/', |
| 156 | ], |
| 157 | }, |
| 158 | { |
| 159 | 'name': 'yasm_win32', |
| 160 | 'pattern': '.', |
| 161 | 'condition': 'host_os == "win" and not checkout_nasm', |
| 162 | 'action': [ 'download_from_google_storage', |
| 163 | '--no_resume', |
| 164 | '--platform=win32', |
| 165 | '--no_auth', |
| 166 | '--bucket', 'chromium-tools', |
| 167 | '-s', 'boringssl/util/bot/yasm-win32.exe.sha1', |
| 168 | ], |
| 169 | }, |
| 170 | { |
| 171 | 'name': 'nasm_win32', |
| 172 | 'pattern': '.', |
| 173 | 'condition': 'host_os == "win" and checkout_nasm', |
| 174 | 'action': [ 'download_from_google_storage', |
| 175 | '--no_resume', |
| 176 | '--platform=win32', |
| 177 | '--no_auth', |
| 178 | '--bucket', 'chromium-tools', |
| 179 | '-s', 'boringssl/util/bot/nasm-win32.exe.sha1', |
| 180 | ], |
| 181 | }, |
| 182 | { |
| 183 | 'name': 'win_toolchain', |
| 184 | 'pattern': '.', |
| 185 | 'condition': 'host_os == "win"', |
| 186 | 'action': [ 'python', |
| 187 | 'boringssl/util/bot/vs_toolchain.py', |
| 188 | 'update', |
| 189 | ], |
| 190 | }, |
| 191 | { |
| 192 | 'name': 'clang', |
| 193 | 'pattern': '.', |
| 194 | 'condition': 'checkout_clang', |
| 195 | 'action': [ 'python', |
| 196 | 'boringssl/util/bot/update_clang.py', |
| 197 | ], |
| 198 | }, |
| 199 | { |
| 200 | 'name': 'sde_linux64', |
| 201 | 'pattern': '.', |
| 202 | 'condition': 'checkout_sde and host_os == "linux"', |
| 203 | 'action': [ 'download_from_google_storage', |
| 204 | '--no_resume', |
| 205 | '--bucket', 'chrome-boringssl-sde', |
| 206 | '-s', 'boringssl/util/bot/sde-linux64.tar.bz2.sha1' |
| 207 | ], |
| 208 | }, |
| 209 | { |
| 210 | 'name': 'sde_linux64_extract', |
| 211 | 'pattern': '.', |
| 212 | 'condition': 'checkout_sde and host_os == "linux"', |
| 213 | 'action': [ 'python', |
| 214 | 'boringssl/util/bot/extract.py', |
| 215 | 'boringssl/util/bot/sde-linux64.tar.bz2', |
| 216 | 'boringssl/util/bot/sde-linux64/', |
| 217 | ], |
| 218 | }, |
| 219 | { |
| 220 | 'name': 'sde_win32', |
| 221 | 'pattern': '.', |
| 222 | 'condition': 'checkout_sde and host_os == "win"', |
| 223 | 'action': [ 'download_from_google_storage', |
| 224 | '--no_resume', |
| 225 | '--bucket', 'chrome-boringssl-sde', |
| 226 | '-s', 'boringssl/util/bot/sde-win32.tar.bz2.sha1' |
| 227 | ], |
| 228 | }, |
| 229 | { |
| 230 | 'name': 'sde_win32_extract', |
| 231 | 'pattern': '.', |
| 232 | 'condition': 'checkout_sde and host_os == "win"', |
| 233 | 'action': [ 'python', |
| 234 | 'boringssl/util/bot/extract.py', |
| 235 | 'boringssl/util/bot/sde-win32.tar.bz2', |
| 236 | 'boringssl/util/bot/sde-win32/', |
| 237 | ], |
| 238 | }, |
| 239 | ] |
| 240 |