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

Autogenerate categories files

parent 29240738
......@@ -92,5 +92,13 @@ install(FILES
add_subdirectory(src)
install(FILES libkleo.renamecategories libkleo.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES libkleo.renamecategories libkleo.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT LIBKLEO
FILE libkleo.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
org.kde.pim.libkleo libkleo (kleo_core) IDENTIFIER [LIBKLEO_LOG]
org.kde.pim.kleo_ui libkleo (kleo_ui) IDENTIFIER [KLEO_UI_LOG]
org.kde.pim.gpgme_backend libkleo (gpgme_backend) IDENTIFIER [LIBKLEO_LOG]
log_kleo_ui org.kde.pim.kleo_ui
log_gpgme_backend org.kde.pim.gpgme_backend
......@@ -39,7 +39,15 @@ set(libkleo_core_SRCS
utils/gnupg.cpp
utils/hex.cpp
)
ecm_qt_declare_logging_category(libkleo_core_SRCS HEADER libkleo_debug.h IDENTIFIER LIBKLEO_LOG CATEGORY_NAME org.kde.pim.libkleo)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libkleo_core_SRCS HEADER libkleo_debug.h IDENTIFIER LIBKLEO_LOG CATEGORY_NAME org.kde.pim.libkleo)
else()
ecm_qt_declare_logging_category(libkleo_core_SRCS HEADER libkleo_debug.h IDENTIFIER LIBKLEO_LOG CATEGORY_NAME org.kde.pim.libkleo
DESCRIPTION "libkleo (kleo_core)"
EXPORT LIBKLEO
)
endif()
set(libkleo_ui_common_SRCS
ui/dnattributeorderconfigwidget.cpp
......@@ -53,7 +61,17 @@ set(libkleo_ui_common_SRCS
ui/progressdialog.cpp
ui/auditlogviewer.cpp
)
ecm_qt_declare_logging_category(libkleo_ui_common_SRCS HEADER kleo_ui_debug.h IDENTIFIER KLEO_UI_LOG CATEGORY_NAME org.kde.pim.kleo_ui)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libkleo_ui_common_SRCS HEADER kleo_ui_debug.h IDENTIFIER KLEO_UI_LOG CATEGORY_NAME org.kde.pim.kleo_ui)
else()
ecm_qt_declare_logging_category(libkleo_ui_common_SRCS HEADER kleo_ui_debug.h IDENTIFIER KLEO_UI_LOG CATEGORY_NAME org.kde.pim.kleo_ui
DESCRIPTION "libkleo (kleo_ui)"
OLD_CATEGORY_NAMES log_kleo_ui
EXPORT LIBKLEO
)
endif()
set(libkleo_ui_SRCS # make this a separate lib.
ui/keylistview.cpp
......
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