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

Autogenerate categories files

parent 0f765330
......@@ -123,7 +123,15 @@ install(FILES
COMPONENT Devel
)
install(FILES akonadi-search.renamecategories akonadi-search.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES akonadi-search.renamecategories akonadi-search.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT AKONADISEARCH
FILE akonadi-search.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
feature_summary(WHAT ALL
INCLUDE_QUIET_PACKAGES
......
......@@ -20,7 +20,15 @@ set(akonadi_indexing_agent_SRCS
collectionupdatejob.cpp
)
ecm_qt_declare_logging_category(akonadi_indexing_agent_SRCS HEADER akonadi_indexer_agent_debug.h IDENTIFIER AKONADI_INDEXER_AGENT_LOG CATEGORY_NAME org.kde.pim.akonadi_indexer_agent)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadi_indexing_agent_SRCS HEADER akonadi_indexer_agent_debug.h IDENTIFIER AKONADI_INDEXER_AGENT_LOG CATEGORY_NAME org.kde.pim.akonadi_indexer_agent)
else()
ecm_qt_declare_logging_category(akonadi_indexing_agent_SRCS HEADER akonadi_indexer_agent_debug.h IDENTIFIER AKONADI_INDEXER_AGENT_LOG CATEGORY_NAME org.kde.pim.akonadi_indexer_agent
DESCRIPTION "akonadisearch (akonadi indexer agent)"
OLD_CATEGORY_NAMES log_akonadi_indexer_agent
EXPORT AKONADISEARCH
)
endif()
qt5_add_dbus_adaptor(akonadi_indexing_agent_SRCS org.freedesktop.Akonadi.Indexer.xml agent.h AkonadiIndexingAgent)
......
kde_enable_exceptions()
set(akonadi_search_plugin_SRCS searchplugin.cpp)
ecm_qt_declare_logging_category(akonadi_search_plugin_SRCS HEADER akonadiplugin_indexer_debug.h IDENTIFIER AKONADIPLUGIN_INDEXER_LOG CATEGORY_NAME org.kde.pim.akonadiplugin_indexer)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadi_search_plugin_SRCS HEADER akonadiplugin_indexer_debug.h IDENTIFIER AKONADIPLUGIN_INDEXER_LOG CATEGORY_NAME org.kde.pim.akonadiplugin_indexer)
else()
ecm_qt_declare_logging_category(akonadi_search_plugin_SRCS HEADER akonadiplugin_indexer_debug.h IDENTIFIER AKONADIPLUGIN_INDEXER_LOG CATEGORY_NAME org.kde.pim.akonadiplugin_indexer
DESCRIPTION "akonadisearch (akonadi plugin indexer)"
OLD_CATEGORY_NAMES log_akonadiplugin_indexer
EXPORT AKONADISEARCH
)
endif()
add_library(akonadi_search_plugin
MODULE
......
......@@ -7,7 +7,15 @@ set(CORE_SRCS
resultiterator.cpp
)
ecm_qt_declare_logging_category(CORE_SRCS HEADER akonadi_search_core_debug.h IDENTIFIER AKONADI_SEARCH_CORE_LOG CATEGORY_NAME org.kde.pim.akonadi_search_core)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(CORE_SRCS HEADER akonadi_search_core_debug.h IDENTIFIER AKONADI_SEARCH_CORE_LOG CATEGORY_NAME org.kde.pim.akonadi_search_core)
else()
ecm_qt_declare_logging_category(CORE_SRCS HEADER akonadi_search_core_debug.h IDENTIFIER AKONADI_SEARCH_CORE_LOG CATEGORY_NAME org.kde.pim.akonadi_search_core
DESCRIPTION "akonadisearch (akonadi core lib)"
EXPORT AKONADISEARCH
)
endif()
add_library(KF5AkonadiSearchCore ${CORE_SRCS})
......
......@@ -16,7 +16,16 @@ set(AKONADI_SEARCH_PIM_LIB_SRCS
../search/email/agepostingsource.cpp
)
ecm_qt_declare_logging_category(AKONADI_SEARCH_PIM_LIB_SRCS HEADER akonadi_search_pim_debug.h IDENTIFIER AKONADI_SEARCH_PIM_LOG CATEGORY_NAME org.kde.pim.akonadi_search_pim)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(AKONADI_SEARCH_PIM_LIB_SRCS HEADER akonadi_search_pim_debug.h IDENTIFIER AKONADI_SEARCH_PIM_LOG CATEGORY_NAME org.kde.pim.akonadi_search_pim)
else()
ecm_qt_declare_logging_category(AKONADI_SEARCH_PIM_LIB_SRCS HEADER akonadi_search_pim_debug.h IDENTIFIER AKONADI_SEARCH_PIM_LOG CATEGORY_NAME org.kde.pim.akonadi_search_pim
DESCRIPTION "akonadisearch(akonadi pim lib)"
OLD_CATEGORY_NAMES log_akonadi_search_pim
EXPORT AKONADISEARCH
)
endif()
add_library(KF5AkonadiSearchPIM ${AKONADI_SEARCH_PIM_LIB_SRCS})
add_library(KF5::AkonadiSearchPIM ALIAS KF5AkonadiSearchPIM)
......
ecm_qt_declare_logging_category(pimcontactsrunner_DEBUG HEADER akonadi_runner_debug.h
IDENTIFIER AKONADI_KRUNNER_LOG
CATEGORY_NAME org.kde.pim.akonadi_krunner_plugin
)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(pimcontactsrunner_DEBUG HEADER akonadi_runner_debug.h
IDENTIFIER AKONADI_KRUNNER_LOG
CATEGORY_NAME org.kde.pim.akonadi_krunner_plugin
)
else()
ecm_qt_declare_logging_category(pimcontactsrunner_DEBUG HEADER akonadi_runner_debug.h
IDENTIFIER AKONADI_KRUNNER_LOG
CATEGORY_NAME org.kde.pim.akonadi_krunner_plugin
DESCRIPTION "akonadisearch (akonadi plugin krunner)"
OLD_CATEGORY_NAMES log_akonadi_krunner_plugin
EXPORT AKONADISEARCH
)
endif()
set(pimcontactsrunner_SRCS
pimcontactsrunner.cpp
......
......@@ -8,7 +8,16 @@ set(XAPIAN_SRCS
xapianqueryparser.cpp
)
ecm_qt_declare_logging_category(XAPIAN_SRCS HEADER akonadi_search_xapian_debug.h IDENTIFIER AKONADI_SEARCH_XAPIAN_LOG CATEGORY_NAME org.kde.pim.akonadi_search_xapian)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(XAPIAN_SRCS HEADER akonadi_search_xapian_debug.h IDENTIFIER AKONADI_SEARCH_XAPIAN_LOG CATEGORY_NAME org.kde.pim.akonadi_search_xapian)
else()
ecm_qt_declare_logging_category(XAPIAN_SRCS HEADER akonadi_search_xapian_debug.h IDENTIFIER AKONADI_SEARCH_XAPIAN_LOG CATEGORY_NAME org.kde.pim.akonadi_search_xapian
DESCRIPTION "akonadisearch (akonadi indexer xapian)"
OLD_CATEGORY_NAMES log_akonadi_search_xapian
EXPORT AKONADISEARCH
)
endif()
add_library(KF5AkonadiSearchXapian ${XAPIAN_SRCS})
add_library(KF5::AkonadiSearchXapian ALIAS KF5AkonadiSearchXapian)
......
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