diff options
Diffstat (limited to 'tools/autobuild/ios.sh')
-rw-r--r-- | tools/autobuild/ios.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/autobuild/ios.sh b/tools/autobuild/ios.sh index c06785b2e9..9fcb2d8322 100644 --- a/tools/autobuild/ios.sh +++ b/tools/autobuild/ios.sh @@ -7,7 +7,7 @@ LOCAL_DIRNAME="$(dirname "$0")" #LOCAL_DIRNAME="${PWD}/$(dirname "$0")" if [[ $# < 1 ]]; then - echo "Usage: $0 <debug|release|production|simulator> [clean]" + echo "Usage: $0 <debug|release|production|simulator|simulator-release> [clean]" exit 1 fi CONFIGURATION="$1" @@ -29,9 +29,15 @@ fi SHADOW_DIR_BASE="$LOCAL_DIRNAME/../../../omim-iphone" -if [[ $CONFIGURATION == "simulator" ]]; then - SHADOW_DIR="${SHADOW_DIR_BASE}sim-debug" - MKSPEC="$LOCAL_DIRNAME/../mkspecs/iphonesimulator-clang" +if [[ $CONFIGURATION == *simulator* ]]; then + if [[ $CONFIGURATION == "simulator-release" ]]; then + SHADOW_DIR="${SHADOW_DIR_BASE}sim-release" + QMAKE_PARAMS="CONFIG+=release" + else + SHADOW_DIR="${SHADOW_DIR_BASE}sim-debug" + QMAKE_PARAMS="CONFIG+=debug" + fi + MKSPEC="$LOCAL_DIRNAME/../mkspecs/iphonesimulator-llvm" else SHADOW_DIR="${SHADOW_DIR_BASE}-${CONFIGURATION}" MKSPEC="$LOCAL_DIRNAME/../mkspecs/iphonedevice-llvm" |