summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-23 17:55:02 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-23 18:10:11 +0000
commitdea1ef84d50620d8030566d058c39d9d50f7c5df (patch)
treed4e82cbce9e6cb6ae9ed45d84769a24114f2f6f9
parentc62b8f3a75189394b4a5567c33055029de1c333b (diff)
downloadsubsurface-dea1ef84d50620d8030566d058c39d9d50f7c5df.tar.gz
build-system/Android: adapt the Google maps plugin name
This appears to be needed only for Android with Qt 5.15. Which means that this commit creates odd breakage in case someone were to try to build for Android with an older Qt version - but given that the current build process only works with Qt 5.14 or 5.15, I think this is an acceptable flaw. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--Subsurface-mobile.pro2
-rwxr-xr-xpackaging/android/qmake-build.sh7
2 files changed, 7 insertions, 2 deletions
diff --git a/Subsurface-mobile.pro b/Subsurface-mobile.pro
index d8a00757b..190270bec 100644
--- a/Subsurface-mobile.pro
+++ b/Subsurface-mobile.pro
@@ -331,7 +331,7 @@ android {
../install-root-$${QT_ARCH}/lib/libsqlite3.a \
../install-root-$${QT_ARCH}/lib/libssl_1_1.so \
../install-root-$${QT_ARCH}/lib/libcrypto_1_1.so \
- ../googlemaps-build/libqtgeoservices_googlemaps_$${QT_ARCH}.so
+ ../googlemaps-build/libplugins_geoservices_qtgeoservices_googlemaps_$${QT_ARCH}.so
# ensure that the openssl libraries are bundled into the app
# for some reason doing so with dollar dollar { QT_ARCH } (like what works
diff --git a/packaging/android/qmake-build.sh b/packaging/android/qmake-build.sh
index c209cce36..18f20a4ee 100755
--- a/packaging/android/qmake-build.sh
+++ b/packaging/android/qmake-build.sh
@@ -158,8 +158,13 @@ if [ "$QUICK" = "" ] ; then
# build google maps plugin
# this is the easy one as it uses qmake which ensures things get built for all platforms, etc
"${SUBSURFACE_SOURCE}"/scripts/get-dep-lib.sh singleAndroid . googlemaps
+ # but unfortunately, on Android (and apparently only on Android) the naming pattern for geoservice
+ # plugins has changed
+ pushd googlemaps
+ sed -i 's/TARGET = qtgeoservices_googlemaps/TARGET = plugins_geoservices_qtgeoservices_googlemaps/' googlemaps.pro
+ popd
QT_PLUGINS_PATH=$($QMAKE -query QT_INSTALL_PLUGINS)
- GOOGLEMAPS_BIN=libqtgeoservices_googlemaps.so
+ GOOGLEMAPS_BIN=libplugins_geoservices_qtgeoservices_googlemaps_arm64-v8a.so
if [ ! -e "$QT_PLUGINS_PATH"/geoservices/$GOOGLEMAPS_BIN ] || [ googlemaps/.git/HEAD -nt "$QT_PLUGINS_PATH"/geoservices/$GOOGLEMAPS_BIN ] ; then
mkdir -p googlemaps-build
pushd googlemaps-build