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

Autogenerate categories file

parent 0b764542
......@@ -102,7 +102,15 @@ add_subdirectory(src)
add_subdirectory(kontactplugin)
add_subdirectory(kconf_update)
install(FILES akregator.renamecategories akregator.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES akregator.renamecategories akregator.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT AKREGATOR
FILE akregator.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
add_subdirectory(doc)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -103,7 +103,16 @@ set(kcm_config_plugins_SRCS
akregator_config_plugins.cpp
akregatorconfigurepluginlistwidget.cpp
)
ecm_qt_declare_logging_category(kcm_config_plugins_SRCS HEADER kcm_config_plugins_debug.h IDENTIFIER AKREGATOR_CONFIG_PLUGIN_LOG CATEGORY_NAME org.kde.pim.akregator_config_plugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kcm_config_plugins_SRCS HEADER kcm_config_plugins_debug.h IDENTIFIER AKREGATOR_CONFIG_PLUGIN_LOG CATEGORY_NAME org.kde.pim.akregator_config_plugin)
else()
ecm_qt_declare_logging_category(kcm_config_plugins_SRCS HEADER kcm_config_plugins_debug.h IDENTIFIER AKREGATOR_CONFIG_PLUGIN_LOG CATEGORY_NAME org.kde.pim.akregator_config_plugin
DESCRIPTION "akregator config plugin (akregator)"
EXPORT AKREGATOR
)
endif()
add_library(akregator_config_plugins MODULE ${kcm_config_plugins_SRCS})
......
......@@ -15,7 +15,15 @@ add_subdirectory(icons)
########### next target ###############
set(akregator_common_SRCS)
ecm_qt_declare_logging_category(akregator_common_SRCS HEADER akregator_debug.h IDENTIFIER AKREGATOR_LOG CATEGORY_NAME org.kde.pim.akregator)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akregator_common_SRCS HEADER akregator_debug.h IDENTIFIER AKREGATOR_LOG CATEGORY_NAME org.kde.pim.akregator)
else()
ecm_qt_declare_logging_category(akregator_common_SRCS HEADER akregator_debug.h IDENTIFIER AKREGATOR_LOG CATEGORY_NAME org.kde.pim.akregator
DESCRIPTION "akregator (akregator)"
OLD_CATEGORY_NAMES log_akregator
EXPORT AKREGATOR
)
endif()
set(akregator_SRCS main.cpp mainwindow.cpp ${akregator_common_SRCS})
......
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