From a64eef7f82a69652a56f2a4c752c1e9cb533694e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 5 Mar 2016 17:14:33 -0800 Subject: [PATCH] Android build: automate setting the right version number Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 3 +-- android-mobile/AndroidManifest.xml | 2 +- packaging/android/build.sh | 6 ++++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13f34fd00..c636d1f36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -325,9 +325,8 @@ endforeach() if(ANDROID) # Android template directory include(${QT_ANDROID_CMAKE}) - set(ANDROID_PACKAGE_SOURCE_DIR, ${CMAKE_BINARY_DIR}/android-mobile) add_qt_android_apk(${SUBSURFACE_TARGET}.apk ${SUBSURFACE_TARGET} - PACKAGE_SOURCES ${CMAKE_CURRENT_LIST_DIR}/android-mobile + PACKAGE_SOURCES ${CMAKE_BINARY_DIR}/android-mobile ) elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") set(APP_BUNDLE_DIR "${SUBSURFACE_TARGET}.app") diff --git a/android-mobile/AndroidManifest.xml b/android-mobile/AndroidManifest.xml index e598303d0..e597a6ccd 100644 --- a/android-mobile/AndroidManifest.xml +++ b/android-mobile/AndroidManifest.xml @@ -3,7 +3,7 @@ package="org.subsurfacedivelog.mobile" android:installLocation="auto" android:versionCode="1" - android:versionName="1.0" > + android:versionName=@SUBSURFACE_MOBILE_VERSION@ >