mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
libdc: update the iOS build script for submodule
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
25041be08c
commit
0ce44b8ed1
1 changed files with 8 additions and 13 deletions
|
@ -259,24 +259,19 @@ echo next building for $ARCH
|
||||||
#
|
#
|
||||||
|
|
||||||
# build libdivecomputer
|
# build libdivecomputer
|
||||||
if [ ! -d libdivecomputer ] ; then
|
if [ ! -d ../../../libdivecomputer/src ] ; then
|
||||||
git clone -b Subsurface-branch https://github.com/Subsurface-divelog/libdc.git libdivecomputer
|
pushd ../../..
|
||||||
fi
|
git submodule update --recursive
|
||||||
cd libdivecomputer
|
pushd libdivecomputer
|
||||||
git pull --rebase
|
|
||||||
if ! git checkout Subsurface-branch ; then
|
|
||||||
echo "can't check out the Subsurface-branch branch of libdivecomputer -- giving up"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [ ! -f configure ] ; then
|
|
||||||
autoreconf --install
|
autoreconf --install
|
||||||
|
autoreconf --install
|
||||||
|
popd
|
||||||
|
popd
|
||||||
fi
|
fi
|
||||||
cd ..
|
|
||||||
|
|
||||||
if [ ! -e $PKG_CONFIG_LIBDIR/libdivecomputer.pc ] ; then
|
if [ ! -e $PKG_CONFIG_LIBDIR/libdivecomputer.pc ] ; then
|
||||||
mkdir -p libdivecomputer-build-$ARCH
|
mkdir -p libdivecomputer-build-$ARCH
|
||||||
pushd libdivecomputer-build-$ARCH
|
pushd libdivecomputer-build-$ARCH
|
||||||
../libdivecomputer/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared --enable-examples=no --without-libusb --without-hidapi
|
../../../libdivecomputer/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared --enable-examples=no --without-libusb --without-hidapi
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue