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:
Jan Mulder 2016-02-02 10:17:51 +01:00 committed by Dirk Hohndel
parent 62f7a2a8f0
commit e80284fcfc

View file

@ -109,10 +109,14 @@ 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
mkdir -p build
cd build
if [ ! -f ../configure ] ; then
autoreconf --install ..
fi
./configure --prefix=$INSTALL_ROOT
../configure --prefix=$INSTALL_ROOT
make -j4
make install