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){
message(Static Build)
CONFIG += staticlib
DEFINES += HAVE_STATIC_BUILD
DEFINES += QZINT_STATIC_BUILD
}
!contains(CONFIG, staticlib){

View File

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

View File

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

View File

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