blob: 9433f0e0fe388cc0dd7fe7272e70c4804d467ec7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
defineReplace(prependAll) {
for(a,$$1):result += $$2$${a}$$3
return($$result)
}
qtPrepareTool(QMAKE_LRELEASE, lrelease)
TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/translations/$${TARGET}_,.ts)
qm.depends = $${TRANSLATIONS}
qm.input = TRANSLATIONS
qm.output = $$OUT_PWD/translations/${QMAKE_FILE_BASE}.qm
qm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
qm.name = LRELEASE ${QMAKE_FILE_IN}
qm.CONFIG += no_link
QMAKE_EXTRA_COMPILERS += qm
PRE_TARGETDEPS += compiler_qm_make_all
target_translations.path = /usr/share/$${TARGET}
target_translations.files += $$prependAll(LANGUAGES, $${OUT_PWD}/translations/$${TARGET}_,.qm)
target_translations.CONFIG = no_check_exist
INSTALLS += target_translations
|