blob: 760f2e425e85ad9452e4386c15ce4f1356bf4505 [file] [log] [blame]
Adam Langleye9ada862015-05-11 17:20:37 -07001# 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',
Robert Sloan921ef2c2017-10-17 09:02:20 -070017
18 'checkout_clang': False,
Robert Sloan921ef2c2017-10-17 09:02:20 -070019 'checkout_sde': False,
Adam Vartanianbfcf3a72018-08-10 14:55:24 +010020 'checkout_nasm': False,
21 'checkout_libcxx': False,
Pete Bentley0c61efe2019-08-13 09:32:23 +010022
23 'android_sdk_platform-tools_version': 'MSnxgXN7IurL-MQs1RrTkSFSb8Xd1UtZjLArI8Ty1FgC',
Adam Langleye9ada862015-05-11 17:20:37 -070024}
25
26deps = {
Robert Sloan309a31e2018-01-29 10:22:47 -080027 'boringssl/util/bot/android_ndk': {
Robert Sloanf573be72018-09-17 15:29:11 -070028 'url': Var('chromium_git') + '/android_ndk.git' + '@' + '4e2cea441bfd43f0863d14f57b1e1844260b9884',
Robert Sloan309a31e2018-01-29 10:22:47 -080029 'condition': 'checkout_android',
30 },
31
Pete Bentley0c61efe2019-08-13 09:32:23 +010032 'boringssl/util/bot/android_sdk/public': {
33 'packages': [
34 {
35 'package': 'chromium/third_party/android_sdk/public/platform-tools',
36 'version': Var('android_sdk_platform-tools_version'),
37 },
38 ],
39 'condition': 'checkout_android',
40 'dep_type': 'cipd',
Robert Sloan8ff03552017-06-14 12:40:58 -070041 },
Robert Sloan921ef2c2017-10-17 09:02:20 -070042
43 'boringssl/util/bot/gyp':
44 Var('chromium_git') + '/external/gyp.git' + '@' + 'd61a9397e668fa9843c4aa7da9e79460fe590bfb',
45
Robert Sloan4c22c5f2019-03-01 15:53:37 -080046 'boringssl/util/bot/libFuzzer': {
Pete Bentley0c61efe2019-08-13 09:32:23 +010047 'url': Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git' +'@' + 'e9b95bcfe2f5472fac2e516a0040aedf2140dd62',
Robert Sloan4c22c5f2019-03-01 15:53:37 -080048 'condition': 'checkout_fuzzer',
49 },
50
Adam Vartanianbfcf3a72018-08-10 14:55:24 +010051 # Update the following revisions from
Robert Sloan4726ed32019-04-08 12:43:32 -070052 # https://chromium.googlesource.com/chromium/src/+/master/buildtools/DEPS
Adam Vartanianbfcf3a72018-08-10 14:55:24 +010053 'boringssl/util/bot/libcxx': {
Pete Bentley0c61efe2019-08-13 09:32:23 +010054 'url': Var('chromium_git') + '/chromium/llvm-project/libcxx.git' + '@' + '5938e0582bac570a41edb3d6a2217c299adc1bc6',
Adam Vartanianbfcf3a72018-08-10 14:55:24 +010055 'condition': 'checkout_libcxx',
56 },
57 'boringssl/util/bot/libcxxabi': {
Robert Sloan4726ed32019-04-08 12:43:32 -070058 'url': Var('chromium_git') + '/chromium/llvm-project/libcxxabi.git' + '@' + '0d529660e32d77d9111912d73f2c74fc5fa2a858',
Adam Vartanianbfcf3a72018-08-10 14:55:24 +010059 'condition': 'checkout_libcxx',
60 },
David Benjamind316cba2016-06-02 16:17:39 -040061}
62
Steven Valdez909b19f2016-11-21 15:35:44 -050063recursedeps = [
64 # android_tools pulls in the NDK from a separate repository.
65 'boringssl/util/bot/android_tools',
66]
67
Adam Langleye9ada862015-05-11 17:20:37 -070068hooks = [
69 {
70 'name': 'cmake_linux64',
71 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -070072 'condition': 'host_os == "linux"',
Adam Langleye9ada862015-05-11 17:20:37 -070073 'action': [ 'download_from_google_storage',
74 '--no_resume',
75 '--platform=linux*',
76 '--no_auth',
77 '--bucket', 'chromium-tools',
78 '-s', 'boringssl/util/bot/cmake-linux64.tar.gz.sha1',
79 ],
80 },
81 {
Robert Sloan921ef2c2017-10-17 09:02:20 -070082 'name': 'cmake_linux64_extract',
83 'pattern': '.',
84 'condition': 'host_os == "linux"',
85 'action': [ 'python',
86 'boringssl/util/bot/extract.py',
87 'boringssl/util/bot/cmake-linux64.tar.gz',
88 'boringssl/util/bot/cmake-linux64/',
89 ],
90 },
91 {
Adam Langleye9ada862015-05-11 17:20:37 -070092 'name': 'cmake_mac',
93 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -070094 'condition': 'host_os == "mac"',
Adam Langleye9ada862015-05-11 17:20:37 -070095 'action': [ 'download_from_google_storage',
96 '--no_resume',
97 '--platform=darwin',
98 '--no_auth',
99 '--bucket', 'chromium-tools',
100 '-s', 'boringssl/util/bot/cmake-mac.tar.gz.sha1',
101 ],
102 },
103 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700104 'name': 'cmake_mac_extract',
105 'pattern': '.',
106 'condition': 'host_os == "mac"',
107 'action': [ 'python',
108 'boringssl/util/bot/extract.py',
109 'boringssl/util/bot/cmake-mac.tar.gz',
110 'boringssl/util/bot/cmake-mac/',
111 ],
112 },
113 {
Adam Langleye9ada862015-05-11 17:20:37 -0700114 'name': 'cmake_win32',
115 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700116 'condition': 'host_os == "win"',
Adam Langleye9ada862015-05-11 17:20:37 -0700117 'action': [ 'download_from_google_storage',
118 '--no_resume',
119 '--platform=win32',
120 '--no_auth',
121 '--bucket', 'chromium-tools',
122 '-s', 'boringssl/util/bot/cmake-win32.zip.sha1',
123 ],
124 },
125 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700126 'name': 'cmake_win32_extract',
127 'pattern': '.',
128 'condition': 'host_os == "win"',
129 'action': [ 'python',
130 'boringssl/util/bot/extract.py',
131 'boringssl/util/bot/cmake-win32.zip',
132 'boringssl/util/bot/cmake-win32/',
133 ],
134 },
135 {
Adam Langleye9ada862015-05-11 17:20:37 -0700136 'name': 'perl_win32',
137 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700138 'condition': 'host_os == "win"',
Adam Langleye9ada862015-05-11 17:20:37 -0700139 'action': [ 'download_from_google_storage',
140 '--no_resume',
141 '--platform=win32',
142 '--no_auth',
143 '--bucket', 'chromium-tools',
144 '-s', 'boringssl/util/bot/perl-win32.zip.sha1',
145 ],
146 },
147 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700148 'name': 'perl_win32_extract',
149 'pattern': '.',
150 'condition': 'host_os == "win"',
151 'action': [ 'python',
152 'boringssl/util/bot/extract.py',
153 '--no-prefix',
154 'boringssl/util/bot/perl-win32.zip',
155 'boringssl/util/bot/perl-win32/',
156 ],
157 },
158 {
Adam Langleye9ada862015-05-11 17:20:37 -0700159 'name': 'yasm_win32',
160 'pattern': '.',
Adam Vartanianbfcf3a72018-08-10 14:55:24 +0100161 'condition': 'host_os == "win" and not checkout_nasm',
Adam Langleye9ada862015-05-11 17:20:37 -0700162 'action': [ 'download_from_google_storage',
163 '--no_resume',
164 '--platform=win32',
165 '--no_auth',
166 '--bucket', 'chromium-tools',
167 '-s', 'boringssl/util/bot/yasm-win32.exe.sha1',
168 ],
169 },
170 {
Adam Vartanianbfcf3a72018-08-10 14:55:24 +0100171 'name': 'nasm_win32',
172 'pattern': '.',
173 'condition': 'host_os == "win" and checkout_nasm',
174 'action': [ 'download_from_google_storage',
175 '--no_resume',
176 '--platform=win32',
177 '--no_auth',
178 '--bucket', 'chromium-tools',
179 '-s', 'boringssl/util/bot/nasm-win32.exe.sha1',
180 ],
181 },
182 {
Adam Langleye9ada862015-05-11 17:20:37 -0700183 'name': 'win_toolchain',
184 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700185 'condition': 'host_os == "win"',
Adam Langleye9ada862015-05-11 17:20:37 -0700186 'action': [ 'python',
187 'boringssl/util/bot/vs_toolchain.py',
188 'update',
189 ],
190 },
191 {
192 'name': 'clang',
193 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700194 'condition': 'checkout_clang',
Adam Langleye9ada862015-05-11 17:20:37 -0700195 'action': [ 'python',
196 'boringssl/util/bot/update_clang.py',
197 ],
198 },
Adam Langleye9ada862015-05-11 17:20:37 -0700199 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700200 'name': 'sde_linux64',
Adam Langleye9ada862015-05-11 17:20:37 -0700201 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700202 'condition': 'checkout_sde and host_os == "linux"',
203 'action': [ 'download_from_google_storage',
204 '--no_resume',
205 '--bucket', 'chrome-boringssl-sde',
206 '-s', 'boringssl/util/bot/sde-linux64.tar.bz2.sha1'
Adam Langleye9ada862015-05-11 17:20:37 -0700207 ],
208 },
209 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700210 'name': 'sde_linux64_extract',
Adam Langleye9ada862015-05-11 17:20:37 -0700211 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700212 'condition': 'checkout_sde and host_os == "linux"',
Adam Langleye9ada862015-05-11 17:20:37 -0700213 'action': [ 'python',
214 'boringssl/util/bot/extract.py',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700215 'boringssl/util/bot/sde-linux64.tar.bz2',
216 'boringssl/util/bot/sde-linux64/',
Adam Langleye9ada862015-05-11 17:20:37 -0700217 ],
218 },
Robert Sloan4c22c5f2019-03-01 15:53:37 -0800219 {
220 'name': 'sde_win32',
221 'pattern': '.',
222 'condition': 'checkout_sde and host_os == "win"',
223 'action': [ 'download_from_google_storage',
224 '--no_resume',
225 '--bucket', 'chrome-boringssl-sde',
226 '-s', 'boringssl/util/bot/sde-win32.tar.bz2.sha1'
227 ],
228 },
229 {
230 'name': 'sde_win32_extract',
231 'pattern': '.',
232 'condition': 'checkout_sde and host_os == "win"',
233 'action': [ 'python',
234 'boringssl/util/bot/extract.py',
235 'boringssl/util/bot/sde-win32.tar.bz2',
236 'boringssl/util/bot/sde-win32/',
237 ],
238 },
Adam Langleye9ada862015-05-11 17:20:37 -0700239]