mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
android: ensure all required pieces are in place for the build
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
068c7f5de1
commit
3071ea06f0
1 changed files with 19 additions and 4 deletions
|
@ -110,14 +110,29 @@ QMAKE=$QT5_ANDROID/android/bin/qmake
|
||||||
echo $QMAKE
|
echo $QMAKE
|
||||||
$QMAKE -query
|
$QMAKE -query
|
||||||
|
|
||||||
|
|
||||||
# if we are just doing a quick rebuild, don't bother with any of the dependencies
|
|
||||||
|
|
||||||
# autoconf based libraries are harder
|
|
||||||
export TOOLCHAIN="$ANDROID_NDK_ROOT"/toolchains/llvm/prebuilt/linux-x86_64
|
export TOOLCHAIN="$ANDROID_NDK_ROOT"/toolchains/llvm/prebuilt/linux-x86_64
|
||||||
PATH=$TOOLCHAIN/bin:$PATH
|
PATH=$TOOLCHAIN/bin:$PATH
|
||||||
export ANDROID_NDK_HOME=$ANDROID_NDK_ROOT # redundant, but that's what openssl wants
|
export ANDROID_NDK_HOME=$ANDROID_NDK_ROOT # redundant, but that's what openssl wants
|
||||||
|
|
||||||
|
# make sure we have the font that we need for OnePlus phones due to https://bugreports.qt.io/browse/QTBUG-69494
|
||||||
|
if [ ! -f "$SUBSURFACE_SOURCE"/android-mobile/Roboto-Regular.ttf ] ; then
|
||||||
|
cp "$ANDROID_SDK_ROOT"/platforms/"$ANDROID_PLATFORMS"/data/fonts/Roboto-Regular.ttf "$SUBSURFACE_SOURCE"/android-mobile || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# next, make sure that the libdivecomputer sources are downloaded and
|
||||||
|
# ready for autoconfig
|
||||||
|
pushd "$SUBSURFACE_SOURCE"
|
||||||
|
if [ ! -d libdivecomputer/src ] ; then
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
fi
|
||||||
|
if [ ! -f libdivecomputer/configure ] ; then
|
||||||
|
cd libdivecomputer
|
||||||
|
autoreconf -i
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
|
||||||
|
# autoconf based libraries are harder
|
||||||
# build default architectures, or the given one?
|
# build default architectures, or the given one?
|
||||||
if [ "$ARCHITECTURES" = "" ] ; then
|
if [ "$ARCHITECTURES" = "" ] ; then
|
||||||
ARCHITECTURES="armv7a aarch64"
|
ARCHITECTURES="armv7a aarch64"
|
||||||
|
|
Loading…
Add table
Reference in a new issue