aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild-android/update_external_sources_android.sh23
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."