Morten Krogh-Jespersen | 6474020 | 2019-02-07 13:06:04 +0100 | [diff] [blame] | 1 | #!/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 | |
| 8 | import gradle |
| 9 | import sys |
| 10 | import utils |
Morten Krogh-Jespersen | c924e1b | 2019-04-05 15:04:36 +0200 | [diff] [blame] | 11 | import os |
Morten Krogh-Jespersen | 6474020 | 2019-02-07 13:06:04 +0100 | [diff] [blame] | 12 | |
| 13 | BUILD_TARGETS = ['downloadDeps', 'downloadAndroidCts', 'downloadDx'] |
| 14 | |
| 15 | def Main(): |
| 16 | gradle.RunGradle(BUILD_TARGETS) |
Morten Krogh-Jespersen | c924e1b | 2019-04-05 15:04:36 +0200 | [diff] [blame] | 17 | utils.DownloadFromX20( |
| 18 | os.path.join(utils.THIRD_PARTY, 'gradle-plugin') + '.tar.gz.sha1') |
Ian Zerny | fbb1f7a | 2019-05-02 14:34:13 +0200 | [diff] [blame] | 19 | 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 Wind | ec283b5 | 2019-04-03 15:16:55 +0200 | [diff] [blame] | 23 | utils.DownloadFromGoogleCloudStorage(utils.OPENSOURCE_APPS_SHA_FILE) |
| 24 | utils.DownloadFromGoogleCloudStorage(utils.ANDROID_SDK + '.tar.gz.sha1', |
Rico Wind | 533e3ce | 2019-04-04 10:26:12 +0200 | [diff] [blame] | 25 | bucket='r8-deps-internal', |
| 26 | auth=True) |
Morten Krogh-Jespersen | 6474020 | 2019-02-07 13:06:04 +0100 | [diff] [blame] | 27 | |
| 28 | if __name__ == '__main__': |
| 29 | sys.exit(Main()) |