mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
50b8044d56
commit
09edf25366
1 changed files with 17 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue