Clang: Enable not exporting symbols

Having a dllexport in the sources for a TEMPLATE=app project (e.g.
unittest.pro) will create a library on Windows, which is not needed.

Change-Id: I1ebdd8b5ada06965c3dd89074ac2bc6dff09299c
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2015-11-24 17:44:48 +01:00
parent 216f110385
commit 7874d61998
2 changed files with 3 additions and 3 deletions

View File

@@ -6,8 +6,6 @@ contains(CONFIG, dll) {
QT += network
DEFINES += CLANGBACKENDIPC_LIBRARY
INCLUDEPATH += $$PWD
SOURCES += $$PWD/ipcserverinterface.cpp \

View File

@@ -33,8 +33,10 @@
#include <QtCore/qglobal.h>
#if defined(CLANGBACKENDIPC_LIBRARY)
#if defined(CLANGBACKENDIPC_BUILD_LIB)
# define CMBIPC_EXPORT Q_DECL_EXPORT
#elif defined(CLANGBACKENDIPC_BUILD_STATIC_LIB)
# define CMBIPC_EXPORT
#else
# define CMBIPC_EXPORT Q_DECL_IMPORT
#endif