From 7801b0c28a51e8e960f854c1e24d909589a0b0f1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 29 Aug 2022 15:39:54 -0700 Subject: [PATCH] build-system: small changes to the iOS build script This makes it marginally easier to deal with debug builds and release builds in parallel. The quick builds work most of the time, but not always. Signed-off-by: Dirk Hohndel --- packaging/ios/build.sh | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh index 51cb66d9a..a8d45cd77 100755 --- a/packaging/ios/build.sh +++ b/packaging/ios/build.sh @@ -31,6 +31,10 @@ while [[ $# -gt 0 ]] ; do # build both debug and release for all devices DEBUGRELEASE="All" ;; + -quick) + # don't rebuild googlemaps and kirigami + QUICK="1" + ;; *) echo "Unknown command line argument $arg" ;; @@ -88,6 +92,8 @@ popd # get all 3rd part libraries "$SUBSURFACE_SOURCE"/scripts/get-dep-lib.sh ios "$PARENT_DIR" +if [ "$QUICK" != "1" ] ; then + for ARCH in $ARCHS; do echo next building for $ARCH @@ -258,21 +264,24 @@ fi popd # build Kirigami -mkdir -p "$PARENT_DIR"/kirigami-build -pushd "$PARENT_DIR"/kirigami-build +mkdir -p "$PARENT_DIR"/kirigami-release-build +pushd "$PARENT_DIR"/kirigami-release-build "$IOS_QT"/"$QT_VERSION"/ios/bin/qmake "$SUBSURFACE_SOURCE"/mobile-widgets/3rdparty/kirigami/kirigami.pro CONFIG+=release make -#make install -if [ "$DEBUGRELEASE" != "Release" ] ; then - "$IOS_QT"/"$QT_VERSION"/ios/bin/qmake "$SUBSURFACE_SOURCE"/mobile-widgets/3rdparty/kirigami/kirigami.pro CONFIG+=debug - make clean - make - #make install -fi # since the install prefix for qmake is rather weirdly implemented, let's copy things by hand into the multiarch destination mkdir -p "$INSTALL_ROOT"/../lib/qml/ cp -a org "$INSTALL_ROOT"/../lib/qml/ popd +if [ "$DEBUGRELEASE" != "Release" ] ; then + mkdir -p "$PARENT_DIR"/kirigami-debug-build + pushd "$PARENT_DIR"/kirigami-debug-build + "$IOS_QT"/"$QT_VERSION"/ios/bin/qmake "$SUBSURFACE_SOURCE"/mobile-widgets/3rdparty/kirigami/kirigami.pro CONFIG+=debug + make + # since the install prefix for qmake is rather weirdly implemented, let's copy things by hand into the multiarch destination + mkdir -p "$INSTALL_ROOT"/../lib/qml/ + cp -a org "$INSTALL_ROOT"/../lib/qml/ + popd +fi # now combine the libraries into fat libraries ARCH_ROOT=$PARENT_DIR/install-root/ios @@ -288,6 +297,8 @@ if [ "$TARGET" = "iphoneos" ] ; then popd fi +fi + pushd "$SUBSURFACE_SOURCE"/translations SRCS=$(ls ./*.ts | grep -v source) popd