mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 22:16:16 +00:00
Android build script: minor adjustments
When retrying a clean build several libraries failed to build and I finally tracked this down to the cross build tools not finding their sysroot. Also, on my main build server I have an older cmake version and one of the tools claims to require cmake 3 but I see no actual incompatibility, so I'm patching out that check. Hackish? Yes. But it seems to work. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a5b378bdf4
commit
eb9f07c789
1 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,11 @@ export PREFIX=${BUILDROOT}/ndk-$ARCH/sysroot/usr
|
|||
export PKG_CONFIG_LIBDIR=${PREFIX}/lib/pkgconfig
|
||||
export CC=${BUILDROOT}/ndk-$ARCH/bin/${BUILDCHAIN}-gcc
|
||||
export CXX=${BUILDROOT}/ndk-$ARCH/bin/${BUILDCHAIN}-g++
|
||||
# autoconf seems to get lost without this
|
||||
export SYSROOT=${BUILDROOT}/ndk-$ARCH/sysroot
|
||||
export CFLAGS="--sysroot=${SYSROOT}"
|
||||
export CPPFLAGS="--sysroot=${SYSROOT}"
|
||||
export CXXFLAGS="--sysroot=${SYSROOT}"
|
||||
# Junk needed for qt-android-cmake
|
||||
export ANDROID_STANDALONE_TOOLCHAIN=${BUILDROOT}/ndk-$ARCH
|
||||
export JAVA_HOME=/usr
|
||||
|
@ -205,6 +210,9 @@ else
|
|||
git pull -u
|
||||
popd
|
||||
fi
|
||||
# hack the CMake minimum version dependency - I have seen no indication
|
||||
# that this is actually correct, anyway...
|
||||
sed -i "s/cmake_minimum_required/#cmake_minimum_required/ ; s/cmake_policy.SET CMP0026/#cmake_policy(SET CMP0026/" qt-android-cmake/AddQtAndroidApk.cmake
|
||||
|
||||
# Should we build the mobile ui or the desktop ui?
|
||||
if [ ! -z "$SUBSURFACE_MOBILE" ] ; then
|
||||
|
|
Loading…
Add table
Reference in a new issue