mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-01-11 12:28:09 +03:00
Fix build on Qt 4
This commit is contained in:
parent
0550654b04
commit
372c677f6f
@ -1,3 +1,4 @@
|
|||||||
|
#CONFIG += build_translations
|
||||||
CONFIG += zint
|
CONFIG += zint
|
||||||
ZINT_PATH = $$PWD/3rdparty/zint-2.4.4
|
ZINT_PATH = $$PWD/3rdparty/zint-2.4.4
|
||||||
|
|
||||||
@ -11,6 +12,7 @@ DEFINES += LIMEREPORT_VERSION=$${LIMEREPORT_VERSION}
|
|||||||
|
|
||||||
QT += script xml sql
|
QT += script xml sql
|
||||||
REPORT_PATH = $$PWD/limereport
|
REPORT_PATH = $$PWD/limereport
|
||||||
|
TRANSLATIONS_PATH = $$PWD/translations
|
||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4) {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
DEFINES+=HAVE_QT5
|
DEFINES+=HAVE_QT5
|
||||||
|
@ -70,7 +70,7 @@ contains(CONFIG,zint){
|
|||||||
#######
|
#######
|
||||||
####Automatically build required translation files (*.qm)
|
####Automatically build required translation files (*.qm)
|
||||||
|
|
||||||
|
contains(CONFIG,build_translations){
|
||||||
LANGUAGES = ru es_ES
|
LANGUAGES = ru es_ES
|
||||||
|
|
||||||
defineReplace(prependAll) {
|
defineReplace(prependAll) {
|
||||||
@ -78,19 +78,24 @@ defineReplace(prependAll) {
|
|||||||
return($$result)
|
return($$result)
|
||||||
}
|
}
|
||||||
|
|
||||||
TRANSLATIONS_PATH = $$PWD/../translations
|
|
||||||
TRANSLATIONS = $$prependAll(LANGUAGES, $$TRANSLATIONS_PATH/limereport_,.ts)
|
TRANSLATIONS = $$prependAll(LANGUAGES, $$TRANSLATIONS_PATH/limereport_,.ts)
|
||||||
|
|
||||||
qtPrepareTool(LUPDATE, lupdate)
|
qtPrepareTool(LUPDATE, lupdate)
|
||||||
ts.commands = $$LUPDATE $$_PRO_FILE_
|
ts.commands = $$LUPDATE $$PWD -ts $$TRANSLATIONS
|
||||||
|
|
||||||
|
TRANSLATIONS_FILES =
|
||||||
qtPrepareTool(LRELEASE, lrelease)
|
qtPrepareTool(LRELEASE, lrelease)
|
||||||
qm.commands = $$LRELEASE $$_PRO_FILE_
|
for(tsfile, TRANSLATIONS) {
|
||||||
|
qmfile = $$tsfile
|
||||||
|
qmfile ~= s,.ts$,.qm,
|
||||||
|
qm.commands += $$LRELEASE -removeidentical $$tsfile -qm $$qmfile $$escape_expand(\\n\\t)
|
||||||
|
tmp_command = $$LRELEASE -removeidentical $$tsfile -qm $$qmfile $$escape_expand(\\n\\t)
|
||||||
|
TRANSLATIONS_FILES += $$qmfile
|
||||||
|
}
|
||||||
qm.depends = ts
|
qm.depends = ts
|
||||||
|
|
||||||
QMAKE_EXTRA_TARGETS += qm ts
|
QMAKE_EXTRA_TARGETS += qm ts
|
||||||
POST_TARGETDEPS += qm ts
|
POST_TARGETDEPS += qm
|
||||||
|
}
|
||||||
|
|
||||||
#### EN AUTOMATIC TRANSLATIONS
|
#### EN AUTOMATIC TRANSLATIONS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user