From bca858a5d93d6b2ee0b31bfdd6328b088d53508d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 29 Nov 2017 06:45:47 -0800 Subject: [PATCH] iOS build: call qmake in build.sh This way we can avoid having to use Qt Creator (in preparation for eventually testing the iOS build in Travis CI). Signed-off-by: Dirk Hohndel --- packaging/ios/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh index 81c666923..ee8e985ed 100644 --- a/packaging/ios/build.sh +++ b/packaging/ios/build.sh @@ -297,3 +297,11 @@ for src in $SRCS; do ${IOS_QT}/${QT_VERSION}/ios/bin/lrelease ${SUBSURFACE_SOURCE}/translations/$src -qm translations/${src/.ts/.qm} done 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 +make qmake_all