From 55dc4451887d0f354502d8e7b248de4c7edb28c0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 11 Dec 2020 17:15:39 -0800 Subject: build-system/iOS: create the build directory parallel to subsurface This seems more consistent with how we do things elsewhere. Also make sure that the ssrf-version.h file is created in the correct directory. Signed-off-by: Dirk Hohndel --- packaging/ios/build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'packaging') diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh index 119ca06ad..8b6c45400 100755 --- a/packaging/ios/build.sh +++ b/packaging/ios/build.sh @@ -60,9 +60,9 @@ fi GITVERSION=$(cd "$SUBSURFACE_SOURCE" ; git describe --abbrev=12) CANONICALVERSION=$(echo $GITVERSION | sed -e 's/-g.*$// ; s/^v//' | sed -e 's/-/./') MOBILEVERSION=$(grep MOBILE "$SUBSURFACE_SOURCE"/cmake/Modules/version.cmake | cut -d\" -f 2) -echo "#define GIT_VERSION_STRING \"$GITVERSION\"" > ssrf-version.h -echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" >> ssrf-version.h -echo "#define MOBILE_VERSION_STRING \"$MOBILEVERSION\"" >> ssrf-version.h +echo "#define GIT_VERSION_STRING \"$GITVERSION\"" > "$SUBSURFACE_SOURCE"/ssrf-version.h +echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" >> "$SUBSURFACE_SOURCE"/ssrf-version.h +echo "#define MOBILE_VERSION_STRING \"$MOBILEVERSION\"" >> "$SUBSURFACE_SOURCE"/ssrf-version.h BUNDLE=org.subsurface-divelog.subsurface-mobile if [ "${IOS_BUNDLE_PRODUCT_IDENTIFIER}" != "" ] ; then @@ -314,10 +314,12 @@ for BUILD_NOW in $BUILD_LOOP; do else DRCONFIG="release" fi + cd "$PARENT_DIR" BUILDX=build-Subsurface-mobile-Qt_$(echo "$QT_VERSION" | tr . _)_for_iOS-"$BUILD_NOW" mkdir -p "$BUILDX" pushd "$BUILDX" - ln -s ../ssrf-version.h . + rm -f ssrf-version.h + ln -s "$SUBSURFACE_SOURCE"/ssrf-version.h . "$IOS_QT"/"$QT_VERSION"/ios/bin/qmake "$SUBSURFACE_SOURCE"/Subsurface-mobile.pro \ -spec macx-ios-clang CONFIG+=$TARGET CONFIG+=$TARGET2 CONFIG+=$DRCONFIG -- cgit v1.2.3-70-g09d2