Commit d59651cb authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Tests: Export plugins in PluginManager

Without this, lib file is not created using MSVC, and
the build of dependents fails

Change-Id: I37ca02d8e1c6b99fdf901679ccee932f1ed55450
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 6a4ecce8
......@@ -33,10 +33,17 @@
#include <extensionsystem/iplugin.h>
#include <QObject>
#include <QtGlobal>
#if defined(PLUGIN1_LIBRARY)
# define PLUGIN1_EXPORT Q_DECL_EXPORT
#else
# define PLUGIN1_EXPORT Q_DECL_IMPORT
#endif
namespace Plugin1 {
class MyPlugin1 : public ExtensionSystem::IPlugin
class PLUGIN1_EXPORT MyPlugin1 : public ExtensionSystem::IPlugin
{
Q_OBJECT
......
......@@ -2,6 +2,7 @@ TEMPLATE = lib
SOURCES += plugin1.cpp
HEADERS += plugin1.h
DEFINES += PLUGIN1_LIBRARY
OTHER_FILES = $$PWD/plugin.xml
......
......@@ -33,10 +33,17 @@
#include <extensionsystem/iplugin.h>
#include <QObject>
#include <QtGlobal>
#if defined(PLUGIN2_LIBRARY)
# define PLUGIN2_EXPORT Q_DECL_EXPORT
#else
# define PLUGIN2_EXPORT Q_DECL_IMPORT
#endif
namespace Plugin2 {
class MyPlugin2 : public ExtensionSystem::IPlugin
class PLUGIN2_EXPORT MyPlugin2 : public ExtensionSystem::IPlugin
{
Q_OBJECT
......
......@@ -2,6 +2,7 @@ TEMPLATE = lib
SOURCES += plugin2.cpp
HEADERS += plugin2.h
DEFINES += PLUGIN2_LIBRARY
OTHER_FILES = $$PWD/plugin.xml
......
......@@ -33,10 +33,17 @@
#include <extensionsystem/iplugin.h>
#include <QObject>
#include <QtGlobal>
#if defined(PLUGIN3_LIBRARY)
# define PLUGIN3_EXPORT Q_DECL_EXPORT
#else
# define PLUGIN3_EXPORT Q_DECL_IMPORT
#endif
namespace Plugin3 {
class MyPlugin3 : public ExtensionSystem::IPlugin
class PLUGIN3_EXPORT MyPlugin3 : public ExtensionSystem::IPlugin
{
Q_OBJECT
......
......@@ -2,6 +2,7 @@ TEMPLATE = lib
SOURCES += plugin3.cpp
HEADERS += plugin3.h
DEFINES += PLUGIN3_LIBRARY
OTHER_FILES = $$PWD/plugin.xml
......
......@@ -33,10 +33,17 @@
#include <extensionsystem/iplugin.h>
#include <QObject>
#include <QtGlobal>
#if defined(PLUGIN1_LIBRARY)
# define PLUGIN1_EXPORT Q_DECL_EXPORT
#else
# define PLUGIN1_EXPORT Q_DECL_IMPORT
#endif
namespace Plugin1 {
class MyPlugin1 : public ExtensionSystem::IPlugin
class PLUGIN1_EXPORT MyPlugin1 : public ExtensionSystem::IPlugin
{
Q_OBJECT
......
......@@ -2,6 +2,7 @@ TEMPLATE = lib
SOURCES += plugin1.cpp
HEADERS += plugin1.h
DEFINES += PLUGIN1_LIBRARY
OTHER_FILES = $$PWD/plugin.spec
......
......@@ -33,10 +33,17 @@
#include <extensionsystem/iplugin.h>
#include <QObject>
#include <QtGlobal>
#if defined(PLUGIN2_LIBRARY)
# define PLUGIN2_EXPORT Q_DECL_EXPORT
#else
# define PLUGIN2_EXPORT Q_DECL_IMPORT
#endif
namespace Plugin2 {
class MyPlugin2 : public ExtensionSystem::IPlugin
class PLUGIN2_EXPORT MyPlugin2 : public ExtensionSystem::IPlugin
{
Q_OBJECT
......
......@@ -2,6 +2,7 @@ TEMPLATE = lib
SOURCES += plugin2.cpp
HEADERS += plugin2.h
DEFINES += PLUGIN2_LIBRARY
OTHER_FILES = $$PWD/plugin.spec
......
......@@ -32,10 +32,17 @@
#include <extensionsystem/iplugin.h>
#include <QObject>
#include <QtGlobal>
#if defined(PLUGIN3_LIBRARY)
# define PLUGIN3_EXPORT Q_DECL_EXPORT
#else
# define PLUGIN3_EXPORT Q_DECL_IMPORT
#endif
namespace Plugin3 {
class MyPlugin3 : public ExtensionSystem::IPlugin
class PLUGIN3_EXPORT MyPlugin3 : public ExtensionSystem::IPlugin
{
Q_OBJECT
......
......@@ -2,6 +2,7 @@ TEMPLATE = lib
SOURCES += plugin3.cpp
HEADERS += plugin3.h
DEFINES += PLUGIN3_LIBRARY
OTHER_FILES = $$PWD/plugin.spec
......
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