diff options
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/ios/build.sh | 21 |
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 |