Commit 328585ed authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 68b2dd5c
...@@ -85,5 +85,8 @@ if (BUILD_TESTING) ...@@ -85,5 +85,8 @@ if (BUILD_TESTING)
add_subdirectory(tests) add_subdirectory(tests)
endif() endif()
install(FILES libgravatar.renamecategories libgravatar.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}) if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES libgravatar.renamecategories libgravatar.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
...@@ -13,7 +13,13 @@ set(gravatarlib_SRCS ...@@ -13,7 +13,13 @@ set(gravatarlib_SRCS
job/gravatarresolvurljob.cpp job/gravatarresolvurljob.cpp
) )
ecm_qt_declare_logging_category(gravatarlib_SRCS HEADER gravatar_debug.h IDENTIFIER GRAVATAR_LOG CATEGORY_NAME org.kde.pim.gravatar) if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(gravatarlib_SRCS HEADER gravatar_debug.h IDENTIFIER GRAVATAR_LOG CATEGORY_NAME org.kde.pim.gravatar)
else()
ecm_qt_declare_logging_category(gravatarlib_SRCS HEADER gravatar_debug.h IDENTIFIER GRAVATAR_LOG CATEGORY_NAME org.kde.pim.gravatar
OLD_CATEGORY_NAMES log_gravatar
DESCRIPTION "libgravatar (libgravatar)" EXPORT GRAVATAR)
endif()
kconfig_add_kcfg_files(gravatarlib_SRCS kconfig_add_kcfg_files(gravatarlib_SRCS
settings/gravatarsettings.kcfgc settings/gravatarsettings.kcfgc
...@@ -100,3 +106,7 @@ install(FILES ...@@ -100,3 +106,7 @@ install(FILES
install(FILES install(FILES
${PRI_FILENAME} ${PRI_FILENAME}
DESTINATION ${ECM_MKSPECS_INSTALL_DIR}) DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT GRAVATAR FILE libgravatar.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