• 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_sde': False,
20  'checkout_nasm': False,
21  'checkout_libcxx': False,
22  'vs_version': '2017',
23
24  # Run the following command to see the latest builds in CIPD:
25  #  cipd describe PACKAGE_NAME -version latest
26
27  # infra/3pp/tools/cmake/linux-amd64
28  'cmake_version': 'version:2@3.23.1',
29  # infra/3pp/tools/go/linux-amd64
30  'go_version': 'version:2@1.18.2',
31
32  # Update the following from
33  # https://chromium.googlesource.com/chromium/src/+/main/DEPS
34  'android_sdk_platform-tools_version': 'g7n_-r6yJd_SGRklujGB1wEt8iyr77FZTUJVS9w6O34C',
35  'android_ndk_revision': '8388a2be5421311dc75c5f937aae13d821a27f3d',
36  'libfuzzer_revision': 'debe7d2d1982e540fbd6bd78604bf001753f9e74',
37  'libcxx_revision': '79a2e924d96e2fc1e4b937c42efd08898fa472d7',
38  'libcxxabi_revision': '9b8228b4a9be26e0881f36089d9a8d62df851acc',
39}
40
41deps = {
42  'boringssl/util/bot/android_ndk': {
43    'url': Var('chromium_git') + '/android_ndk.git' + '@' + Var('android_ndk_revision'),
44    'condition': 'checkout_android',
45  },
46
47  'boringssl/util/bot/android_sdk/public': {
48    'packages': [{
49      'package': 'chromium/third_party/android_sdk/public/platform-tools',
50      'version': Var('android_sdk_platform-tools_version'),
51    }],
52    'condition': 'checkout_android',
53    'dep_type': 'cipd',
54  },
55
56  # TODO(davidben): Merge the three CMake directories. Now that we use CIPD,
57  # which supports a ${{platform}} marker, there is nothing platform-specific
58  # about this anymore. However, the recipe still expects CMake to be found at
59  # these directories, so this needs to be coordinated with a change there.
60  'boringssl/util/bot/cmake-linux64': {
61    'packages': [{
62      'package': 'infra/3pp/tools/cmake/${{platform}}',
63      'version': Var('cmake_version'),
64    }],
65    'condition': 'host_os == "linux"',
66    'dep_type': 'cipd',
67  },
68
69  'boringssl/util/bot/cmake-mac': {
70    'packages': [{
71      'package': 'infra/3pp/tools/cmake/${{platform}}',
72      'version': Var('cmake_version'),
73    }],
74    'condition': 'host_os == "mac"',
75    'dep_type': 'cipd',
76  },
77
78  'boringssl/util/bot/cmake-win32': {
79    'packages': [{
80      'package': 'infra/3pp/tools/cmake/${{platform}}',
81      'version': Var('cmake_version'),
82    }],
83    'condition': 'host_os == "win"',
84    'dep_type': 'cipd',
85  },
86
87  'boringssl/util/bot/golang': {
88    'packages': [{
89      'package': 'infra/3pp/tools/go/${{platform}}',
90      'version': Var('go_version'),
91    }],
92    'dep_type': 'cipd',
93  },
94
95  'boringssl/util/bot/libFuzzer': {
96    'url': Var('chromium_git') + '/chromium/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
110recursedeps = [
111  # android_tools pulls in the NDK from a separate repository.
112  'boringssl/util/bot/android_tools',
113]
114
115hooks = [
116  # TODO(https://crbug.com/1180257): Use CIPD for CMake on Windows.
117  {
118    'name': 'perl_win32',
119    'pattern': '.',
120    'condition': 'host_os == "win"',
121    'action': [ 'download_from_google_storage',
122                '--no_resume',
123                '--platform=win32',
124                '--no_auth',
125                '--bucket', 'chromium-tools',
126                '-s', 'boringssl/util/bot/perl-win32.zip.sha1',
127    ],
128  },
129  {
130    'name': 'perl_win32_extract',
131    'pattern': '.',
132    'condition': 'host_os == "win"',
133    'action': [ 'python3',
134                'boringssl/util/bot/extract.py',
135                '--no-prefix',
136                'boringssl/util/bot/perl-win32.zip',
137                'boringssl/util/bot/perl-win32/',
138    ],
139  },
140  {
141    'name': 'nasm_win32',
142    'pattern': '.',
143    'condition': 'host_os == "win" and checkout_nasm',
144    'action': [ 'download_from_google_storage',
145                '--no_resume',
146                '--platform=win32',
147                '--no_auth',
148                '--bucket', 'chromium-tools',
149                '-s', 'boringssl/util/bot/nasm-win32.exe.sha1',
150    ],
151  },
152  {
153    'name': 'win_toolchain',
154    'pattern': '.',
155    'condition': 'host_os == "win"',
156    'action': [ 'python3',
157                'boringssl/util/bot/vs_toolchain.py',
158                'update',
159                Var('vs_version'),
160    ],
161  },
162  {
163    'name': 'clang',
164    'pattern': '.',
165    'condition': 'checkout_clang',
166    'action': [ 'python3',
167                'boringssl/util/bot/update_clang.py',
168    ],
169  },
170  {
171    'name': 'sde_linux64',
172    'pattern': '.',
173    'condition': 'checkout_sde and host_os == "linux"',
174    'action': [ 'download_from_google_storage',
175                '--no_resume',
176                '--bucket', 'chrome-boringssl-sde',
177                '-s', 'boringssl/util/bot/sde-linux64.tar.xz.sha1'
178    ],
179  },
180  {
181    'name': 'sde_linux64_extract',
182    'pattern': '.',
183    'condition': 'checkout_sde and host_os == "linux"',
184    'action': [ 'python3',
185                'boringssl/util/bot/extract.py',
186                'boringssl/util/bot/sde-linux64.tar.xz',
187                'boringssl/util/bot/sde-linux64/',
188    ],
189  },
190  {
191    'name': 'sde_win32',
192    'pattern': '.',
193    'condition': 'checkout_sde and host_os == "win"',
194    'action': [ 'download_from_google_storage',
195                '--no_resume',
196                '--bucket', 'chrome-boringssl-sde',
197                '-s', 'boringssl/util/bot/sde-win32.tar.xz.sha1'
198    ],
199  },
200  {
201    'name': 'sde_win32_extract',
202    'pattern': '.',
203    'condition': 'checkout_sde and host_os == "win"',
204    'action': [ 'python3',
205                'boringssl/util/bot/extract.py',
206                'boringssl/util/bot/sde-win32.tar.xz',
207                'boringssl/util/bot/sde-win32/',
208    ],
209  },
210]
211