diff options
author | Volker Krause <vkrause@kde.org> | 2021-07-10 11:32:42 +0200 |
---|---|---|
committer | Volker Krause <vkrause@kde.org> | 2021-07-12 14:49:59 +0000 |
commit | c30d943a034224f79b3d5bae239bd396ea24db9e (patch) | |
tree | 9a9a688e68b9fc1f925a565c6435542f98b19e74 /modules | |
parent | 60a318a24bd423d671bf2eeae13d1ba93110d9de (diff) | |
download | extra-cmake-modules-c30d943a034224f79b3d5bae239bd396ea24db9e.tar.gz extra-cmake-modules-c30d943a034224f79b3d5bae239bd396ea24db9e.tar.bz2 |
Don't install logging categories files on Android
There is no KDebugSettings there, and thus those files just bloat the APK.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ECMQtDeclareLoggingCategory.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/ECMQtDeclareLoggingCategory.cmake b/modules/ECMQtDeclareLoggingCategory.cmake index c8ecd85b..e8bfe9bb 100644 --- a/modules/ECMQtDeclareLoggingCategory.cmake +++ b/modules/ECMQtDeclareLoggingCategory.cmake @@ -118,6 +118,10 @@ IF ``SORT`` is set, entries will be sorted by identifiers. ``COMPONENT`` specifies the installation component name with which the install rules for the generated file are associated. +Since 5.85.0 this is a no-op when building for Android, as KDebugSettings is +not available on that platform and the logging category files therefore just +bloat the APK. + Example usage: .. code-block:: cmake @@ -306,6 +310,11 @@ endfunction() function(ecm_qt_install_logging_categories) + # on Android there is no KDebugSettings, and thus the logging categories files make no sense in APKs + if (ANDROID) + return() + endif() + set(options SORT) set(oneValueArgs FILE EXPORT DESTINATION COMPONENT) set(multiValueArgs) |