1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-17 22:38:33 +01:00

Define QXT_STATIC in header so that parent projects use it.

This commit is contained in:
Uwe L. Korn 2013-04-09 11:35:02 +02:00
parent db240b84bc
commit 8d5f643e2e
2 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,7 @@ ADD_DEFINITIONS( -Wall -O2 -DNDEBUG )
IF( NOT WIN32 )
ADD_DEFINITIONS( -fPIC )
ENDIF()
ADD_DEFINITIONS( -DBUILD_QXT_CORE -DBUILD_QXT_WEB -DQXT_STATIC )
ADD_DEFINITIONS( -DBUILD_QXT_CORE -DBUILD_QXT_WEB )
INCLUDE_DIRECTORIES( ${qxtweb} ${qxtcore} ${qxtnet} )

View File

@ -51,6 +51,9 @@
#define QXT_DLLEXPORT DO_NOT_USE_THIS_ANYMORE
// Define QXT_STATIC here so that the linker of projects that include the static library use the correct call method.
#define QXT_STATIC
#if !defined(QXT_STATIC) && !defined(QXT_DOXYGEN_RUN)
# if defined(BUILD_QXT_CORE)
# define QXT_CORE_EXPORT Q_DECL_EXPORT