forked from qt-creator/qt-creator
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:
@@ -6,8 +6,6 @@ contains(CONFIG, dll) {
|
||||
|
||||
QT += network
|
||||
|
||||
DEFINES += CLANGBACKENDIPC_LIBRARY
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
SOURCES += $$PWD/ipcserverinterface.cpp \
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user