added support of the androidplatform level macross

This commit is contained in:
Andrei Yankovich 2021-04-26 23:45:12 +03:00
parent 556049eb91
commit 3593154705

View File

@ -390,6 +390,14 @@ function(addDeployAPK name android_src aliase keystore keystorePass targetDir)
return()
endif()
IF(DEFINED ENV{ANDROID_PLATFORM_LEVEL})
set(ANDROID_PLATFORM_LEVEL ENV{ANDROID_PLATFORM_LEVEL})
else()
set(ANDROID_PLATFORM_LEVEL 21)
endif()
message("The ANDROID_PLATFORM_LEVEL = ${ANDROID_PLATFORM_LEVEL}")
add_qt_android_apk(createAPK${name} ${name}
PACKAGE_SOURCES ${android_src}
KEYSTORE ${keystore} ${aliase}