• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:2@3.27.7.chromium.8',
30  # infra/3pp/tools/go/linux-amd64
31  'go_version': 'version:2@1.21.2',
32  # infra/3pp/tools/perl/windows-amd64
33  'perl_version': 'version:2@5.32.1.1',
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': '8fc17971d629c19a17b006d0c4fc41e721cc2f7f',
40  'libcxxabi_revision': 'db9800c042df3ee2691031a58b5e37e89a7356a3',
41  'ninja_version': 'version:2@1.11.1.chromium.6',
42
43  # The Android NDK cannot be updated on CI for two reasons:
44  #
45  # Until https://crbug.com/boringssl/454 is fixed, we rely on an older NDK to
46  # test building without NEON instructions as the baseline.
47  #
48  # Until https://crbug.com/boringssl/653 is fixed, we cannot update past
49  # Chromium's version:2@r25c.cr0 package. Chromium has since switched building
50  # minimal CIPD packages which do not contain all the NDK files we need. We'll
51  # probably need to make our own NDK package.
52  'android_ndk_revision': '310956bd122ec2b96049f8d7398de6b717f3452e',
53}
54
55deps = {
56  'boringssl/util/bot/android_ndk': {
57    'url': Var('chromium_git') + '/android_ndk.git' + '@' + Var('android_ndk_revision'),
58    'condition': 'checkout_android',
59  },
60
61  'boringssl/util/bot/android_sdk/public': {
62    'packages': [{
63      'package': 'chromium/third_party/android_sdk/public/platform-tools',
64      'version': Var('android_sdk_platform-tools_version'),
65    }],
66    'condition': 'checkout_android',
67    'dep_type': 'cipd',
68  },
69
70  'boringssl/util/bot/cmake': {
71    'packages': [{
72      'package': 'infra/3pp/tools/cmake/${{platform}}',
73      'version': Var('cmake_version'),
74    }],
75    'dep_type': 'cipd',
76  },
77
78  'boringssl/util/bot/golang': {
79    'packages': [{
80      'package': 'infra/3pp/tools/go/${{platform}}',
81      'version': Var('go_version'),
82    }],
83    'dep_type': 'cipd',
84  },
85
86  'boringssl/util/bot/perl-win32': {
87    'packages': [{
88      'package': 'infra/3pp/tools/perl/${{platform}}',
89      'version': Var('perl_version'),
90    }],
91    'condition': 'host_os == "win"',
92    'dep_type': 'cipd',
93  },
94
95  'boringssl/util/bot/libFuzzer': {
96    'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/compiler-rt/lib/fuzzer.git' +'@' + Var('libfuzzer_revision'),
97    'condition': 'checkout_fuzzer',
98  },
99
100  'boringssl/util/bot/libcxx': {
101    'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/libcxx.git' + '@' + Var('libcxx_revision'),
102    'condition': 'checkout_libcxx',
103  },
104  'boringssl/util/bot/libcxxabi': {
105    'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project/libcxxabi.git' + '@' + Var('libcxxabi_revision'),
106    'condition': 'checkout_libcxx',
107  },
108
109  'boringssl/util/bot/ninja': {
110    'packages': [{
111      'package': 'infra/3pp/tools/ninja/${{platform}}',
112      'version': Var('ninja_version'),
113    }],
114    'dep_type': 'cipd',
115  }
116}
117
118recursedeps = [
119  # android_tools pulls in the NDK from a separate repository.
120  'boringssl/util/bot/android_tools',
121]
122
123hooks = [
124  {
125    'name': 'nasm_win32',
126    'pattern': '.',
127    'condition': 'host_os == "win" and checkout_nasm',
128    'action': [ 'download_from_google_storage',
129                '--no_resume',
130                '--platform=win32',
131                '--no_auth',
132                '--bucket', 'chromium-tools',
133                '-s', 'boringssl/util/bot/nasm-win32.exe.sha1',
134    ],
135  },
136  {
137    'name': 'win_toolchain',
138    'pattern': '.',
139    'condition': 'host_os == "win"',
140    'action': [ 'python3',
141                'boringssl/util/bot/vs_toolchain.py',
142                'update',
143                Var('vs_version'),
144    ],
145  },
146  {
147    'name': 'clang',
148    'pattern': '.',
149    'condition': 'checkout_clang',
150    'action': [ 'python3',
151                'boringssl/util/bot/update_clang.py',
152    ],
153  },
154  {
155    'name': 'sde_linux64',
156    'pattern': '.',
157    'condition': 'checkout_sde and host_os == "linux"',
158    'action': [ 'download_from_google_storage',
159                '--no_resume',
160                '--bucket', 'chrome-boringssl-sde',
161                '-s', 'boringssl/util/bot/sde-linux64.tar.xz.sha1'
162    ],
163  },
164  {
165    'name': 'sde_linux64_extract',
166    'pattern': '.',
167    'condition': 'checkout_sde and host_os == "linux"',
168    'action': [ 'python3',
169                'boringssl/util/bot/extract.py',
170                'boringssl/util/bot/sde-linux64.tar.xz',
171                'boringssl/util/bot/sde-linux64/',
172    ],
173  },
174  {
175    'name': 'sde_win32',
176    'pattern': '.',
177    'condition': 'checkout_sde and host_os == "win"',
178    'action': [ 'download_from_google_storage',
179                '--no_resume',
180                '--bucket', 'chrome-boringssl-sde',
181                '-s', 'boringssl/util/bot/sde-win32.tar.xz.sha1'
182    ],
183  },
184  {
185    'name': 'sde_win32_extract',
186    'pattern': '.',
187    'condition': 'checkout_sde and host_os == "win"',
188    'action': [ 'python3',
189                'boringssl/util/bot/extract.py',
190                'boringssl/util/bot/sde-win32.tar.xz',
191                'boringssl/util/bot/sde-win32/',
192    ],
193  },
194]
195