android_build_app: fixes

Change-Id: I2b643de2ede46472940da83d16cf9f8ebacc96db
Reviewed-on: https://skia-review.googlesource.com/80600
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
This commit is contained in:
Hal Canary 2017-12-05 09:41:14 -05:00 committed by Skia Commit-Bot
parent 6f3eac9b5d
commit a2e7f5ae10

View File

@ -50,9 +50,9 @@ else:
# build the apk using gradle
try:
subprocess.check_call(['./apps/gradlew',
':viewer:assemble' + android_variant + android_buildtype,
':' + args.app_name + ':assemble' + android_variant + android_buildtype,
'-papps/' + args.app_name,
'-P' + target_cpu + '.out.dir=' + args.output_dir,
'-P' + target_cpu + '.out.dir=' + os.path.abspath(args.output_dir),
'--daemon'], cwd=os.path.join(os.path.dirname(__file__), ".."))
except subprocess.CalledProcessError as error:
print error