From c30d943a034224f79b3d5bae239bd396ea24db9e Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Sat, 10 Jul 2021 11:32:42 +0200 Subject: Don't install logging categories files on Android There is no KDebugSettings there, and thus those files just bloat the APK. --- modules/ECMQtDeclareLoggingCategory.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules') 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) -- cgit v1.2.1