blob: 4f668d6c13c13506d87ecf194d702c36fc445e25 [file] [log] [blame]
Ian Zernydcb172e2022-02-22 15:36:45 +01001#!/usr/bin/env python3
Rico Windc511e942018-05-22 10:46:31 +02002# 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 Windc511e942018-05-22 10:46:31 +02008import sys
9
Ian Zerny161ff742022-01-20 12:39:40 +010010import gradle
Ian Zerny161ff742022-01-20 12:39:40 +010011import run_benchmark
12import run_on_app_dump
13
Rico Wind595fb642021-10-14 13:08:49 +020014GRADLE_ARGS = ['--no-daemon', '-Pno_internal']
Ian Zerny161ff742022-01-20 12:39:40 +010015
Ian Zerny161ff742022-01-20 12:39:40 +010016def lower(items):
17 return [ item.lower() for item in items ]
Rico Windc511e942018-05-22 10:46:31 +020018
19def Main():
Ian Zerny161ff742022-01-20 12:39:40 +010020 targets = set()
Ian Zerny161ff742022-01-20 12:39:40 +010021 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 Windc511e942018-05-22 10:46:31 +020025
26if __name__ == '__main__':
27 sys.exit(Main())