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 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 24 deps = { 25 'boringssl/util/bot/android_ndk': { 26 'url': Var('chromium_git') + '/android_ndk.git' + '@' + '4e2cea441bfd43f0863d14f57b1e1844260b9884', 27 'condition': 'checkout_android', 28 }, 29 30 'boringssl/util/bot/android_tools': { 31 'url': Var('chromium_git') + '/android_tools.git' + '@' + 'e958d6ea74442d4e0849bb8a018d215a0e78981d', 32 'condition': 'checkout_android', 33 }, 34 35 'boringssl/util/bot/gyp': 36 Var('chromium_git') + '/external/gyp.git' + '@' + 'd61a9397e668fa9843c4aa7da9e79460fe590bfb', 37 38 'boringssl/util/bot/libFuzzer': { 39 'url': Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git' +'@' + '2a53098584c48af50aec3fb51febe5e651489774', 40 'condition': 'checkout_fuzzer', 41 }, 42 43 # Update the following revisions from 44 # https://chromium.googlesource.com/chromium/buildtools/+/master/DEPS 45 'boringssl/util/bot/libcxx': { 46 'url': Var('chromium_git') + '/chromium/llvm-project/libcxx.git' + '@' + 'e713cc0acf1ae8b82f451bf58ebef67a46ceddfb', 47 'condition': 'checkout_libcxx', 48 }, 49 'boringssl/util/bot/libcxxabi': { 50 'url': Var('chromium_git') + '/chromium/llvm-project/libcxxabi.git' + '@' + '307bb62985575b2e3216a8cfd7e122e0574f33a9', 51 'condition': 'checkout_libcxx', 52 }, 53 } 54 55 recursedeps = [ 56 # android_tools pulls in the NDK from a separate repository. 57 'boringssl/util/bot/android_tools', 58 ] 59 60 hooks = [ 61 { 62 'name': 'cmake_linux64', 63 'pattern': '.', 64 'condition': 'host_os == "linux"', 65 'action': [ 'download_from_google_storage', 66 '--no_resume', 67 '--platform=linux*', 68 '--no_auth', 69 '--bucket', 'chromium-tools', 70 '-s', 'boringssl/util/bot/cmake-linux64.tar.gz.sha1', 71 ], 72 }, 73 { 74 'name': 'cmake_linux64_extract', 75 'pattern': '.', 76 'condition': 'host_os == "linux"', 77 'action': [ 'python', 78 'boringssl/util/bot/extract.py', 79 'boringssl/util/bot/cmake-linux64.tar.gz', 80 'boringssl/util/bot/cmake-linux64/', 81 ], 82 }, 83 { 84 'name': 'cmake_mac', 85 'pattern': '.', 86 'condition': 'host_os == "mac"', 87 'action': [ 'download_from_google_storage', 88 '--no_resume', 89 '--platform=darwin', 90 '--no_auth', 91 '--bucket', 'chromium-tools', 92 '-s', 'boringssl/util/bot/cmake-mac.tar.gz.sha1', 93 ], 94 }, 95 { 96 'name': 'cmake_mac_extract', 97 'pattern': '.', 98 'condition': 'host_os == "mac"', 99 'action': [ 'python', 100 'boringssl/util/bot/extract.py', 101 'boringssl/util/bot/cmake-mac.tar.gz', 102 'boringssl/util/bot/cmake-mac/', 103 ], 104 }, 105 { 106 'name': 'cmake_win32', 107 'pattern': '.', 108 'condition': 'host_os == "win"', 109 'action': [ 'download_from_google_storage', 110 '--no_resume', 111 '--platform=win32', 112 '--no_auth', 113 '--bucket', 'chromium-tools', 114 '-s', 'boringssl/util/bot/cmake-win32.zip.sha1', 115 ], 116 }, 117 { 118 'name': 'cmake_win32_extract', 119 'pattern': '.', 120 'condition': 'host_os == "win"', 121 'action': [ 'python', 122 'boringssl/util/bot/extract.py', 123 'boringssl/util/bot/cmake-win32.zip', 124 'boringssl/util/bot/cmake-win32/', 125 ], 126 }, 127 { 128 'name': 'perl_win32', 129 'pattern': '.', 130 'condition': 'host_os == "win"', 131 'action': [ 'download_from_google_storage', 132 '--no_resume', 133 '--platform=win32', 134 '--no_auth', 135 '--bucket', 'chromium-tools', 136 '-s', 'boringssl/util/bot/perl-win32.zip.sha1', 137 ], 138 }, 139 { 140 'name': 'perl_win32_extract', 141 'pattern': '.', 142 'condition': 'host_os == "win"', 143 'action': [ 'python', 144 'boringssl/util/bot/extract.py', 145 '--no-prefix', 146 'boringssl/util/bot/perl-win32.zip', 147 'boringssl/util/bot/perl-win32/', 148 ], 149 }, 150 { 151 'name': 'yasm_win32', 152 'pattern': '.', 153 'condition': 'host_os == "win" and not checkout_nasm', 154 'action': [ 'download_from_google_storage', 155 '--no_resume', 156 '--platform=win32', 157 '--no_auth', 158 '--bucket', 'chromium-tools', 159 '-s', 'boringssl/util/bot/yasm-win32.exe.sha1', 160 ], 161 }, 162 { 163 'name': 'nasm_win32', 164 'pattern': '.', 165 'condition': 'host_os == "win" and checkout_nasm', 166 'action': [ 'download_from_google_storage', 167 '--no_resume', 168 '--platform=win32', 169 '--no_auth', 170 '--bucket', 'chromium-tools', 171 '-s', 'boringssl/util/bot/nasm-win32.exe.sha1', 172 ], 173 }, 174 { 175 'name': 'win_toolchain', 176 'pattern': '.', 177 'condition': 'host_os == "win"', 178 'action': [ 'python', 179 'boringssl/util/bot/vs_toolchain.py', 180 'update', 181 ], 182 }, 183 { 184 'name': 'clang', 185 'pattern': '.', 186 'condition': 'checkout_clang', 187 'action': [ 'python', 188 'boringssl/util/bot/update_clang.py', 189 ], 190 }, 191 { 192 'name': 'sde_linux64', 193 'pattern': '.', 194 'condition': 'checkout_sde and host_os == "linux"', 195 'action': [ 'download_from_google_storage', 196 '--no_resume', 197 '--bucket', 'chrome-boringssl-sde', 198 '-s', 'boringssl/util/bot/sde-linux64.tar.bz2.sha1' 199 ], 200 }, 201 { 202 'name': 'sde_linux64_extract', 203 'pattern': '.', 204 'condition': 'checkout_sde and host_os == "linux"', 205 'action': [ 'python', 206 'boringssl/util/bot/extract.py', 207 'boringssl/util/bot/sde-linux64.tar.bz2', 208 'boringssl/util/bot/sde-linux64/', 209 ], 210 }, 211 { 212 'name': 'sde_win32', 213 'pattern': '.', 214 'condition': 'checkout_sde and host_os == "win"', 215 'action': [ 'download_from_google_storage', 216 '--no_resume', 217 '--bucket', 'chrome-boringssl-sde', 218 '-s', 'boringssl/util/bot/sde-win32.tar.bz2.sha1' 219 ], 220 }, 221 { 222 'name': 'sde_win32_extract', 223 'pattern': '.', 224 'condition': 'checkout_sde and host_os == "win"', 225 'action': [ 'python', 226 'boringssl/util/bot/extract.py', 227 'boringssl/util/bot/sde-win32.tar.bz2', 228 'boringssl/util/bot/sde-win32/', 229 ], 230 }, 231 ] 232