mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-03 15:43:09 +00:00
Simplify building of Android build from one source tree
Currently, when running the packaging/android/build.sh from a source tree that has been used for desktop builds, libdivecomputer wants a make distclean. This is inconvinient, and is caused by building libdivecomputer in source. Now, configure and build libdivecomputer in a new subdirectory, allowing to run the android build script from the same source tree as the desktop (both desktop and mobile) builds. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
62f7a2a8f0
commit
e80284fcfc
1 changed files with 7 additions and 3 deletions
|
@ -109,10 +109,14 @@ if ! git checkout Subsurface-branch ; then
|
||||||
echo "can't check out the Subsurface-branch branch of libdivecomputer -- giving up"
|
echo "can't check out the Subsurface-branch branch of libdivecomputer -- giving up"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -f configure ] ; then
|
|
||||||
autoreconf --install
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
|
||||||
|
if [ ! -f ../configure ] ; then
|
||||||
|
autoreconf --install ..
|
||||||
fi
|
fi
|
||||||
./configure --prefix=$INSTALL_ROOT
|
../configure --prefix=$INSTALL_ROOT
|
||||||
make -j4
|
make -j4
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue