Commit 5b2628ac authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories files

parent a1bc7854
......@@ -60,6 +60,14 @@ endif(BUILD_TESTING)
########### Targets ###########
add_subdirectory(src)
install(FILES kmailtransport.renamecategories kmailtransport.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES kmailtransport.renamecategories kmailtransport.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT MAILTRANSPORT
FILE kmailtransport.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -27,7 +27,16 @@ set(mailtransport_plugins_srcs
plugins/transportpluginmanager.cpp
)
ecm_qt_declare_logging_category(mailtransport_lib_srcs HEADER mailtransport_debug.h IDENTIFIER MAILTRANSPORT_LOG CATEGORY_NAME org.kde.pim.mailtransport)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(mailtransport_lib_srcs HEADER mailtransport_debug.h IDENTIFIER MAILTRANSPORT_LOG CATEGORY_NAME org.kde.pim.mailtransport)
else()
ecm_qt_declare_logging_category(mailtransport_lib_srcs HEADER mailtransport_debug.h IDENTIFIER MAILTRANSPORT_LOG CATEGORY_NAME org.kde.pim.mailtransport
DESCRIPTION "kmailtransport (kmailtransport)"
OLD_CATEGORY_NAMES log_mailtransport
EXPORT MAILTRANSPORT
)
endif()
ki18n_wrap_ui(mailtransport_lib_srcs
ui/addtransportdialog.ui
......
......@@ -11,7 +11,16 @@ set(mailtransport_smtpplugin_SRCS
ki18n_wrap_ui(mailtransport_smtpplugin_SRCS
smtpsettings.ui
)
ecm_qt_declare_logging_category(mailtransport_smtpplugin_SRCS HEADER mailtransportplugin_smtp_debug.h IDENTIFIER MAILTRANSPORT_SMTP_LOG CATEGORY_NAME org.kde.pim.mailtransport.smtpplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(mailtransport_smtpplugin_SRCS HEADER mailtransportplugin_smtp_debug.h IDENTIFIER MAILTRANSPORT_SMTP_LOG CATEGORY_NAME org.kde.pim.mailtransport.smtpplugin)
else()
ecm_qt_declare_logging_category(mailtransport_smtpplugin_SRCS HEADER mailtransportplugin_smtp_debug.h IDENTIFIER MAILTRANSPORT_SMTP_LOG CATEGORY_NAME org.kde.pim.mailtransport.smtpplugin
DESCRIPTION "kmailtransport (smtp plugin)"
OLD_CATEGORY_NAMES log_smtp
EXPORT MAILTRANSPORT
)
endif()
kcoreaddons_add_plugin(mailtransport_smtpplugin JSON smtpmailtransport.json SOURCES
${mailtransport_smtpplugin_SRCS} INSTALL_NAMESPACE mailtransport)
......
......@@ -20,7 +20,15 @@ set(mailtransportakonadi_lib_srcs
filteractionjob.cpp
)
ecm_qt_declare_logging_category(mailtransportakonadi_lib_srcs HEADER mailtransportakonadi_debug.h IDENTIFIER MAILTRANSPORTAKONADI_LOG CATEGORY_NAME org.kde.pim.mailtransportakonadi)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(mailtransportakonadi_lib_srcs HEADER mailtransportakonadi_debug.h IDENTIFIER MAILTRANSPORTAKONADI_LOG CATEGORY_NAME org.kde.pim.mailtransportakonadi)
else()
ecm_qt_declare_logging_category(mailtransportakonadi_lib_srcs HEADER mailtransportakonadi_debug.h IDENTIFIER MAILTRANSPORTAKONADI_LOG CATEGORY_NAME org.kde.pim.mailtransportakonadi
DESCRIPTION "kmailtransportakonadi (kmailtransportakonadi)"
EXPORT MAILTRANSPORT
)
endif()
add_library(KF5MailTransportAkonadi ${mailtransportakonadi_lib_srcs}
)
......
......@@ -3,8 +3,17 @@ set(mailtransport_akonadiplugin_SRCS
resourcesendjob.cpp
)
ecm_qt_declare_logging_category(mailtransport_akonadiplugin_SRCS HEADER mailtransportplugin_akonadi_debug.h IDENTIFIER
MAILTRANSPORT_AKONADI_LOG CATEGORY_NAME org.kde.pim.mailtransport.akonadiplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(mailtransport_akonadiplugin_SRCS HEADER mailtransportplugin_akonadi_debug.h IDENTIFIER
MAILTRANSPORT_AKONADI_LOG CATEGORY_NAME org.kde.pim.mailtransport.akonadiplugin)
else()
ecm_qt_declare_logging_category(mailtransport_akonadiplugin_SRCS HEADER mailtransportplugin_akonadi_debug.h IDENTIFIER
MAILTRANSPORT_AKONADI_LOG CATEGORY_NAME org.kde.pim.mailtransport.akonadiplugin
DESCRIPTION "kmailtransport (akonadi plugin)"
EXPORT MAILTRANSPORT
)
endif()
kcoreaddons_add_plugin(mailtransport_akonadiplugin JSON akonadimailtransport.json SOURCES
......
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