blob: 9930c80d452e4e186d61438af80aecb846e4eacf [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,
19 'checkout_fuzzer': False,
20 'checkout_sde': False,
Adam Langleye9ada862015-05-11 17:20:37 -070021}
22
23deps = {
Robert Sloan309a31e2018-01-29 10:22:47 -080024 'boringssl/util/bot/android_ndk': {
Robert Sloanab8b8882018-03-26 11:39:51 -070025 'url': Var('chromium_git') + '/android_ndk.git' + '@' + '635bc380968a76f6948fee65f80a0b28db53ae81',
Robert Sloan309a31e2018-01-29 10:22:47 -080026 'condition': 'checkout_android',
27 },
28
29'boringssl/util/bot/android_tools': {
Robert Sloanab8b8882018-03-26 11:39:51 -070030 'url': Var('chromium_git') + '/android_tools.git' + '@' + '9a70d48fcdd68cd0e7e968f342bd767ee6323bd1',
Robert Sloan921ef2c2017-10-17 09:02:20 -070031 'condition': 'checkout_android',
Robert Sloan8ff03552017-06-14 12:40:58 -070032 },
Robert Sloan921ef2c2017-10-17 09:02:20 -070033
34 'boringssl/util/bot/gyp':
35 Var('chromium_git') + '/external/gyp.git' + '@' + 'd61a9397e668fa9843c4aa7da9e79460fe590bfb',
36
37 'boringssl/util/bot/libFuzzer': {
Robert Sloan978112c2018-01-22 12:53:01 -080038 'url': Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git' + '@' + 'ba2c1cd6f87accb32b5dbce297387c56a2e53a2f',
Robert Sloan921ef2c2017-10-17 09:02:20 -070039 'condition': 'checkout_fuzzer',
David Benjamind316cba2016-06-02 16:17:39 -040040 },
41}
42
Steven Valdez909b19f2016-11-21 15:35:44 -050043recursedeps = [
44 # android_tools pulls in the NDK from a separate repository.
45 'boringssl/util/bot/android_tools',
46]
47
Adam Langleye9ada862015-05-11 17:20:37 -070048hooks = [
49 {
50 'name': 'cmake_linux64',
51 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -070052 'condition': 'host_os == "linux"',
Adam Langleye9ada862015-05-11 17:20:37 -070053 'action': [ 'download_from_google_storage',
54 '--no_resume',
55 '--platform=linux*',
56 '--no_auth',
57 '--bucket', 'chromium-tools',
58 '-s', 'boringssl/util/bot/cmake-linux64.tar.gz.sha1',
59 ],
60 },
61 {
Robert Sloan921ef2c2017-10-17 09:02:20 -070062 'name': 'cmake_linux64_extract',
63 'pattern': '.',
64 'condition': 'host_os == "linux"',
65 'action': [ 'python',
66 'boringssl/util/bot/extract.py',
67 'boringssl/util/bot/cmake-linux64.tar.gz',
68 'boringssl/util/bot/cmake-linux64/',
69 ],
70 },
71 {
Adam Langleye9ada862015-05-11 17:20:37 -070072 'name': 'cmake_mac',
73 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -070074 'condition': 'host_os == "mac"',
Adam Langleye9ada862015-05-11 17:20:37 -070075 'action': [ 'download_from_google_storage',
76 '--no_resume',
77 '--platform=darwin',
78 '--no_auth',
79 '--bucket', 'chromium-tools',
80 '-s', 'boringssl/util/bot/cmake-mac.tar.gz.sha1',
81 ],
82 },
83 {
Robert Sloan921ef2c2017-10-17 09:02:20 -070084 'name': 'cmake_mac_extract',
85 'pattern': '.',
86 'condition': 'host_os == "mac"',
87 'action': [ 'python',
88 'boringssl/util/bot/extract.py',
89 'boringssl/util/bot/cmake-mac.tar.gz',
90 'boringssl/util/bot/cmake-mac/',
91 ],
92 },
93 {
Adam Langleye9ada862015-05-11 17:20:37 -070094 'name': 'cmake_win32',
95 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -070096 'condition': 'host_os == "win"',
Adam Langleye9ada862015-05-11 17:20:37 -070097 'action': [ 'download_from_google_storage',
98 '--no_resume',
99 '--platform=win32',
100 '--no_auth',
101 '--bucket', 'chromium-tools',
102 '-s', 'boringssl/util/bot/cmake-win32.zip.sha1',
103 ],
104 },
105 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700106 'name': 'cmake_win32_extract',
107 'pattern': '.',
108 'condition': 'host_os == "win"',
109 'action': [ 'python',
110 'boringssl/util/bot/extract.py',
111 'boringssl/util/bot/cmake-win32.zip',
112 'boringssl/util/bot/cmake-win32/',
113 ],
114 },
115 {
Adam Langleye9ada862015-05-11 17:20:37 -0700116 'name': 'perl_win32',
117 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700118 'condition': 'host_os == "win"',
Adam Langleye9ada862015-05-11 17:20:37 -0700119 'action': [ 'download_from_google_storage',
120 '--no_resume',
121 '--platform=win32',
122 '--no_auth',
123 '--bucket', 'chromium-tools',
124 '-s', 'boringssl/util/bot/perl-win32.zip.sha1',
125 ],
126 },
127 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700128 'name': 'perl_win32_extract',
129 'pattern': '.',
130 'condition': 'host_os == "win"',
131 'action': [ 'python',
132 'boringssl/util/bot/extract.py',
133 '--no-prefix',
134 'boringssl/util/bot/perl-win32.zip',
135 'boringssl/util/bot/perl-win32/',
136 ],
137 },
138 {
Adam Langleye9ada862015-05-11 17:20:37 -0700139 'name': 'yasm_win32',
140 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700141 'condition': 'host_os == "win"',
Adam Langleye9ada862015-05-11 17:20:37 -0700142 'action': [ 'download_from_google_storage',
143 '--no_resume',
144 '--platform=win32',
145 '--no_auth',
146 '--bucket', 'chromium-tools',
147 '-s', 'boringssl/util/bot/yasm-win32.exe.sha1',
148 ],
149 },
150 {
151 'name': 'win_toolchain',
152 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700153 'condition': 'host_os == "win"',
Adam Langleye9ada862015-05-11 17:20:37 -0700154 'action': [ 'python',
155 'boringssl/util/bot/vs_toolchain.py',
156 'update',
157 ],
158 },
159 {
160 'name': 'clang',
161 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700162 'condition': 'checkout_clang',
Adam Langleye9ada862015-05-11 17:20:37 -0700163 'action': [ 'python',
164 'boringssl/util/bot/update_clang.py',
165 ],
166 },
Adam Langleye9ada862015-05-11 17:20:37 -0700167 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700168 'name': 'sde_linux64',
Adam Langleye9ada862015-05-11 17:20:37 -0700169 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700170 'condition': 'checkout_sde and host_os == "linux"',
171 'action': [ 'download_from_google_storage',
172 '--no_resume',
173 '--bucket', 'chrome-boringssl-sde',
174 '-s', 'boringssl/util/bot/sde-linux64.tar.bz2.sha1'
Adam Langleye9ada862015-05-11 17:20:37 -0700175 ],
176 },
177 {
Robert Sloan921ef2c2017-10-17 09:02:20 -0700178 'name': 'sde_linux64_extract',
Adam Langleye9ada862015-05-11 17:20:37 -0700179 'pattern': '.',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700180 'condition': 'checkout_sde and host_os == "linux"',
Adam Langleye9ada862015-05-11 17:20:37 -0700181 'action': [ 'python',
182 'boringssl/util/bot/extract.py',
Robert Sloan921ef2c2017-10-17 09:02:20 -0700183 'boringssl/util/bot/sde-linux64.tar.bz2',
184 'boringssl/util/bot/sde-linux64/',
Adam Langleye9ada862015-05-11 17:20:37 -0700185 ],
186 },
187]