mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
iOS build: automatically build matching libdc
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9ca7cf0f1e
commit
8d42d804ed
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue