Commit 0edc6171 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 9ab90021
......@@ -159,8 +159,15 @@ install(FILES kdepim-mime.xml DESTINATION ${KDE_INSTALL_MIMEDIR})
if (NOT NO_REGENERATE_MIME)
update_xdg_mimetypes(${KDE_INSTALL_MIMEDIR})
endif()
install(FILES kdepim-runtime.renamecategories kdepim-runtime.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES kdepim-runtime.renamecategories kdepim-runtime.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT KDEPIMRUNTIME
FILE kdepim-runtime.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
feature_summary(WHAT ALL
INCLUDE_QUIET_PACKAGES
......
......@@ -9,7 +9,15 @@ set( maildispatcheragent_SRCS
storeresultjob.cpp
)
ecm_qt_declare_logging_category(maildispatcheragent_SRCS HEADER maildispatcher_debug.h IDENTIFIER MAILDISPATCHER_LOG CATEGORY_NAME org.kde.pim.maildispatcher)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(maildispatcheragent_SRCS HEADER maildispatcher_debug.h IDENTIFIER MAILDISPATCHER_LOG CATEGORY_NAME org.kde.pim.maildispatcher)
else()
ecm_qt_declare_logging_category(maildispatcheragent_SRCS HEADER maildispatcher_debug.h IDENTIFIER MAILDISPATCHER_LOG CATEGORY_NAME org.kde.pim.maildispatcher
DESCRIPTION "maildispacher agent (kdepim-runtime)"
OLD_CATEGORY_NAMES log_maildispatcher
EXPORT KDEPIMRUNTIME
)
endif()
kconfig_add_kcfg_files(maildispatcheragent_SRCS settings.kcfgc)
kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/maildispatcheragent.kcfg org.kde.Akonadi.MailDispatcher.Settings)
......
......@@ -9,7 +9,16 @@ kconfig_add_kcfg_files(newmailnotifier_common_SRCS
newmailnotifieragentsettings.kcfgc
)
ecm_qt_declare_logging_category(newmailnotifier_common_SRCS HEADER newmailnotifier_debug.h IDENTIFIER NEWMAILNOTIFIER_LOG CATEGORY_NAME org.kde.pim.newmailnotifier)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(newmailnotifier_common_SRCS HEADER newmailnotifier_debug.h IDENTIFIER NEWMAILNOTIFIER_LOG CATEGORY_NAME org.kde.pim.newmailnotifier)
else()
ecm_qt_declare_logging_category(newmailnotifier_common_SRCS HEADER newmailnotifier_debug.h IDENTIFIER NEWMAILNOTIFIER_LOG CATEGORY_NAME org.kde.pim.newmailnotifier
DESCRIPTION "mailnotifier agent (kdepim-runtime)"
OLD_CATEGORY_NAMES log_newmailnotifier
EXPORT KDEPIMRUNTIME
)
endif()
set(newmailnotifieragent_SRCS
newmailnotifieragent.cpp
......
set(newmailnotifieragent_common_SRCS)
ecm_qt_declare_logging_category(newmailnotifieragent_common_SRCS HEADER newmailnotifier_debug.h IDENTIFIER NEWMAILNOTIFIER_LOG CATEGORY_NAME org.kde.pim.newmailnotifier)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(newmailnotifieragent_common_SRCS HEADER newmailnotifier_debug.h IDENTIFIER NEWMAILNOTIFIER_LOG CATEGORY_NAME org.kde.pim.newmailnotifier)
else()
ecm_qt_declare_logging_category(newmailnotifieragent_common_SRCS HEADER newmailnotifier_debug.h IDENTIFIER NEWMAILNOTIFIER_LOG CATEGORY_NAME org.kde.pim.newmailnotifier
DESCRIPTION "mailnotifier agent (kdepim-runtime)"
OLD_CATEGORY_NAMES log_newmailnotifier
EXPORT KDEPIMRUNTIME
)
endif()
set(newmailnotifierselectcollectionwidget_SRCS newmailnotifierselectcollectionwidget_test.cpp ../newmailnotifierselectcollectionwidget.cpp ${newmailnotifieragent_common_SRCS})
......
set(kio_akonadi_SRCS akonadislave.cpp)
ecm_qt_declare_logging_category(kio_akonadi_SRCS HEADER akonadislave_debug.h IDENTIFIER AKONADISLAVE_LOG CATEGORY_NAME org.kde.pim.akonadislave)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kio_akonadi_SRCS HEADER akonadislave_debug.h IDENTIFIER AKONADISLAVE_LOG CATEGORY_NAME org.kde.pim.akonadislave)
else()
ecm_qt_declare_logging_category(kio_akonadi_SRCS HEADER akonadislave_debug.h IDENTIFIER AKONADISLAVE_LOG CATEGORY_NAME org.kde.pim.akonadislave
DESCRIPTION "kioslave (akonadi)"
OLD_CATEGORY_NAMES log_akonadislave
EXPORT KDEPIMRUNTIME
)
endif()
add_library(kio_akonadi MODULE ${kio_akonadi_SRCS})
......
......@@ -2,7 +2,17 @@
set(kio_pop3_PART_SRCS pop3.cpp pop3_debug.cpp )
ecm_qt_declare_logging_category(kio_pop3_PART_SRCS HEADER pop3_debug.h IDENTIFIER POP3_LOG CATEGORY_NAME org.kde.pim.pop3)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kio_pop3_PART_SRCS HEADER pop3_debug.h IDENTIFIER POP3_LOG CATEGORY_NAME org.kde.pim.pop3)
else()
ecm_qt_declare_logging_category(kio_pop3_PART_SRCS HEADER pop3_debug.h IDENTIFIER POP3_LOG CATEGORY_NAME org.kde.pim.pop3
DESCRIPTION "kioslave (kdepim-runtime)"
OLD_CATEGORY_NAMES log_pop3resource
EXPORT KDEPIMRUNTIME
)
endif()
add_library(kio_pop3 MODULE ${kio_pop3_PART_SRCS})
......
......@@ -4,7 +4,15 @@ set(gid_SRCS
${MIGRATION_AKONADI_SHARED_SOURCES}
)
ecm_qt_declare_logging_category(gid_SRCS HEADER migration_debug.h IDENTIFIER MIGRATION_LOG CATEGORY_NAME org.kde.pim.migration)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(gid_SRCS HEADER migration_debug.h IDENTIFIER MIGRATION_LOG CATEGORY_NAME org.kde.pim.migration)
else()
ecm_qt_declare_logging_category(gid_SRCS HEADER migration_debug.h IDENTIFIER MIGRATION_LOG CATEGORY_NAME org.kde.pim.migration
DESCRIPTION "migration (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
add_library(gidmigration STATIC ${gid_SRCS})
target_link_libraries(gidmigration
......
......@@ -18,7 +18,17 @@ qt5_add_dbus_adaptor(birthdayresource_srcs
${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.Birthdays.Settings.xml settings.h Settings
)
ecm_qt_declare_logging_category(birthdayresource_srcs HEADER birthdays_debug.h IDENTIFIER BIRTHDAYS_LOG CATEGORY_NAME org.kde.pim.birthdays)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(birthdayresource_srcs HEADER birthdays_debug.h IDENTIFIER BIRTHDAYS_LOG CATEGORY_NAME org.kde.pim.birthdays)
else()
ecm_qt_declare_logging_category(birthdayresource_srcs HEADER birthdays_debug.h IDENTIFIER BIRTHDAYS_LOG CATEGORY_NAME org.kde.pim.birthdays
DESCRIPTION "birthdays resource (kdepim-runtime)"
OLD_CATEGORY_NAMES log_birthdays
EXPORT KDEPIMRUNTIME
)
endif()
add_executable(akonadi_birthdays_resource ${birthdayresource_srcs})
......
......@@ -22,7 +22,16 @@ qt5_add_dbus_adaptor(contactsresource_SRCS
${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.Contacts.Settings.xml settings.h ContactsResourceSettings contactsresourcesettingsadaptor ContactsResourceSettingsAdaptor
)
ecm_qt_declare_logging_category(contactsresource_SRCS HEADER contacts_resources_debug.h IDENTIFIER CONTACTSRESOURCES_LOG CATEGORY_NAME org.kde.pim.resources_contacts)
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)
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
EXPORT KDEPIMRUNTIME
)
endif()
install( FILES contactsresource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" )
......
......@@ -35,6 +35,16 @@ set( davgroupwareresource_SRCS
davgroupwareresource.cpp
)
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)
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
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" )
......
......@@ -14,7 +14,16 @@ set(calendarresource_SRCS
../common/kgapiversionattribute.cpp
${accounts_SRCS}
)
ecm_qt_declare_logging_category(calendarresource_SRCS HEADER googlecalendarresource_debug.h IDENTIFIER GOOGLE_CALENDAR_LOG CATEGORY_NAME org.kde.pim.google.calendar)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(calendarresource_SRCS HEADER googlecalendarresource_debug.h IDENTIFIER GOOGLE_CALENDAR_LOG CATEGORY_NAME org.kde.pim.google.calendar)
else()
ecm_qt_declare_logging_category(calendarresource_SRCS HEADER googlecalendarresource_debug.h IDENTIFIER GOOGLE_CALENDAR_LOG CATEGORY_NAME org.kde.pim.google.calendar
DESCRIPTION "resource google calendar (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
endif()
kconfig_add_kcfg_files(calendarresource_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/settingsbase.kcfgc)
kcfg_generate_dbus_interface(
......
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