Cleanup SkQP build scripts

Change-Id: Ie226bc605baad4788976ad4c37dc455d36b11793
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/494136
Reviewed-by: Nathaniel Nifong <nifong@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
This commit is contained in:
Derek Sollenberger 2022-01-12 13:24:38 -05:00 committed by SkCQ
parent 1fad4c0080
commit 3034776433
2 changed files with 2 additions and 12 deletions

View File

@ -32,7 +32,6 @@ import os
import sys
import create_apk
import download_model
def make_apk(opts):
assert '/' in [os.sep, os.altsep] # 'a/b' over os.path.join('a', 'b')
@ -40,21 +39,12 @@ def make_apk(opts):
skia_dir = os.path.dirname(__file__) + '/../..'
create_apk.makedirs(opts.build_dir)
assets_dir = skia_dir + '/platform_tools/android/apps/skqp/src/main/assets'
gmkb = assets_dir + '/gmkb'
resources_path = assets_dir + '/resources'
with create_apk.RemoveFiles(resources_path, gmkb): # always clean up
create_apk.remove(gmkb)
create_apk.make_symlinked_subdir(gmkb, opts.build_dir)
with create_apk.RemoveFiles(resources_path): # always clean up
create_apk.remove(resources_path)
os.symlink('../../../../../../../resources', resources_path)
if os.path.exists(assets_dir + '/files.checksum'):
download_model.main()
else:
sys.stderr.write(
'\n* * * Note: SkQP models are missing! * * *\n\n')
create_apk.create_apk(opts)
def main():

2
tools/skqp/run_apk.sh Normal file → Executable file
View File

@ -20,7 +20,7 @@ printf '\n\nAPK = "%s"\nDST = "%s"\n\n' "$APK" "$DST"
set -x
timeout 60 adb wait-for-device || exit 1
adb wait-for-device || exit 1
sleep ${SKQP_SLEEP:-0}