diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-10-27 19:26:40 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:46:20 +0300 |
commit | ee663d56da8468b7ae5aff50c0e6e606be65d254 (patch) | |
tree | 029beb18bac56a617183d4987fa92fa7bcc61cad /tools | |
parent | 67801f0fb8f25656f0960cefab1ad485a710cbf1 (diff) |
[android] added the ability to build only single architecture from command line.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/autobuild/android.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/autobuild/android.sh b/tools/autobuild/android.sh index 5bb8587abb..a05e7af647 100644 --- a/tools/autobuild/android.sh +++ b/tools/autobuild/android.sh @@ -22,9 +22,14 @@ SHADOW_DIR_BASE="$LOCAL_DIRNAME/../../../omim-android" export NDK_ROOT=$(GetNdkRoot) || ( echo "Can't read NDK root path from android/local.properties"; exit 1 ) export NDK_HOST=$(GetNdkHost) || ( echo "Can't get your OS type, please check tools/autobuild/ndk_helper.sh script"; exit 1 ) -NDK_ABI_TO_BUILD=(armeabi armeabi-v7a mips x86) +NDK_ABI_LIST=(armeabi armeabi-v7a mips x86) -for abi in "${NDK_ABI_TO_BUILD[@]}"; do +if test "${NDK_ABI_TO_BUILD+set}" == set +then + NDK_ABI_LIST=($NDK_ABI_TO_BUILD); +fi + +for abi in "${NDK_ABI_LIST[@]}"; do SHADOW_DIR="${SHADOW_DIR_BASE}-${CONFIGURATION}-${abi}" if [[ $# > 1 && "$2" == "clean" ]] ; then echo "Cleaning $CONFIGURATION-$abi configuration..." |