blob: 1cbf39f281c00e02a5938738b2e7e44516e548a2 [file] [log] [blame]
#!/usr/bin/env python3
# Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
# Utility script to make it easier to update what golem builds.
import sys
import gradle
import run_benchmark
import run_on_app_dump
GRADLE_ARGS = ['--no-daemon', '-Pno_internal']
def lower(items):
return [ item.lower() for item in items ]
def Main():
# TODO(b/302999071): Move java based benchmarking to new gradle
targets = set()
targets.update(lower(run_benchmark.GOLEM_BUILD_TARGETS_OLD))
cmd = GRADLE_ARGS + [target for target in targets]
gradle.RunGradle(cmd)
targets = set()
targets.update(lower(run_benchmark.GOLEM_BUILD_TARGETS_NEW))
targets.update(lower(run_on_app_dump.GOLEM_BUILD_TARGETS))
cmd = GRADLE_ARGS + [target for target in targets]
gradle.RunGradle(cmd, new_gradle=True)
if __name__ == '__main__':
sys.exit(Main())