diff options
author | Alexey Minnekhanov <a.minnekhanov@omprussia.ru> | 2018-05-29 18:29:53 +0300 |
---|---|---|
committer | Alexey Min <alexey.min@gmail.com> | 2018-05-31 11:10:15 +0300 |
commit | 0dc051905ae97a48e0b40f6fcf3151b4e919264d (patch) | |
tree | 9e842085e9409568702f8c4524803da8d8dc3b82 /toolchain/specifydependencies.cmake | |
parent | 73f8256b0deba1a04e445237484e70156afb3f0a (diff) | |
download | extra-cmake-modules-0dc051905ae97a48e0b40f6fcf3151b4e919264d.tar.gz extra-cmake-modules-0dc051905ae97a48e0b40f6fcf3151b4e919264d.tar.bz2 |
Android toolchain: allow to specify extra libs manuallyv5.47.0-rc1v5.47.0
Summary: Add new variable ANDROID_EXTRA_LIBS, which can contain list of full paths to libs to include in resulting APK file. This can be used to include plugins that are not directly liked to executable, for example OpenSSL libs for QtNetwork SSL/HTTPS support.
Test Plan: Build project with -DANDROID_EXTRA_LIBS="/path/to/lib.so;/path/to/other_lib.so". Build without it. In both cases verify APK contents.
Reviewers: apol
Reviewed By: apol
Subscribers: kde-buildsystem, kde-frameworks-devel
Tags: #frameworks, #build_system
Differential Revision: https://phabricator.kde.org/D13198
Diffstat (limited to 'toolchain/specifydependencies.cmake')
-rw-r--r-- | toolchain/specifydependencies.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain/specifydependencies.cmake b/toolchain/specifydependencies.cmake index a1bc4202..9cab3f2d 100644 --- a/toolchain/specifydependencies.cmake +++ b/toolchain/specifydependencies.cmake @@ -21,6 +21,13 @@ foreach(line ${lines}) endif() endforeach() +if (ANDROID_EXTRA_LIBS) + foreach (extralib ${ANDROID_EXTRA_LIBS}) + message(STATUS "manually specified extra library: " ${extralib}) + list(APPEND extralibs ${extralib}) + endforeach() +endif() + if(extralibs) string(REPLACE ";" "," libs "${extralibs}") set(extralibs "\"android-extra-libs\": \"${libs}\",") |