Commit 88ee7d68 authored by Laurent Montel's avatar Laurent Montel 😁

Autogenerate categories file

parent db7ecb58
......@@ -105,7 +105,15 @@ endif()
add_subdirectory(src)
add_subdirectory(kioslave)
install(FILES libksieve.categories libksieve.renamecategories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES libksieve.categories libksieve.renamecategories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT LIBKSIEVE
FILE libksieve.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
set(kio_sieve_PART_SRCS sieve.cpp )
ecm_qt_declare_logging_category(kio_sieve_PART_SRCS HEADER sieve_debug.h IDENTIFIER SIEVE_LOG CATEGORY_NAME org.kde.pim.sieve)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kio_sieve_PART_SRCS HEADER sieve_debug.h IDENTIFIER SIEVE_LOG CATEGORY_NAME org.kde.pim.sieve)
else()
ecm_qt_declare_logging_category(kio_sieve_PART_SRCS HEADER sieve_debug.h IDENTIFIER SIEVE_LOG CATEGORY_NAME org.kde.pim.sieve
DESCRIPTION "kioslave (sieve)"
OLD_CATEGORY_NAMES log_sieve
EXPORT LIBKSIEVE
)
endif()
add_library(kio_sieve MODULE ${kio_sieve_PART_SRCS})
......
......@@ -4,7 +4,16 @@ set(kmanagesieve_LIB_SRCS
sessionthread.cpp
sievejob.cpp
)
ecm_qt_declare_logging_category(kmanagesieve_LIB_SRCS HEADER kmanagersieve_debug.h IDENTIFIER KMANAGERSIEVE_LOG CATEGORY_NAME org.kde.pim.kmanagersieve)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kmanagesieve_LIB_SRCS HEADER kmanagersieve_debug.h IDENTIFIER KMANAGERSIEVE_LOG CATEGORY_NAME org.kde.pim.kmanagersieve)
else()
ecm_qt_declare_logging_category(kmanagesieve_LIB_SRCS HEADER kmanagersieve_debug.h IDENTIFIER KMANAGERSIEVE_LOG CATEGORY_NAME org.kde.pim.kmanagersieve
DESCRIPTION "kdepim (libksieve manager)"
OLD_CATEGORY_NAMES log_kmanagersieve
EXPORT LIBKSIEVE
)
endif()
add_library(KF5KManageSieve ${kmanagesieve_LIB_SRCS})
generate_export_header(KF5KManageSieve BASE_NAME kmanagesieve)
......
......@@ -223,7 +223,16 @@ set(ksieveui_LIB_SRCS
${ksieveui_managescriptjob_LIB_SRCS}
)
ecm_qt_declare_logging_category(ksieveui_LIB_SRCS HEADER libksieve_debug.h IDENTIFIER LIBKSIEVE_LOG CATEGORY_NAME org.kde.pim.libksieve)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(ksieveui_LIB_SRCS HEADER libksieve_debug.h IDENTIFIER LIBKSIEVE_LOG CATEGORY_NAME org.kde.pim.libksieve)
else()
ecm_qt_declare_logging_category(ksieveui_LIB_SRCS HEADER libksieve_debug.h IDENTIFIER LIBKSIEVE_LOG CATEGORY_NAME org.kde.pim.libksieve
DESCRIPTION "kdepim (libksieve)"
OLD_CATEGORY_NAMES log_libksieve
EXPORT LIBKSIEVE
)
endif()
kconfig_add_kcfg_files(ksieveui_LIB_SRCS settings/sieve-vacation.kcfgc settings/sieve-editor.kcfgc)
......
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