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
|
QT += network
|
||||||
|
|
||||||
DEFINES += CLANGBACKENDIPC_LIBRARY
|
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD
|
INCLUDEPATH += $$PWD
|
||||||
|
|
||||||
SOURCES += $$PWD/ipcserverinterface.cpp \
|
SOURCES += $$PWD/ipcserverinterface.cpp \
|
||||||
|
@@ -33,8 +33,10 @@
|
|||||||
|
|
||||||
#include <QtCore/qglobal.h>
|
#include <QtCore/qglobal.h>
|
||||||
|
|
||||||
#if defined(CLANGBACKENDIPC_LIBRARY)
|
#if defined(CLANGBACKENDIPC_BUILD_LIB)
|
||||||
# define CMBIPC_EXPORT Q_DECL_EXPORT
|
# define CMBIPC_EXPORT Q_DECL_EXPORT
|
||||||
|
#elif defined(CLANGBACKENDIPC_BUILD_STATIC_LIB)
|
||||||
|
# define CMBIPC_EXPORT
|
||||||
#else
|
#else
|
||||||
# define CMBIPC_EXPORT Q_DECL_IMPORT
|
# define CMBIPC_EXPORT Q_DECL_IMPORT
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user