mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Android build: rely on KEYSTORE environment for release build
With the gradle build it seems we automatically get a Debug build unless the keystore is defined. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
01d610b383
commit
b400a5a855
1 changed files with 14 additions and 4 deletions
|
@ -365,10 +365,20 @@ endforeach()
|
|||
if(ANDROID)
|
||||
# Android template directory
|
||||
include(${QT_ANDROID_CMAKE})
|
||||
add_qt_android_apk(${SUBSURFACE_TARGET}.apk ${SUBSURFACE_TARGET}
|
||||
PACKAGE_SOURCES ${CMAKE_BINARY_DIR}/android-mobile DEPENDS ${ANDROID_NATIVE_LIBSSL} ${ANDROID_NATIVE_LIBCRYPT}
|
||||
BUILDTOOLS_REVISION ${BUILDTOOLS_REVISION}
|
||||
)
|
||||
if((DEFINED ENV{KEYSTORE}) AND (DEFINED ENV{KEYSTORE_PASSWORD}))
|
||||
add_qt_android_apk(${SUBSURFACE_TARGET}.apk ${SUBSURFACE_TARGET}
|
||||
PACKAGE_SOURCES ${CMAKE_BINARY_DIR}/android-mobile DEPENDS ${ANDROID_NATIVE_LIBSSL} ${ANDROID_NATIVE_LIBCRYPT}
|
||||
BUILDTOOLS_REVISION ${BUILDTOOLS_REVISION}
|
||||
KEYSTORE $ENV{KEYSTORE} Subsurface-mobile KEYSTORE_PASSWORD $ENV{KEYSTORE_PASSWORD}
|
||||
)
|
||||
message(STATUS "KEYSTORE=$ENV{KEYSTORE} KEYSTORE_PASSWORD=$ENV{KEYSTORE_PASSWORD}")
|
||||
else()
|
||||
add_qt_android_apk(${SUBSURFACE_TARGET}.apk ${SUBSURFACE_TARGET}
|
||||
PACKAGE_SOURCES ${CMAKE_BINARY_DIR}/android-mobile DEPENDS ${ANDROID_NATIVE_LIBSSL} ${ANDROID_NATIVE_LIBCRYPT}
|
||||
BUILDTOOLS_REVISION ${BUILDTOOLS_REVISION}
|
||||
)
|
||||
message(STATUS "no KEYSTORE")
|
||||
endif()
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
set(APP_BUNDLE_DIR "${SUBSURFACE_TARGET}.app")
|
||||
if(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "MobileExecutable")
|
||||
|
|
Loading…
Reference in a new issue