mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
build-system/iOS: don't build libdivecomputer inside the source tree
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6fed3d6517
commit
67933e68dd
1 changed files with 7 additions and 7 deletions
|
@ -216,16 +216,16 @@ for ARCH in $ARCHS; do
|
||||||
autoreconf --install
|
autoreconf --install
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
mkdir -p ../../libdivecomputer/build-ios/$ARCH
|
mkdir -p ${PARENT_DIR}/libdivecomputer-build-ios/$ARCH
|
||||||
if [ ! -f ../../libdivecomputer/build-ios/${ARCH}/git.SHA ] ; then
|
if [ ! -f ${PARENT_DIR}/libdivecomputer-build-ios/${ARCH}/git.SHA ] ; then
|
||||||
echo "" > ../../libdivecomputer/build-ios/${ARCH}/git.SHA
|
echo "" > ${PARENT_DIR}/libdivecomputer-build-ios/${ARCH}/git.SHA
|
||||||
fi
|
fi
|
||||||
CURRENT_SHA=$(cd ../../libdivecomputer ; git describe)
|
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
|
if [ ! "$CURRENT_SHA" = "$PREVIOUS_SHA" ] ; then
|
||||||
echo $CURRENT_SHA > ../../libdivecomputer/build-ios/${ARCH}/git.SHA
|
echo $CURRENT_SHA > ${PARENT_DIR}/libdivecomputer-build-ios/${ARCH}/git.SHA
|
||||||
pushd ../../libdivecomputer/build-ios/$ARCH
|
pushd ${PARENT_DIR}/libdivecomputer-build-ios/$ARCH
|
||||||
../../configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared --enable-examples=no --without-libusb --without-hidapi --enable-ble
|
${SUBSURFACE_SOURCE}/libdivecomputer/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared --enable-examples=no --without-libusb --without-hidapi --enable-ble
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Add table
Reference in a new issue