blob: ae09558b4b0e9bcacb4c7b2f939c3ec8c4fddb9b [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
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020016
Ian Zerny161ff742022-01-20 12:39:40 +010017def lower(items):
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020018 return [item.lower() for item in items]
19
Rico Windc511e942018-05-22 10:46:31 +020020
21def Main():
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020022 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 Winddb116182023-10-02 13:00:59 +020028
Rico Windc511e942018-05-22 10:46:31 +020029if __name__ == '__main__':
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020030 sys.exit(Main())