Commit 87713e69 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate category files

parent 8712e581
......@@ -349,7 +349,15 @@ install(EXPORT
FILE KF5AkonadiTargets.cmake
NAMESPACE KF5::)
install(FILES akonadi.categories akonadi.renamecategories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES akonadi.categories akonadi.renamecategories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT AKONADI
FILE akonadi.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/akonadi_version.h
......
......@@ -11,7 +11,15 @@ set(akonadiagentbase_SRCS
transportresourcebase.cpp
)
ecm_qt_declare_logging_category(akonadiagentbase_SRCS HEADER akonadiagentbase_debug.h IDENTIFIER AKONADIAGENTBASE_LOG CATEGORY_NAME org.kde.pim.akonadiagentbase)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadiagentbase_SRCS HEADER akonadiagentbase_debug.h IDENTIFIER AKONADIAGENTBASE_LOG CATEGORY_NAME org.kde.pim.akonadiagentbase)
else()
ecm_qt_declare_logging_category(akonadiagentbase_SRCS HEADER akonadiagentbase_debug.h IDENTIFIER AKONADIAGENTBASE_LOG CATEGORY_NAME org.kde.pim.akonadiagentbase
DESCRIPTION "akonadi (Akonadi AgentBase Library)"
OLD_CATEGORY_NAMES akonadiagentbase_log
EXPORT AKONADI
)
endif()
ecm_generate_headers(AkonadiAgentBase_HEADERS
HEADER_NAMES
......
......@@ -6,7 +6,16 @@ set(akonadi_agent_server_srcs
main.cpp
)
ecm_qt_declare_logging_category(akonadi_agent_server_srcs HEADER akonadiagentserver_debug.h IDENTIFIER AKONADIAGENTSERVER_LOG CATEGORY_NAME org.kde.pim.akonadiagentserver)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadi_agent_server_srcs HEADER akonadiagentserver_debug.h IDENTIFIER AKONADIAGENTSERVER_LOG CATEGORY_NAME org.kde.pim.akonadiagentserver)
else()
ecm_qt_declare_logging_category(akonadi_agent_server_srcs HEADER akonadiagentserver_debug.h IDENTIFIER AKONADIAGENTSERVER_LOG CATEGORY_NAME org.kde.pim.akonadiagentserver
DESCRIPTION "akonadi (Akonadi Agent Server)"
OLD_CATEGORY_NAMES log_akonadiagentserver
EXPORT AKONADI
)
endif()
add_executable(akonadi_agent_server ${akonadi_agent_server_srcs})
set_target_properties(akonadi_agent_server PROPERTIES MACOSX_BUNDLE FALSE)
......
......@@ -17,7 +17,15 @@ if (WITH_ACCOUNTS)
list(APPEND control_SRCS accountsintegration.cpp)
endif()
ecm_qt_declare_logging_category(control_SRCS HEADER akonadicontrol_debug.h IDENTIFIER AKONADICONTROL_LOG CATEGORY_NAME org.kde.pim.akonadicontrol)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(control_SRCS HEADER akonadicontrol_debug.h IDENTIFIER AKONADICONTROL_LOG CATEGORY_NAME org.kde.pim.akonadicontrol)
else()
ecm_qt_declare_logging_category(control_SRCS HEADER akonadicontrol_debug.h IDENTIFIER AKONADICONTROL_LOG CATEGORY_NAME org.kde.pim.akonadicontrol
DESCRIPTION "akonadi (Akonadi Control)"
EXPORT AKONADI
)
endif()
qt5_add_dbus_adaptor(control_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.AgentManager.xml agentmanager.h AgentManager)
qt5_add_dbus_adaptor(control_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.ControlManager.xml controlmanager.h ControlManager)
......
......@@ -7,7 +7,16 @@ set(akonadictl_SRCS
main.cpp
)
ecm_qt_declare_logging_category(akonadictl_SRCS HEADER akonadictl_debug.h IDENTIFIER AKONADICTL_LOG CATEGORY_NAME org.kde.pim.akonadictl)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadictl_SRCS HEADER akonadictl_debug.h IDENTIFIER AKONADICTL_LOG CATEGORY_NAME org.kde.pim.akonadictl)
else()
ecm_qt_declare_logging_category(akonadictl_SRCS HEADER akonadictl_debug.h IDENTIFIER AKONADICTL_LOG CATEGORY_NAME org.kde.pim.akonadictl
DESCRIPTION "akonadi (Akonadi Control)"
OLD_CATEGORY_NAMES log_akonadictl
EXPORT AKONADI
)
endif()
qt5_add_dbus_interfaces(akonadictl_SRCS
${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.ControlManager.xml
......
......@@ -282,7 +282,16 @@ set(akonadicore_SRCS
${akonadicore_dbus_SRCS}
)
ecm_qt_declare_logging_category(akonadicore_SRCS HEADER akonadicore_debug.h IDENTIFIER AKONADICORE_LOG CATEGORY_NAME org.kde.pim.akonadicore)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadicore_SRCS HEADER akonadicore_debug.h IDENTIFIER AKONADICORE_LOG CATEGORY_NAME org.kde.pim.akonadicore)
else()
ecm_qt_declare_logging_category(akonadicore_SRCS HEADER akonadicore_debug.h IDENTIFIER AKONADICORE_LOG CATEGORY_NAME org.kde.pim.akonadicore
DESCRIPTION "akonadi (Akonadi Core Library)"
OLD_CATEGORY_NAMES log_akonadicore
EXPORT AKONADI
)
endif()
add_library(KF5AkonadiCore ${akonadicore_SRCS})
......
......@@ -41,7 +41,16 @@ if (WIN32)
)
endif()
ecm_qt_declare_logging_category(akonadiprivate_SRCS HEADER akonadiprivate_debug.h IDENTIFIER AKONADIPRIVATE_LOG CATEGORY_NAME org.kde.pim.akonadiprivate)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadiprivate_SRCS HEADER akonadiprivate_debug.h IDENTIFIER AKONADIPRIVATE_LOG CATEGORY_NAME org.kde.pim.akonadiprivate)
else()
ecm_qt_declare_logging_category(akonadiprivate_SRCS HEADER akonadiprivate_debug.h IDENTIFIER AKONADIPRIVATE_LOG CATEGORY_NAME org.kde.pim.akonadiprivate
DESCRIPTION "akonadi (Akonadi Private Library)"
OLD_CATEGORY_NAMES akonadiprivate_log
EXPORT AKONADI
)
endif()
macro(update_include_directories _target)
target_include_directories(${_target} PUBLIC "$<BUILD_INTERFACE:${Akonadi_SOURCE_DIR}/src/private;${Akonadi_BINARY_DIR}/src/private;${Akonadi_BINARY_DIR}/src>")
......
......@@ -138,8 +138,25 @@ set(libakonadiserver_SRCS
set(akonadiserver_SRCS
main.cpp
)
ecm_qt_declare_logging_category(akonadiserver_SRCS HEADER akonadiserver_debug.h IDENTIFIER AKONADISERVER_LOG CATEGORY_NAME org.kde.pim.akonadiserver)
ecm_qt_declare_logging_category(akonadiserver_SRCS HEADER akonadiserver_search_debug.h IDENTIFIER AKONADISERVER_SEARCH_LOG CATEGORY_NAME org.kde.pim.akonadiserver.search)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadiserver_SRCS HEADER akonadiserver_debug.h IDENTIFIER AKONADISERVER_LOG CATEGORY_NAME org.kde.pim.akonadiserver)
else()
ecm_qt_declare_logging_category(akonadiserver_SRCS HEADER akonadiserver_debug.h IDENTIFIER AKONADISERVER_LOG CATEGORY_NAME org.kde.pim.akonadiserver
DESCRIPTION "akonadi (Akonadi Server)"
OLD_CATEGORY_NAMES log_akonadiserver
EXPORT AKONADI
)
endif()
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadiserver_SRCS HEADER akonadiserver_search_debug.h IDENTIFIER AKONADISERVER_SEARCH_LOG CATEGORY_NAME org.kde.pim.akonadiserver.search)
else()
ecm_qt_declare_logging_category(akonadiserver_SRCS HEADER akonadiserver_search_debug.h IDENTIFIER AKONADISERVER_SEARCH_LOG CATEGORY_NAME org.kde.pim.akonadiserver.search
DESCRIPTION "akonadi (Akonadi Server Search Functionality)"
EXPORT AKONADI
)
endif()
qt5_generate_dbus_interface(debuginterface.h org.freedesktop.Akonadi.DebugInterface.xml)
qt5_add_dbus_adaptor(libakonadiserver_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.TracerNotification.xml dbustracer.h Akonadi::Server::DBusTracer)
......
......@@ -38,7 +38,16 @@ set(akonadiwidgets_SRCS
tagselectwidget.cpp
)
ecm_qt_declare_logging_category(akonadiwidgets_SRCS HEADER akonadiwidgets_debug.h IDENTIFIER AKONADIWIDGETS_LOG CATEGORY_NAME org.kde.pim.akonadiwidgets)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadiwidgets_SRCS HEADER akonadiwidgets_debug.h IDENTIFIER AKONADIWIDGETS_LOG CATEGORY_NAME org.kde.pim.akonadiwidgets)
else()
ecm_qt_declare_logging_category(akonadiwidgets_SRCS HEADER akonadiwidgets_debug.h IDENTIFIER AKONADIWIDGETS_LOG CATEGORY_NAME org.kde.pim.akonadiwidgets
DESCRIPTION "akonadi (Akonadi Widget Library)"
OLD_CATEGORY_NAMES akonadiwidgets_log
EXPORT AKONADI
)
endif()
set(akonadiwidgets_UI
cachepolicypage.ui
......
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