added support of the extralibs for android

This commit is contained in:
Andrei Yankovich 2021-04-27 12:25:45 +03:00
parent 97ed2718ba
commit b32cca6238
2 changed files with 5 additions and 2 deletions

View File

@ -47,13 +47,14 @@ This module implementation next cmake functions:
- sourceDir - Path to folder with qif template.
- config - Path to config file of qif template.
**addDeployAPK** (name input aliase keystore keystorePass targetDir) - Add subtargets of deploy setep for create signed android apk file.
**addDeployAPK** (name input aliase keystore keystorePass targetDir extraLibs) - Add subtargets of deploy setep for create signed android apk file.
- name - This is prefix of added subtarget (any word).
- android_src - Path to folder with the android_manifest file.
- aliase - Alise for key store.
- keystore - Path of key store.
- keystorePass - Pass of keystore file.
- targetDir - Target directory for output apk file.
- extraLibs - list f the extra libraryes (like the openssl)
**add_qt_android_apk** (my_app_apk my_app) - This target add targets for the build apk file.
For get more information about this function see oficial [documentation](https://github.com/LaurentGomila/qt-android-cmake#options-of-the-add_qt_android_apk-macro

View File

@ -55,6 +55,7 @@
# - keystore - Path of key store.
# - keystorePass - Pass of keystore file.
# - targetDir - Target dir for output apk file.
# - extraLibs - list f the extra libraryes (like the openssl)
#
# initDeploy() // Create a main deploy target for all addDeploy subtargets. This method need to call before invoiced of all addDeploy methods.
#
@ -377,7 +378,7 @@ function(addDeployQIF name sourceDir targetDir config)
endfunction()
function(addDeployAPK name android_src aliase keystore keystorePass targetDir)
function(addDeployAPK name android_src aliase keystore keystorePass targetDir extraLibs)
if(TARGET deployAPK${name})
message("the deployAPK${name} target already created!")
@ -402,6 +403,7 @@ function(addDeployAPK name android_src aliase keystore keystorePass targetDir)
PACKAGE_SOURCES ${android_src}
KEYSTORE ${keystore} ${aliase}
KEYSTORE_PASSWORD ${keystorePass}
DEPENDS ${extraLibs}
)
ADD_CUSTOM_TARGET(