summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-02-12 12:02:14 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-02-12 12:22:55 -0800
commit8d42d804edb38cf47780dd4c9655898b70f69a78 (patch)
tree09bf8cf9fec895dea71eed25e3d813720ed5c7c7
parent9ca7cf0f1efbff9fe86ea86963b3cf987dd65586 (diff)
downloadsubsurface-8d42d804edb38cf47780dd4c9655898b70f69a78.tar.gz
iOS build: automatically build matching libdc
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--packaging/ios/build.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh
index 0ebc90e8a..0a53a4076 100644
--- a/packaging/ios/build.sh
+++ b/packaging/ios/build.sh
@@ -274,7 +274,14 @@ echo next building for $ARCH
popd
popd
fi
- if [ ! -e $PKG_CONFIG_LIBDIR/libdivecomputer.pc ] ; then
+ if [ ! -f libdivecomputer-${ARCH}.SHA ] ; then
+ echo "" > libdivecomputer-${ARCH}.SHA
+ fi
+ git submodule update --recursive
+ CURRENT_SHA=$(cd ../../libdivecomputer ; git describe)
+ PREVIOUS_SHA=$(cat libdivecomputer-${ARCH}.SHA)
+ if [ ! "$CURRENT_SHA" = "$PREVIOUS_SHA" ] ; then
+ echo $CURRENT_SHA > libdivecomputer-${ARCH}.SHA
mkdir -p libdivecomputer-build-$ARCH
pushd libdivecomputer-build-$ARCH
../../../libdivecomputer/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared --enable-examples=no --without-libusb --without-hidapi --enable-ble