iOS: build Release by default

And add -debug option to build.sh for debug builds.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-04-23 09:27:04 -07:00
parent 50b8044d56
commit 09edf25366

View file

@ -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