2017-09-04 06:44:16 +03:00
|
|
|
DEFINES += NO_PNG
|
|
|
|
TEMPLATE = lib
|
|
|
|
|
|
|
|
contains(CONFIG, static_build){
|
2017-11-27 23:14:05 +03:00
|
|
|
message(Static Build)
|
2017-09-04 06:44:16 +03:00
|
|
|
CONFIG += staticlib
|
2021-02-03 22:00:14 +03:00
|
|
|
DEFINES += QZINT_STATIC_BUILD
|
2017-09-04 06:44:16 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
!contains(CONFIG, staticlib){
|
|
|
|
CONFIG += dll
|
|
|
|
DEFINES += QZINT_LIBRARY
|
|
|
|
}
|
|
|
|
|
|
|
|
include(../../../common.pri)
|
|
|
|
|
|
|
|
macx{
|
|
|
|
CONFIG -= dll
|
|
|
|
CONFIG += lib_bundle
|
|
|
|
}
|
|
|
|
|
|
|
|
unix{
|
|
|
|
CONFIG += plugin
|
|
|
|
}
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../backend
|
2021-08-18 04:13:45 +03:00
|
|
|
|
|
|
|
DEFINES += ZINT_VERSION=\\\"$$ZINT_VERSION\\\"
|
|
|
|
|
2018-10-30 01:53:34 +03:00
|
|
|
CONFIG(release, debug|release){
|
2017-09-04 06:44:16 +03:00
|
|
|
TARGET = QtZint
|
|
|
|
} else {
|
|
|
|
TARGET = QtZintd
|
|
|
|
}
|
|
|
|
|
|
|
|
!contains(DEFINES, NO_PNG) {
|
|
|
|
SOURCES += $$PWD/../backend/png.c
|
|
|
|
LIBS += -lpng
|
|
|
|
}
|
|
|
|
|
|
|
|
INCLUDEPATH += zint zint/backend zint/backend_qt
|
|
|
|
|
|
|
|
HEADERS += $$PWD/../backend/aztec.h \
|
|
|
|
$$PWD/../backend/bmp.h \
|
|
|
|
$$PWD/../backend/code49.h \
|
|
|
|
$$PWD/../backend/common.h \
|
|
|
|
$$PWD/../backend/composite.h \
|
|
|
|
$$PWD/../backend/dmatrix.h \
|
|
|
|
$$PWD/../backend/eci.h \
|
|
|
|
$$PWD/../backend/font.h \
|
|
|
|
$$PWD/../backend/gridmtx.h \
|
|
|
|
$$PWD/../backend/gs1.h \
|
|
|
|
$$PWD/../backend/hanxin.h \
|
|
|
|
$$PWD/../backend/large.h \
|
|
|
|
$$PWD/../backend/maxicode.h \
|
|
|
|
$$PWD/../backend/pcx.h \
|
|
|
|
$$PWD/../backend/pdf417.h \
|
|
|
|
$$PWD/../backend/reedsol.h \
|
|
|
|
$$PWD/../backend/rss.h \
|
|
|
|
$$PWD/../backend/sjis.h \
|
|
|
|
$$PWD/../backend/stdint_msvc.h \
|
|
|
|
$$PWD/../backend/zint.h \
|
2019-07-30 14:09:09 +03:00
|
|
|
$$PWD/qzint.h \
|
|
|
|
$$PWD/qzint_global.h
|
2017-09-04 06:44:16 +03:00
|
|
|
|
|
|
|
SOURCES += $$PWD/../backend/2of5.c \
|
|
|
|
$$PWD/../backend/auspost.c \
|
|
|
|
$$PWD/../backend/aztec.c \
|
|
|
|
$$PWD/../backend/bmp.c \
|
|
|
|
$$PWD/../backend/codablock.c \
|
|
|
|
$$PWD/../backend/code.c \
|
|
|
|
$$PWD/../backend/code1.c \
|
|
|
|
$$PWD/../backend/code128.c \
|
|
|
|
$$PWD/../backend/code16k.c \
|
|
|
|
$$PWD/../backend/code49.c \
|
|
|
|
$$PWD/../backend/common.c \
|
|
|
|
$$PWD/../backend/composite.c \
|
|
|
|
$$PWD/../backend/dllversion.c \
|
|
|
|
$$PWD/../backend/dmatrix.c \
|
|
|
|
$$PWD/../backend/dotcode.c \
|
|
|
|
$$PWD/../backend/eci.c \
|
|
|
|
$$PWD/../backend/emf.c \
|
|
|
|
$$PWD/../backend/gif.c \
|
|
|
|
$$PWD/../backend/gridmtx.c \
|
|
|
|
$$PWD/../backend/gs1.c \
|
|
|
|
$$PWD/../backend/hanxin.c \
|
|
|
|
$$PWD/../backend/imail.c \
|
|
|
|
$$PWD/../backend/large.c \
|
|
|
|
$$PWD/../backend/library.c \
|
|
|
|
$$PWD/../backend/maxicode.c \
|
|
|
|
$$PWD/../backend/medical.c \
|
|
|
|
$$PWD/../backend/pcx.c \
|
|
|
|
$$PWD/../backend/pdf417.c \
|
|
|
|
$$PWD/../backend/plessey.c \
|
|
|
|
$$PWD/../backend/png.c \
|
|
|
|
$$PWD/../backend/postal.c \
|
|
|
|
$$PWD/../backend/ps.c \
|
|
|
|
$$PWD/../backend/qr.c \
|
|
|
|
$$PWD/../backend/raster.c \
|
|
|
|
$$PWD/../backend/reedsol.c \
|
|
|
|
$$PWD/../backend/render.c \
|
|
|
|
$$PWD/../backend/rss.c \
|
|
|
|
$$PWD/../backend/svg.c \
|
|
|
|
$$PWD/../backend/telepen.c \
|
|
|
|
$$PWD/../backend/tif.c \
|
|
|
|
$$PWD/../backend/upcean.c \
|
|
|
|
$$PWD/qzint.cpp
|
|
|
|
|
|
|
|
DESTDIR = $${DEST_LIBS}
|
|
|
|
#DLLDESTDIR = $${DESTDIR}
|
|
|
|
unix {
|
|
|
|
target.path = $${DESTDIR}
|
|
|
|
INSTALLS = target
|
|
|
|
}
|