qzint build has been fixed

This commit is contained in:
Arin Alexander 2021-02-03 22:00:14 +03:00
parent 87bfa3a170
commit 088a6eadce
4 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ TEMPLATE = lib
contains(CONFIG, static_build){ contains(CONFIG, static_build){
message(Static Build) message(Static Build)
CONFIG += staticlib CONFIG += staticlib
DEFINES += HAVE_STATIC_BUILD DEFINES += QZINT_STATIC_BUILD
} }
!contains(CONFIG, staticlib){ !contains(CONFIG, staticlib){

View File

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

View File

@ -1,5 +1,6 @@
CONFIG += zint CONFIG += zint
include(./limereport/limereport.pri) include(./limereport/limereport.pri)
contains(CONFIG, zint){ contains(CONFIG, zint){
DEFINES+=QZINT_STATIC_BUILD
include(./qzint.pri) include(./qzint.pri)
} }

View File

@ -28,6 +28,7 @@ DEFINES += LIMEREPORT_EXPORTS
contains(CONFIG, staticlib){ contains(CONFIG, staticlib){
DEFINES += HAVE_STATIC_BUILD DEFINES += HAVE_STATIC_BUILD
DEFINES += QZINT_STATIC_BUILD
message(STATIC_BUILD) message(STATIC_BUILD)
DEFINES -= LIMEREPORT_EXPORTS DEFINES -= LIMEREPORT_EXPORTS
} }