Commit eaa93e86 authored by Nikolai Kosjar's avatar Nikolai Kosjar

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: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
parent 7874d619
......@@ -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
......
contains(CONFIG, dll) {
DEFINES += CPPTOOLS_LIBRARY
} else {
DEFINES += CPPTOOLS_STATIC_LIBRARY
}
HEADERS += $$PWD/senddocumenttracker.h
SOURCES += $$PWD/senddocumenttracker.cpp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment