[app] Fixed a problem with generation of .qm files

This commit is contained in:
Slava Monich 2017-01-28 18:25:31 +02:00
parent 41765e9b95
commit ca2afa3dec

View file

@ -218,13 +218,13 @@ defineTest(addTrFile) {
mkdir -p \"$${OUT_PWD}/translations\" && [ \"$${in}.ts\" != \"$${out}.ts\" ] && \ mkdir -p \"$${OUT_PWD}/translations\" && [ \"$${in}.ts\" != \"$${out}.ts\" ] && \
cp -af \"$${in}.ts\" \"$${out}.ts\" || : cp -af \"$${in}.ts\" \"$${out}.ts\" || :
$${lrelease_target}.target = \"$${out}.qm\" $${lrelease_target}.target = $${out}.qm
$${lrelease_target}.depends = $${lupdate_target} $${lrelease_target}.depends = $${lupdate_target}
$${lrelease_target}.commands = lrelease -idbased \"$${out}.ts\" $${lrelease_target}.commands = lrelease -idbased \"$${out}.ts\"
QMAKE_EXTRA_TARGETS += $${lrelease_target} $${lupdate_target} QMAKE_EXTRA_TARGETS += $${lrelease_target} $${lupdate_target}
PRE_TARGETDEPS += \"$${out}.qm\" PRE_TARGETDEPS += $${out}.qm
qm.files += \"$${out}.qm\" qm.files += $${out}.qm
export($${lupdate_target}.commands) export($${lupdate_target}.commands)
export($${lrelease_target}.target) export($${lrelease_target}.target)