Static build has been fixed.

CONFIG no_zint & static_build flags have been added
This commit is contained in:
Arin Alex
2017-06-16 03:06:09 +03:00
parent ad99677d9c
commit 2c0e343c55
9 changed files with 60 additions and 22 deletions

View File

@@ -1,7 +1,15 @@
DEFINES += NO_PNG
TEMPLATE = lib
CONFIG += dll
contains(CONFIG, static_build){
CONFIG += staticlib
DEFINES += HAVE_STATIC_BUILD
}
!contains(CONFIG, staticlib){
CONFIG += dll
DEFINES += QZINT_LIBRARY
}
include(../../../common.pri)
@@ -18,7 +26,6 @@ unix{
INCLUDEPATH += $$PWD/../backend
DEFINES += _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_WARNINGS ZINT_VERSION=\\\"$$VERSION\\\"
DEFINES += QZINT_LIBRARY
TARGET = QtZint
!contains(DEFINES, NO_PNG) {

View File

@@ -3,10 +3,14 @@
#include <QtCore/qglobal.h>
#ifdef HAVE_STATIC_BUILD
# define QZINTSHARED_EXPORT /**/
#else
#if defined(QZINT_LIBRARY)
# define QZINTSHARED_EXPORT Q_DECL_EXPORT
#else
# define QZINTSHARED_EXPORT Q_DECL_IMPORT
#endif
#endif
#endif // QZINT_GLOBAL_H