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