summaryrefslogtreecommitdiffstats
path: root/packaging/android
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-05-25 19:15:51 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-27 07:09:27 -0700
commit1df4b6c11b9c3b84f72e3248b08f079d29caba08 (patch)
tree1f1b2ca183780776e34599a34dcfd623197ba43d /packaging/android
parent0cf8ef6e2d64373bb04242e4a54c7015414025fe (diff)
downloadsubsurface-1df4b6c11b9c3b84f72e3248b08f079d29caba08.tar.gz
Android build: Add BUILDTOOLS_REVISION
The used cmake toolkit for building the Android Subsurface-mobile app (qt-android-cmake) recently moved away from compiling with Ant in favor of Gradle. The most recent Android SDK will not support Ant any more. This calls for the addition of the Android SDK BUILDTOOLS_REVISION define to the cmake of Subsurface-mobile. Without this, the build will fail. The value has to be set to an existing directory in .../android-sdk/build-tools/ Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'packaging/android')
-rwxr-xr-x[-rw-r--r--]packaging/android/build.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/packaging/android/build.sh b/packaging/android/build.sh
index 0f2a1d0c3..b22e569bf 100644..100755
--- a/packaging/android/build.sh
+++ b/packaging/android/build.sh
@@ -38,6 +38,8 @@ BUILD_NR=0
SUBSURFACE_DESKTOP=OFF
# Which arch should we build for?
ARCH=arm
+# Which SDK buildtools revision is used?
+ANDROID_BUILDTOOLS_REVISION=23.0.3
while [ "$#" -gt 0 ] ; do
case "$1" in
@@ -376,6 +378,7 @@ cmake $MOBILE_CMAKE \
-DFTDISUPPORT=${FTDI} \
-DANDROID_NATIVE_LIBSSL="$BUILDROOT/ndk-$ARCH/sysroot/usr/lib/libssl.so" \
-DANDROID_NATIVE_LIBCRYPT="$BUILDROOT/ndk-$ARCH/sysroot/usr/lib/libcrypto.so" \
+ -DBUILDTOOLS_REVISION="$ANDROID_BUILDTOOLS_REVISION" \
"$SUBSURFACE_SOURCE"
# set up the version number