1# Copyright (c) 2015, Google Inc. 2# 3# Permission to use, copy, modify, and/or distribute this software for any 4# purpose with or without fee is hereby granted, provided that the above 5# copyright notice and this permission notice appear in all copies. 6# 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 15vars = { 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': 'Jxtur3_L9RzY4q79K-AwIahwFW4oi5uYVD5URx9h62wC', 24} 25 26deps = { 27 'boringssl/util/bot/android_ndk': { 28 'url': Var('chromium_git') + '/android_ndk.git' + '@' + '27c0a8d090c666a50e40fceb4ee5b40b1a2d3f87', 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/libFuzzer': { 44 'url': Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git' +'@' + 'debe7d2d1982e540fbd6bd78604bf001753f9e74', 45 'condition': 'checkout_fuzzer', 46 }, 47 48 # Update the following revisions from 49 # https://chromium.googlesource.com/chromium/src/+/master/buildtools/DEPS 50 'boringssl/util/bot/libcxx': { 51 'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/libcxx.git' + '@' + 'd9040c75cfea5928c804ab7c235fed06a63f743a', 52 'condition': 'checkout_libcxx', 53 }, 54 'boringssl/util/bot/libcxxabi': { 55 'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/libcxxabi.git' + '@' + '196ba1aaa8ac285d94f4ea8d9836390a45360533', 56 'condition': 'checkout_libcxx', 57 }, 58} 59 60recursedeps = [ 61 # android_tools pulls in the NDK from a separate repository. 62 'boringssl/util/bot/android_tools', 63] 64 65hooks = [ 66 { 67 'name': 'cmake_linux64', 68 'pattern': '.', 69 'condition': 'host_os == "linux"', 70 'action': [ 'download_from_google_storage', 71 '--no_resume', 72 '--platform=linux*', 73 '--no_auth', 74 '--bucket', 'chromium-tools', 75 '-s', 'boringssl/util/bot/cmake-linux64.tar.gz.sha1', 76 ], 77 }, 78 { 79 'name': 'cmake_linux64_extract', 80 'pattern': '.', 81 'condition': 'host_os == "linux"', 82 'action': [ 'python', 83 'boringssl/util/bot/extract.py', 84 'boringssl/util/bot/cmake-linux64.tar.gz', 85 'boringssl/util/bot/cmake-linux64/', 86 ], 87 }, 88 { 89 'name': 'cmake_mac', 90 'pattern': '.', 91 'condition': 'host_os == "mac"', 92 'action': [ 'download_from_google_storage', 93 '--no_resume', 94 '--platform=darwin', 95 '--no_auth', 96 '--bucket', 'chromium-tools', 97 '-s', 'boringssl/util/bot/cmake-mac.tar.gz.sha1', 98 ], 99 }, 100 { 101 'name': 'cmake_mac_extract', 102 'pattern': '.', 103 'condition': 'host_os == "mac"', 104 'action': [ 'python', 105 'boringssl/util/bot/extract.py', 106 'boringssl/util/bot/cmake-mac.tar.gz', 107 'boringssl/util/bot/cmake-mac/', 108 ], 109 }, 110 { 111 'name': 'cmake_win32', 112 'pattern': '.', 113 'condition': 'host_os == "win"', 114 'action': [ 'download_from_google_storage', 115 '--no_resume', 116 '--platform=win32', 117 '--no_auth', 118 '--bucket', 'chromium-tools', 119 '-s', 'boringssl/util/bot/cmake-win32.zip.sha1', 120 ], 121 }, 122 { 123 'name': 'cmake_win32_extract', 124 'pattern': '.', 125 'condition': 'host_os == "win"', 126 'action': [ 'python', 127 'boringssl/util/bot/extract.py', 128 'boringssl/util/bot/cmake-win32.zip', 129 'boringssl/util/bot/cmake-win32/', 130 ], 131 }, 132 { 133 'name': 'perl_win32', 134 'pattern': '.', 135 'condition': 'host_os == "win"', 136 'action': [ 'download_from_google_storage', 137 '--no_resume', 138 '--platform=win32', 139 '--no_auth', 140 '--bucket', 'chromium-tools', 141 '-s', 'boringssl/util/bot/perl-win32.zip.sha1', 142 ], 143 }, 144 { 145 'name': 'perl_win32_extract', 146 'pattern': '.', 147 'condition': 'host_os == "win"', 148 'action': [ 'python', 149 'boringssl/util/bot/extract.py', 150 '--no-prefix', 151 'boringssl/util/bot/perl-win32.zip', 152 'boringssl/util/bot/perl-win32/', 153 ], 154 }, 155 { 156 'name': 'nasm_win32', 157 'pattern': '.', 158 'condition': 'host_os == "win" and checkout_nasm', 159 'action': [ 'download_from_google_storage', 160 '--no_resume', 161 '--platform=win32', 162 '--no_auth', 163 '--bucket', 'chromium-tools', 164 '-s', 'boringssl/util/bot/nasm-win32.exe.sha1', 165 ], 166 }, 167 { 168 'name': 'win_toolchain', 169 'pattern': '.', 170 'condition': 'host_os == "win"', 171 'action': [ 'python', 172 'boringssl/util/bot/vs_toolchain.py', 173 'update', 174 ], 175 }, 176 { 177 'name': 'clang', 178 'pattern': '.', 179 'condition': 'checkout_clang', 180 'action': [ 'python', 181 'boringssl/util/bot/update_clang.py', 182 ], 183 }, 184 { 185 'name': 'sde_linux64', 186 'pattern': '.', 187 'condition': 'checkout_sde and host_os == "linux"', 188 'action': [ 'download_from_google_storage', 189 '--no_resume', 190 '--bucket', 'chrome-boringssl-sde', 191 '-s', 'boringssl/util/bot/sde-linux64.tar.bz2.sha1' 192 ], 193 }, 194 { 195 'name': 'sde_linux64_extract', 196 'pattern': '.', 197 'condition': 'checkout_sde and host_os == "linux"', 198 'action': [ 'python', 199 'boringssl/util/bot/extract.py', 200 'boringssl/util/bot/sde-linux64.tar.bz2', 201 'boringssl/util/bot/sde-linux64/', 202 ], 203 }, 204 { 205 'name': 'sde_win32', 206 'pattern': '.', 207 'condition': 'checkout_sde and host_os == "win"', 208 'action': [ 'download_from_google_storage', 209 '--no_resume', 210 '--bucket', 'chrome-boringssl-sde', 211 '-s', 'boringssl/util/bot/sde-win32.tar.bz2.sha1' 212 ], 213 }, 214 { 215 'name': 'sde_win32_extract', 216 'pattern': '.', 217 'condition': 'checkout_sde and host_os == "win"', 218 'action': [ 'python', 219 'boringssl/util/bot/extract.py', 220 'boringssl/util/bot/sde-win32.tar.bz2', 221 'boringssl/util/bot/sde-win32/', 222 ], 223 }, 224] 225