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

Install plugins in pim<version>

parent 794275c1
Pipeline #184205 passed with stage
in 14 minutes and 18 seconds
......@@ -49,7 +49,7 @@ install(TARGETS kmailconfirmbeforedeleting ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} L
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
kcoreaddons_add_plugin(kmail_confirmbeforedeletingplugin INSTALL_NAMESPACE messageviewer/checkbeforedeleting)
kcoreaddons_add_plugin(kmail_confirmbeforedeletingplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/checkbeforedeleting)
target_sources(kmail_confirmbeforedeletingplugin PRIVATE
confirmbeforedeletinginterface.cpp
confirmbeforedeletingplugin.cpp
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_dkimconfigplugin INSTALL_NAMESPACE messageviewer/configuresettings)
kcoreaddons_add_plugin(messageviewer_dkimconfigplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/configuresettings)
target_sources(messageviewer_dkimconfigplugin PRIVATE
dkimconfiguresettingsplugin.cpp
dkimconfiguresettingsplugin.h
......
......@@ -33,7 +33,7 @@ install(TARGETS expireaccounttrashfolderconfig ${KDE_INSTALL_TARGETS_DEFAULT_ARG
kcoreaddons_add_plugin(messageviewer_expireaccounttrashfolderconfigplugin INSTALL_NAMESPACE messageviewer/configuresettings)
kcoreaddons_add_plugin(messageviewer_expireaccounttrashfolderconfigplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/configuresettings)
target_sources(messageviewer_expireaccounttrashfolderconfigplugin PRIVATE
expireaccounttrashfolderconfigplugin.cpp
expireaccounttrashfolderconfigplugin.h
......
......@@ -50,7 +50,7 @@ set_target_properties(folderconfiguresettings
install(TARGETS folderconfiguresettings ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
#####
kcoreaddons_add_plugin(messageviewer_folderconfiguresettingsplugin INSTALL_NAMESPACE messageviewer/configuresettings)
kcoreaddons_add_plugin(messageviewer_folderconfiguresettingsplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/configuresettings)
target_sources(messageviewer_folderconfiguresettingsplugin PRIVATE
folderconfiguresettingsplugin.cpp
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_gravatarconfigplugin INSTALL_NAMESPACE messageviewer/configuresettings)
kcoreaddons_add_plugin(messageviewer_gravatarconfigplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/configuresettings)
target_sources(messageviewer_gravatarconfigplugin PRIVATE
gravatarconfiguresettingspluginwidget.cpp
gravatarconfiguresettingsplugin.cpp
......
# SPDX-FileCopyrightText: 2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_openurlwithconfigplugin INSTALL_NAMESPACE messageviewer/configuresettings)
kcoreaddons_add_plugin(messageviewer_openurlwithconfigplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/configuresettings)
target_sources(messageviewer_openurlwithconfigplugin PRIVATE
openurlwithconfigplugin.cpp
openurlwithconfigplugin.h
......
......@@ -36,7 +36,7 @@ install(TARGETS scamconfiguresettings ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRAR
######
kcoreaddons_add_plugin(messageviewer_scamconfiguresettingsplugin INSTALL_NAMESPACE messageviewer/configuresettings)
kcoreaddons_add_plugin(messageviewer_scamconfiguresettingsplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/configuresettings)
target_sources(messageviewer_scamconfiguresettingsplugin PRIVATE
scamconfiguresettingsplugin.cpp
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_briefheaderstyleplugin INSTALL_NAMESPACE messageviewer/headerstyle)
kcoreaddons_add_plugin(messageviewer_briefheaderstyleplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/headerstyle)
target_sources(messageviewer_briefheaderstyleplugin PRIVATE
briefheaderstyleplugin.cpp
briefheaderstyleinterface.cpp
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_fancyheaderstyleplugin INSTALL_NAMESPACE messageviewer/headerstyle)
kcoreaddons_add_plugin(messageviewer_fancyheaderstyleplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/headerstyle)
target_sources(messageviewer_fancyheaderstyleplugin PRIVATE
fancyheaderstyleplugin.cpp
fancyheaderstyleinterface.cpp
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_grantleeheaderstyleplugin INSTALL_NAMESPACE messageviewer/headerstyle)
kcoreaddons_add_plugin(messageviewer_grantleeheaderstyleplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/headerstyle)
target_sources(messageviewer_grantleeheaderstyleplugin PRIVATE
grantleeheaderstyleplugin.cpp
grantleeheaderstyleinterface.cpp
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_longheaderstyleplugin INSTALL_NAMESPACE messageviewer/headerstyle)
kcoreaddons_add_plugin(messageviewer_longheaderstyleplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/headerstyle)
target_sources(messageviewer_longheaderstyleplugin PRIVATE
longheaderstyleplugin.cpp
longheaderstyleinterface.cpp
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_standardsheaderstyleplugin INSTALL_NAMESPACE messageviewer/headerstyle)
kcoreaddons_add_plugin(messageviewer_standardsheaderstyleplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/headerstyle)
target_sources(messageviewer_standardsheaderstyleplugin PRIVATE
standardsheaderstyleplugin.cpp
standardsheaderstyleinterface.cpp
......
......@@ -19,7 +19,7 @@ void ViewerPluginManagerTest::shouldHaveDefaultValue()
{
auto manager = new MessageViewer::ViewerPluginManager(this);
manager->setPluginName(QStringLiteral("messageviewer"));
manager->setPluginDirectory(QStringLiteral("messageviewer/viewerplugin"));
manager->setPluginDirectory(QStringLiteral("pim" QT_STRINGIFY(QT_VERSION_MAJOR)) + QStringLiteral("/messageviewer/viewerplugin"));
QVERIFY(manager->initializePluginList());
QVERIFY(!manager->pluginsList().isEmpty());
}
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_expandurlplugin INSTALL_NAMESPACE messageviewer/viewercommonplugin)
kcoreaddons_add_plugin(messageviewer_expandurlplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/viewercommonplugin)
target_sources(messageviewer_expandurlplugin PRIVATE
viewerpluginexpandurl.cpp
viewerpluginexpandurlinterface.cpp
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_translatorplugin INSTALL_NAMESPACE messageviewer/viewercommonplugin)
kcoreaddons_add_plugin(messageviewer_translatorplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/viewercommonplugin)
target_sources(messageviewer_translatorplugin PRIVATE
viewerplugintranslator.cpp
viewerplugintranslatorinterface.cpp
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_createeventplugin INSTALL_NAMESPACE messageviewer/viewerplugin)
kcoreaddons_add_plugin(messageviewer_createeventplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/viewerplugin)
target_sources(messageviewer_createeventplugin PRIVATE
viewerplugincreateevent.cpp
viewerplugincreateeventinterface.cpp
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_createnoteplugin INSTALL_NAMESPACE messageviewer/viewerplugin)
kcoreaddons_add_plugin(messageviewer_createnoteplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/viewerplugin)
target_sources(messageviewer_createnoteplugin PRIVATE
viewerplugincreatenote.cpp
viewerplugincreatenoteinterface.cpp
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_createtodoplugin INSTALL_NAMESPACE messageviewer/viewerplugin)
kcoreaddons_add_plugin(messageviewer_createtodoplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/viewerplugin)
target_sources(messageviewer_createtodoplugin PRIVATE
viewerplugincreatetodo.cpp
viewerplugincreatetodointerface.cpp
......
# SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_externalscriptplugin
INSTALL_NAMESPACE messageviewer/viewerplugin)
INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/messageviewer/viewerplugin)
target_sources(messageviewer_externalscriptplugin PRIVATE
viewerpluginexternalscript.cpp
viewerpluginexternalscriptinterface.cpp
......
Supports Markdown
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