aboutsummaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-23 09:27:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-23 09:28:41 -0700
commit09edf25366e006dfca813b8af2533b32c15d0557 (patch)
tree9363784bc495d10af4cfefe001a53c006339a6af /packaging
parent50b8044d56ea28c7c3714a8fc859c133ea6717a2 (diff)
downloadsubsurface-09edf25366e006dfca813b8af2533b32c15d0557.tar.gz
iOS: build Release by default
And add -debug option to build.sh for debug builds. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/ios/build.sh21
1 files changed, 17 insertions, 4 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh
index 1c2a796a2..362450d9b 100644
--- a/packaging/ios/build.sh
+++ b/packaging/ios/build.sh
@@ -4,6 +4,12 @@
set -x
set -e
+if [ "$1" = "-debug" ] ; then
+ DEBUG=1
+else
+ DEBUG=0
+fi
+
# set up easy to use variables with the important paths
TOP=$(pwd)
SUBSURFACE_SOURCE=${TOP}/../../../subsurface
@@ -333,8 +339,15 @@ popd
# in order to be able to use xcode without going through Qt Creator
# call qmake directly
-mkdir -p build-Subsurface-mobile-Qt_$(echo ${QT_VERSION} | tr . _)_for_iOS-Debug
-cd build-Subsurface-mobile-Qt_$(echo ${QT_VERSION} | tr . _)_for_iOS-Debug
-${IOS_QT}/${QT_VERSION}/ios/bin/qmake ../Subsurface-mobile/Subsurface-mobile.pro \
- -spec macx-ios-clang CONFIG+=iphoneos CONFIG+=device CONFIG+=qml_debug
+if [ "$DEBUG" = "1" ] ; then
+ mkdir -p build-Subsurface-mobile-Qt_$(echo ${QT_VERSION} | tr . _)_for_iOS-Debug
+ cd build-Subsurface-mobile-Qt_$(echo ${QT_VERSION} | tr . _)_for_iOS-Debug
+ ${IOS_QT}/${QT_VERSION}/ios/bin/qmake ../Subsurface-mobile/Subsurface-mobile.pro \
+ -spec macx-ios-clang CONFIG+=iphoneos CONFIG+=device CONFIG+=qml_debug
+else
+ mkdir -p build-Subsurface-mobile-Qt_$(echo ${QT_VERSION} | tr . _)_for_iOS-Release
+ cd build-Subsurface-mobile-Qt_$(echo ${QT_VERSION} | tr . _)_for_iOS-Release
+ ${IOS_QT}/${QT_VERSION}/ios/bin/qmake ../Subsurface-mobile/Subsurface-mobile.pro \
+ -spec macx-ios-clang CONFIG+=iphoneos CONFIG+=device CONFIG+=release
+fi
make qmake_all