forked from qt-creator/qt-creator
CppTools: 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: I0d454cdb7e3eb862200766ea101d41cef2758986 Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -35,6 +35,8 @@
|
||||
|
||||
#if defined(CPPTOOLS_LIBRARY)
|
||||
# define CPPTOOLS_EXPORT Q_DECL_EXPORT
|
||||
#elif defined(CPPTOOLS_STATIC_LIBRARY)
|
||||
# define CPPTOOLS_EXPORT
|
||||
#else
|
||||
# define CPPTOOLS_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
@@ -1,3 +1,9 @@
|
||||
contains(CONFIG, dll) {
|
||||
DEFINES += CPPTOOLS_LIBRARY
|
||||
} else {
|
||||
DEFINES += CPPTOOLS_STATIC_LIBRARY
|
||||
}
|
||||
|
||||
HEADERS += $$PWD/senddocumenttracker.h
|
||||
|
||||
SOURCES += $$PWD/senddocumenttracker.cpp
|
||||
|
Reference in New Issue
Block a user