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 | |
Ian Zerny | 161ff74 | 2022-01-20 12:39:40 +0100 | [diff] [blame] | 16 | def lower(items): |
| 17 | return [ item.lower() for item in items ] |
Rico Wind | c511e94 | 2018-05-22 10:46:31 +0200 | [diff] [blame] | 18 | |
| 19 | def Main(): |
Ian Zerny | 161ff74 | 2022-01-20 12:39:40 +0100 | [diff] [blame] | 20 | targets = set() |
Ian Zerny | 161ff74 | 2022-01-20 12:39:40 +0100 | [diff] [blame] | 21 | targets.update(lower(run_benchmark.GOLEM_BUILD_TARGETS)) |
| 22 | targets.update(lower(run_on_app_dump.GOLEM_BUILD_TARGETS)) |
| 23 | cmd = GRADLE_ARGS + [target for target in targets] |
| 24 | gradle.RunGradle(cmd) |
Rico Wind | c511e94 | 2018-05-22 10:46:31 +0200 | [diff] [blame] | 25 | |
| 26 | if __name__ == '__main__': |
| 27 | sys.exit(Main()) |