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

Add more target centric code

parent fe0e12b2
Pipeline #65616 passed with stage
in 53 minutes and 58 seconds
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
kcoreaddons_add_plugin(kaddressbook_checkgravatarplugin JSON kaddressbook_checkgravatarplugin.json INSTALL_NAMESPACE kaddressbook/mainview)
set(kaddressbook_checkgravatarplugin_SRCS
target_sources(kaddressbook_checkgravatarplugin PRIVATE
gravatar/job/gravatarupdatejob.cpp
gravatar/widgets/gravatarupdatedialog.cpp
gravatar/widgets/gravatarupdatewidget.cpp
......@@ -11,14 +12,12 @@ set(kaddressbook_checkgravatarplugin_SRCS
checkgravatarplugin.cpp
)
ecm_qt_declare_logging_category(kaddressbook_checkgravatarplugin_SRCS HEADER kaddressbook_checkgravatarplugin_debug.h IDENTIFIER KADDRESSBOOK_CHECKGRAVATAR_LOG CATEGORY_NAME org.kde.pim.kaddressbook_checkgravatar
ecm_qt_declare_logging_category(kaddressbook_checkgravatarplugin HEADER kaddressbook_checkgravatarplugin_debug.h IDENTIFIER KADDRESSBOOK_CHECKGRAVATAR_LOG CATEGORY_NAME org.kde.pim.kaddressbook_checkgravatar
DESCRIPTION "kdepim-addons (kaddressbook gravatar plugin)"
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(kaddressbook_checkgravatarplugin JSON kaddressbook_checkgravatarplugin.json SOURCES
${kaddressbook_checkgravatarplugin_SRCS} INSTALL_NAMESPACE kaddressbook/mainview)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kaddressbook_checkgravatarplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(kaddressbook_mergecontactsplugin_SRCS
kcoreaddons_add_plugin(kaddressbook_mergecontactsplugin JSON kaddressbook_mergecontactsplugin.json INSTALL_NAMESPACE kaddressbook/mainview)
target_sources(kaddressbook_mergecontactsplugin PRIVATE
mergecontactsplugininterface.cpp
mergecontactsplugin.cpp
)
kcoreaddons_add_plugin(kaddressbook_mergecontactsplugin JSON kaddressbook_mergecontactsplugin.json SOURCES
${kaddressbook_mergecontactsplugin_SRCS} INSTALL_NAMESPACE kaddressbook/mainview)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kaddressbook_mergecontactsplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(kmail_zoomtexteditorplugin_SRCS
kcoreaddons_add_plugin(kmail_zoomtexteditorplugin JSON kmail_zoomtexteditorplugin.json SOURCES
${kmail_zoomtexteditorplugin_SRCS} INSTALL_NAMESPACE kmail/plugineditor)
target_sources(kmail_zoomtexteditorplugin PRIVATE
zoomtextplugineditor.cpp
zoomtextplugineditorinterface.cpp
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
ecm_qt_declare_logging_category(kmail_zoomtexteditorplugin 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
......@@ -12,8 +14,6 @@ ecm_qt_declare_logging_category(kmail_zoomtexteditorplugin_SRCS HEADER zoomtexte
kcoreaddons_add_plugin(kmail_zoomtexteditorplugin JSON kmail_zoomtexteditorplugin.json SOURCES
${kmail_zoomtexteditorplugin_SRCS} INSTALL_NAMESPACE kmail/plugineditor)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kmail_zoomtexteditorplugin PROPERTIES UNITY_BUILD ON)
endif()
......
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/
)
kcoreaddons_add_plugin(kmail_checkbeforesendeditorplugin JSON kmail_checkbeforesendplugin.json INSTALL_NAMESPACE kmail/plugincheckbeforesend)
set(kmail_checkbeforesendeditorplugin_SRCS
target_sources(kmail_checkbeforesendeditorplugin PRIVATE
checkbeforesendplugin.cpp
checkbeforesendinterface.cpp
checkbeforesendupdatesmtpdialog.cpp
......@@ -14,13 +15,11 @@ 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
ecm_qt_declare_logging_category(kmail_checkbeforesendeditorplugin 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
)
kcoreaddons_add_plugin(kmail_checkbeforesendeditorplugin JSON kmail_checkbeforesendplugin.json SOURCES
${kmail_checkbeforesendeditorplugin_SRCS} INSTALL_NAMESPACE kmail/plugincheckbeforesend)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kmail_checkbeforesendeditorplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(kmail_confirmaddresseditorplugin_SRCS
kcoreaddons_add_plugin(kmail_confirmaddresseditorplugin JSON kmail_confirmaddressplugin.json INSTALL_NAMESPACE kmail/plugincheckbeforesend)
target_sources(kmail_confirmaddresseditorplugin PRIVATE
confirmaddressinterface.cpp
confirmaddressplugin.cpp
confirmaddressconfigurewidget.cpp
......@@ -12,14 +13,12 @@ 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
ecm_qt_declare_logging_category(kmail_confirmaddresseditorplugin 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
)
kcoreaddons_add_plugin(kmail_confirmaddresseditorplugin JSON kmail_confirmaddressplugin.json SOURCES
${kmail_confirmaddresseditorplugin_SRCS} INSTALL_NAMESPACE kmail/plugincheckbeforesend)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kmail_confirmaddresseditorplugin PROPERTIES UNITY_BUILD ON)
endif()
......
......@@ -2,19 +2,18 @@ if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
set(languagetoolplugin_SRCS
kcoreaddons_add_plugin(kmail_languagetoolplugin JSON kmail_languagetoolplugin.json INSTALL_NAMESPACE kmail/plugineditorgrammar)
target_sources(kmail_languagetoolplugin PRIVATE
languagetoolplugin.cpp
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
ecm_qt_declare_logging_category(kmail_languagetoolplugin HEADER languagetoolplugin_debug.h IDENTIFIER KMAIL_EDITOR_LANGUAGETOOL_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_languagetoolplugin
DESCRIPTION "kdepim-addons (languagetool plugin)"
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(kmail_languagetoolplugin JSON kmail_languagetoolplugin.json SOURCES
${languagetoolplugin_SRCS} INSTALL_NAMESPACE kmail/plugineditorgrammar)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kmail_languagetoolplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(messageviewer_expandurlplugin_SRCS
kcoreaddons_add_plugin(messageviewer_expandurlplugin JSON messageviewer_expandurlplugin.json INSTALL_NAMESPACE messageviewer/viewercommonplugin)
target_sources(messageviewer_expandurlplugin PRIVATE
viewerpluginexpandurl.cpp
viewerpluginexpandurlinterface.cpp
)
ecm_qt_declare_logging_category(messageviewer_expandurlplugin_SRCS HEADER expandurlplugin_debug.h IDENTIFIER EXPANDURLPLUGIN_LOG CATEGORY_NAME org.kde.pim.expandurlplugin
ecm_qt_declare_logging_category(messageviewer_expandurlplugin HEADER expandurlplugin_debug.h IDENTIFIER EXPANDURLPLUGIN_LOG CATEGORY_NAME org.kde.pim.expandurlplugin
DESCRIPTION "kdepim-addons (Expand Url Plugin)"
OLD_CATEGORY_NAMES log_expandurlplugin
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(messageviewer_expandurlplugin JSON messageviewer_expandurlplugin.json SOURCES
${messageviewer_expandurlplugin_SRCS} INSTALL_NAMESPACE messageviewer/viewercommonplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(messageviewer_expandurlplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(messageviewer_createnoteplugin_SRCS
kcoreaddons_add_plugin(messageviewer_createnoteplugin JSON messageviewer_createnoteplugin.json INSTALL_NAMESPACE messageviewer/viewerplugin)
target_sources(messageviewer_createnoteplugin PRIVATE
viewerplugincreatenote.cpp
viewerplugincreatenoteinterface.cpp
noteedit.cpp
createnotejob.cpp
)
ecm_qt_declare_logging_category(messageviewer_createnoteplugin_SRCS HEADER createnoteplugin_debug.h IDENTIFIER CREATENOTEPLUGIN_LOG CATEGORY_NAME org.kde.pim.createnoteplugin
ecm_qt_declare_logging_category(messageviewer_createnoteplugin HEADER createnoteplugin_debug.h IDENTIFIER CREATENOTEPLUGIN_LOG CATEGORY_NAME org.kde.pim.createnoteplugin
DESCRIPTION "kdepim-addons (create note plugin)"
OLD_CATEGORY_NAMES log_createnoteplugin
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(messageviewer_createnoteplugin JSON messageviewer_createnoteplugin.json SOURCES
${messageviewer_createnoteplugin_SRCS} INSTALL_NAMESPACE messageviewer/viewerplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(messageviewer_createnoteplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(messageviewer_createtodoplugin_SRCS
kcoreaddons_add_plugin(messageviewer_createtodoplugin JSON messageviewer_createtodoplugin.json INSTALL_NAMESPACE messageviewer/viewerplugin)
target_sources(messageviewer_createtodoplugin PRIVATE
viewerplugincreatetodo.cpp
viewerplugincreatetodointerface.cpp
todoedit.cpp
createtodojob.cpp
)
ecm_qt_declare_logging_category(messageviewer_createtodoplugin_SRCS HEADER createtodoplugin_debug.h IDENTIFIER CREATETODOPLUGIN_LOG CATEGORY_NAME org.kde.pim.createtodoplugin
ecm_qt_declare_logging_category(messageviewer_createtodoplugin HEADER createtodoplugin_debug.h IDENTIFIER CREATETODOPLUGIN_LOG CATEGORY_NAME org.kde.pim.createtodoplugin
DESCRIPTION "kdepim-addons (create todo plugin)"
OLD_CATEGORY_NAMES log_createtodoplugin
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(messageviewer_createtodoplugin JSON messageviewer_createtodoplugin.json SOURCES
${messageviewer_createtodoplugin_SRCS} INSTALL_NAMESPACE messageviewer/viewerplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(messageviewer_createtodoplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(messageviewer_externalscriptplugin_SRCS
kcoreaddons_add_plugin(messageviewer_externalscriptplugin JSON messageviewer_externalscriptplugin.json
INSTALL_NAMESPACE messageviewer/viewerplugin)
target_sources(messageviewer_externalscriptplugin PRIVATE
viewerpluginexternalscript.cpp
viewerpluginexternalscriptinterface.cpp
viewerpluginexternalscriptmanager.cpp
......@@ -12,14 +14,12 @@ set(messageviewer_externalscriptplugin_SRCS
)
ecm_qt_declare_logging_category(messageviewer_externalscriptplugin_SRCS HEADER externalscriptplugin_debug.h IDENTIFIER EXTERNALSCRIPTPLUGIN_LOG CATEGORY_NAME org.kde.pim.externalscriptplugin
ecm_qt_declare_logging_category(messageviewer_externalscriptplugin HEADER externalscriptplugin_debug.h IDENTIFIER EXTERNALSCRIPTPLUGIN_LOG CATEGORY_NAME org.kde.pim.externalscriptplugin
DESCRIPTION "kdepim-addons (External Script Plugin)"
OLD_CATEGORY_NAMES log_externalscriptplugin
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(messageviewer_externalscriptplugin JSON messageviewer_externalscriptplugin.json
SOURCES ${messageviewer_externalscriptplugin_SRCS} INSTALL_NAMESPACE messageviewer/viewerplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(messageviewer_externalscriptplugin PROPERTIES UNITY_BUILD ON)
endif()
......
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