mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 12:34:39 +03:00
no_zint & static_build flags has been added
# Conflicts: # common.pri
This commit is contained in:
commit
2e6a7473ea
13
3rdparty/zint-2.4.4/backend_qt4/Zint.pro
vendored
13
3rdparty/zint-2.4.4/backend_qt4/Zint.pro
vendored
@ -1,7 +1,15 @@
|
|||||||
DEFINES += NO_PNG
|
DEFINES += NO_PNG
|
||||||
|
|
||||||
TEMPLATE = lib
|
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)
|
include(../../../common.pri)
|
||||||
|
|
||||||
@ -18,7 +26,6 @@ unix{
|
|||||||
|
|
||||||
INCLUDEPATH += $$PWD/../backend
|
INCLUDEPATH += $$PWD/../backend
|
||||||
DEFINES += _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_WARNINGS ZINT_VERSION=\\\"$$VERSION\\\"
|
DEFINES += _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_WARNINGS ZINT_VERSION=\\\"$$VERSION\\\"
|
||||||
DEFINES += QZINT_LIBRARY
|
|
||||||
TARGET = QtZint
|
TARGET = QtZint
|
||||||
|
|
||||||
!contains(DEFINES, NO_PNG) {
|
!contains(DEFINES, NO_PNG) {
|
||||||
|
@ -3,10 +3,14 @@
|
|||||||
|
|
||||||
#include <QtCore/qglobal.h>
|
#include <QtCore/qglobal.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_STATIC_BUILD
|
||||||
|
# define QZINTSHARED_EXPORT /**/
|
||||||
|
#else
|
||||||
#if defined(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
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
CONFIG += build_translations
|
CONFIG += build_translations
|
||||||
CONFIG += zint
|
|
||||||
|
!contains(CONFIG, no_zint){
|
||||||
|
CONFIG += zint
|
||||||
|
}
|
||||||
|
|
||||||
CONFIG += qjsengine
|
CONFIG += qjsengine
|
||||||
CONFIG += dialogdesigner
|
CONFIG += dialogdesigner
|
||||||
|
|
||||||
@ -61,7 +65,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
|
|||||||
|
|
||||||
LIMEREPORT_VERSION_MAJOR = 1
|
LIMEREPORT_VERSION_MAJOR = 1
|
||||||
LIMEREPORT_VERSION_MINOR = 4
|
LIMEREPORT_VERSION_MINOR = 4
|
||||||
LIMEREPORT_VERSION_RELEASE = 17
|
LIMEREPORT_VERSION_RELEASE = 18
|
||||||
|
|
||||||
LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"'
|
LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"'
|
||||||
DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\"
|
DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\"
|
||||||
|
@ -27,9 +27,11 @@ macx{
|
|||||||
|
|
||||||
unix:{
|
unix:{
|
||||||
LIBS += -L$${DEST_LIBS} -llimereport
|
LIBS += -L$${DEST_LIBS} -llimereport
|
||||||
|
!contains(CONFIG, static_build){
|
||||||
contains(CONFIG,zint){
|
contains(CONFIG,zint){
|
||||||
LIBS += -L$${DEST_LIBS} -lQtZint
|
LIBS += -L$${DEST_LIBS} -lQtZint
|
||||||
}
|
}
|
||||||
|
}
|
||||||
DESTDIR = $$DEST_DIR
|
DESTDIR = $$DEST_DIR
|
||||||
# QMAKE_POST_LINK += mkdir -p $$quote($$REPORTS_DIR) |
|
# QMAKE_POST_LINK += mkdir -p $$quote($$REPORTS_DIR) |
|
||||||
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR) $$quote($$REPORTS_DIR) $$escape_expand(\n\t)
|
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR) $$quote($$REPORTS_DIR) $$escape_expand(\n\t)
|
||||||
@ -53,9 +55,11 @@ win32 {
|
|||||||
RC_FILE += mainicon.rc
|
RC_FILE += mainicon.rc
|
||||||
|
|
||||||
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR\\*) $$quote($$REPORTS_DIR\\demo_reports) $$escape_expand(\\n\\t)
|
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR\\*) $$quote($$REPORTS_DIR\\demo_reports) $$escape_expand(\\n\\t)
|
||||||
|
!contains(CONFIG, static_build){
|
||||||
contains(CONFIG,zint){
|
contains(CONFIG,zint){
|
||||||
LIBS += -L$${DEST_LIBS} -lQtZint
|
LIBS += -L$${DEST_LIBS} -lQtZint
|
||||||
}
|
}
|
||||||
|
}
|
||||||
LIBS += -L$${DEST_LIBS} -llimereport
|
LIBS += -L$${DEST_LIBS} -llimereport
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,9 +27,11 @@ macx{
|
|||||||
|
|
||||||
unix:{
|
unix:{
|
||||||
LIBS += -L$${DEST_LIBS} -llimereport
|
LIBS += -L$${DEST_LIBS} -llimereport
|
||||||
|
!contains(CONFIG, static_build){
|
||||||
contains(CONFIG,zint){
|
contains(CONFIG,zint){
|
||||||
LIBS += -L$${DEST_LIBS} -lQtZint
|
LIBS += -L$${DEST_LIBS} -lQtZint
|
||||||
}
|
}
|
||||||
|
}
|
||||||
DESTDIR = $$DEST_DIR
|
DESTDIR = $$DEST_DIR
|
||||||
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR) $$quote($$REPORTS_DIR) $$escape_expand(\n\t)
|
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR) $$quote($$REPORTS_DIR) $$escape_expand(\n\t)
|
||||||
linux{
|
linux{
|
||||||
@ -50,10 +52,11 @@ win32 {
|
|||||||
|
|
||||||
DESTDIR = $$DEST_DIR
|
DESTDIR = $$DEST_DIR
|
||||||
RC_FILE += mainicon.rc
|
RC_FILE += mainicon.rc
|
||||||
|
!contains(CONFIG, static_build){
|
||||||
contains(CONFIG,zint){
|
contains(CONFIG,zint){
|
||||||
LIBS += -L$${DEST_LIBS} -lQtZint
|
LIBS += -L$${DEST_LIBS} -lQtZint
|
||||||
}
|
}
|
||||||
|
}
|
||||||
LIBS += -L$${DEST_LIBS} -llimereport
|
LIBS += -L$${DEST_LIBS} -llimereport
|
||||||
|
|
||||||
QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$$EXTRA_DIR\" \"$$REPORTS_DIR\\demo_reports\" $$escape_expand(\\n\\t)
|
QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$$EXTRA_DIR\" \"$$REPORTS_DIR\\demo_reports\" $$escape_expand(\\n\\t)
|
||||||
|
@ -18,9 +18,11 @@ macx{
|
|||||||
|
|
||||||
unix:{
|
unix:{
|
||||||
LIBS += -L$${DEST_LIBS} -llimereport
|
LIBS += -L$${DEST_LIBS} -llimereport
|
||||||
|
!contains(CONFIG, static_build){
|
||||||
contains(CONFIG,zint){
|
contains(CONFIG,zint){
|
||||||
LIBS += -L$${DEST_LIBS} -lQtZint
|
LIBS += -L$${DEST_LIBS} -lQtZint
|
||||||
}
|
}
|
||||||
|
}
|
||||||
DESTDIR = $$DEST_DIR
|
DESTDIR = $$DEST_DIR
|
||||||
linux{
|
linux{
|
||||||
#Link share lib to ../lib rpath
|
#Link share lib to ../lib rpath
|
||||||
@ -40,10 +42,11 @@ win32 {
|
|||||||
|
|
||||||
DESTDIR = $$DEST_DIR
|
DESTDIR = $$DEST_DIR
|
||||||
RC_FILE += mainicon.rc
|
RC_FILE += mainicon.rc
|
||||||
|
!contains(CONFIG, static_build){
|
||||||
contains(CONFIG,zint){
|
contains(CONFIG,zint){
|
||||||
LIBS += -L$${DEST_LIBS} -lQtZint
|
LIBS += -L$${DEST_LIBS} -lQtZint
|
||||||
}
|
}
|
||||||
|
}
|
||||||
LIBS += -L$${DEST_LIBS} -llimereport
|
LIBS += -L$${DEST_LIBS} -llimereport
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
|
!contains(CONFIG, no_zint){
|
||||||
|
CONFIG += zint
|
||||||
|
}
|
||||||
|
|
||||||
include(common.pri)
|
include(common.pri)
|
||||||
contains(CONFIG, zint){
|
contains(CONFIG, zint){
|
||||||
SUBDIRS += 3rdparty
|
SUBDIRS += 3rdparty
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export($$CONFIG)
|
||||||
SUBDIRS += \
|
SUBDIRS += \
|
||||||
limereport
|
limereport
|
||||||
|
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
TARGET = limereport
|
TARGET = limereport
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
CONFIG += lib
|
contains(CONFIG, static_build){
|
||||||
CONFIG += dll
|
CONFIG += staticlib
|
||||||
#CONFIG += staticlib
|
}
|
||||||
|
|
||||||
|
!contains(CONFIG, staticlib){
|
||||||
|
CONFIG += lib
|
||||||
|
CONFIG += dll
|
||||||
|
}
|
||||||
|
|
||||||
CONFIG += create_prl
|
CONFIG += create_prl
|
||||||
CONFIG += link_prl
|
CONFIG += link_prl
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
#include "serializators/lrxmlqrectserializator.h"
|
#include "serializators/lrxmlqrectserializator.h"
|
||||||
#include "serializators/lrxmlserializatorsfactory.h"
|
#include "serializators/lrxmlserializatorsfactory.h"
|
||||||
|
|
||||||
inline void initResources(){
|
void initResources(){
|
||||||
Q_INIT_RESOURCE(report);
|
Q_INIT_RESOURCE(report);
|
||||||
Q_INIT_RESOURCE(lobjectinspector);
|
Q_INIT_RESOURCE(lobjectinspector);
|
||||||
Q_INIT_RESOURCE(lrdatabrowser);
|
Q_INIT_RESOURCE(lrdatabrowser);
|
||||||
@ -95,9 +95,11 @@ BaseDesignIntf * createTextItem(QObject* owner, LimeReport::BaseDesignIntf* par
|
|||||||
return new LimeReport::TextItem(owner,parent);
|
return new LimeReport::TextItem(owner,parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_ZINT
|
||||||
BaseDesignIntf * createBarcodeItem(QObject* owner, LimeReport::BaseDesignIntf* parent){
|
BaseDesignIntf * createBarcodeItem(QObject* owner, LimeReport::BaseDesignIntf* parent){
|
||||||
return new BarcodeItem(owner,parent);
|
return new BarcodeItem(owner,parent);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
BaseDesignIntf* createHLayout(QObject *owner, LimeReport::BaseDesignIntf *parent)
|
BaseDesignIntf* createHLayout(QObject *owner, LimeReport::BaseDesignIntf *parent)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user