blob: 11133701656f57968a14f26246c274fd91830665 [file] [log] [blame]
Morten Krogh-Jespersen64740202019-02-07 13:06:04 +01001#!/usr/bin/env python
2# Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file
3# for details. All rights reserved. Use of this source code is governed by a
4# BSD-style license that can be found in the LICENSE file.
5
6# Utility script to make it easier to update what golem builds.
7
8import gradle
9import sys
10import utils
Morten Krogh-Jespersenc924e1b2019-04-05 15:04:36 +020011import os
Morten Krogh-Jespersen64740202019-02-07 13:06:04 +010012
13BUILD_TARGETS = ['downloadDeps', 'downloadAndroidCts', 'downloadDx']
14
15def Main():
16 gradle.RunGradle(BUILD_TARGETS)
Morten Krogh-Jespersenc924e1b2019-04-05 15:04:36 +020017 utils.DownloadFromX20(
18 os.path.join(utils.THIRD_PARTY, 'gradle-plugin') + '.tar.gz.sha1')
Ian Zernyfbb1f7a2019-05-02 14:34:13 +020019 utils.DownloadFromX20(
20 os.path.join(
21 utils.THIRD_PARTY, 'benchmarks', 'android-sdk') + '.tar.gz.sha1')
22 utils.DownloadFromGoogleCloudStorage(utils.SAMPLE_LIBRARIES_SHA_FILE)
Rico Windec283b52019-04-03 15:16:55 +020023 utils.DownloadFromGoogleCloudStorage(utils.OPENSOURCE_APPS_SHA_FILE)
24 utils.DownloadFromGoogleCloudStorage(utils.ANDROID_SDK + '.tar.gz.sha1',
Rico Wind533e3ce2019-04-04 10:26:12 +020025 bucket='r8-deps-internal',
26 auth=True)
Morten Krogh-Jespersen64740202019-02-07 13:06:04 +010027
28if __name__ == '__main__':
29 sys.exit(Main())