From 8d42d804edb38cf47780dd4c9655898b70f69a78 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 12 Feb 2018 12:02:14 -0800 Subject: iOS build: automatically build matching libdc Signed-off-by: Dirk Hohndel --- packaging/ios/build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2