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_fuzzer': False, 20 'checkout_sde': False, 21} 22 23deps = { 24 'boringssl/util/bot/android_ndk': { 25 'url': Var('chromium_git') + '/android_ndk.git' + '@' + 'e951c37287c7d8cd915bf8d4149fd4a06d808b55', 26 'condition': 'checkout_android', 27 }, 28 29'boringssl/util/bot/android_tools': { 30 'url': Var('chromium_git') + '/android_tools.git' + '@' + 'c9f9bbf0a6c862fbef6115e80e8617093cd58e6b', 31 'condition': 'checkout_android', 32 }, 33 34 'boringssl/util/bot/gyp': 35 Var('chromium_git') + '/external/gyp.git' + '@' + 'd61a9397e668fa9843c4aa7da9e79460fe590bfb', 36 37 'boringssl/util/bot/libFuzzer': { 38 'url': Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git' + '@' + 'ba2c1cd6f87accb32b5dbce297387c56a2e53a2f', 39 'condition': 'checkout_fuzzer', 40 }, 41} 42 43recursedeps = [ 44 # android_tools pulls in the NDK from a separate repository. 45 'boringssl/util/bot/android_tools', 46] 47 48hooks = [ 49 { 50 'name': 'cmake_linux64', 51 'pattern': '.', 52 'condition': 'host_os == "linux"', 53 'action': [ 'download_from_google_storage', 54 '--no_resume', 55 '--platform=linux*', 56 '--no_auth', 57 '--bucket', 'chromium-tools', 58 '-s', 'boringssl/util/bot/cmake-linux64.tar.gz.sha1', 59 ], 60 }, 61 { 62 'name': 'cmake_linux64_extract', 63 'pattern': '.', 64 'condition': 'host_os == "linux"', 65 'action': [ 'python', 66 'boringssl/util/bot/extract.py', 67 'boringssl/util/bot/cmake-linux64.tar.gz', 68 'boringssl/util/bot/cmake-linux64/', 69 ], 70 }, 71 { 72 'name': 'cmake_mac', 73 'pattern': '.', 74 'condition': 'host_os == "mac"', 75 'action': [ 'download_from_google_storage', 76 '--no_resume', 77 '--platform=darwin', 78 '--no_auth', 79 '--bucket', 'chromium-tools', 80 '-s', 'boringssl/util/bot/cmake-mac.tar.gz.sha1', 81 ], 82 }, 83 { 84 'name': 'cmake_mac_extract', 85 'pattern': '.', 86 'condition': 'host_os == "mac"', 87 'action': [ 'python', 88 'boringssl/util/bot/extract.py', 89 'boringssl/util/bot/cmake-mac.tar.gz', 90 'boringssl/util/bot/cmake-mac/', 91 ], 92 }, 93 { 94 'name': 'cmake_win32', 95 'pattern': '.', 96 'condition': 'host_os == "win"', 97 'action': [ 'download_from_google_storage', 98 '--no_resume', 99 '--platform=win32', 100 '--no_auth', 101 '--bucket', 'chromium-tools', 102 '-s', 'boringssl/util/bot/cmake-win32.zip.sha1', 103 ], 104 }, 105 { 106 'name': 'cmake_win32_extract', 107 'pattern': '.', 108 'condition': 'host_os == "win"', 109 'action': [ 'python', 110 'boringssl/util/bot/extract.py', 111 'boringssl/util/bot/cmake-win32.zip', 112 'boringssl/util/bot/cmake-win32/', 113 ], 114 }, 115 { 116 'name': 'perl_win32', 117 'pattern': '.', 118 'condition': 'host_os == "win"', 119 'action': [ 'download_from_google_storage', 120 '--no_resume', 121 '--platform=win32', 122 '--no_auth', 123 '--bucket', 'chromium-tools', 124 '-s', 'boringssl/util/bot/perl-win32.zip.sha1', 125 ], 126 }, 127 { 128 'name': 'perl_win32_extract', 129 'pattern': '.', 130 'condition': 'host_os == "win"', 131 'action': [ 'python', 132 'boringssl/util/bot/extract.py', 133 '--no-prefix', 134 'boringssl/util/bot/perl-win32.zip', 135 'boringssl/util/bot/perl-win32/', 136 ], 137 }, 138 { 139 'name': 'yasm_win32', 140 'pattern': '.', 141 'condition': 'host_os == "win"', 142 'action': [ 'download_from_google_storage', 143 '--no_resume', 144 '--platform=win32', 145 '--no_auth', 146 '--bucket', 'chromium-tools', 147 '-s', 'boringssl/util/bot/yasm-win32.exe.sha1', 148 ], 149 }, 150 { 151 'name': 'win_toolchain', 152 'pattern': '.', 153 'condition': 'host_os == "win"', 154 'action': [ 'python', 155 'boringssl/util/bot/vs_toolchain.py', 156 'update', 157 ], 158 }, 159 { 160 'name': 'clang', 161 'pattern': '.', 162 'condition': 'checkout_clang', 163 'action': [ 'python', 164 'boringssl/util/bot/update_clang.py', 165 ], 166 }, 167 { 168 'name': 'sde_linux64', 169 'pattern': '.', 170 'condition': 'checkout_sde and host_os == "linux"', 171 'action': [ 'download_from_google_storage', 172 '--no_resume', 173 '--bucket', 'chrome-boringssl-sde', 174 '-s', 'boringssl/util/bot/sde-linux64.tar.bz2.sha1' 175 ], 176 }, 177 { 178 'name': 'sde_linux64_extract', 179 'pattern': '.', 180 'condition': 'checkout_sde and host_os == "linux"', 181 'action': [ 'python', 182 'boringssl/util/bot/extract.py', 183 'boringssl/util/bot/sde-linux64.tar.bz2', 184 'boringssl/util/bot/sde-linux64/', 185 ], 186 }, 187] 188