summaryrefslogtreecommitdiffstats
path: root/packaging/android
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2016-06-23 22:56:31 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-06-23 16:34:00 -0700
commit2aa98412133eac9bc442ad5b563b7b884014b76d (patch)
treec4938d703efeaedef96873e5892d59605ff667ff /packaging/android
parent9443b0b86cad298cffbab0f9577af2b925defdd8 (diff)
downloadsubsurface-2aa98412133eac9bc442ad5b563b7b884014b76d.tar.gz
android: Prioritize newer Qt version if found
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/android')
-rw-r--r--packaging/android/build.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/packaging/android/build.sh b/packaging/android/build.sh
index fe0c96e3b..f187e8a6d 100644
--- a/packaging/android/build.sh
+++ b/packaging/android/build.sh
@@ -29,14 +29,16 @@ fi
# Configure where we can find things here
export ANDROID_NDK_ROOT=$SUBSURFACE_SOURCE/../android-ndk-r12
-if [ -d "$SUBSURFACE_SOURCE/../Qt/5.5" ] ; then
- export QT5_ANDROID=$SUBSURFACE_SOURCE/../Qt/5.5
-elif [ -d "$SUBSURFACE_SOURCE/../Qt/5.6" ] ; then
- export QT5_ANDROID=$SUBSURFACE_SOURCE/../Qt/5.6
+if [ ! -z "$QT5_ANDROID" ] ; then
+ echo "Using Qt5 in $QT5_ANDROID"
elif [ -d "$SUBSURFACE_SOURCE/../Qt/5.7" ] ; then
export QT5_ANDROID=$SUBSURFACE_SOURCE/../Qt/5.7
+elif [ -d "$SUBSURFACE_SOURCE/../Qt/5.6" ] ; then
+ export QT5_ANDROID=$SUBSURFACE_SOURCE/../Qt/5.6
+elif [ -d "$SUBSURFACE_SOURCE/../Qt/5.5" ] ; then
+ export QT5_ANDROID=$SUBSURFACE_SOURCE/../Qt/5.5
else
- echo "Cannot find Qt 5.5, 5.6, or 5.7 under $SUBSURFACE_SOURCE/../Qt"
+ echo "Cannot find Qt 5.7, 5.6 or 5.5 under $SUBSURFACE_SOURCE/../Qt"
exit 1
fi