diff options
| author | Cody Northrop <cnorthrop@google.com> | 2017-10-12 20:44:04 -0600 |
|---|---|---|
| committer | Cody Northrop <cnorthrop@google.com> | 2017-11-03 16:03:59 -0600 |
| commit | 1b1a1606095c171d25e9f5485f79a3a17e00a189 (patch) | |
| tree | b27a3537fd1d2122e1daf2ca01416c8f35185dcf /build-android/update_external_sources_android.sh | |
| parent | 45bad9a89ab6e2dfa94ef43d24370226415b4467 (diff) | |
| download | usermoji-1b1a1606095c171d25e9f5485f79a3a17e00a189.tar.xz | |
scripts: Add --no-build for Android toolchain
With switch to importing shaderc, we don't need to
create prebuilts anymore.
Diffstat (limited to 'build-android/update_external_sources_android.sh')
| -rwxr-xr-x | build-android/update_external_sources_android.sh | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/build-android/update_external_sources_android.sh b/build-android/update_external_sources_android.sh index 3f0c9bf6..01714d02 100755 --- a/build-android/update_external_sources_android.sh +++ b/build-android/update_external_sources_android.sh @@ -55,20 +55,12 @@ fi function printUsage { echo "Supported parameters are:" echo " --abi <abi> (optional)" + echo " --no-build (optional)" echo echo "i.e. ${0##*/} --abi arm64-v8a \\" exit 1 } -if [[ $(($# % 2)) -ne 0 ]] -then - echo Parameters must be provided in pairs. - echo parameter count = $# - echo - printUsage - exit 1 -fi - while [[ $# -gt 0 ]] do case $1 in @@ -76,6 +68,10 @@ do abi="$2" shift 2 ;; + --no-build) + nobuild=1 + shift 1 + ;; *) # unknown option echo Unknown option: $1 @@ -92,6 +88,12 @@ then echo No abi provided, so building for all supported abis. fi +echo no-build=$nobuild +if [[ $nobuild ]] +then + echo Skipping build. +fi + function create_glslang () { rm -rf $BASEDIR/shaderc/third_party/glslang echo "Creating local glslang repository ($BASEDIR/glslang)." @@ -206,7 +208,10 @@ if [ ! -d "$BASEDIR/shaderc/third_party/spirv-tools/external/spirv-headers" -o ! fi update_spirv-headers +if [[ -z $nobuild ]] +then build_shaderc +fi echo "" echo "${0##*/} finished." |
