Commit 57de684a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate more categories file

parent 609b9da4
......@@ -30,7 +30,16 @@ set(kmail_quicktextplugin_SRCS
quicktextplugineditorinterface.cpp
)
ecm_qt_declare_logging_category(kmail_quicktextplugin_SRCS HEADER quicktextplugin_debug.h IDENTIFIER KMAIL_EDITOR_QUICKTEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_quicktextplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kmail_quicktextplugin_SRCS HEADER quicktextplugin_debug.h IDENTIFIER KMAIL_EDITOR_QUICKTEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_quicktextplugin)
else()
ecm_qt_declare_logging_category(kmail_quicktextplugin_SRCS HEADER quicktextplugin_debug.h IDENTIFIER KMAIL_EDITOR_QUICKTEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_quicktextplugin
DESCRIPTION "kdepim-addons (kmail quicktext editor plugin)"
EXPORT KDEPIMADDONS
)
endif()
kcoreaddons_add_plugin(kmail_quicktextplugin JSON kmail_quicktextplugin.json SOURCES
${kmail_quicktextplugin_SRCS} INSTALL_NAMESPACE kmail/plugineditor)
......
......@@ -4,7 +4,15 @@ set(kmail_sharetexteditorplugin_SRCS
sharetextpurposemenuwidget.cpp
)
ecm_qt_declare_logging_category(kmail_sharetexteditorplugin_SRCS HEADER sharetexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_SHARETEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_sharetexteditorplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kmail_sharetexteditorplugin_SRCS HEADER sharetexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_SHARETEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_sharetexteditorplugin)
else()
ecm_qt_declare_logging_category(kmail_sharetexteditorplugin_SRCS HEADER sharetexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_SHARETEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_sharetexteditorplugin
DESCRIPTION "kdepim-addons (share text editor plugin)"
EXPORT KDEPIMADDONS
)
endif()
kcoreaddons_add_plugin(kmail_sharetexteditorplugin JSON kmail_sharetexteditorplugin.json SOURCES
${kmail_sharetexteditorplugin_SRCS} INSTALL_NAMESPACE kmail/plugineditor)
......
set(sharetextplugineditor_common_SRCS)
ecm_qt_declare_logging_category(sharetextplugineditor_common_SRCS HEADER sharetexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_CHANGECASE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_sharetexteditorplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(sharetextplugineditor_common_SRCS HEADER sharetexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_SHARETEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_sharetexteditorplugin)
else()
ecm_qt_declare_logging_category(sharetextplugineditor_common_SRCS HEADER sharetexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_SHARETEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_sharetexteditorplugin
DESCRIPTION "kdepim-addons (share text editor plugin)"
EXPORT KDEPIMADDONS
)
endif()
macro(add_kmail_editorplugin_unittest _source _additional)
set( _test ${_source} ${_additional} ${sharetextplugineditor_common_SRCS})
......
......@@ -4,7 +4,16 @@ set(kmail_zoomtexteditorplugin_SRCS
zoomlabel.cpp
)
ecm_qt_declare_logging_category(kmail_zoomtexteditorplugin_SRCS HEADER zoomtexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_ZOOMTEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_zoomtexteditorplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kmail_zoomtexteditorplugin_SRCS HEADER zoomtexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_ZOOMTEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_zoomtexteditorplugin)
else()
ecm_qt_declare_logging_category(kmail_zoomtexteditorplugin_SRCS HEADER zoomtexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_ZOOMTEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_zoomtexteditorplugin
DESCRIPTION "kdepim-addons (kmail zoomtext editor plugins)"
OLD_CATEGORY_NAMES log_kmail_zoomtexteditorplugin
EXPORT KDEPIMADDONS
)
endif()
kcoreaddons_add_plugin(kmail_zoomtexteditorplugin JSON kmail_zoomtexteditorplugin.json SOURCES
......
set(zoomdebug_SRCS)
ecm_qt_declare_logging_category(zoomdebug_SRCS HEADER zoomtexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_ZOOMTEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_zoomtexteditorplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(zoomdebug_SRCS HEADER zoomtexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_ZOOMTEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_zoomtexteditorplugin)
else()
ecm_qt_declare_logging_category(zoomdebug_SRCS HEADER zoomtexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_ZOOMTEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_zoomtexteditorplugin
DESCRIPTION "kdepim-addons (kmail zoomtext editor plugins)"
OLD_CATEGORY_NAMES log_kmail_zoomtexteditorplugin
EXPORT KDEPIMADDONS
)
endif()
macro(add_kmail_editorplugin_unittest _source _additional)
set( _test ${_source} ${_additional} ${zoomdebug_SRCS})
......
......@@ -8,7 +8,16 @@ set(kmail_automaticaddcontactseditorplugin_SRCS
automaticaddcontactsconfiguredialog.cpp
)
ecm_qt_declare_logging_category(kmail_automaticaddcontactseditorplugin_SRCS HEADER automaticaddcontactsplugin_debug.h IDENTIFIER KMAIL_EDITOR_AUTOMATICADDCONTACTS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_automaticaddcontactsplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kmail_automaticaddcontactseditorplugin_SRCS HEADER automaticaddcontactsplugin_debug.h IDENTIFIER KMAIL_EDITOR_AUTOMATICADDCONTACTS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_automaticaddcontactsplugin)
else()
ecm_qt_declare_logging_category(kmail_automaticaddcontactseditorplugin_SRCS HEADER automaticaddcontactsplugin_debug.h IDENTIFIER KMAIL_EDITOR_AUTOMATICADDCONTACTS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_automaticaddcontactsplugin
DESCRIPTION "kdepim-addons (Automatic add contacts plugin)"
OLD_CATEGORY_NAMES log_kmail_automaticaddcontactsplugin
EXPORT KDEPIMADDONS
)
endif()
kcoreaddons_add_plugin(kmail_automaticaddcontactseditorplugin JSON kmail_automaticaddcontactsplugin.json SOURCES
${kmail_automaticaddcontactseditorplugin_SRCS} INSTALL_NAMESPACE kmail/plugincheckbeforesend)
......
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
set(automaticaddcontacts_common_SRCS)
ecm_qt_declare_logging_category(automaticaddcontacts_common_SRCS HEADER automaticaddcontactsplugin_debug.h IDENTIFIER KMAIL_EDITOR_AUTOMATICADDCONTACTS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_automaticaddcontactsplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(automaticaddcontacts_common_SRCS HEADER automaticaddcontactsplugin_debug.h IDENTIFIER KMAIL_EDITOR_AUTOMATICADDCONTACTS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_automaticaddcontactsplugin)
else()
ecm_qt_declare_logging_category(automaticaddcontacts_common_SRCS HEADER automaticaddcontactsplugin_debug.h IDENTIFIER KMAIL_EDITOR_AUTOMATICADDCONTACTS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_automaticaddcontactsplugin
DESCRIPTION "kdepim-addons (Automatic add contacts plugin)"
OLD_CATEGORY_NAMES log_kmail_automaticaddcontactsplugin
EXPORT KDEPIMADDONS
)
endif()
macro(add_kmail_automaticaddscontacts_unittest _source _additional)
set( _test ${_source} ${_additional} ${automaticaddcontacts_common_SRCS})
......
......@@ -14,7 +14,14 @@ set(kmail_checkbeforesendeditorplugin_SRCS
sendattachments/checkattachmentjob.cpp
)
ecm_qt_declare_logging_category(kmail_checkbeforesendeditorplugin_SRCS HEADER checkbeforesendplugin_debug.h IDENTIFIER KMAIL_EDITOR_checkbeforesend_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_checkbeforesendplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kmail_checkbeforesendeditorplugin_SRCS HEADER checkbeforesendplugin_debug.h IDENTIFIER KMAIL_EDITOR_checkbeforesend_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_checkbeforesendplugin)
else()
ecm_qt_declare_logging_category(kmail_checkbeforesendeditorplugin_SRCS HEADER checkbeforesendplugin_debug.h IDENTIFIER KMAIL_EDITOR_checkbeforesend_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_checkbeforesendplugin
DESCRIPTION "kdepim-addons (check before send editor plugin)"
EXPORT KDEPIMADDONS
)
endif()
kcoreaddons_add_plugin(kmail_checkbeforesendeditorplugin JSON kmail_checkbeforesendplugin.json SOURCES
${kmail_checkbeforesendeditorplugin_SRCS} INSTALL_NAMESPACE kmail/plugincheckbeforesend)
......
set(checkbeforesend_common_SRCS)
ecm_qt_declare_logging_category(checkbeforesend_common_SRCS HEADER checkbeforesend_debug.h IDENTIFIER KMAIL_EDITOR_CHECKBEFORESEND_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_checkbeforesend)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(checkbeforesend_common_SRCS HEADER checkbeforesendplugin_debug.h IDENTIFIER KMAIL_EDITOR_checkbeforesend_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_checkbeforesendplugin)
else()
ecm_qt_declare_logging_category(checkbeforesend_common_SRCS HEADER checkbeforesendplugin_debug.h IDENTIFIER KMAIL_EDITOR_checkbeforesend_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_checkbeforesendplugin
DESCRIPTION "kdepim-addons (check before send editor plugin)"
EXPORT KDEPIMADDONS
)
endif()
macro(add_kmail_checkbeforesend_unittest _source _additional)
set( _test ${_source} ${_additional} ${checkbeforesend_common_SRCS})
......
......@@ -12,7 +12,15 @@ set(kmail_confirmaddresseditorplugin_SRCS
confirmaddressemailentrydialog.cpp
)
ecm_qt_declare_logging_category(kmail_confirmaddresseditorplugin_SRCS HEADER confirmaddressplugin_debug.h IDENTIFIER KMAIL_EDITOR_CONFIRMADDRESS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_confirmaddressplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kmail_confirmaddresseditorplugin_SRCS HEADER confirmaddressplugin_debug.h IDENTIFIER KMAIL_EDITOR_CONFIRMADDRESS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_confirmaddressplugin)
else()
ecm_qt_declare_logging_category(kmail_confirmaddresseditorplugin_SRCS HEADER confirmaddressplugin_debug.h IDENTIFIER KMAIL_EDITOR_CONFIRMADDRESS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_confirmaddressplugin
DESCRIPTION "kdepim-addons (Confirm Address plugin)"
OLD_CATEGORY_NAMES log_kmail_confirmaddressplugin
EXPORT KDEPIMADDONS
)
endif()
kcoreaddons_add_plugin(kmail_confirmaddresseditorplugin JSON kmail_confirmaddressplugin.json SOURCES
${kmail_confirmaddresseditorplugin_SRCS} INSTALL_NAMESPACE kmail/plugincheckbeforesend)
......
set(confirmaddressplugin_common_SRCS)
ecm_qt_declare_logging_category(confirmaddressplugin_common_SRCS HEADER confirmaddressplugin_debug.h IDENTIFIER KMAIL_EDITOR_CONFIRMADDRESS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_confirmaddressplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(confirmaddressplugin_common_SRCS HEADER confirmaddressplugin_debug.h IDENTIFIER KMAIL_EDITOR_CONFIRMADDRESS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_confirmaddressplugin)
else()
ecm_qt_declare_logging_category(confirmaddressplugin_common_SRCS HEADER confirmaddressplugin_debug.h IDENTIFIER KMAIL_EDITOR_CONFIRMADDRESS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_confirmaddressplugin
DESCRIPTION "kdepim-addons (Confirm Address plugin)"
OLD_CATEGORY_NAMES log_kmail_confirmaddressplugin
EXPORT KDEPIMADDONS
)
endif()
macro(add_kmail_confirmaddress_unittest _source _additional)
set( _test ${_source} ${_additional} ${confirmaddressplugin_common_SRCS})
......
......@@ -7,7 +7,14 @@ set(grammalecteplugin_SRCS
grammalecteinterface.cpp
)
ecm_qt_declare_logging_category(grammalecteplugin_SRCS HEADER grammalecteplugin_debug.h IDENTIFIER KMAIL_EDITOR_GRAMMALECTE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_grammalecteplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(grammalecteplugin_SRCS HEADER grammalecteplugin_debug.h IDENTIFIER KMAIL_EDITOR_GRAMMALECTE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_grammalecteplugin)
else()
ecm_qt_declare_logging_category(grammalecteplugin_SRCS HEADER grammalecteplugin_debug.h IDENTIFIER KMAIL_EDITOR_GRAMMALECTE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_grammalecteplugin
DESCRIPTION "kdepim-addons (grammalecte plugin)"
EXPORT KDEPIMADDONS
)
endif()
kcoreaddons_add_plugin(kmail_grammalecteplugin JSON kmail_grammalecteplugin.json SOURCES
${grammalecteplugin_SRCS} INSTALL_NAMESPACE kmail/plugineditorgrammar)
......
......@@ -9,7 +9,15 @@ set(kmailgrammalecte_SRCS
grammalectegrammarerror.cpp
)
ecm_qt_declare_logging_category(kmailgrammalecte_SRCS HEADER libgrammalecte_debug.h IDENTIFIER LIBGRAMMALECTE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.libgrammalecteplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kmailgrammalecte_SRCS HEADER libgrammalecte_debug.h IDENTIFIER LIBGRAMMALECTE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.libgrammalecteplugin)
else()
ecm_qt_declare_logging_category(kmailgrammalecte_SRCS HEADER libgrammalecte_debug.h IDENTIFIER LIBGRAMMALECTE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.libgrammalecteplugin
DESCRIPTION "kdepim-addons (libgramalecte)"
EXPORT KDEPIMADDONS
)
endif()
add_library(kmailgrammalecte ${kmailgrammalecte_SRCS})
......
set(grammarcommon_SRCS
grammarerror.cpp
grammarresulttextedit.cpp
grammarresultwidget.cpp
)
grammarerror.cpp
grammarresulttextedit.cpp
grammarresultwidget.cpp
)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(grammarcommon_SRCS HEADER grammarcommon_debug.h IDENTIFIER LIBGRAMMARCOMMON_LOG CATEGORY_NAME org.kde.pim.libgrammarcommon)
else()
ecm_qt_declare_logging_category(grammarcommon_SRCS HEADER grammarcommon_debug.h IDENTIFIER LIBGRAMMARCOMMON_LOG CATEGORY_NAME org.kde.pim.libgrammarcommon
DESCRIPTION "kdepim-addons (libgramalecte common)"
EXPORT KDEPIMADDONS
)
endif()
ecm_qt_declare_logging_category(grammarcommon_SRCS HEADER grammarcommon_debug.h IDENTIFIER LIBGRAMMARCOMMON_LOG CATEGORY_NAME org.kde.pim.libgrammarcommon)
add_library(grammarcommon ${grammarcommon_SRCS})
......
......@@ -7,7 +7,15 @@ set(languagetoolplugin_SRCS
languagetoolinterface.cpp
)
ecm_qt_declare_logging_category(languagetoolplugin_SRCS HEADER languagetoolplugin_debug.h IDENTIFIER KMAIL_EDITOR_LANGUAGETOOL_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_languagetoolplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(languagetoolplugin_SRCS HEADER languagetoolplugin_debug.h IDENTIFIER KMAIL_EDITOR_LANGUAGETOOL_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_languagetoolplugin)
else()
ecm_qt_declare_logging_category(languagetoolplugin_SRCS HEADER languagetoolplugin_debug.h IDENTIFIER KMAIL_EDITOR_LANGUAGETOOL_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_languagetoolplugin
DESCRIPTION "kdepim-addons (languagetool plugin)"
EXPORT KDEPIMADDONS
)
endif()
kcoreaddons_add_plugin(kmail_languagetoolplugin JSON kmail_languagetoolplugin.json SOURCES
${languagetoolplugin_SRCS} INSTALL_NAMESPACE kmail/plugineditorgrammar)
......
......@@ -13,7 +13,15 @@ set(kmaillanguagetool_SRCS
languagetoolupdatecombobox.cpp
)
ecm_qt_declare_logging_category(kmaillanguagetool_SRCS HEADER liblanguagetool_debug.h IDENTIFIER LIBLANGUAGE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.liblanguagetoolplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kmaillanguagetool_SRCS HEADER liblanguagetool_debug.h IDENTIFIER LIBLANGUAGE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.liblanguagetoolplugin)
else()
ecm_qt_declare_logging_category(kmaillanguagetool_SRCS HEADER liblanguagetool_debug.h IDENTIFIER LIBLANGUAGE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.liblanguagetoolplugin
DESCRIPTION "kdepim-addons (liblanguagetool)"
EXPORT KDEPIMADDONS
)
endif()
add_library(kmaillanguagetool ${kmaillanguagetool_SRCS})
generate_export_header(kmaillanguagetool BASE_NAME libkmaillanguagetool)
......
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