2015-06-12 02:30:39 +02:00
|
|
|
!isEmpty(TRANSLATIONS) {
|
|
|
|
isEmpty(QMAKE_LRELEASE) {
|
2015-06-24 01:02:27 +02:00
|
|
|
QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
2015-06-12 02:30:39 +02:00
|
|
|
}
|
|
|
|
isEmpty(TS_DIR):TS_DIR = translations
|
2015-06-24 01:02:27 +02:00
|
|
|
genqm.name = translations
|
2015-06-12 02:30:39 +02:00
|
|
|
genqm.input = TRANSLATIONS
|
|
|
|
genqm.output = $${OUT_PWD}/$$TS_DIR/${QMAKE_FILE_BASE}.qm
|
|
|
|
genqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $${OUT_PWD}/$$TS_DIR/${QMAKE_FILE_BASE}.qm
|
|
|
|
genqm.CONFIG = no_link
|
|
|
|
QMAKE_EXTRA_COMPILERS += genqm
|
|
|
|
PRE_TARGETDEPS += compiler_genqm_make_all
|
2015-06-24 01:02:27 +02:00
|
|
|
translations.path = $$(INSTALL_ROOT)/share/$${projectname}/translations/
|
|
|
|
translations.files = $${OUT_PWD}/translations/*.qm
|
|
|
|
INSTALLS += translations
|
2015-06-12 02:30:39 +02:00
|
|
|
}
|