Add explicit argument for running on golem
If passed, link in third party dependencies explicitly in scripts and don't build
This will allow for a simplified setup in our performance tracking
Change-Id: I18087187e52cda1f617bc433e97b7b93ecabe03a
diff --git a/tools/run_proguard_dx_on_app.py b/tools/run_proguard_dx_on_app.py
index 4624f26..e78d5d1 100755
--- a/tools/run_proguard_dx_on_app.py
+++ b/tools/run_proguard_dx_on_app.py
@@ -20,6 +20,7 @@
import gmail_data
import gmscore_data
+import golem
import proguard
import utils
import youtube_data
@@ -38,6 +39,10 @@
help = 'Use CompatDx (D8) instead of DX.',
default = False,
action = 'store_true')
+ parser.add_argument('--golem',
+ help = 'Link in third party dependencies.',
+ default = False,
+ action = 'store_true')
parser.add_argument('--print-runtimeraw',
metavar = 'BENCHMARKNAME',
help = 'Print the line \'<BENCHMARKNAME>(RunTimeRaw): <elapsed>' +
@@ -57,7 +62,8 @@
def Main(argv):
utils.check_java_version()
options = parse_arguments(argv)
-
+ if options.golem:
+ golem.link_third_party()
outdir = options.out
if options.app == 'gmscore':