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

Autogenerate more categories file

parent 0edc6171
......@@ -32,7 +32,15 @@ kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/kalarmresource.kcfg org
qt5_add_dbus_adaptor(kalarmresource_SRCS
${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.KAlarm.Settings.xml settings.h Akonadi_KAlarm_Resource::Settings icalsettingsadaptor ICalSettingsAdaptor)
ecm_qt_declare_logging_category(kalarmresource_SRCS HEADER kalarmresource_debug.h IDENTIFIER KALARMRESOURCE_LOG CATEGORY_NAME org.kde.pim.kalarmresource)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kalarmresource_SRCS HEADER kalarmresource_debug.h IDENTIFIER KALARMRESOURCE_LOG CATEGORY_NAME org.kde.pim.kalarmresource)
else()
ecm_qt_declare_logging_category(kalarmresource_SRCS HEADER kalarmresource_debug.h IDENTIFIER KALARMRESOURCE_LOG CATEGORY_NAME org.kde.pim.kalarmresource
DESCRIPTION "kalarm file resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_kalarmresource
EXPORT KDEPIMRUNTIME
)
endif()
add_custom_target(kalarm_resource_xml ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.KAlarm.Settings.xml)
......
......@@ -22,7 +22,16 @@ kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/kalarmdirresource.kcfg
qt5_add_dbus_adaptor(kalarmdirresource_SRCS
${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.KAlarmDir.Settings.xml settings.h Akonadi_KAlarm_Dir_Resource::Settings kalarmdirsettingsadaptor KAlarmDirSettingsAdaptor)
ecm_qt_declare_logging_category(kalarmdirresource_SRCS HEADER kalarmdirresource_debug.h IDENTIFIER KALARMDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.kalarmdirresource)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kalarmdirresource_SRCS HEADER kalarmdirresource_debug.h IDENTIFIER KALARMDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.kalarmdirresource)
else()
ecm_qt_declare_logging_category(kalarmdirresource_SRCS HEADER kalarmdirresource_debug.h IDENTIFIER KALARMDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.kalarmdirresource
DESCRIPTION "kalarm directory resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_kalarmdirresource
EXPORT KDEPIMRUNTIME
)
endif()
add_custom_target(kalarmdir_resource_xml ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.KAlarmDir.Settings.xml)
......
......@@ -51,7 +51,15 @@ set(KOLAB_SRCS
freebusy/freebusy.cpp
)
ecm_qt_declare_logging_category(KOLAB_SRCS HEADER pimkolab_debug.h IDENTIFIER PIMKOLAB_LOG CATEGORY_NAME org.kde.pim.pimkolab)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(KOLAB_SRCS HEADER pimkolab_debug.h IDENTIFIER PIMKOLAB_LOG CATEGORY_NAME org.kde.pim.pimkolab)
else()
ecm_qt_declare_logging_category(KOLAB_SRCS HEADER pimkolab_debug.h IDENTIFIER PIMKOLAB_LOG CATEGORY_NAME org.kde.pim.pimkolab
DESCRIPTION "pimkolab lib (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
set(KOLAB_LINK_LIBRARIES
KF5::CalendarCore
......
......@@ -26,7 +26,16 @@ set( maildirresource_SRCS
${maildir_common_SRCS}
)
ecm_qt_declare_logging_category(maildirresource_SRCS HEADER maildirresource_debug.h IDENTIFIER MAILDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.maildirresource)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(maildirresource_SRCS HEADER maildirresource_debug.h IDENTIFIER MAILDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.maildirresource)
else()
ecm_qt_declare_logging_category(maildirresource_SRCS HEADER maildirresource_debug.h IDENTIFIER MAILDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.maildirresource
DESCRIPTION "maildir resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_maildirresource
EXPORT KDEPIMRUNTIME
)
endif()
kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/maildirresource.kcfg org.kde.Akonadi.Maildir.Settings)
......
......@@ -6,7 +6,17 @@ endif()
add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_maildir_resource\")
set(maildir_LIB_SRCS keycache.cpp maildir.cpp)
ecm_qt_declare_logging_category(maildir_LIB_SRCS HEADER libmaildir_debug.h IDENTIFIER LIBMAILDIR_LOG CATEGORY_NAME org.kde.pim.libmaildir)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(maildir_LIB_SRCS HEADER libmaildir_debug.h IDENTIFIER LIBMAILDIR_LOG CATEGORY_NAME org.kde.pim.libmaildir)
else()
ecm_qt_declare_logging_category(maildir_LIB_SRCS HEADER libmaildir_debug.h IDENTIFIER LIBMAILDIR_LOG CATEGORY_NAME org.kde.pim.libmaildir
DESCRIPTION "libmaildir (kdepim-runtime)"
OLD_CATEGORY_NAMES log_libmaildir
EXPORT KDEPIMRUNTIME
)
endif()
add_library(maildir ${maildir_LIB_SRCS})
generate_export_header(maildir BASE_NAME maildir)
......
......@@ -27,7 +27,16 @@ set_source_files_properties(
PROPERTIES GENERATED TRUE
)
ecm_qt_declare_logging_category(mboxresource_SRCS HEADER mboxresource_debug.h IDENTIFIER MBOXRESOURCE_LOG CATEGORY_NAME org.kde.pim.mboxresource)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(mboxresource_SRCS HEADER mboxresource_debug.h IDENTIFIER MBOXRESOURCE_LOG CATEGORY_NAME org.kde.pim.mboxresource)
else()
ecm_qt_declare_logging_category(mboxresource_SRCS HEADER mboxresource_debug.h IDENTIFIER MBOXRESOURCE_LOG CATEGORY_NAME org.kde.pim.mboxresource
DESCRIPTION "mbox resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_mboxresource
EXPORT KDEPIMRUNTIME
)
endif()
install( FILES mboxresource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" )
......
......@@ -5,7 +5,16 @@ set(pop3_common_SRCS
settings.cpp
)
kconfig_add_kcfg_files(pop3_common_SRCS settingsbase.kcfgc)
ecm_qt_declare_logging_category(pop3_common_SRCS HEADER pop3resource_debug.h IDENTIFIER POP3RESOURCE_LOG CATEGORY_NAME org.kde.pim.pop3resource)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(pop3_common_SRCS HEADER pop3resource_debug.h IDENTIFIER POP3RESOURCE_LOG CATEGORY_NAME org.kde.pim.pop3resource)
else()
ecm_qt_declare_logging_category(pop3_common_SRCS HEADER pop3resource_debug.h IDENTIFIER POP3RESOURCE_LOG CATEGORY_NAME org.kde.pim.pop3resource
DESCRIPTION "pop3 resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_pop3resource
EXPORT KDEPIMRUNTIME
)
endif()
kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/settings.kcfg org.kde.Akonadi.POP3.Settings)
qt5_add_dbus_adaptor(pop3_common_SRCS
${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.POP3.Settings.xml settings.h Settings
......
......@@ -32,11 +32,23 @@ set(tomboynotesresource_SRCS
o2/o2simplecrypt.cpp
)
ecm_qt_declare_logging_category(tomboynotesresource_SRCS
HEADER debug.h
IDENTIFIER TOMBOYNOTESRESOURCE_LOG
CATEGORY_NAME org.kde.pim.tomboynotesresource
)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(tomboynotesresource_SRCS
HEADER debug.h
IDENTIFIER TOMBOYNOTESRESOURCE_LOG
CATEGORY_NAME org.kde.pim.tomboynotesresource
)
else()
ecm_qt_declare_logging_category(tomboynotesresource_SRCS
HEADER debug.h
IDENTIFIER TOMBOYNOTESRESOURCE_LOG
CATEGORY_NAME org.kde.pim.tomboynotesresource
DESCRIPTION "tomboynote resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_tomboynotesresource
EXPORT KDEPIMRUNTIME
)
endif()
......
......@@ -12,7 +12,15 @@ set( vcarddirresource_SRCS
${vcarddirresource_common_SRCS}
vcarddirresource.cpp
)
ecm_qt_declare_logging_category(vcarddirresource_SRCS HEADER vcarddirresource_debug.h IDENTIFIER VCARDDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.vcarddirresource)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(vcarddirresource_SRCS HEADER vcarddirresource_debug.h IDENTIFIER VCARDDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.vcarddirresource)
else()
ecm_qt_declare_logging_category(vcarddirresource_SRCS HEADER vcarddirresource_debug.h IDENTIFIER VCARDDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.vcarddirresource
DESCRIPTION "vcarddir resource (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/vcarddirresource.kcfg org.kde.Akonadi.VCardDirectory.Settings)
......
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