forked from qt-creator/qt-creator
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: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
6a4ecce83c
commit
d59651cb39
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user