blob: 1eb563deb318f5e3bb7f5e8ac2ea0f4e485d4429 [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,
Adam Langleye9ada862015-05-11 17:20:37 -070022}
23
24deps = {
Robert Sloan309a31e2018-01-29 10:22:47 -080025 'boringssl/util/bot/android_ndk': {
Robert Sloanf573be72018-09-17 15:29:11 -070026 'url': Var('chromium_git') + '/android_ndk.git' + '@' + '4e2cea441bfd43f0863d14f57b1e1844260b9884',
Robert Sloan309a31e2018-01-29 10:22:47 -080027 'condition': 'checkout_android',
28 },
29
Srinivas Paladugudd42a612019-08-09 19:30:39 +000030 'boringssl/util/bot/android_tools': {
31 'url': Var('chromium_git') + '/android_tools.git' + '@' + '347a7c8078a009e98995985b7ab6ec6b35696dea',
32 'condition': 'checkout_android',
Robert Sloan8ff03552017-06-14 12:40:58 -070033 },
Robert Sloan921ef2c2017-10-17 09:02:20 -070034
35 'boringssl/util/bot/gyp':
36 Var('chromium_git') + '/external/gyp.git' + '@' + 'd61a9397e668fa9843c4aa7da9e79460fe590bfb',
37
Robert Sloan4c22c5f2019-03-01 15:53:37 -080038 'boringssl/util/bot/libFuzzer': {
Srinivas Paladugudd42a612019-08-09 19:30:39 +000039 'url': Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git' +'@' + 'e847d8a9b47158695593d5693b0f69250472b229',
Robert Sloan4c22c5f2019-03-01 15:53:37 -080040 'condition': 'checkout_fuzzer',
41 },
42
Adam Vartanianbfcf3a72018-08-10 14:55:24 +010043 # Update the following revisions from
Robert Sloan4726ed32019-04-08 12:43:32 -070044 # https://chromium.googlesource.com/chromium/src/+/master/buildtools/DEPS
Adam Vartanianbfcf3a72018-08-10 14:55:24 +010045 'boringssl/util/bot/libcxx': {
Srinivas Paladugudd42a612019-08-09 19:30:39 +000046 'url': Var('chromium_git') + '/chromium/llvm-project/libcxx.git' + '@' + '955113db37563c8632e31ddcff2047845553d7ff',
Adam Vartanianbfcf3a72018-08-10 14:55:24 +010047 'condition': 'checkout_libcxx',
48 },
49 'boringssl/util/bot/libcxxabi': {
Robert Sloan4726ed32019-04-08 12:43:32 -070050 'url': Var('chromium_git') + '/chromium/llvm-project/libcxxabi.git' + '@' + '0d529660e32d77d9111912d73f2c74fc5fa2a858',
Adam Vartanianbfcf3a72018-08-10 14:55:24 +010051 'condition': 'checkout_libcxx',
52 },
David Benjamind316cba2016-06-02 16:17:39 -040053}
54
Steven Valdez909b19f2016-11-21 15:35:44 -050055recursedeps = [
56 # android_tools pulls in the NDK from a separate repository.
57 'boringssl/util/bot/android_tools',
58]
59
Adam Langleye9ada862015-05-11 17:20:37 -070060hooks = [
61 {
62 'name': 'cmake_linux64',
63 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -070064 'condition': 'host_os == "linux"',
Adam Langleye9ada862015-05-11 17:20:37 -070065 'action': [ 'download_from_google_storage',
66 '--no_resume',
67 '--platform=linux*',
68 '--no_auth',
69 '--bucket', 'chromium-tools',
70 '-s', 'boringssl/util/bot/cmake-linux64.tar.gz.sha1',
71 ],
72 },
73 {
Robert Sloan921ef2c2017-10-17 09:02:20 -070074 'name': 'cmake_linux64_extract',
75 'pattern': '.',
76 'condition': 'host_os == "linux"',
77 'action': [ 'python',
78 'boringssl/util/bot/extract.py',
79 'boringssl/util/bot/cmake-linux64.tar.gz',
80 'boringssl/util/bot/cmake-linux64/',
81 ],
82 },
83 {
Adam Langleye9ada862015-05-11 17:20:37 -070084 'name': 'cmake_mac',
85 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -070086 'condition': 'host_os == "mac"',
Adam Langleye9ada862015-05-11 17:20:37 -070087 'action': [ 'download_from_google_storage',
88 '--no_resume',
89 '--platform=darwin',
90 '--no_auth',
91 '--bucket', 'chromium-tools',
92 '-s', 'boringssl/util/bot/cmake-mac.tar.gz.sha1',
93 ],
94 },
95 {
Robert Sloan921ef2c2017-10-17 09:02:20 -070096 'name': 'cmake_mac_extract',
97 'pattern': '.',
98 'condition': 'host_os == "mac"',
99 'action': [ 'python',
100 'boringssl/util/bot/extract.py',
101 'boringssl/util/bot/cmake-mac.tar.gz',
102 'boringssl/util/bot/cmake-mac/',
103 ],
104 },
105 {
Adam Langleye9ada862015-05-11 17:20:37 -0700106 'name': 'cmake_win32',
107 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700108 'condition': 'host_os == "win"',
Adam Langleye9ada862015-05-11 17:20:37 -0700109 'action': [ 'download_from_google_storage',
110 '--no_resume',
111 '--platform=win32',
112 '--no_auth',
113 '--bucket', 'chromium-tools',
114 '-s', 'boringssl/util/bot/cmake-win32.zip.sha1',
115 ],
116 },
117 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700118 'name': 'cmake_win32_extract',
119 'pattern': '.',
120 'condition': 'host_os == "win"',
121 'action': [ 'python',
122 'boringssl/util/bot/extract.py',
123 'boringssl/util/bot/cmake-win32.zip',
124 'boringssl/util/bot/cmake-win32/',
125 ],
126 },
127 {
Adam Langleye9ada862015-05-11 17:20:37 -0700128 'name': 'perl_win32',
129 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700130 'condition': 'host_os == "win"',
Adam Langleye9ada862015-05-11 17:20:37 -0700131 'action': [ 'download_from_google_storage',
132 '--no_resume',
133 '--platform=win32',
134 '--no_auth',
135 '--bucket', 'chromium-tools',
136 '-s', 'boringssl/util/bot/perl-win32.zip.sha1',
137 ],
138 },
139 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700140 'name': 'perl_win32_extract',
141 'pattern': '.',
142 'condition': 'host_os == "win"',
143 'action': [ 'python',
144 'boringssl/util/bot/extract.py',
145 '--no-prefix',
146 'boringssl/util/bot/perl-win32.zip',
147 'boringssl/util/bot/perl-win32/',
148 ],
149 },
150 {
Adam Langleye9ada862015-05-11 17:20:37 -0700151 'name': 'yasm_win32',
152 'pattern': '.',
Adam Vartanianbfcf3a72018-08-10 14:55:24 +0100153 'condition': 'host_os == "win" and not checkout_nasm',
Adam Langleye9ada862015-05-11 17:20:37 -0700154 'action': [ 'download_from_google_storage',
155 '--no_resume',
156 '--platform=win32',
157 '--no_auth',
158 '--bucket', 'chromium-tools',
159 '-s', 'boringssl/util/bot/yasm-win32.exe.sha1',
160 ],
161 },
162 {
Adam Vartanianbfcf3a72018-08-10 14:55:24 +0100163 'name': 'nasm_win32',
164 'pattern': '.',
165 'condition': 'host_os == "win" and checkout_nasm',
166 'action': [ 'download_from_google_storage',
167 '--no_resume',
168 '--platform=win32',
169 '--no_auth',
170 '--bucket', 'chromium-tools',
171 '-s', 'boringssl/util/bot/nasm-win32.exe.sha1',
172 ],
173 },
174 {
Adam Langleye9ada862015-05-11 17:20:37 -0700175 'name': 'win_toolchain',
176 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700177 'condition': 'host_os == "win"',
Adam Langleye9ada862015-05-11 17:20:37 -0700178 'action': [ 'python',
179 'boringssl/util/bot/vs_toolchain.py',
180 'update',
181 ],
182 },
183 {
184 'name': 'clang',
185 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700186 'condition': 'checkout_clang',
Adam Langleye9ada862015-05-11 17:20:37 -0700187 'action': [ 'python',
188 'boringssl/util/bot/update_clang.py',
189 ],
190 },
Adam Langleye9ada862015-05-11 17:20:37 -0700191 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700192 'name': 'sde_linux64',
Adam Langleye9ada862015-05-11 17:20:37 -0700193 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700194 'condition': 'checkout_sde and host_os == "linux"',
195 'action': [ 'download_from_google_storage',
196 '--no_resume',
197 '--bucket', 'chrome-boringssl-sde',
198 '-s', 'boringssl/util/bot/sde-linux64.tar.bz2.sha1'
Adam Langleye9ada862015-05-11 17:20:37 -0700199 ],
200 },
201 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700202 'name': 'sde_linux64_extract',
Adam Langleye9ada862015-05-11 17:20:37 -0700203 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700204 'condition': 'checkout_sde and host_os == "linux"',
Adam Langleye9ada862015-05-11 17:20:37 -0700205 'action': [ 'python',
206 'boringssl/util/bot/extract.py',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700207 'boringssl/util/bot/sde-linux64.tar.bz2',
208 'boringssl/util/bot/sde-linux64/',
Adam Langleye9ada862015-05-11 17:20:37 -0700209 ],
210 },
Robert Sloan4c22c5f2019-03-01 15:53:37 -0800211 {
212 'name': 'sde_win32',
213 'pattern': '.',
214 'condition': 'checkout_sde and host_os == "win"',
215 'action': [ 'download_from_google_storage',
216 '--no_resume',
217 '--bucket', 'chrome-boringssl-sde',
218 '-s', 'boringssl/util/bot/sde-win32.tar.bz2.sha1'
219 ],
220 },
221 {
222 'name': 'sde_win32_extract',
223 'pattern': '.',
224 'condition': 'checkout_sde and host_os == "win"',
225 'action': [ 'python',
226 'boringssl/util/bot/extract.py',
227 'boringssl/util/bot/sde-win32.tar.bz2',
228 'boringssl/util/bot/sde-win32/',
229 ],
230 },
Adam Langleye9ada862015-05-11 17:20:37 -0700231]