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

Generate categories file here too

parent 57de684a
......@@ -3,10 +3,20 @@ set(kmail_expertplugin_SRCS
expertplugininterface.cpp
)
ecm_qt_declare_logging_category(kmail_expertplugin_SRCS
HEADER expertplugin_debug.h
IDENTIFIER KMAIL_EXPERT_PLUGIN_LOG
CATEGORY_NAME org.kde.pim.kmail_expertplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kmail_expertplugin_SRCS
HEADER expertplugin_debug.h
IDENTIFIER KMAIL_EXPERT_PLUGIN_LOG
CATEGORY_NAME org.kde.pim.kmail_expertplugin)
else()
ecm_qt_declare_logging_category(kmail_expertplugin_SRCS
HEADER expertplugin_debug.h
IDENTIFIER KMAIL_EXPERT_PLUGIN_LOG
CATEGORY_NAME org.kde.pim.kmail_expertplugin
DESCRIPTION "kdepim-addons (kmail expert plugin)"
EXPORT KDEPIMADDONS
)
endif()
kcoreaddons_add_plugin(kmail_expertplugin JSON kmail_expertplugin.json SOURCES
${kmail_expertplugin_SRCS} INSTALL_NAMESPACE kmail/mainview)
......
......@@ -5,7 +5,14 @@ set(mailtransport_sendplugin_SRCS
sendmailconfigdialog.cpp
)
ecm_qt_declare_logging_category(mailtransport_sendplugin_SRCS HEADER sendmailplugin_debug.h IDENTIFIER MAILTRANSPORT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.mailtransport_sendmail)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(mailtransport_sendplugin_SRCS HEADER sendmailplugin_debug.h IDENTIFIER MAILTRANSPORT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.mailtransport_sendmail)
else()
ecm_qt_declare_logging_category(mailtransport_sendplugin_SRCS HEADER sendmailplugin_debug.h IDENTIFIER MAILTRANSPORT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.mailtransport_sendmail
DESCRIPTION "kdepim-addons (kmailtransport sendmail plugin)"
EXPORT KDEPIMADDONS
)
endif()
ki18n_wrap_ui(mailtransport_sendplugin_SRCS
......
......@@ -4,8 +4,16 @@ set(korg_picoftheday_PART_SRCS
configdialog.cpp
picoftheday.cpp
)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(korg_picoftheday_PART_SRCS HEADER korganizer_picoftheday_plugin_debug.h IDENTIFIER KORGANIZERPICOFTHEDAYPLUGIN_LOG CATEGORY_NAME org.kde.pim.korganizer_picoftheday_plugins)
else()
ecm_qt_declare_logging_category(korg_picoftheday_PART_SRCS HEADER korganizer_picoftheday_plugin_debug.h IDENTIFIER KORGANIZERPICOFTHEDAYPLUGIN_LOG CATEGORY_NAME org.kde.pim.korganizer_picoftheday_plugins
DESCRIPTION "kdepim-addons (korganizer picoftheday plugins)"
OLD_CATEGORY_NAMES log_korganizer_picoftheday_plugins
EXPORT KDEPIMADDONS
)
endif()
ecm_qt_declare_logging_category(korg_picoftheday_PART_SRCS HEADER korganizer_picoftheday_plugin_debug.h IDENTIFIER KORGANIZERPICOFTHEDAYPLUGIN_LOG CATEGORY_NAME org.kde.pim.korganizer_picoftheday_plugins)
add_library(korg_picoftheday MODULE ${korg_picoftheday_PART_SRCS})
......
......@@ -5,7 +5,16 @@ set(messageviewer_bodypartformatter_text_calendar_PART_SRCS
text_calendar.cpp delegateselector.cpp attendeeselector.cpp memorycalendarmemento.cpp syncitiphandler.cpp
reactiontoinvitationdialog.cpp)
ecm_qt_declare_logging_category(messageviewer_bodypartformatter_text_calendar_PART_SRCS HEADER text_calendar_debug.h IDENTIFIER TEXT_CALENDAR_LOG CATEGORY_NAME org.kde.pim.text_calendar)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(messageviewer_bodypartformatter_text_calendar_PART_SRCS HEADER text_calendar_debug.h IDENTIFIER TEXT_CALENDAR_LOG CATEGORY_NAME org.kde.pim.text_calendar)
else()
ecm_qt_declare_logging_category(messageviewer_bodypartformatter_text_calendar_PART_SRCS HEADER text_calendar_debug.h IDENTIFIER TEXT_CALENDAR_LOG CATEGORY_NAME org.kde.pim.text_calendar
DESCRIPTION "kdepim-addons (messageviewer calendar plugins)"
OLD_CATEGORY_NAMES log_text_calendar
EXPORT KDEPIMADDONS
)
endif()
qt5_add_dbus_interfaces(messageviewer_bodypartformatter_text_calendar_PART_SRCS
korganizer/org.kde.Korganizer.Calendar.xml
......
......@@ -13,10 +13,21 @@ set(messageviewer_bodypartformatter_application_gnupgwks_SRCS
qt5_add_resources(messageviewer_bodypartformatter_application_gnupgwks_SRCS templates.qrc)
ecm_qt_declare_logging_category(messageviewer_bodypartformatter_application_gnupgwks_SRCS
HEADER gnupgwks_debug.h
IDENTIFIER GNUPGWKS_LOG
CATEGORY_NAME org.kde.pim.gnupgwks)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(messageviewer_bodypartformatter_application_gnupgwks_SRCS
HEADER gnupgwks_debug.h
IDENTIFIER GNUPGWKS_LOG
CATEGORY_NAME org.kde.pim.gnupgwks)
else()
ecm_qt_declare_logging_category(messageviewer_bodypartformatter_application_gnupgwks_SRCS
HEADER gnupgwks_debug.h
IDENTIFIER GNUPGWKS_LOG
CATEGORY_NAME org.kde.pim.gnupgwks
DESCRIPTION "kdepim-addons (OpenPGP and GnuPG WKS body part formatter plugin)"
EXPORT KDEPIMADDONS
)
endif()
add_library(messageviewer_bodypartformatter_application_gnupgwks MODULE ${messageviewer_bodypartformatter_application_gnupgwks_SRCS})
......
......@@ -7,7 +7,15 @@ set(itinerary_plugin_srcs
itinerarykdeconnecthandler.cpp
templates/templates.qrc
)
ecm_qt_declare_logging_category(itinerary_plugin_srcs HEADER itinerary_debug.h IDENTIFIER ITINERARY_LOG CATEGORY_NAME org.kde.pim.messageviewer.itinerary)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(itinerary_plugin_srcs HEADER itinerary_debug.h IDENTIFIER ITINERARY_LOG CATEGORY_NAME org.kde.pim.messageviewer.itinerary)
else()
ecm_qt_declare_logging_category(itinerary_plugin_srcs HEADER itinerary_debug.h IDENTIFIER ITINERARY_LOG CATEGORY_NAME org.kde.pim.messageviewer.itinerary
DESCRIPTION "kdepim-addons (Itinerary plugin)"
EXPORT KDEPIMADDONS
)
endif()
add_library(messageviewer_bodypartformatter_semantic MODULE ${itinerary_plugin_srcs})
target_compile_definitions(messageviewer_bodypartformatter_semantic PRIVATE -DTRANSLATION_DOMAIN=\"messageviewer_semantic_plugin\")
......
......@@ -2,7 +2,17 @@
add_definitions(-DTRANSLATION_DOMAIN=\"messageviewer_application_mstnef_plugin\")
set(messageviewer_bodypartformatter_application_mstnef_SRCS application_ms-tnef.cpp)
ecm_qt_declare_logging_category(messageviewer_bodypartformatter_application_mstnef_SRCS HEADER ms_tnef_debug.h IDENTIFIER MS_TNEF_LOG CATEGORY_NAME org.kde.pim.ms_tnef)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(messageviewer_bodypartformatter_application_mstnef_SRCS HEADER ms_tnef_debug.h IDENTIFIER MS_TNEF_LOG CATEGORY_NAME org.kde.pim.ms_tnef)
else()
ecm_qt_declare_logging_category(messageviewer_bodypartformatter_application_mstnef_SRCS HEADER ms_tnef_debug.h IDENTIFIER MS_TNEF_LOG CATEGORY_NAME org.kde.pim.ms_tnef
DESCRIPTION "kdepim-addons (ms_tnef)"
OLD_CATEGORY_NAMES log_ms_tnef
EXPORT KDEPIMADDONS
)
endif()
add_library(messageviewer_bodypartformatter_application_mstnef MODULE ${messageviewer_bodypartformatter_application_mstnef_SRCS})
......
......@@ -4,7 +4,15 @@ set(pkpass_srcs
pkpass_plugin.cpp
)
qt5_add_resources(pkpass_srcs templates.qrc)
ecm_qt_declare_logging_category(pkpass_srcs HEADER pkpass_debug.h IDENTIFIER PKPASS_LOG CATEGORY_NAME org.kde.pim.pkpass)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(pkpass_srcs HEADER pkpass_debug.h IDENTIFIER PKPASS_LOG CATEGORY_NAME org.kde.pim.pkpass)
else()
ecm_qt_declare_logging_category(pkpass_srcs HEADER pkpass_debug.h IDENTIFIER PKPASS_LOG CATEGORY_NAME org.kde.pim.pkpass
DESCRIPTION "kdepim-addons (pkpass formater)"
EXPORT KDEPIMADDONS
)
endif()
add_library(messageviewer_bodypartformatter_pkpass MODULE ${pkpass_srcs})
target_link_libraries(messageviewer_bodypartformatter_pkpass
......
......@@ -2,7 +2,16 @@
add_definitions(-DTRANSLATION_DOMAIN=\"messageviewer_text_vcard_plugin\")
set(messageviewer_bodypartformatter_text_vcard_PART_SRCS text_vcard.cpp vcardmemento.cpp updatecontactjob.cpp)
ecm_qt_declare_logging_category(messageviewer_bodypartformatter_text_vcard_PART_SRCS HEADER vcard_debug.h IDENTIFIER VCARD_LOG CATEGORY_NAME org.kde.pim.vcard)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(messageviewer_bodypartformatter_text_vcard_PART_SRCS HEADER vcard_debug.h IDENTIFIER VCARD_LOG CATEGORY_NAME org.kde.pim.vcard)
else()
ecm_qt_declare_logging_category(messageviewer_bodypartformatter_text_vcard_PART_SRCS HEADER vcard_debug.h IDENTIFIER VCARD_LOG CATEGORY_NAME org.kde.pim.vcard
DESCRIPTION "kdepim-addons (vcard)"
OLD_CATEGORY_NAMES log_vcard
EXPORT KDEPIMADDONS
)
endif()
add_library(messageviewer_bodypartformatter_text_vcard MODULE ${messageviewer_bodypartformatter_text_vcard_PART_SRCS})
target_link_libraries(messageviewer_bodypartformatter_text_vcard KF5::Contacts KF5::LibkdepimAkonadi KF5::MessageViewer KF5::IconThemes KF5::JobWidgets KF5::I18n)
......
......@@ -24,7 +24,14 @@ set(dkimverifyconfigure_SRCS
dkimauthenticationverifiedserverdialog.cpp
)
ecm_qt_declare_logging_category(dkimverifyconfigure_SRCS HEADER libdkimverifyconfigure_debug.h IDENTIFIER LIBDKIMVERIFYCONFIGURE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.libdkimconfigureplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(dkimverifyconfigure_SRCS HEADER libdkimverifyconfigure_debug.h IDENTIFIER LIBDKIMVERIFYCONFIGURE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.libdkimconfigureplugin)
else()
ecm_qt_declare_logging_category(dkimverifyconfigure_SRCS HEADER libdkimverifyconfigure_debug.h IDENTIFIER LIBDKIMVERIFYCONFIGURE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.libdkimconfigureplugin
DESCRIPTION "kdepim-addons (dkim-verify-configure)"
EXPORT KDEPIMADDONS
)
endif()
add_library(dkimverifyconfigure ${dkimverifyconfigure_SRCS})
generate_export_header(dkimverifyconfigure BASE_NAME libdkimverifyconfigure)
......
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