blob: 3e3fed387db216b89072389f6fda463bb6c4e923 [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001# Note: The buildbots evaluate this file with CWD set to the parent
2# directory and assume that the root of the checkout is in ./v8/, so
3# all paths in here must match this assumption.
4
Rubin Xu7314a9f2021-02-10 00:04:48 +00005use_relative_paths = True
6
7gclient_gn_args_file = 'build/config/gclient_args.gni'
8gclient_gn_args = [
9 # TODO(https://crbug.com/1137662, https://crbug.com/1080854)
10 # Remove when migration is complete.
11 'checkout_fuchsia_for_arm64_host',
12 'checkout_google_benchmark',
13 'mac_xcode_version',
14]
15
Ben Murdochb8a8cc12014-11-26 15:28:44 +000016vars = {
Rubin Xu7314a9f2021-02-10 00:04:48 +000017 # Fetches only the SDK boot images which match at least one of the whitelist
18 # entries in a comma-separated list.
19 #
20 # Only the X64 and ARM64 QEMU images are downloaded by default. Developers
21 # that need to boot on other target architectures or devices can opt to
22 # download more boot images. Example of images include:
23 #
24 # Emulation:
25 # qemu.x64, qemu.arm64
26 # Hardware:
27 # generic.x64, generic.arm64
28 #
29 # Wildcards are supported (e.g. "qemu.*").
30 'checkout_fuchsia_boot_images': "qemu.x64,qemu.arm64",
31
32 # TODO(https://crbug.com/1137662, https://crbug.com/1080854)
33 # Remove when migration is complete.
34 # By default, do not check out files required to run fuchsia tests in
35 # qemu on linux-arm64 machines.
36 'checkout_fuchsia_for_arm64_host': False,
37
Rubin Xu2894c6a2019-02-07 16:01:35 +000038 'checkout_instrumented_libraries': False,
Rubin Xu7314a9f2021-02-10 00:04:48 +000039 'checkout_ittapi': False,
40 # Fetch clang-tidy into the same bin/ directory as our clang binary.
41 'checkout_clang_tidy': False,
Rubin Xu2894c6a2019-02-07 16:01:35 +000042 'chromium_url': 'https://chromium.googlesource.com',
Rubin Xu7314a9f2021-02-10 00:04:48 +000043 'android_url': 'https://android.googlesource.com',
Rubin Xu2894c6a2019-02-07 16:01:35 +000044 'download_gcmole': False,
45 'download_jsfunfuzz': False,
Rubin Xu2894c6a2019-02-07 16:01:35 +000046 'check_v8_header_includes': False,
Rubin Xu7314a9f2021-02-10 00:04:48 +000047
48 'checkout_google_benchmark' : False,
49
50 'mac_xcode_version': 'default',
51
52 # GN CIPD package version.
53 'gn_version': 'git_revision:53d92014bf94c3893886470a1c7c1289f8818db0',
54
55 # luci-go CIPD package version.
56 'luci_go': 'git_revision:1a022d3a4c50be4207ee93451255d71896416596',
57
58 # Three lines of non-changing comments so that
59 # the commit queue can handle CLs rolling android_sdk_build-tools_version
60 # and whatever else without interference from each other.
61 'android_sdk_build-tools_version': '8LZujEmLjSh0g3JciDA3cslSptxKs9HOa_iUPXkOeYQC',
62 # Three lines of non-changing comments so that
63 # the commit queue can handle CLs rolling android_sdk_emulator_version
64 # and whatever else without interference from each other.
65 'android_sdk_emulator_version': 'A4EvXZUIuQho0QRDJopMUpgyp6NA3aiDQjGKPUKbowMC',
66 # Three lines of non-changing comments so that
67 # the commit queue can handle CLs rolling android_sdk_extras_version
68 # and whatever else without interference from each other.
69 'android_sdk_extras_version': 'ppQ4TnqDvBHQ3lXx5KPq97egzF5X2FFyOrVHkGmiTMQC',
70 # Three lines of non-changing comments so that
71 # the commit queue can handle CLs rolling android_sdk_patcher_version
72 # and whatever else without interference from each other.
73 'android_sdk_patcher_version': 'I6FNMhrXlpB-E1lOhMlvld7xt9lBVNOO83KIluXDyA0C',
74 # Three lines of non-changing comments so that
75 # the commit queue can handle CLs rolling android_sdk_platform-tools_version
76 # and whatever else without interference from each other.
77 'android_sdk_platform-tools_version': '8tF0AOj7Dwlv4j7_nfkhxWB0jzrvWWYjEIpirt8FIWYC',
78 # Three lines of non-changing comments so that
79 # the commit queue can handle CLs rolling android_sdk_platforms_version
80 # and whatever else without interference from each other.
81 'android_sdk_platforms_version': 'YMUu9EHNZ__2Xcxl-KsaSf-dI5TMt_P62IseUVsxktMC',
82 # Three lines of non-changing comments so that
83 # the commit queue can handle CLs rolling android_sdk_sources_version
84 # and whatever else without interference from each other.
85 'android_sdk_sources_version': '4gxhM8E62bvZpQs7Q3d0DinQaW0RLCIefhXrQBFkNy8C',
86 # Three lines of non-changing comments so that
87 # the commit queue can handle CLs rolling android_sdk_tools-lint_version
88 # and whatever else without interference from each other.
89 'android_sdk_cmdline-tools_version': 'V__2Ycej-H2-6AcXX5A3gi7sIk74SuN44PBm2uC_N1sC',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000090}
91
92deps = {
Rubin Xu7314a9f2021-02-10 00:04:48 +000093 'build':
94 Var('chromium_url') + '/chromium/src/build.git' + '@' + '2101eff1ac4bfd25f2dfa71ad632a600a38c1ed9',
95 'third_party/depot_tools':
96 Var('chromium_url') + '/chromium/tools/depot_tools.git' + '@' + '982b2a757087c2519e42b82b93cbfe5adf43cdd5',
97 'third_party/icu':
98 Var('chromium_url') + '/chromium/deps/icu.git' + '@' + 'c2a4cae149aae7fd30c4cbe3cf1b30df03b386f1',
99 'third_party/instrumented_libraries':
100 Var('chromium_url') + '/chromium/src/third_party/instrumented_libraries.git' + '@' + '6ba978ccb754d270b6cd12da58c8269b617e4f6e',
101 'buildtools':
102 Var('chromium_url') + '/chromium/src/buildtools.git' + '@' + '6302c1175607a436e18947a5abe9df2209e845fc',
103 'buildtools/clang_format/script':
104 Var('chromium_url') + '/chromium/llvm-project/cfe/tools/clang-format.git' + '@' + '96636aa0e9f047f17447f2d45a094d0b59ed7917',
105 'buildtools/linux64': {
106 'packages': [
107 {
108 'package': 'gn/gn/linux-amd64',
109 'version': Var('gn_version'),
110 }
111 ],
112 'dep_type': 'cipd',
113 'condition': 'host_os == "linux"',
114 },
115 'buildtools/mac': {
116 'packages': [
117 {
118 'package': 'gn/gn/mac-amd64',
119 'version': Var('gn_version'),
120 }
121 ],
122 'dep_type': 'cipd',
123 'condition': 'host_os == "mac"',
124 },
125 'buildtools/third_party/libc++/trunk':
126 Var('chromium_url') + '/external/github.com/llvm/llvm-project/libcxx.git' + '@' + 'd9040c75cfea5928c804ab7c235fed06a63f743a',
127 'buildtools/third_party/libc++abi/trunk':
128 Var('chromium_url') + '/external/github.com/llvm/llvm-project/libcxxabi.git' + '@' + '196ba1aaa8ac285d94f4ea8d9836390a45360533',
129 'buildtools/third_party/libunwind/trunk':
130 Var('chromium_url') + '/external/github.com/llvm/llvm-project/libunwind.git' + '@' + 'd999d54f4bca789543a2eb6c995af2d9b5a1f3ed',
131 'buildtools/win': {
132 'packages': [
133 {
134 'package': 'gn/gn/windows-amd64',
135 'version': Var('gn_version'),
136 }
137 ],
138 'dep_type': 'cipd',
139 'condition': 'host_os == "win"',
140 },
141 'base/trace_event/common':
142 Var('chromium_url') + '/chromium/src/base/trace_event/common.git' + '@' + 'eb94f1c7aa96207f469008f29989a43feb2718f8',
143 'third_party/android_ndk': {
144 'url': Var('chromium_url') + '/android_ndk.git' + '@' + '27c0a8d090c666a50e40fceb4ee5b40b1a2d3f87',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000145 'condition': 'checkout_android',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000146 },
Rubin Xu7314a9f2021-02-10 00:04:48 +0000147 'third_party/android_platform': {
148 'url': Var('chromium_url') + '/chromium/src/third_party/android_platform.git' + '@' + 'ef64306e7772dea22df5f98102e6288da3510843',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000149 'condition': 'checkout_android',
150 },
Rubin Xu7314a9f2021-02-10 00:04:48 +0000151 'third_party/android_sdk/public': {
152 'packages': [
153 {
154 'package': 'chromium/third_party/android_sdk/public/build-tools/30.0.1',
155 'version': Var('android_sdk_build-tools_version'),
156 },
157 {
158 'package': 'chromium/third_party/android_sdk/public/emulator',
159 'version': Var('android_sdk_emulator_version'),
160 },
161 {
162 'package': 'chromium/third_party/android_sdk/public/extras',
163 'version': Var('android_sdk_extras_version'),
164 },
165 {
166 'package': 'chromium/third_party/android_sdk/public/patcher',
167 'version': Var('android_sdk_patcher_version'),
168 },
169 {
170 'package': 'chromium/third_party/android_sdk/public/platform-tools',
171 'version': Var('android_sdk_platform-tools_version'),
172 },
173 {
174 'package': 'chromium/third_party/android_sdk/public/platforms/android-30',
175 'version': Var('android_sdk_platforms_version'),
176 },
177 {
178 'package': 'chromium/third_party/android_sdk/public/sources/android-29',
179 'version': Var('android_sdk_sources_version'),
180 },
181 {
182 'package': 'chromium/third_party/android_sdk/public/cmdline-tools',
183 'version': Var('android_sdk_cmdline-tools_version'),
184 },
185 ],
186 'condition': 'checkout_android',
187 'dep_type': 'cipd',
188 },
189 'third_party/catapult': {
190 'url': Var('chromium_url') + '/catapult.git' + '@' + '434681c2378b686117c2b003a58c54d78f22185f',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000191 'condition': 'checkout_android',
192 },
Rubin Xu7314a9f2021-02-10 00:04:48 +0000193 'third_party/colorama/src': {
Rubin Xu2894c6a2019-02-07 16:01:35 +0000194 'url': Var('chromium_url') + '/external/colorama.git' + '@' + '799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',
195 'condition': 'checkout_android',
196 },
Rubin Xu7314a9f2021-02-10 00:04:48 +0000197 'third_party/fuchsia-sdk': {
198 'url': Var('chromium_url') + '/chromium/src/third_party/fuchsia-sdk.git' + '@' + 'f8df9ff79b878d1998970cc04a197061069e48ce',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000199 'condition': 'checkout_fuchsia',
200 },
Rubin Xu7314a9f2021-02-10 00:04:48 +0000201 'third_party/googletest/src':
202 Var('chromium_url') + '/external/github.com/google/googletest.git' + '@' + '4fe018038f87675c083d0cfb6a6b57c274fb1753',
203 'third_party/google_benchmark/src': {
204 'url': Var('chromium_url') + '/external/github.com/google/benchmark.git' + '@' + '7f27afe83b82f3a98baf58ef595814b9d42a5b2b',
205 'condition': 'checkout_google_benchmark',
206 },
207 'third_party/jinja2':
208 Var('chromium_url') + '/chromium/src/third_party/jinja2.git' + '@' + 'a82a4944a7f2496639f34a89c9923be5908b80aa',
209 'third_party/markupsafe':
210 Var('chromium_url') + '/chromium/src/third_party/markupsafe.git' + '@' + '0944e71f4b2cb9a871bcbe353f95e889b64a611a',
211 'tools/swarming_client':
212 Var('chromium_url') + '/infra/luci/client-py.git' + '@' + 'd46ea7635f2911208268170512cb611412488fd8',
213 'test/benchmarks/data':
Rubin Xu2894c6a2019-02-07 16:01:35 +0000214 Var('chromium_url') + '/v8/deps/third_party/benchmarks.git' + '@' + '05d7188267b4560491ff9155c5ee13e207ecd65f',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000215 'test/mozilla/data':
Rubin Xu2894c6a2019-02-07 16:01:35 +0000216 Var('chromium_url') + '/v8/deps/third_party/mozilla-tests.git' + '@' + 'f6c578a10ea707b1a8ab0b88943fe5115ce2b9be',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000217 'test/test262/data':
218 Var('chromium_url') + '/external/github.com/tc39/test262.git' + '@' + '0e7319c015fe935594f8bcafaedb0c94f7fec1df',
219 'test/test262/harness':
220 Var('chromium_url') + '/external/github.com/test262-utils/test262-harness-py.git' + '@' + '4555345a943d0c99a9461182705543fb171dda4b',
221 'third_party/qemu-linux-x64': {
Rubin Xu2894c6a2019-02-07 16:01:35 +0000222 'packages': [
223 {
224 'package': 'fuchsia/qemu/linux-amd64',
225 'version': '9cc486c5b18a0be515c39a280ca9a309c54cf994'
226 },
227 ],
Rubin Xu7314a9f2021-02-10 00:04:48 +0000228 'condition': 'host_os == "linux" and checkout_fuchsia',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000229 'dep_type': 'cipd',
230 },
Rubin Xu7314a9f2021-02-10 00:04:48 +0000231 'third_party/qemu-mac-x64': {
232 'packages': [
233 {
234 'package': 'fuchsia/qemu/mac-amd64',
235 'version': '2d3358ae9a569b2d4a474f498b32b202a152134f'
236 },
237 ],
238 'condition': 'host_os == "mac" and checkout_fuchsia',
239 'dep_type': 'cipd',
240 },
241 'third_party/aemu-linux-x64': {
242 'packages': [
243 {
244 'package': 'fuchsia/third_party/aemu/linux-amd64',
245 'version': 'xP4TXh9wWGTG0qr4y6eFcUO_0HOBmt3vorgtVmpwBJsC'
246 },
247 ],
248 'condition': 'host_os == "linux" and checkout_fuchsia',
249 'dep_type': 'cipd',
250 },
251 'third_party/aemu-mac-x64': {
252 'packages': [
253 {
254 'package': 'fuchsia/third_party/aemu/mac-amd64',
255 'version': 'T9bWxf8aUC5TwCFgPxpuW29Mfy-7Z9xCfXB9QO8MfU0C'
256 },
257 ],
258 'condition': 'host_os == "mac" and checkout_fuchsia',
259 'dep_type': 'cipd',
260 },
261 'tools/clang':
262 Var('chromium_url') + '/chromium/src/tools/clang.git' + '@' + 'a37c0858a645506c8e9d3bebab1ed5a5b1f9df61',
263 'tools/luci-go': {
264 'packages': [
265 {
266 'package': 'infra/tools/luci/isolate/${{platform}}',
267 'version': Var('luci_go'),
268 },
269 {
270 'package': 'infra/tools/luci/isolated/${{platform}}',
271 'version': Var('luci_go'),
272 },
273 {
274 'package': 'infra/tools/luci/swarming/${{platform}}',
275 'version': Var('luci_go'),
276 },
277 ],
278 'condition': 'host_cpu != "s390" and host_os != "aix"',
279 'dep_type': 'cipd',
280 },
281 'tools/clang/dsymutil': {
282 'packages': [
283 {
284 'package': 'chromium/llvm-build-tools/dsymutil',
285 'version': 'M56jPzDv1620Rnm__jTMYS62Zi8rxHVq7yw0qeBFEgkC',
286 }
287 ],
288 'condition': 'checkout_mac',
289 'dep_type': 'cipd',
290 },
291 'third_party/perfetto':
292 Var('android_url') + '/platform/external/perfetto.git' + '@' + '7cdc44f903d3bcfd1d0f67188bfa797a24756868',
293 'third_party/protobuf':
294 Var('chromium_url') + '/external/github.com/google/protobuf'+ '@' + 'b68a347f56137b4b1a746e8c7438495a6ac1bd91',
295 'third_party/zlib':
296 Var('chromium_url') + '/chromium/src/third_party/zlib.git'+ '@' + 'e84c9a3fd75fdc39055b7ae27d6ec508e50bd39e',
297 'third_party/jsoncpp/source':
298 Var('chromium_url') + '/external/github.com/open-source-parsers/jsoncpp.git'+ '@' + '9059f5cad030ba11d37818847443a53918c327b1',
299 'third_party/ittapi': {
300 # Force checkout ittapi libraries to pass v8 header includes check on
301 # bots that has check_v8_header_includes enabled.
302 'url': Var('chromium_url') + '/external/github.com/intel/ittapi' + '@' + 'b4ae0122ba749163096058b4f1bb065bf4a7de94',
303 'condition': "checkout_ittapi or check_v8_header_includes",
304 },
305 'third_party/requests': {
306 'url': Var('chromium_url') + '/external/github.com/kennethreitz/requests.git' + '@' + 'bfb93d4b7d269a8735f1b216093e7e9a9fdc4517',
307 'condition': 'checkout_android',
308 },
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000309}
310
311include_rules = [
312 # Everybody can use some things.
Rubin Xu2894c6a2019-02-07 16:01:35 +0000313 '+include',
314 '+unicode',
315 '+third_party/fdlibm',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000316 '+third_party/ittapi/include'
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000317]
318
319# checkdeps.py shouldn't check for includes in these directories:
320skip_child_includes = [
Rubin Xu2894c6a2019-02-07 16:01:35 +0000321 'build',
322 'third_party',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000323]
324
325hooks = [
Ben Murdoch014dc512016-03-22 12:00:34 +0000326 {
Rubin Xu2894c6a2019-02-07 16:01:35 +0000327 # Ensure that the DEPS'd "depot_tools" has its self-update capability
328 # disabled.
329 'name': 'disable_depot_tools_selfupdate',
330 'pattern': '.',
331 'action': [
332 'python',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000333 'third_party/depot_tools/update_depot_tools_toggle.py',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000334 '--disable',
335 ],
336 },
337 {
Ben Murdoch014dc512016-03-22 12:00:34 +0000338 # This clobbers when necessary (based on get_landmines.py). It must be the
339 # first hook so that other things that get/generate into the output
340 # directory will not subsequently be clobbered.
341 'name': 'landmines',
342 'pattern': '.',
343 'action': [
344 'python',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000345 'build/landmines.py',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000346 '--landmine-scripts',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000347 'tools/get_landmines.py',
Ben Murdoch014dc512016-03-22 12:00:34 +0000348 ],
349 },
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000350 # Pull clang-format binaries using checked-in hashes.
351 {
Rubin Xu2894c6a2019-02-07 16:01:35 +0000352 'name': 'clang_format_win',
353 'pattern': '.',
354 'condition': 'host_os == "win"',
355 'action': [ 'download_from_google_storage',
356 '--no_resume',
357 '--platform=win32',
358 '--no_auth',
359 '--bucket', 'chromium-clang-format',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000360 '-s', 'buildtools/win/clang-format.exe.sha1',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000361 ],
362 },
363 {
Rubin Xu2894c6a2019-02-07 16:01:35 +0000364 'name': 'clang_format_mac',
365 'pattern': '.',
366 'condition': 'host_os == "mac"',
367 'action': [ 'download_from_google_storage',
368 '--no_resume',
369 '--platform=darwin',
370 '--no_auth',
371 '--bucket', 'chromium-clang-format',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000372 '-s', 'buildtools/mac/clang-format.sha1',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000373 ],
374 },
375 {
Rubin Xu2894c6a2019-02-07 16:01:35 +0000376 'name': 'clang_format_linux',
377 'pattern': '.',
378 'condition': 'host_os == "linux"',
379 'action': [ 'download_from_google_storage',
380 '--no_resume',
381 '--platform=linux*',
382 '--no_auth',
383 '--bucket', 'chromium-clang-format',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000384 '-s', 'buildtools/linux64/clang-format.sha1',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000385 ],
386 },
Ben Murdoch109988c2016-05-18 11:27:45 +0100387 {
388 'name': 'gcmole',
389 'pattern': '.',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000390 'condition': 'download_gcmole',
391 'action': [ 'download_from_google_storage',
392 '--bucket', 'chrome-v8-gcmole',
393 '-u', '--no_resume',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000394 '-s', 'tools/gcmole/gcmole-tools.tar.gz.sha1',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000395 '--platform=linux*',
Ben Murdoch109988c2016-05-18 11:27:45 +0100396 ],
397 },
398 {
399 'name': 'jsfunfuzz',
400 'pattern': '.',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000401 'condition': 'download_jsfunfuzz',
402 'action': [ 'download_from_google_storage',
403 '--bucket', 'chrome-v8-jsfunfuzz',
404 '-u', '--no_resume',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000405 '-s', 'tools/jsfunfuzz/jsfunfuzz.tar.gz.sha1',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000406 '--platform=linux*',
Ben Murdoch109988c2016-05-18 11:27:45 +0100407 ],
408 },
Rubin Xu2894c6a2019-02-07 16:01:35 +0000409 {
410 'name': 'wasm_spec_tests',
411 'pattern': '.',
412 'action': [ 'download_from_google_storage',
413 '--no_resume',
414 '--no_auth',
415 '-u',
416 '--bucket', 'v8-wasm-spec-tests',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000417 '-s', 'test/wasm-spec-tests/tests.tar.gz.sha1',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000418 ],
419 },
420 {
Rubin Xu7314a9f2021-02-10 00:04:48 +0000421 'name': 'wasm_js',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000422 'pattern': '.',
423 'action': [ 'download_from_google_storage',
424 '--no_resume',
425 '--no_auth',
426 '-u',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000427 '--bucket', 'v8-wasm-spec-tests',
428 '-s', 'test/wasm-js/tests.tar.gz.sha1',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000429 ],
430 },
431 {
432 'name': 'sysroot_arm',
433 'pattern': '.',
434 'condition': '(checkout_linux and checkout_arm)',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000435 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000436 '--arch=arm'],
437 },
438 {
439 'name': 'sysroot_arm64',
440 'pattern': '.',
441 'condition': '(checkout_linux and checkout_arm64)',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000442 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000443 '--arch=arm64'],
444 },
445 {
446 'name': 'sysroot_x86',
447 'pattern': '.',
448 'condition': '(checkout_linux and (checkout_x86 or checkout_x64))',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000449 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000450 '--arch=x86'],
451 },
452 {
Rubin Xu2894c6a2019-02-07 16:01:35 +0000453 'name': 'sysroot_x64',
454 'pattern': '.',
455 'condition': 'checkout_linux and checkout_x64',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000456 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000457 '--arch=x64'],
458 },
459 {
460 'name': 'msan_chained_origins',
461 'pattern': '.',
462 'condition': 'checkout_instrumented_libraries',
463 'action': [ 'download_from_google_storage',
464 '--no_resume',
465 '--no_auth',
466 '--bucket', 'chromium-instrumented-libraries',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000467 '-s', 'third_party/instrumented_libraries/binaries/msan-chained-origins-trusty.tgz.sha1',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000468 ],
469 },
470 {
471 'name': 'msan_no_origins',
472 'pattern': '.',
473 'condition': 'checkout_instrumented_libraries',
474 'action': [ 'download_from_google_storage',
475 '--no_resume',
476 '--no_auth',
477 '--bucket', 'chromium-instrumented-libraries',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000478 '-s', 'third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz.sha1',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000479 ],
480 },
481 {
Ben Murdoch014dc512016-03-22 12:00:34 +0000482 # Update the Windows toolchain if necessary.
483 'name': 'win_toolchain',
484 'pattern': '.',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000485 'condition': 'checkout_win',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000486 'action': ['python', 'build/vs_toolchain.py', 'update'],
Ben Murdoch014dc512016-03-22 12:00:34 +0000487 },
Rubin Xu2894c6a2019-02-07 16:01:35 +0000488 {
489 # Update the Mac toolchain if necessary.
490 'name': 'mac_toolchain',
491 'pattern': '.',
492 'condition': 'checkout_mac',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000493 'action': ['python', 'build/mac_toolchain.py',
494 '--xcode-version', Var('mac_xcode_version')],
Rubin Xu2894c6a2019-02-07 16:01:35 +0000495 },
Ben Murdoch014dc512016-03-22 12:00:34 +0000496 # Pull binutils for linux, enabled debug fission for faster linking /
497 # debugging when used with clang on Ubuntu Precise.
498 # https://code.google.com/p/chromium/issues/detail?id=352046
499 {
500 'name': 'binutils',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000501 'pattern': 'third_party/binutils',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000502 'condition': 'host_os == "linux"',
Ben Murdoch014dc512016-03-22 12:00:34 +0000503 'action': [
504 'python',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000505 'third_party/binutils/download.py',
Ben Murdoch014dc512016-03-22 12:00:34 +0000506 ],
507 },
508 {
Emily Bernier958fae72015-03-24 16:35:39 -0400509 # Note: On Win, this should run after win_toolchain, as it may use it.
510 'name': 'clang',
511 'pattern': '.',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000512 # clang not supported on aix
513 'condition': 'host_os != "aix"',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000514 'action': ['python', 'tools/clang/scripts/update.py'],
515 },
516 {
517 'name': 'clang_tidy',
518 'pattern': '.',
519 'condition': 'checkout_clang_tidy',
520 'action': ['python', 'tools/clang/scripts/update.py',
521 '--package=clang-tidy'],
Emily Bernier958fae72015-03-24 16:35:39 -0400522 },
523 {
Rubin Xu2894c6a2019-02-07 16:01:35 +0000524 # Update LASTCHANGE.
525 'name': 'lastchange',
526 'pattern': '.',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000527 'action': ['python', 'build/util/lastchange.py',
528 '-o', 'build/util/LASTCHANGE'],
Rubin Xu2894c6a2019-02-07 16:01:35 +0000529 },
530 {
Rubin Xu7314a9f2021-02-10 00:04:48 +0000531 'name': 'Download Fuchsia SDK',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000532 'pattern': '.',
533 'condition': 'checkout_fuchsia',
534 'action': [
535 'python',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000536 'build/fuchsia/update_sdk.py',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000537 ],
538 },
539 {
Rubin Xu7314a9f2021-02-10 00:04:48 +0000540 'name': 'Download Fuchsia system images',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000541 'pattern': '.',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000542 'condition': 'checkout_fuchsia',
543 'action': [
544 'python',
545 'build/fuchsia/update_images.py',
546 '--boot-images={checkout_fuchsia_boot_images}',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000547 ],
548 },
Rubin Xu7314a9f2021-02-10 00:04:48 +0000549 {
550 # Mac doesn't use lld so it's not included in the default clang bundle
551 # there. However, lld is need in Fuchsia cross builds, so
552 # download it there.
553 # Should run after the clang hook.
554 'name': 'lld/mac',
555 'pattern': '.',
556 'condition': 'host_os == "mac" and checkout_fuchsia',
557 'action': ['python', 'tools/clang/scripts/update.py',
558 '--package=lld_mac'],
559 },
560 {
561 # Mac does not have llvm-objdump, download it for cross builds in Fuchsia.
562 'name': 'llvm-objdump',
563 'pattern': '.',
564 'condition': 'host_os == "mac" and checkout_fuchsia',
565 'action': ['python', 'tools/clang/scripts/update.py',
566 '--package=objdump'],
567 },
Rubin Xu2894c6a2019-02-07 16:01:35 +0000568 # Download and initialize "vpython" VirtualEnv environment packages.
569 {
570 'name': 'vpython_common',
571 'pattern': '.',
572 'condition': 'checkout_android',
573 'action': [ 'vpython',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000574 '-vpython-spec', '.vpython',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000575 '-vpython-tool', 'install',
576 ],
577 },
578 {
579 'name': 'check_v8_header_includes',
580 'pattern': '.',
581 'condition': 'check_v8_header_includes',
582 'action': [
583 'python',
Rubin Xu7314a9f2021-02-10 00:04:48 +0000584 'tools/generate-header-include-checks.py',
Rubin Xu2894c6a2019-02-07 16:01:35 +0000585 ],
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000586 },
587]