summaryrefslogtreecommitdiffstats
path: root/packaging/ios
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-08 14:41:42 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-09 16:48:55 -0800
commit67933e68ddca460653f69355306fffd865abc3ec (patch)
tree17134dfda8a823b30db23e923acf642413d3a1e9 /packaging/ios
parent6fed3d65173953643be268e8c08b22f9d31aa2fa (diff)
downloadsubsurface-67933e68ddca460653f69355306fffd865abc3ec.tar.gz
build-system/iOS: don't build libdivecomputer inside the source tree
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/ios')
-rwxr-xr-xpackaging/ios/build.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh
index 63bf1a64e..b57d879f5 100755
--- a/packaging/ios/build.sh
+++ b/packaging/ios/build.sh
@@ -216,16 +216,16 @@ for ARCH in $ARCHS; do
autoreconf --install
popd
fi
- mkdir -p ../../libdivecomputer/build-ios/$ARCH
- if [ ! -f ../../libdivecomputer/build-ios/${ARCH}/git.SHA ] ; then
- echo "" > ../../libdivecomputer/build-ios/${ARCH}/git.SHA
+ mkdir -p ${PARENT_DIR}/libdivecomputer-build-ios/$ARCH
+ if [ ! -f ${PARENT_DIR}/libdivecomputer-build-ios/${ARCH}/git.SHA ] ; then
+ echo "" > ${PARENT_DIR}/libdivecomputer-build-ios/${ARCH}/git.SHA
fi
CURRENT_SHA=$(cd ../../libdivecomputer ; git describe)
- PREVIOUS_SHA=$(cat ../../libdivecomputer/build-ios/${ARCH}/git.SHA)
+ PREVIOUS_SHA=$(cat ${PARENT_DIR}/libdivecomputer-build-ios/${ARCH}/git.SHA)
if [ ! "$CURRENT_SHA" = "$PREVIOUS_SHA" ] ; then
- echo $CURRENT_SHA > ../../libdivecomputer/build-ios/${ARCH}/git.SHA
- pushd ../../libdivecomputer/build-ios/$ARCH
- ../../configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared --enable-examples=no --without-libusb --without-hidapi --enable-ble
+ echo $CURRENT_SHA > ${PARENT_DIR}/libdivecomputer-build-ios/${ARCH}/git.SHA
+ pushd ${PARENT_DIR}/libdivecomputer-build-ios/$ARCH
+ ${SUBSURFACE_SOURCE}/libdivecomputer/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared --enable-examples=no --without-libusb --without-hidapi --enable-ble
make
make install
popd