mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:03:23 +00:00
Android: rebuild libdivecomputer if SHA changes
Just like we already do for iOS. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
901991afbe
commit
1dfac4cb74
1 changed files with 9 additions and 1 deletions
|
@ -365,7 +365,15 @@ if [ -e "$PREFIX/lib/libftdi1.so" ] ; then
|
|||
rm "$PREFIX"/lib/libftdi1.so*
|
||||
fi
|
||||
|
||||
if [ ! -e "$PKG_CONFIG_LIBDIR/libdivecomputer.pc" ] ; then
|
||||
if [ ! -f libdivecomputer-${ARCH}.SHA ] ; then
|
||||
echo "" > libdivecomputer-${ARCH}.SHA
|
||||
fi
|
||||
pushd subsurface
|
||||
git submodule update --recursive
|
||||
popd
|
||||
CURRENT_SHA=$(cd subsurface/libdivecomputer ; git describe)
|
||||
PREVIOUS_SHA=$(cat libdivecomputer-${ARCH}.SHA)
|
||||
if [ ! "$CURRENT_SHA" = "$PREVIOUS_SHA" || ! -e "$PKG_CONFIG_LIBDIR/libdivecomputer.pc" ] ; then
|
||||
mkdir -p libdivecomputer-build-"$ARCH"
|
||||
pushd libdivecomputer-build-"$ARCH"
|
||||
"$SUBSURFACE_SOURCE"/libdivecomputer/configure --host=${BUILDCHAIN} --prefix="$PREFIX" --enable-static --disable-shared --enable-examples=no
|
||||
|
|
Loading…
Add table
Reference in a new issue