From 09edf25366e006dfca813b8af2533b32c15d0557 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 23 Apr 2018 09:27:04 -0700 Subject: iOS: build Release by default And add -debug option to build.sh for debug builds. Signed-off-by: Dirk Hohndel --- packaging/ios/build.sh | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'packaging') 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 -- cgit v1.2.3-70-g09d2