| 1 | # Copyright 2015 The BoringSSL Authors |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | vars = { |
| 16 | 'chromium_git': 'https://chromium.googlesource.com', |
| 17 | |
| 18 | 'checkout_bazel': False, |
| 19 | 'checkout_clang': False, |
| 20 | 'checkout_cmake': True, |
| 21 | 'checkout_go': True, |
| 22 | 'checkout_fuzzer': False, |
| 23 | 'checkout_perl': True, |
| 24 | 'checkout_sde': False, |
| 25 | 'checkout_nasm': False, |
| 26 | 'checkout_libcxx': False, |
| 27 | 'checkout_riscv64': False, |
| 28 | 'vs_version': '2022', |
| 29 | |
| 30 | # Run the following command to see the latest builds in CIPD: |
| 31 | # cipd describe PACKAGE_NAME -version latest |
| 32 | |
| 33 | # infra/3pp/tools/bazel_bootstrap/linux-amd64 |
| 34 | # Keep this in sync with .bazelversion. |
| 35 | 'bazel_version': 'version:3@7.5.0.chromium.1', |
| 36 | # infra/3pp/tools/cmake/linux-amd64 |
| 37 | 'cmake_version': 'version:3@3.31.6.chromium.8', |
| 38 | # infra/3pp/tools/go/linux-amd64 |
| 39 | 'go_version': 'version:3@1.24.1', |
| 40 | # infra/3pp/tools/perl/windows-amd64 |
| 41 | 'perl_version': 'version:2@5.32.1.1', |
| 42 | |
| 43 | # Update the following from |
| 44 | # https://chromium.googlesource.com/chromium/src/+/main/DEPS |
| 45 | 'android_sdk_platform-tools_version': 'WihaseZR6cojZbkzIqwGhpTp92ztaGfqq8njBU8eTXYC', |
| 46 | 'libfuzzer_revision': 'e31b99917861f891308269c36a32363b120126bb', |
| 47 | 'libcxx_revision': '7c3087b8a7563d8218b27b7183ba41cf52d41508', |
| 48 | 'libcxxabi_revision': '94c5d7a8edc09f0680aee57548c0b5d400c2840d', |
| 49 | 'llvm_libc_revision': 'b86167407ee6dbb81421aa5d139f056aef1c86d7', |
| 50 | 'ninja_version': 'version:2@1.12.1.chromium.4', |
| 51 | |
| 52 | # Update to the latest revision of |
| 53 | # https://chromium.googlesource.com/chromium/src/tools/clang |
| 54 | 'tools_clang_revision': '19193de25965c139d78bcc8bb0d0c96ee1c46faf', |
| 55 | |
| 56 | # The Android NDK cannot be updated until https://crbug.com/boringssl/454 is fixed. |
| 57 | # We rely on an older NDK to test building without NEON instructions as the baseline. |
| 58 | 'android_ndk_revision': 'U0e8L6l52ySjBrUBB82Vdyhsg60vVMqH0ItTW3TRHAQC', |
| 59 | 'qemu_static_version': 'gYNEUqCr-Tu1C_vBu68YFtN31hjjLe61dnI2AtuyEsYC', |
| 60 | } |
| 61 | |
| 62 | deps = { |
| 63 | 'boringssl/util/bot/android_ndk': { |
| 64 | 'packages': [{ |
| 65 | 'package': 'infra/3pp/tools/android_ndk/linux-amd64', |
| 66 | 'version': Var('android_ndk_revision'), |
| 67 | }], |
| 68 | 'condition': 'checkout_android', |
| 69 | 'dep_type': 'cipd', |
| 70 | }, |
| 71 | |
| 72 | 'boringssl/util/bot/android_sdk/public': { |
| 73 | 'packages': [{ |
| 74 | 'package': 'chromium/third_party/android_sdk/public/platform-tools', |
| 75 | 'version': Var('android_sdk_platform-tools_version'), |
| 76 | }], |
| 77 | 'condition': 'checkout_android', |
| 78 | 'dep_type': 'cipd', |
| 79 | }, |
| 80 | |
| 81 | 'boringssl/util/bot/bazel': { |
| 82 | 'packages': [{ |
| 83 | 'package': 'infra/3pp/tools/bazel_bootstrap/${{platform}}', |
| 84 | 'version': Var('bazel_version'), |
| 85 | }], |
| 86 | 'condition': 'checkout_bazel', |
| 87 | 'dep_type': 'cipd', |
| 88 | }, |
| 89 | |
| 90 | 'boringssl/util/bot/cmake': { |
| 91 | 'packages': [{ |
| 92 | 'package': 'infra/3pp/tools/cmake/${{platform}}', |
| 93 | 'version': Var('cmake_version'), |
| 94 | }], |
| 95 | 'condition': 'checkout_cmake', |
| 96 | 'dep_type': 'cipd', |
| 97 | }, |
| 98 | |
| 99 | 'boringssl/util/bot/golang': { |
| 100 | 'packages': [{ |
| 101 | 'package': 'infra/3pp/tools/go/${{platform}}', |
| 102 | 'version': Var('go_version'), |
| 103 | }], |
| 104 | 'condition': 'checkout_go', |
| 105 | 'dep_type': 'cipd', |
| 106 | }, |
| 107 | |
| 108 | 'boringssl/util/bot/libFuzzer': { |
| 109 | 'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/compiler-rt/lib/fuzzer.git' +'@' + Var('libfuzzer_revision'), |
| 110 | 'condition': 'checkout_fuzzer', |
| 111 | }, |
| 112 | |
| 113 | 'boringssl/util/bot/libcxx': { |
| 114 | 'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/libcxx.git' + '@' + Var('libcxx_revision'), |
| 115 | 'condition': 'checkout_libcxx', |
| 116 | }, |
| 117 | 'boringssl/util/bot/libcxxabi': { |
| 118 | 'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/libcxxabi.git' + '@' + Var('libcxxabi_revision'), |
| 119 | 'condition': 'checkout_libcxx', |
| 120 | }, |
| 121 | 'boringssl/util/bot/llvm-libc': { |
| 122 | 'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/libc.git' + '@' + Var('llvm_libc_revision'), |
| 123 | 'condition': 'checkout_libcxx', |
| 124 | }, |
| 125 | |
| 126 | 'boringssl/util/bot/ninja': { |
| 127 | 'packages': [{ |
| 128 | 'package': 'infra/3pp/tools/ninja/${{platform}}', |
| 129 | 'version': Var('ninja_version'), |
| 130 | }], |
| 131 | 'condition': 'checkout_cmake', |
| 132 | 'dep_type': 'cipd', |
| 133 | }, |
| 134 | |
| 135 | 'boringssl/util/bot/perl-win32': { |
| 136 | 'packages': [{ |
| 137 | 'package': 'infra/3pp/tools/perl/${{platform}}', |
| 138 | 'version': Var('perl_version'), |
| 139 | }], |
| 140 | 'condition': 'host_os == "win" and checkout_perl', |
| 141 | 'dep_type': 'cipd', |
| 142 | }, |
| 143 | |
| 144 | 'boringssl/util/bot/qemu-static': { |
| 145 | 'packages': [{ |
| 146 | 'package': 'infra/3pp/tools/qemu_static/linux-amd64', |
| 147 | 'version': Var('qemu_static_version') |
| 148 | }], |
| 149 | 'condition': 'checkout_riscv64', |
| 150 | 'dep_type': 'cipd', |
| 151 | }, |
| 152 | |
| 153 | 'boringssl/util/bot/tools/clang': { |
| 154 | 'url': Var('chromium_git') + '/chromium/src/tools/clang.git' + '@' + Var('tools_clang_revision'), |
| 155 | 'condition': 'checkout_clang', |
| 156 | }, |
| 157 | } |
| 158 | |
| 159 | recursedeps = [ |
| 160 | # android_tools pulls in the NDK from a separate repository. |
| 161 | 'boringssl/util/bot/android_tools', |
| 162 | ] |
| 163 | |
| 164 | hooks = [ |
| 165 | { |
| 166 | 'name': 'nasm_win32', |
| 167 | 'pattern': '.', |
| 168 | 'condition': 'host_os == "win" and checkout_nasm', |
| 169 | 'action': [ 'download_from_google_storage', |
| 170 | '--no_resume', |
| 171 | '--platform=win32', |
| 172 | '--no_auth', |
| 173 | '--bucket', 'chromium-tools', |
| 174 | '-s', 'boringssl/util/bot/nasm-win32.exe.sha1', |
| 175 | ], |
| 176 | }, |
| 177 | { |
| 178 | 'name': 'win_toolchain', |
| 179 | 'pattern': '.', |
| 180 | 'condition': 'host_os == "win"', |
| 181 | 'action': [ 'python3', |
| 182 | 'boringssl/util/bot/vs_toolchain.py', |
| 183 | 'update', |
| 184 | Var('vs_version'), |
| 185 | ], |
| 186 | }, |
| 187 | { |
| 188 | 'name': 'clang', |
| 189 | 'pattern': '.', |
| 190 | 'condition': 'checkout_clang', |
| 191 | 'action': [ 'python3', |
| 192 | 'boringssl/util/bot/tools/clang/scripts/update.py', |
| 193 | '--output-dir', 'boringssl/util/bot/llvm-build', |
| 194 | ], |
| 195 | }, |
| 196 | { |
| 197 | 'name': 'sde_linux64', |
| 198 | 'pattern': '.', |
| 199 | 'condition': 'checkout_sde and host_os == "linux"', |
| 200 | 'action': [ 'download_from_google_storage', |
| 201 | '--no_resume', |
| 202 | '--bucket', 'chrome-boringssl-sde', |
| 203 | '-s', 'boringssl/util/bot/sde-linux64.tar.xz.sha1' |
| 204 | ], |
| 205 | }, |
| 206 | { |
| 207 | 'name': 'sde_linux64_extract', |
| 208 | 'pattern': '.', |
| 209 | 'condition': 'checkout_sde and host_os == "linux"', |
| 210 | 'action': [ 'python3', |
| 211 | 'boringssl/util/bot/extract.py', |
| 212 | 'boringssl/util/bot/sde-linux64.tar.xz', |
| 213 | 'boringssl/util/bot/sde-linux64/', |
| 214 | ], |
| 215 | }, |
| 216 | { |
| 217 | 'name': 'sde_win32', |
| 218 | 'pattern': '.', |
| 219 | 'condition': 'checkout_sde and host_os == "win"', |
| 220 | 'action': [ 'download_from_google_storage', |
| 221 | '--no_resume', |
| 222 | '--bucket', 'chrome-boringssl-sde', |
| 223 | '-s', 'boringssl/util/bot/sde-win32.tar.xz.sha1' |
| 224 | ], |
| 225 | }, |
| 226 | { |
| 227 | 'name': 'sde_win32_extract', |
| 228 | 'pattern': '.', |
| 229 | 'condition': 'checkout_sde and host_os == "win"', |
| 230 | 'action': [ 'python3', |
| 231 | 'boringssl/util/bot/extract.py', |
| 232 | 'boringssl/util/bot/sde-win32.tar.xz', |
| 233 | 'boringssl/util/bot/sde-win32/', |
| 234 | ], |
| 235 | }, |
| 236 | ] |
| 237 | |