Commit 7fa39ce0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 9dca96aa
......@@ -92,8 +92,10 @@ add_definitions(-DQT_NO_FOREACH)
add_subdirectory(src)
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES calendarsupport.categories calendarsupport.renamecategories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
install(FILES calendarsupport.categories calendarsupport.renamecategories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -45,7 +45,14 @@ ki18n_wrap_ui(calendarsupport_LIB_SRCS
printing/calprintweekconfig_base.ui
printing/calprintyearconfig_base.ui
)
ecm_qt_declare_logging_category(calendarsupport_LIB_SRCS HEADER calendarsupport_debug.h IDENTIFIER CALENDARSUPPORT_LOG CATEGORY_NAME org.kde.pim.calendarsupport)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(calendarsupport_LIB_SRCS HEADER calendarsupport_debug.h IDENTIFIER CALENDARSUPPORT_LOG CATEGORY_NAME org.kde.pim.calendarsupport)
else()
ecm_qt_declare_logging_category(calendarsupport_LIB_SRCS HEADER calendarsupport_debug.h IDENTIFIER CALENDARSUPPORT_LOG CATEGORY_NAME org.kde.pim.calendarsupport
OLD_CATEGORY_NAMES log_calendarsupport
DESCRIPTION "calendarsupport (calendarsupport)" EXPORT CALENDARSUPPORT)
endif()
kconfig_add_kcfg_files(calendarsupport_LIB_SRCS kcalprefs_base.kcfgc)
......@@ -182,3 +189,6 @@ if(BUILD_TESTING)
endif()
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT CALENDARSUPPORT FILE calendarsupport.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