Ian Zerny | dcb172e | 2022-02-22 15:36:45 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
Rico Wind | c511e94 | 2018-05-22 10:46:31 +0200 | [diff] [blame] | 2 | # Copyright (c) 2018, 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 | |
Rico Wind | c511e94 | 2018-05-22 10:46:31 +0200 | [diff] [blame] | 8 | import sys |
| 9 | |
Ian Zerny | 161ff74 | 2022-01-20 12:39:40 +0100 | [diff] [blame] | 10 | import gradle |
Ian Zerny | 161ff74 | 2022-01-20 12:39:40 +0100 | [diff] [blame] | 11 | import run_benchmark |
| 12 | import run_on_app_dump |
| 13 | |
Rico Wind | 595fb64 | 2021-10-14 13:08:49 +0200 | [diff] [blame] | 14 | GRADLE_ARGS = ['--no-daemon', '-Pno_internal'] |
Ian Zerny | 161ff74 | 2022-01-20 12:39:40 +0100 | [diff] [blame] | 15 | |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 16 | |
Ian Zerny | 161ff74 | 2022-01-20 12:39:40 +0100 | [diff] [blame] | 17 | def lower(items): |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 18 | return [item.lower() for item in items] |
| 19 | |
Rico Wind | c511e94 | 2018-05-22 10:46:31 +0200 | [diff] [blame] | 20 | |
| 21 | def Main(): |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 22 | targets = set() |
| 23 | targets.update(lower(run_benchmark.GOLEM_BUILD_TARGETS)) |
| 24 | targets.update(lower(run_on_app_dump.GOLEM_BUILD_TARGETS)) |
| 25 | cmd = GRADLE_ARGS + [target for target in targets] |
| 26 | gradle.RunGradle(cmd) |
| 27 | |
Rico Wind | db11618 | 2023-10-02 13:00:59 +0200 | [diff] [blame] | 28 | |
Rico Wind | c511e94 | 2018-05-22 10:46:31 +0200 | [diff] [blame] | 29 | if __name__ == '__main__': |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 30 | sys.exit(Main()) |