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

Autogenerate categories file

parent 2f197de7
......@@ -36,16 +36,15 @@ set( davgroupwareresource_SRCS
)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(contactsresource_SRCS HEADER contacts_resources_debug.h IDENTIFIER CONTACTSRESOURCES_LOG CATEGORY_NAME org.kde.pim.resources_contacts)
ecm_qt_declare_logging_category(davgroupwareresource_SRCS HEADER davresource_debug.h IDENTIFIER DAVRESOURCE_LOG CATEGORY_NAME org.kde.pim.davresource)
else()
ecm_qt_declare_logging_category(contactsresource_SRCS HEADER contacts_resources_debug.h IDENTIFIER CONTACTSRESOURCES_LOG CATEGORY_NAME org.kde.pim.resources_contacts
DESCRIPTION "contacts resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_resources_contacts
ecm_qt_declare_logging_category(davgroupwareresource_SRCS HEADER davresource_debug.h IDENTIFIER DAVRESOURCE_LOG CATEGORY_NAME org.kde.pim.davresource
DESCRIPTION "dav resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_davresource
EXPORT KDEPIMRUNTIME
)
endif()
ecm_qt_declare_logging_category(davgroupwareresource_SRCS HEADER davresource_debug.h IDENTIFIER DAVRESOURCE_LOG CATEGORY_NAME org.kde.pim.davresource)
install( FILES davgroupwareresource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" )
install( FILES davgroupwareprovider.desktop DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR} )
......
......@@ -74,14 +74,36 @@ set(ewsresource_SRCS
ewssubscriptionmanager.cpp
ewssubscriptionwidget.cpp)
ecm_qt_declare_logging_category(ewsresource_SRCS
HEADER ewsres_debug.h
IDENTIFIER EWSRES_LOG
CATEGORY_NAME org.kde.pim.ews)
ecm_qt_declare_logging_category(ewsresource_SRCS
HEADER ewsres_agentif_debug.h
IDENTIFIER EWSRES_AGENTIF_LOG
CATEGORY_NAME org.kde.pim.ews.agentif)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(ewsresource_SRCS
HEADER ewsres_debug.h
IDENTIFIER EWSRES_LOG
CATEGORY_NAME org.kde.pim.ews)
else()
ecm_qt_declare_logging_category(ewsresource_SRCS
HEADER ewsres_debug.h
IDENTIFIER EWSRES_LOG
CATEGORY_NAME org.kde.pim.ews
DESCRIPTION "ews resource (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(ewsresource_SRCS
HEADER ewsres_agentif_debug.h
IDENTIFIER EWSRES_AGENTIF_LOG
CATEGORY_NAME org.kde.pim.ews.agentif)
else()
ecm_qt_declare_logging_category(ewsresource_SRCS
HEADER ewsres_agentif_debug.h
IDENTIFIER EWSRES_AGENTIF_LOG
CATEGORY_NAME org.kde.pim.ews.agentif
DESCRIPTION "exchange ews agent (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
ki18n_wrap_ui(ewsresource_SRCS ewsconfigdialog.ui)
......@@ -124,11 +146,21 @@ if (HAVE_SEPARATE_MTA_RESOURCE)
set(ewsmtaresource_SRCS
ewsmtaconfigdialog.cpp
ewsmtaresource.cpp)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(ewsmtaresource_SRCS
HEADER ewsres_mta_debug.h
IDENTIFIER EWSRES_MTA_LOG
CATEGORY_NAME org.kde.pim.ews.mta)
else()
ecm_qt_declare_logging_category(ewsmtaresource_SRCS
HEADER ewsres_mta_debug.h
IDENTIFIER EWSRES_MTA_LOG
CATEGORY_NAME org.kde.pim.ews.mta
DESCRIPTION "ews mta (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
ecm_qt_declare_logging_category(ewsmtaresource_SRCS
HEADER ewsres_mta_debug.h
IDENTIFIER EWSRES_MTA_LOG
CATEGORY_NAME org.kde.pim.ews.mta)
ki18n_wrap_ui(ewsmtaresource_SRCS ewsmtaconfigdialog.ui)
......
......@@ -72,25 +72,72 @@ if (Qca-qt5_FOUND)
auth/ewspkeyauthjob.cpp)
endif ()
ecm_qt_declare_logging_category(EWSCLIENT_SRCS
HEADER ewscli_debug.h
IDENTIFIER EWSCLI_LOG
CATEGORY_NAME org.kde.pim.ews.client)
ecm_qt_declare_logging_category(EWSCLIENT_SRCS
HEADER ewscli_proto_debug.h
IDENTIFIER EWSCLI_PROTO_LOG
CATEGORY_NAME org.kde.pim.ews.client.proto
DEFAULT_SEVERITY Warning)
ecm_qt_declare_logging_category(EWSCLIENT_SRCS
HEADER ewscli_req_debug.h
IDENTIFIER EWSCLI_REQUEST_LOG
CATEGORY_NAME org.kde.pim.ews.client.request
DEFAULT_SEVERITY Warning)
ecm_qt_declare_logging_category(EWSCLIENT_SRCS
HEADER ewscli_failedreq_debug.h
IDENTIFIER EWSCLI_FAILEDREQUEST_LOG
CATEGORY_NAME org.kde.pim.ews.client.failedrequest
DEFAULT_SEVERITY Warning)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(EWSCLIENT_SRCS
HEADER ewscli_debug.h
IDENTIFIER EWSCLI_LOG
CATEGORY_NAME org.kde.pim.ews.client)
else()
ecm_qt_declare_logging_category(EWSCLIENT_SRCS
HEADER ewscli_debug.h
IDENTIFIER EWSCLI_LOG
CATEGORY_NAME org.kde.pim.ews.client
DESCRIPTION "ews client (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(EWSCLIENT_SRCS
HEADER ewscli_proto_debug.h
IDENTIFIER EWSCLI_PROTO_LOG
CATEGORY_NAME org.kde.pim.ews.client.proto
DEFAULT_SEVERITY Warning)
else()
ecm_qt_declare_logging_category(EWSCLIENT_SRCS
HEADER ewscli_proto_debug.h
IDENTIFIER EWSCLI_PROTO_LOG
CATEGORY_NAME org.kde.pim.ews.client.proto
DEFAULT_SEVERITY Warning
DESCRIPTION "ews client proto (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(EWSCLIENT_SRCS
HEADER ewscli_req_debug.h
IDENTIFIER EWSCLI_REQUEST_LOG
CATEGORY_NAME org.kde.pim.ews.client.request
DEFAULT_SEVERITY Warning)
else()
ecm_qt_declare_logging_category(EWSCLIENT_SRCS
HEADER ewscli_req_debug.h
IDENTIFIER EWSCLI_REQUEST_LOG
CATEGORY_NAME org.kde.pim.ews.client.request
DEFAULT_SEVERITY Warning
DESCRIPTION "ews client request (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(EWSCLIENT_SRCS
HEADER ewscli_failedreq_debug.h
IDENTIFIER EWSCLI_FAILEDREQUEST_LOG
CATEGORY_NAME org.kde.pim.ews.client.failedrequest
DEFAULT_SEVERITY Warning)
else()
ecm_qt_declare_logging_category(EWSCLIENT_SRCS
HEADER ewscli_failedreq_debug.h
IDENTIFIER EWSCLI_FAILEDREQUEST_LOG
CATEGORY_NAME org.kde.pim.ews.client.failedrequest
DEFAULT_SEVERITY Warning
DESCRIPTION "ews client failed request (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
add_library(ewsclient STATIC ${EWSCLIENT_SRCS})
target_link_libraries(ewsclient
......
......@@ -45,12 +45,28 @@ set( imapresource_LIB_SRCS
${AKONADI_IMAPATTRIBUTES_SHARED_SOURCES}
)
ecm_qt_declare_logging_category(imapresource_LIB_SRCS HEADER imapresource_debug.h IDENTIFIER IMAPRESOURCE_LOG CATEGORY_NAME org.kde.pim.imapresource)
ecm_qt_declare_logging_category(imapresource_LIB_SRCS HEADER imapresource_trace.h
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(imapresource_LIB_SRCS HEADER imapresource_debug.h IDENTIFIER IMAPRESOURCE_LOG CATEGORY_NAME org.kde.pim.imapresource)
else()
ecm_qt_declare_logging_category(imapresource_LIB_SRCS HEADER imapresource_debug.h IDENTIFIER IMAPRESOURCE_LOG CATEGORY_NAME org.kde.pim.imapresource
DESCRIPTION "imap resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_imapresource
EXPORT KDEPIMRUNTIME
)
endif()
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(imapresource_LIB_SRCS HEADER imapresource_trace.h
IDENTIFIER IMAPRESOURCE_TRACE
CATEGORY_NAME org.kde.pim.imapresource.trace
)
)
else()
ecm_qt_declare_logging_category(imapresource_LIB_SRCS HEADER imapresource_trace.h
IDENTIFIER IMAPRESOURCE_TRACE
CATEGORY_NAME org.kde.pim.imapresource.trace
DESCRIPTION "resource kolab trace (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
kcfg_generate_dbus_interface( ${CMAKE_CURRENT_SOURCE_DIR}/imapresource.kcfg org.kde.Akonadi.Imap.Settings )
kconfig_add_kcfg_files(imapresource_LIB_SRCS settingsbase.kcfgc)
......
......@@ -32,16 +32,39 @@ set(kolabresource_SRCS
updatemessagejob.cpp
)
ecm_qt_declare_logging_category(kolabresource_SRCS
HEADER kolabresource_debug.h
IDENTIFIER KOLABRESOURCE_LOG
CATEGORY_NAME org.kde.pim.kolabresource
)
ecm_qt_declare_logging_category(kolabresource_SRCS
HEADER kolabresource_trace.h
IDENTIFIER KOLABRESOURCE_TRACE
CATEGORY_NAME org.kde.pim.kolabresource.trace
)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kolabresource_SRCS
HEADER kolabresource_debug.h
IDENTIFIER KOLABRESOURCE_LOG
CATEGORY_NAME org.kde.pim.kolabresource
)
else()
ecm_qt_declare_logging_category(kolabresource_SRCS
HEADER kolabresource_debug.h
IDENTIFIER KOLABRESOURCE_LOG
CATEGORY_NAME org.kde.pim.kolabresource
DESCRIPTION "kolab resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_kolabresource
EXPORT KDEPIMRUNTIME
)
endif()
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kolabresource_SRCS
HEADER kolabresource_trace.h
IDENTIFIER KOLABRESOURCE_TRACE
CATEGORY_NAME org.kde.pim.kolabresource.trace
)
else()
ecm_qt_declare_logging_category(kolabresource_SRCS
HEADER kolabresource_trace.h
IDENTIFIER KOLABRESOURCE_TRACE
CATEGORY_NAME org.kde.pim.kolabresource.trace
DESCRIPTION "resource kolab trace (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
kconfig_add_kcfg_files(kolabresource_SRCS ../imap/settingsbase.kcfgc)
......
......@@ -23,9 +23,24 @@ set( mixedmaildirresource_SRCS
retrieveitemsjob.cpp
${mixedmaildir_common_SRCS}
)
ecm_qt_declare_logging_category(mixedmaildirresource_SRCS HEADER mixedmaildirresource_debug.h IDENTIFIER MIXEDMAILDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.mixedmaildirresource)
ecm_qt_declare_logging_category(mixedmaildirresource_SRCS HEADER mixedmaildir_debug.h IDENTIFIER MIXEDMAILDIR_LOG CATEGORY_NAME org.kde.pim.mixedmaildir)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(mixedmaildirresource_SRCS HEADER mixedmaildirresource_debug.h IDENTIFIER MIXEDMAILDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.mixedmaildirresource)
else()
ecm_qt_declare_logging_category(mixedmaildirresource_SRCS HEADER mixedmaildirresource_debug.h IDENTIFIER MIXEDMAILDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.mixedmaildirresource
DESCRIPTION "mixed maildir resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_mixedmaildir
EXPORT KDEPIMRUNTIME
)
endif()
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(mixedmaildirresource_SRCS HEADER mixedmaildir_debug.h IDENTIFIER MIXEDMAILDIR_LOG CATEGORY_NAME org.kde.pim.mixedmaildir)
else()
ecm_qt_declare_logging_category(mixedmaildirresource_SRCS HEADER mixedmaildir_debug.h IDENTIFIER MIXEDMAILDIR_LOG CATEGORY_NAME org.kde.pim.mixedmaildir
DESCRIPTION "mixedmaildir resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_mixedmaildirresource
EXPORT KDEPIMRUNTIME
)
endif()
install( FILES mixedmaildirresource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" )
......
......@@ -20,7 +20,14 @@ set(akonadi-filestore_SRCS
storecompactjob.cpp
)
ecm_qt_declare_logging_category(akonadi-filestore_SRCS HEADER akonadifilestore_debug.h IDENTIFIER AKONADIFILESTORE_LOG CATEGORY_NAME org.kde.pim.filestore)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadi-filestore_SRCS HEADER akonadifilestore_debug.h IDENTIFIER AKONADIFILESTORE_LOG CATEGORY_NAME org.kde.pim.filestore)
else()
ecm_qt_declare_logging_category(akonadi-filestore_SRCS HEADER akonadifilestore_debug.h IDENTIFIER AKONADIFILESTORE_LOG CATEGORY_NAME org.kde.pim.filestore
DESCRIPTION "resource filestore lib (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
add_library(akonadi-filestore ${akonadi-filestore_SRCS} )
......
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