diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-10-22 16:19:13 +0200 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-10-23 09:08:10 +0000 |
commit | 790d380f8b5b46d135e5c9c25bdfe13b7e5c4b05 (patch) | |
tree | 2759ee2d802bf3f0222465b55c85057543395a3e /src/corelib | |
parent | d5dc755c653b56d8c09d8331e3a56e0382cf5ac5 (diff) |
Add custom targets to generate Android APK
This patch adds two custom targets to generate android apks. The
targets are named ${TARGET}_prepare_apk_dir and ${TARGET}_make_apk. The
first one insures the binary is copied to the right location and the
latter invokes androiddeployqt on the apk directory.
Change-Id: I8152cef387b50ec03ee2bfd92b56910a6f22754c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/Qt6CoreMacros.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index d1001ad2af..dbc9cdb163 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -423,6 +423,7 @@ function(add_qt_gui_executable target) if(ANDROID) qt_android_generate_deployment_settings("${target}") + qt_android_add_apk_target("${target}") endif() endfunction() |