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 'checkout_nasm': False, 22 'checkout_libcxx': False, 23 'vs_version': '2019', 24 25 # Run the following command to see the latest builds in CIPD: 26 # cipd describe PACKAGE_NAME -version latest 27 28 # infra/3pp/tools/cmake/linux-amd64 29 'cmake_version': 'version:[email protected]', 30 # infra/3pp/tools/go/linux-amd64 31 'go_version': 'version:[email protected]', 32 # infra/3pp/tools/perl/windows-amd64 33 'perl_version': 'version:[email protected]', 34 35 # Update the following from 36 # https://chromium.googlesource.com/chromium/src/+/main/DEPS 37 'android_sdk_platform-tools_version': 'HWVsGs2HCKgSVv41FsOcsfJbNcB0UFiNrF6Tc4yRArYC', 38 'libfuzzer_revision': '758bd21f103a501b362b1ca46fa8fcb692eaa303', 39 'libcxx_revision': '852bc6746f45add53fec19f3a29280e69e358d44', 40 'libcxxabi_revision': '43dd5b4bf62e8593461dce9a95e3d43fdcd0b9f2', 41 'ninja_version': 'version:[email protected]', 42 43 # The Android NDK cannot be updated until https://crbug.com/boringssl/454 is fixed. 44 # We rely on an older NDK to test building without NEON instructions as the baseline. 45 'android_ndk_revision': 'U0e8L6l52ySjBrUBB82Vdyhsg60vVMqH0ItTW3TRHAQC', 46} 47 48deps = { 49 'boringssl/util/bot/android_ndk': { 50 'packages': [{ 51 'package': 'infra/3pp/tools/android_ndk/linux-amd64', 52 'version': Var('android_ndk_revision'), 53 }], 54 'condition': 'checkout_android', 55 'dep_type': 'cipd', 56 }, 57 58 'boringssl/util/bot/android_sdk/public': { 59 'packages': [{ 60 'package': 'chromium/third_party/android_sdk/public/platform-tools', 61 'version': Var('android_sdk_platform-tools_version'), 62 }], 63 'condition': 'checkout_android', 64 'dep_type': 'cipd', 65 }, 66 67 'boringssl/util/bot/cmake': { 68 'packages': [{ 69 'package': 'infra/3pp/tools/cmake/${{platform}}', 70 'version': Var('cmake_version'), 71 }], 72 'dep_type': 'cipd', 73 }, 74 75 'boringssl/util/bot/golang': { 76 'packages': [{ 77 'package': 'infra/3pp/tools/go/${{platform}}', 78 'version': Var('go_version'), 79 }], 80 'dep_type': 'cipd', 81 }, 82 83 'boringssl/util/bot/perl-win32': { 84 'packages': [{ 85 'package': 'infra/3pp/tools/perl/${{platform}}', 86 'version': Var('perl_version'), 87 }], 88 'condition': 'host_os == "win"', 89 'dep_type': 'cipd', 90 }, 91 92 'boringssl/util/bot/libFuzzer': { 93 'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/compiler-rt/lib/fuzzer.git' +'@' + Var('libfuzzer_revision'), 94 'condition': 'checkout_fuzzer', 95 }, 96 97 'boringssl/util/bot/libcxx': { 98 'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/libcxx.git' + '@' + Var('libcxx_revision'), 99 'condition': 'checkout_libcxx', 100 }, 101 'boringssl/util/bot/libcxxabi': { 102 'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/libcxxabi.git' + '@' + Var('libcxxabi_revision'), 103 'condition': 'checkout_libcxx', 104 }, 105 106 'boringssl/util/bot/ninja': { 107 'packages': [{ 108 'package': 'infra/3pp/tools/ninja/${{platform}}', 109 'version': Var('ninja_version'), 110 }], 111 'dep_type': 'cipd', 112 } 113} 114 115recursedeps = [ 116 # android_tools pulls in the NDK from a separate repository. 117 'boringssl/util/bot/android_tools', 118] 119 120hooks = [ 121 { 122 'name': 'nasm_win32', 123 'pattern': '.', 124 'condition': 'host_os == "win" and checkout_nasm', 125 'action': [ 'download_from_google_storage', 126 '--no_resume', 127 '--platform=win32', 128 '--no_auth', 129 '--bucket', 'chromium-tools', 130 '-s', 'boringssl/util/bot/nasm-win32.exe.sha1', 131 ], 132 }, 133 { 134 'name': 'win_toolchain', 135 'pattern': '.', 136 'condition': 'host_os == "win"', 137 'action': [ 'python3', 138 'boringssl/util/bot/vs_toolchain.py', 139 'update', 140 Var('vs_version'), 141 ], 142 }, 143 { 144 'name': 'clang', 145 'pattern': '.', 146 'condition': 'checkout_clang', 147 'action': [ 'python3', 148 'boringssl/util/bot/update_clang.py', 149 ], 150 }, 151 { 152 'name': 'sde_linux64', 153 'pattern': '.', 154 'condition': 'checkout_sde and host_os == "linux"', 155 'action': [ 'download_from_google_storage', 156 '--no_resume', 157 '--bucket', 'chrome-boringssl-sde', 158 '-s', 'boringssl/util/bot/sde-linux64.tar.xz.sha1' 159 ], 160 }, 161 { 162 'name': 'sde_linux64_extract', 163 'pattern': '.', 164 'condition': 'checkout_sde and host_os == "linux"', 165 'action': [ 'python3', 166 'boringssl/util/bot/extract.py', 167 'boringssl/util/bot/sde-linux64.tar.xz', 168 'boringssl/util/bot/sde-linux64/', 169 ], 170 }, 171 { 172 'name': 'sde_win32', 173 'pattern': '.', 174 'condition': 'checkout_sde and host_os == "win"', 175 'action': [ 'download_from_google_storage', 176 '--no_resume', 177 '--bucket', 'chrome-boringssl-sde', 178 '-s', 'boringssl/util/bot/sde-win32.tar.xz.sha1' 179 ], 180 }, 181 { 182 'name': 'sde_win32_extract', 183 'pattern': '.', 184 'condition': 'checkout_sde and host_os == "win"', 185 'action': [ 'python3', 186 'boringssl/util/bot/extract.py', 187 'boringssl/util/bot/sde-win32.tar.xz', 188 'boringssl/util/bot/sde-win32/', 189 ], 190 }, 191] 192