Simplify .pro/.pri

This commit is contained in:
Rodrigo Torres 2021-08-18 14:14:37 -03:00
parent d56fb6150c
commit e96e1a9adc
13 changed files with 235 additions and 240 deletions

View File

@ -1,13 +1,13 @@
DEFINES += NO_PNG DEFINES += NO_PNG
TEMPLATE = lib TEMPLATE = lib
contains(CONFIG, static_build){ CONFIG(static_build) {
message(Static Build) message(Static Build)
CONFIG += staticlib CONFIG += staticlib
DEFINES += QZINT_STATIC_BUILD DEFINES += QZINT_STATIC_BUILD
} }
!contains(CONFIG, staticlib){ !CONFIG(staticlib) {
CONFIG += dll CONFIG += dll
DEFINES += QZINT_LIBRARY DEFINES += QZINT_LIBRARY
} }
@ -27,7 +27,7 @@ INCLUDEPATH += $$PWD/../backend
DEFINES += ZINT_VERSION=\\\"$$ZINT_VERSION\\\" DEFINES += ZINT_VERSION=\\\"$$ZINT_VERSION\\\"
CONFIG(release, debug|release){ CONFIG(release, debug|release) {
TARGET = QtZint TARGET = QtZint
} else { } else {
TARGET = QtZintd TARGET = QtZintd

View File

@ -1,66 +1,76 @@
# uncomment to disable translations
#CONFIG += no_build_translations
# uncomment to disable zint
#CONFIG += no_zint
# uncomment to disable svg
#CONFIG += no_svg
# uncomment to enable easy_profiler
#CONFIG *= easy_profiler
isEmpty(BINARY_RESULT_DIR) { isEmpty(BINARY_RESULT_DIR) {
BINARY_RESULT_DIR = $${PWD} BINARY_RESULT_DIR = $${PWD}
} }
!contains(CONFIG, no_build_translations){ !CONFIG(no_build_translations) {
CONFIG += build_translations CONFIG *= build_translations
} }
#CONFIG *= easy_profiler
!contains(CONFIG, no_zint){ !CONFIG(no_zint) {
CONFIG *= zint CONFIG *= zint
} }
!contains(CONFIG, no_svg) { !CONFIG(no_svg) {
QT *= svg QT *= svg
CONFIG *= svg CONFIG *= svg
DEFINES += HAVE_SVG DEFINES *= HAVE_SVG
} }
INCLUDEPATH += $$PWD/3rdparty/easyprofiler/easy_profiler_core/include CONFIG(easy_profiler) {
DEPENDPATH += $$PWD/3rdparty/easyprofiler/easy_profiler_core/include
contains(CONFIG, easy_profiler){
message(EasyProfiler) message(EasyProfiler)
unix|win32: LIBS += -L$$PWD/3rdparty/easyprofiler/build/bin/ -leasy_profiler INCLUDEPATH *= $$PWD/3rdparty/easyprofiler/easy_profiler_core/include
greaterThan(QT_MAJOR_VERSION, 4){ DEPENDPATH *= $$PWD/3rdparty/easyprofiler/easy_profiler_core/include
DEFINES += BUILD_WITH_EASY_PROFILER unix|win32: LIBS *= -L$$PWD/3rdparty/easyprofiler/build/bin/ -leasy_profiler
greaterThan(QT_MAJOR_VERSION, 4) {
DEFINES *= BUILD_WITH_EASY_PROFILER
} }
} }
!contains(CONFIG, qtscriptengine){ !CONFIG(qtscriptengine) {
greaterThan(QT_MAJOR_VERSION, 4){ greaterThan(QT_MAJOR_VERSION, 4) {
greaterThan(QT_MINOR_VERSION, 5){ greaterThan(QT_MINOR_VERSION, 5) {
CONFIG *= qjsengine CONFIG *= qjsengine
} }
lessThan(QT_MINOR_VERSION, 6){ lessThan(QT_MINOR_VERSION, 6) {
CONFIG *= qtscriptengine CONFIG *= qtscriptengine
} }
} }
lessThan(QT_MAJOR_VERSION, 5){ lessThan(QT_MAJOR_VERSION, 5) {
CONFIG *= qtscriptengine CONFIG *= qtscriptengine
} }
} }
contains(CONFIG, qtscriptengine){ CONFIG(qtscriptengine) {
CONFIG -= qjsengine CONFIG -= qjsengine
QT *= script QT *= script
DEFINES *= USE_QTSCRIPTENGINE DEFINES *= USE_QTSCRIPTENGINE
message(qtscriptengine) message(qtscriptengine)
} }
!contains(CONFIG, no_formdesigner){ !CONFIG(no_formdesigner) {
CONFIG *= dialogdesigner CONFIG *= dialogdesigner
} }
!contains(CONFIG, no_embedded_designer){ !CONFIG(no_embedded_designer) {
CONFIG *= embedded_designer CONFIG *= embedded_designer
DEFINES += HAVE_REPORT_DESIGNER DEFINES *= HAVE_REPORT_DESIGNER
message(embedded designer) message(embedded designer)
} }
ZINT_PATH = $$PWD/3rdparty/zint-2.6.1 ZINT_PATH = $$PWD/3rdparty/zint-2.6.1
contains(CONFIG,zint){ CONFIG(zint) {
DEFINES *= HAVE_ZINT DEFINES *= HAVE_ZINT
} }
@ -68,11 +78,11 @@ greaterThan(QT_MAJOR_VERSION, 4) {
QT *= uitools QT *= uitools
} }
lessThan(QT_MAJOR_VERSION, 5){ lessThan(QT_MAJOR_VERSION, 5) {
CONFIG *= uitools CONFIG *= uitools
} }
CONFIG(release, debug|release){ CONFIG(release, debug|release) {
message(Release) message(Release)
BUILD_TYPE = release BUILD_TYPE = release
}else{ }else{
@ -83,15 +93,18 @@ CONFIG(release, debug|release){
BUILD_DIR = $${BINARY_RESULT_DIR}/build/$${QT_VERSION} BUILD_DIR = $${BINARY_RESULT_DIR}/build/$${QT_VERSION}
DEST_INCLUDE_DIR = $$PWD/include DEST_INCLUDE_DIR = $$PWD/include
unix{ unix{
ARCH_DIR = $${OUT_PWD}/unix ARCH_DIR = $${OUT_PWD}/unix
ARCH_TYPE = unix ARCH_TYPE = unix
macx{ macx{
ARCH_DIR = $${OUT_PWD}/macx ARCH_DIR = $${OUT_PWD}/macx
ARCH_TYPE = macx ARCH_TYPE = macx
} }
linux{ linux{
!contains(QT_ARCH, x86_64){ !contains(QT_ARCH, x86_64) {
message("Compiling for 32bit system") message("Compiling for 32bit system")
ARCH_DIR = $${OUT_PWD}/linux32 ARCH_DIR = $${OUT_PWD}/linux32
ARCH_TYPE = linux32 ARCH_TYPE = linux32
@ -102,6 +115,7 @@ unix{
} }
} }
} }
win32 { win32 {
!contains(QT_ARCH, x86_64) { !contains(QT_ARCH, x86_64) {
message("Compiling for 32bit system") message("Compiling for 32bit system")
@ -139,20 +153,20 @@ TRANSLATIONS_PATH = $$PWD/translations
greaterThan(QT_MAJOR_VERSION, 4) { greaterThan(QT_MAJOR_VERSION, 4) {
DEFINES *= HAVE_QT5 DEFINES *= HAVE_QT5
QT *= printsupport widgets QT *= printsupport widgets
contains(QT,uitools){ contains(QT, uitools) {
message(uitools) message(uitools)
DEFINES *= HAVE_UI_LOADER DEFINES *= HAVE_UI_LOADER
} }
contains(CONFIG, qjsengine){ CONFIG(qjsengine) {
message(qjsengine) message(qjsengine)
DEFINES *= USE_QJSENGINE DEFINES *= USE_QJSENGINE
QT *= qml QT *= qml
} }
} }
lessThan(QT_MAJOR_VERSION, 5){ lessThan(QT_MAJOR_VERSION, 5) {
DEFINES *= HAVE_QT4 DEFINES *= HAVE_QT4
CONFIG(uitools){ CONFIG(uitools) {
message(uitools) message(uitools)
DEFINES *= HAVE_UI_LOADER DEFINES *= HAVE_UI_LOADER
} }

View File

@ -23,13 +23,12 @@ CONFIG(debug, debug|release) {
} else { } else {
LIBS += -llimereport LIBS += -llimereport
} }
!contains(CONFIG, static_build){
contains(CONFIG,zint){ !CONFIG(static_build) : CONFIG(zint) {
LIBS += -L$${DEST_LIBS} LIBS += -L$${DEST_LIBS}
CONFIG(debug, debug|release) { CONFIG(debug, debug|release) {
LIBS += -lQtZintd LIBS += -lQtZintd
} else { } else {
LIBS += -lQtZint LIBS += -lQtZint
} }
}
} }

View File

@ -9,7 +9,7 @@ CONFIG(release, debug|release) {
TEMPLATE = app TEMPLATE = app
SOURCES += main.cpp\ SOURCES += main.cpp \
mainwindow.cpp mainwindow.cpp
HEADERS += mainwindow.h HEADERS += mainwindow.h
@ -48,7 +48,7 @@ unix:{
win32 { win32 {
DESTDIR = $$DEST_DIR DESTDIR = $$DEST_DIR
contains(QMAKE_HOST.os, Linux){ contains(QMAKE_HOST.os, Linux) {
QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$$EXTRA_DIR\" \"$$REPORTS_DIR\" $$escape_expand(\n\t) QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$$EXTRA_DIR\" \"$$REPORTS_DIR\" $$escape_expand(\n\t)
} else { } else {
EXTRA_DIR ~= s,/,\\,g EXTRA_DIR ~= s,/,\\,g
@ -67,13 +67,11 @@ CONFIG(debug, debug|release) {
} }
message($$LIBS) message($$LIBS)
!contains(CONFIG, static_build){ !CONFIG(static_build) : CONFIG(zint) {
contains(CONFIG,zint){
LIBS += -L$${DEST_LIBS} LIBS += -L$${DEST_LIBS}
CONFIG(debug, debug|release) { CONFIG(debug, debug|release) {
LIBS += -lQtZintd LIBS += -lQtZintd
} else { } else {
LIBS += -lQtZint LIBS += -lQtZint
} }
}
} }

View File

@ -1,7 +1,7 @@
include(../common.pri) include(../common.pri)
QT += core gui QT += core gui
CONFIG(release, debug|release){ CONFIG(release, debug|release) {
TARGET = LRDemo_r2 TARGET = LRDemo_r2
} else { } else {
TARGET = LRDemo_r2d TARGET = LRDemo_r2d
@ -9,7 +9,7 @@ CONFIG(release, debug|release){
TEMPLATE = app TEMPLATE = app
SOURCES += main.cpp\ SOURCES += main.cpp \
mainwindow.cpp mainwindow.cpp
HEADERS += mainwindow.h HEADERS += mainwindow.h
@ -47,7 +47,7 @@ unix:{
win32 { win32 {
DESTDIR = $$DEST_DIR DESTDIR = $$DEST_DIR
contains(QMAKE_HOST.os, Linux){ contains(QMAKE_HOST.os, Linux) {
QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$$EXTRA_DIR\" \"$$REPORTS_DIR\" $$escape_expand(\n\t) QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$$EXTRA_DIR\" \"$$REPORTS_DIR\" $$escape_expand(\n\t)
} else { } else {
EXTRA_DIR ~= s,/,\\,g EXTRA_DIR ~= s,/,\\,g
@ -65,13 +65,11 @@ CONFIG(debug, debug|release) {
LIBS += -llimereport LIBS += -llimereport
} }
!contains(CONFIG, static_build){ !CONFIG(static_build) : CONFIG(zint) {
contains(CONFIG,zint){
LIBS += -L$${DEST_LIBS} LIBS += -L$${DEST_LIBS}
CONFIG(debug, debug|release) { CONFIG(debug, debug|release) {
LIBS += -lQtZintd LIBS += -lQtZintd
} else { } else {
LIBS += -lQtZint LIBS += -lQtZint
} }
}
} }

View File

@ -1,11 +1,12 @@
include(../common.pri) include(../common.pri)
QT += core gui QT += core gui
contains(CONFIG,release) { CONFIG(release) {
TARGET = LRDesigner TARGET = LRDesigner
} else { } else {
TARGET = LRDesignerd TARGET = LRDesignerd
} }
TEMPLATE = app TEMPLATE = app
HEADERS += \ HEADERS += \
@ -56,12 +57,10 @@ CONFIG(debug, debug|release) {
LIBS += -llimereport LIBS += -llimereport
} }
!contains(CONFIG, static_build){ !CONFIG(static_build) : CONFIG(zint) {
contains(CONFIG,zint){
CONFIG(debug, debug|release) { CONFIG(debug, debug|release) {
LIBS += -L$${DEST_LIBS} -lQtZintd LIBS += -L$${DEST_LIBS} -lQtZintd
} else { } else {
LIBS += -L$${DEST_LIBS} -lQtZint LIBS += -L$${DEST_LIBS} -lQtZint
} }
}
} }

View File

@ -4,7 +4,7 @@ include(../common.pri)
include(../limereport/limereport.pri) include(../limereport/limereport.pri)
include(../limereport/designer.pri) include(../limereport/designer.pri)
contains(CONFIG,release) { CONFIG(release) {
TARGET = designer_plugin TARGET = designer_plugin
} else { } else {
TARGET = designer_plugind TARGET = designer_plugind
@ -33,12 +33,12 @@ unix {
} }
contains(CONFIG,zint){ CONFIG(zint) {
message(zint) message(zint)
INCLUDEPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt INCLUDEPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt
DEPENDPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt DEPENDPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt
LIBS += -L$${DEST_LIBS} LIBS += -L$${DEST_LIBS}
CONFIG(debug, debug|release){ CONFIG(debug, debug|release) {
LIBS += -lQtZintd LIBS += -lQtZintd
} else { } else {
LIBS += -lQtZint LIBS += -lQtZint

View File

@ -1,31 +1,23 @@
TEMPLATE = subdirs TEMPLATE = subdirs
!contains(CONFIG, no_zint){
CONFIG += zint
}
include(common.pri) include(common.pri)
contains(CONFIG, zint){
CONFIG += ordered
CONFIG(zint) {
SUBDIRS += 3rdparty SUBDIRS += 3rdparty
} }
export($$CONFIG)
CONFIG += ordered
SUBDIRS += \ SUBDIRS += \
limereport \ limereport \
demo_r1 \ demo_r1 \
demo_r2 \ demo_r2 \
designer designer
greaterThan(QT_MAJOR_VERSION, 4){ greaterThan(QT_MAJOR_VERSION, 4) : greaterThan(QT_MINOR_VERSION, 1) {
greaterThan(QT_MINOR_VERSION, 1){
SUBDIRS += console SUBDIRS += console
}
} }
!contains(CONFIG, embedded_designer){ !CONFIG(embedded_designer) : !CONFIG(static_build) {
!contains(CONFIG, static_build){ SUBDIRS += designer_plugin
SUBDIRS += designer_plugin
}
} }

View File

@ -1,7 +1,8 @@
include(../common.pri) include(../common.pri)
DEFINES+=HAVE_REPORT_DESIGNER
contains(CONFIG,dialogdesigner){ DEFINES += HAVE_REPORT_DESIGNER
CONFIG(dialogdesigner) {
include($$REPORT_PATH/dialogdesigner/dialogdesigner.pri) include($$REPORT_PATH/dialogdesigner/dialogdesigner.pri)
} }
@ -51,7 +52,7 @@ SOURCES += \
$$REPORT_PATH/lrreportdesignwidget.cpp \ $$REPORT_PATH/lrreportdesignwidget.cpp \
$$REPORT_PATH/lrreportdesignwindow.cpp $$REPORT_PATH/lrreportdesignwindow.cpp
contains(CONFIG, svg){ CONFIG(svg) {
SOURCES += \ SOURCES += \
$$REPORT_PATH/objectinspector/editors/lrsvgeditor.cpp \ $$REPORT_PATH/objectinspector/editors/lrsvgeditor.cpp \
$$REPORT_PATH/objectinspector/propertyItems/lrsvgpropitem.cpp $$REPORT_PATH/objectinspector/propertyItems/lrsvgpropitem.cpp
@ -100,7 +101,7 @@ HEADERS += \
$$REPORT_PATH/lrreportdesignwidget.h \ $$REPORT_PATH/lrreportdesignwidget.h \
$$REPORT_PATH/lrreportdesignwindow.h $$REPORT_PATH/lrreportdesignwindow.h
contains(CONFIG, svg){ contains(CONFIG, svg) {
HEADERS += \ HEADERS += \
$$REPORT_PATH/objectinspector/editors/lrsvgeditor.h \ $$REPORT_PATH/objectinspector/editors/lrsvgeditor.h \
$$REPORT_PATH/objectinspector/propertyItems/lrsvgpropitem.h $$REPORT_PATH/objectinspector/propertyItems/lrsvgpropitem.h

View File

@ -1,23 +1,21 @@
include(../../common.pri) include(../../common.pri)
include($$PWD/3rdparty/qtcreator/designerintegrationv2/designerintegration.pri) include($$PWD/3rdparty/qtcreator/designerintegrationv2/designerintegration.pri)
INCLUDEPATH *= $$PWD/3rdparty/designer INCLUDEPATH *= $$PWD/3rdparty/designer
greaterThan(QT_MAJOR_VERSION, 4) {
contains(QT,uitools){ greaterThan(QT_MAJOR_VERSION, 4) : contains(QT, uitools) {
DEFINES += HAVE_QTDESIGNER_INTEGRATION DEFINES += HAVE_QTDESIGNER_INTEGRATION
}
} }
lessThan(QT_MAJOR_VERSION, 5){
contains(CONFIG,uitools){ lessThan(QT_MAJOR_VERSION, 5) : CONFIG(uitools) {
DEFINES += HAVE_QTDESIGNER_INTEGRATION DEFINES += HAVE_QTDESIGNER_INTEGRATION
}
} }
greaterThan(QT_MAJOR_VERSION, 4) { greaterThan(QT_MAJOR_VERSION, 4) {
QT *= designer designercomponents-private QT *= designer designercomponents-private
} else { } else {
CONFIG *= designer CONFIG *= designer
qtAddLibrary( QtDesignerComponents ) qtAddLibrary(QtDesignerComponents)
} }
SOURCES += $$PWD/lrdialogdesigner.cpp SOURCES += $$PWD/lrdialogdesigner.cpp

View File

@ -1,6 +1,6 @@
include(../common.pri) include(../common.pri)
contains(CONFIG, embedded_designer){ contains(CONFIG, embedded_designer) {
include(designer.pri) include(designer.pri)
message(embedded designer) message(embedded designer)
} }
@ -76,16 +76,15 @@ SOURCES += \
$$REPORT_PATH/exporters/lrpdfexporter.cpp \ $$REPORT_PATH/exporters/lrpdfexporter.cpp \
$$REPORT_PATH/lrpreparedpages.cpp $$REPORT_PATH/lrpreparedpages.cpp
CONFIG(staticlib) {
contains(CONFIG, staticlib){
SOURCES += $$REPORT_PATH/lrfactoryinitializer.cpp SOURCES += $$REPORT_PATH/lrfactoryinitializer.cpp
} }
contains(CONFIG, zint){ CONFIG(zint) {
SOURCES += $$REPORT_PATH/items/lrbarcodeitem.cpp SOURCES += $$REPORT_PATH/items/lrbarcodeitem.cpp
} }
contains(CONFIG, svg){ CONFIG(svg) {
SOURCES += $$REPORT_PATH/items/lrsvgitem.cpp \ SOURCES += $$REPORT_PATH/items/lrsvgitem.cpp \
} }
@ -171,15 +170,15 @@ HEADERS += \
$$REPORT_PATH/lrpreparedpages.h \ $$REPORT_PATH/lrpreparedpages.h \
$$REPORT_PATH/lrpreparedpagesintf.h $$REPORT_PATH/lrpreparedpagesintf.h
contains(CONFIG, staticlib){ CONFIG(staticlib) {
HEADERS += $$REPORT_PATH/lrfactoryinitializer.h HEADERS += $$REPORT_PATH/lrfactoryinitializer.h
} }
contains(CONFIG,zint){ CONFIG(zint) {
HEADERS += $$REPORT_PATH/items/lrbarcodeitem.h HEADERS += $$REPORT_PATH/items/lrbarcodeitem.h
} }
contains(CONFIG, svg){ CONFIG(svg) {
HEADERS += $$REPORT_PATH/items/lrsvgitem.h HEADERS += $$REPORT_PATH/items/lrsvgitem.h
} }
@ -196,4 +195,3 @@ FORMS += \
RESOURCES += \ RESOURCES += \
$$REPORT_PATH/report.qrc \ $$REPORT_PATH/report.qrc \
$$REPORT_PATH/items/items.qrc $$REPORT_PATH/items/items.qrc

View File

@ -1,4 +1,4 @@
CONFIG(debug, debug|release){ CONFIG(debug, debug|release) {
TARGET = limereportd TARGET = limereportd
} else { } else {
TARGET = limereport TARGET = limereport
@ -6,11 +6,11 @@ CONFIG(debug, debug|release){
TEMPLATE = lib TEMPLATE = lib
contains(CONFIG, static_build){ CONFIG(static_build) {
CONFIG += staticlib CONFIG += staticlib
} }
!contains(CONFIG, staticlib){ !CONFIG(staticlib) {
CONFIG += lib CONFIG += lib
CONFIG += dll CONFIG += dll
} }
@ -26,7 +26,7 @@ macx{
DEFINES += LIMEREPORT_EXPORTS DEFINES += LIMEREPORT_EXPORTS
contains(CONFIG, staticlib){ CONFIG(staticlib) {
DEFINES += HAVE_STATIC_BUILD DEFINES += HAVE_STATIC_BUILD
DEFINES += QZINT_STATIC_BUILD DEFINES += QZINT_STATIC_BUILD
message(STATIC_BUILD) message(STATIC_BUILD)
@ -50,12 +50,12 @@ unix:{
DESTDIR = $${DEST_LIBS} DESTDIR = $${DEST_LIBS}
linux{ linux{
QMAKE_POST_LINK += mkdir -p \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t) # qmake need make mkdir -p on subdirs more than root/ QMAKE_POST_LINK += mkdir -p \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t) # qmake need make mkdir -p on subdirs more than root/
for(FILE,EXTRA_FILES){ for(FILE,EXTRA_FILES) {
QMAKE_POST_LINK += $$QMAKE_COPY \"$$FILE\" \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t) # inside of libs make /include/files QMAKE_POST_LINK += $$QMAKE_COPY \"$$FILE\" \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t) # inside of libs make /include/files
} }
} }
macx{ macx{
for(FILE,EXTRA_FILES){ for(FILE,EXTRA_FILES) {
QMAKE_POST_LINK += $$QMAKE_COPY \"$$FILE\" \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t) QMAKE_POST_LINK += $$QMAKE_COPY \"$$FILE\" \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t)
} }
QMAKE_POST_LINK += mkdir -p \"$${DESTDIR}/include\" $$escape_expand(\\n\\t) QMAKE_POST_LINK += mkdir -p \"$${DESTDIR}/include\" $$escape_expand(\\n\\t)
@ -65,9 +65,9 @@ unix:{
win32 { win32 {
DESTDIR = $${DEST_LIBS} DESTDIR = $${DEST_LIBS}
contains(QMAKE_HOST.os, Linux){ contains(QMAKE_HOST.os, Linux) {
QMAKE_POST_LINK += mkdir -p \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t) # qmake need make mkdir -p on subdirs more than root/ QMAKE_POST_LINK += mkdir -p \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t) # qmake need make mkdir -p on subdirs more than root/
for(FILE,EXTRA_FILES){ for(FILE,EXTRA_FILES) {
QMAKE_POST_LINK += $$QMAKE_COPY \"$$FILE\" \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t) # inside of libs make /include/files QMAKE_POST_LINK += $$QMAKE_COPY \"$$FILE\" \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t) # inside of libs make /include/files
} }
QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$${DEST_INCLUDE_DIR}\" \"$${DESTDIR}\" QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$${DEST_INCLUDE_DIR}\" \"$${DESTDIR}\"
@ -78,19 +78,19 @@ win32 {
DEST_DIR ~= s,/,\\,g DEST_DIR ~= s,/,\\,g
DEST_INCLUDE_DIR ~= s,/,\\,g DEST_INCLUDE_DIR ~= s,/,\\,g
for(FILE,EXTRA_FILES){ for(FILE,EXTRA_FILES) {
QMAKE_POST_LINK += $$QMAKE_COPY \"$$FILE\" \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t) QMAKE_POST_LINK += $$QMAKE_COPY \"$$FILE\" \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t)
} }
QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$${DEST_INCLUDE_DIR}\" \"$${DEST_DIR}\" QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$${DEST_INCLUDE_DIR}\" \"$${DEST_DIR}\"
} }
} }
contains(CONFIG,zint){ CONFIG(zint) {
message(zint) message(zint)
INCLUDEPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt INCLUDEPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt
DEPENDPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt DEPENDPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt
LIBS += -L$${DEST_LIBS} LIBS += -L$${DEST_LIBS}
CONFIG(release, debug|release){ CONFIG(release, debug|release) {
LIBS += -lQtZint LIBS += -lQtZint
} else { } else {
LIBS += -lQtZintd LIBS += -lQtZintd
@ -112,7 +112,7 @@ INSTALLS += target
####Automatically build required translation files (*.qm) ####Automatically build required translation files (*.qm)
contains(CONFIG,build_translations){ CONFIG(build_translations) {
LANGUAGES = ru es ar fr zh pl LANGUAGES = ru es ar fr zh pl
defineReplace(prependAll) { defineReplace(prependAll) {
@ -139,5 +139,3 @@ contains(CONFIG,build_translations){
} }
#### EN AUTOMATIC TRANSLATIONS #### EN AUTOMATIC TRANSLATIONS