• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2015 The BoringSSL Authors
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_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. The CIPD versions have an extra .1 at
35  # the end which must be removed. See https://crbug.com/380903148.
36  'bazel_version': 'version:3@7.4.1.1',
37  # infra/3pp/tools/cmake/linux-amd64
38  'cmake_version': 'version:3@3.31.1.chromium.8',
39  # infra/3pp/tools/go/linux-amd64
40  'go_version': 'version:3@1.23.3',
41  # infra/3pp/tools/perl/windows-amd64
42  'perl_version': 'version:2@5.32.1.1',
43
44  # Update the following from
45  # https://chromium.googlesource.com/chromium/src/+/main/DEPS
46  'android_sdk_platform-tools_version': 'WihaseZR6cojZbkzIqwGhpTp92ztaGfqq8njBU8eTXYC',
47  'libfuzzer_revision': 'a7128317fe7935a43d6c9f39df54f21113951941',
48  'libcxx_revision': '76cb1e3b4a69ccc6407c9a3aaab3aaba2432f868',
49  'libcxxabi_revision': '6c4fa00e4becc30085cbc8b44c2764ef307daae2',
50  'llvm_libc_revision': '17e581644f9a71be3eb30f468722ce866058f93a',
51  'ninja_version': 'version:2@1.12.1.chromium.4',
52
53  # The Android NDK cannot be updated until https://crbug.com/boringssl/454 is fixed.
54  # We rely on an older NDK to test building without NEON instructions as the baseline.
55  'android_ndk_revision': 'U0e8L6l52ySjBrUBB82Vdyhsg60vVMqH0ItTW3TRHAQC',
56  'qemu_static_version': 'gYNEUqCr-Tu1C_vBu68YFtN31hjjLe61dnI2AtuyEsYC',
57}
58
59deps = {
60  'boringssl/util/bot/android_ndk': {
61    'packages': [{
62      'package': 'infra/3pp/tools/android_ndk/linux-amd64',
63      'version': Var('android_ndk_revision'),
64    }],
65    'condition': 'checkout_android',
66    'dep_type': 'cipd',
67  },
68
69  'boringssl/util/bot/android_sdk/public': {
70    'packages': [{
71      'package': 'chromium/third_party/android_sdk/public/platform-tools',
72      'version': Var('android_sdk_platform-tools_version'),
73    }],
74    'condition': 'checkout_android',
75    'dep_type': 'cipd',
76  },
77
78  'boringssl/util/bot/bazel': {
79    'packages': [{
80      'package': 'infra/3pp/tools/bazel_bootstrap/${{platform}}',
81      'version': Var('bazel_version'),
82    }],
83    'condition': 'checkout_bazel',
84    'dep_type': 'cipd',
85  },
86
87  'boringssl/util/bot/cmake': {
88    'packages': [{
89      'package': 'infra/3pp/tools/cmake/${{platform}}',
90      'version': Var('cmake_version'),
91    }],
92    'condition': 'checkout_cmake',
93    'dep_type': 'cipd',
94  },
95
96  'boringssl/util/bot/golang': {
97    'packages': [{
98      'package': 'infra/3pp/tools/go/${{platform}}',
99      'version': Var('go_version'),
100    }],
101    'condition': 'checkout_go',
102    'dep_type': 'cipd',
103  },
104
105  'boringssl/util/bot/libFuzzer': {
106    'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/compiler-rt/lib/fuzzer.git' +'@' + Var('libfuzzer_revision'),
107    'condition': 'checkout_fuzzer',
108  },
109
110  'boringssl/util/bot/libcxx': {
111    'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/libcxx.git' + '@' + Var('libcxx_revision'),
112    'condition': 'checkout_libcxx',
113  },
114  'boringssl/util/bot/libcxxabi': {
115    'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/libcxxabi.git' + '@' + Var('libcxxabi_revision'),
116    'condition': 'checkout_libcxx',
117  },
118  'boringssl/util/bot/llvm-libc': {
119    'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/libc.git' + '@' + Var('llvm_libc_revision'),
120    'condition': 'checkout_libcxx',
121  },
122
123  'boringssl/util/bot/ninja': {
124    'packages': [{
125      'package': 'infra/3pp/tools/ninja/${{platform}}',
126      'version': Var('ninja_version'),
127    }],
128    'condition': 'checkout_cmake',
129    'dep_type': 'cipd',
130  },
131
132  'boringssl/util/bot/perl-win32': {
133    'packages': [{
134      'package': 'infra/3pp/tools/perl/${{platform}}',
135      'version': Var('perl_version'),
136    }],
137    'condition': 'host_os == "win" and checkout_perl',
138    'dep_type': 'cipd',
139  },
140
141  'boringssl/util/bot/qemu-static': {
142      'packages': [{
143          'package': 'infra/3pp/tools/qemu_static/linux-amd64',
144          'version': Var('qemu_static_version')
145      }],
146      'condition': 'checkout_riscv64',
147      'dep_type': 'cipd',
148  }
149}
150
151recursedeps = [
152  # android_tools pulls in the NDK from a separate repository.
153  'boringssl/util/bot/android_tools',
154]
155
156hooks = [
157  {
158    'name': 'nasm_win32',
159    'pattern': '.',
160    'condition': 'host_os == "win" and checkout_nasm',
161    'action': [ 'download_from_google_storage',
162                '--no_resume',
163                '--platform=win32',
164                '--no_auth',
165                '--bucket', 'chromium-tools',
166                '-s', 'boringssl/util/bot/nasm-win32.exe.sha1',
167    ],
168  },
169  {
170    'name': 'win_toolchain',
171    'pattern': '.',
172    'condition': 'host_os == "win"',
173    'action': [ 'python3',
174                'boringssl/util/bot/vs_toolchain.py',
175                'update',
176                Var('vs_version'),
177    ],
178  },
179  {
180    'name': 'clang',
181    'pattern': '.',
182    'condition': 'checkout_clang',
183    'action': [ 'python3',
184                'boringssl/util/bot/update_clang.py',
185    ],
186  },
187  {
188    'name': 'sde_linux64',
189    'pattern': '.',
190    'condition': 'checkout_sde and host_os == "linux"',
191    'action': [ 'download_from_google_storage',
192                '--no_resume',
193                '--bucket', 'chrome-boringssl-sde',
194                '-s', 'boringssl/util/bot/sde-linux64.tar.xz.sha1'
195    ],
196  },
197  {
198    'name': 'sde_linux64_extract',
199    'pattern': '.',
200    'condition': 'checkout_sde and host_os == "linux"',
201    'action': [ 'python3',
202                'boringssl/util/bot/extract.py',
203                'boringssl/util/bot/sde-linux64.tar.xz',
204                'boringssl/util/bot/sde-linux64/',
205    ],
206  },
207  {
208    'name': 'sde_win32',
209    'pattern': '.',
210    'condition': 'checkout_sde and host_os == "win"',
211    'action': [ 'download_from_google_storage',
212                '--no_resume',
213                '--bucket', 'chrome-boringssl-sde',
214                '-s', 'boringssl/util/bot/sde-win32.tar.xz.sha1'
215    ],
216  },
217  {
218    'name': 'sde_win32_extract',
219    'pattern': '.',
220    'condition': 'checkout_sde and host_os == "win"',
221    'action': [ 'python3',
222                'boringssl/util/bot/extract.py',
223                'boringssl/util/bot/sde-win32.tar.xz',
224                'boringssl/util/bot/sde-win32/',
225    ],
226  },
227]
228