Commit e79cc53c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 0e8effc6
......@@ -129,5 +129,7 @@ add_subdirectory(src)
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
install(FILES mailcommon.renamecategories mailcommon.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES mailcommon.renamecategories mailcommon.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -197,7 +197,14 @@ kconfig_add_kcfg_files(libmailcommon_SRCS
settings/mailcommonsettings_base.kcfgc
)
ecm_qt_declare_logging_category(libmailcommon_SRCS HEADER mailcommon_debug.h IDENTIFIER MAILCOMMON_LOG CATEGORY_NAME org.kde.pim.mailcommon)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libmailcommon_SRCS HEADER mailcommon_debug.h IDENTIFIER MAILCOMMON_LOG CATEGORY_NAME org.kde.pim.mailcommon)
else()
ecm_qt_declare_logging_category(libmailcommon_SRCS HEADER mailcommon_debug.h IDENTIFIER MAILCOMMON_LOG CATEGORY_NAME org.kde.pim.mailcommon
OLD_CATEGORY_NAMES log_mailcommon
DESCRIPTION "mailcommon (mailcommon)" EXPORT MAILCOMMON)
endif()
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/dbusinterfaces/org.freedesktop.Akonadi.MailFilterAgent.xml PROPERTIES INCLUDE "dbusoperators.h")
......@@ -507,3 +514,7 @@ install(FILES
if(BUILD_DESIGNERPLUGIN)
add_subdirectory(designer)
endif()
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT MAILCOMMON FILE mailcommon.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment