added version, improved release of translations

This commit is contained in:
Martchus 2015-06-24 00:52:31 +02:00
parent ecbd83acac
commit b9d179972f
2 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,5 @@
projectname = tageditor
VERSION = 1.1.5
# include ../../common.pri when building as part of a subdirs project; otherwise include general.pri
!include(../../common.pri) {
@ -128,6 +129,3 @@ INSTALLS += icon
menu.path = $$(INSTALL_ROOT)/share/applications/
menu.files = $${PWD}/resources/desktop/applications/$${projectname}.desktop
INSTALLS += menu
translations.path = $$(INSTALL_ROOT)/share/$${projectname}/translations/
translations.files = $${OUT_PWD}/translations/*.qm
INSTALLS += translations

View File

@ -1,15 +1,16 @@
!isEmpty(TRANSLATIONS) {
isEmpty(QMAKE_LRELEASE) {
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
}
isEmpty(TS_DIR):TS_DIR = translations
genqm.name = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $${OUT_PWD}/$$TS_DIR/${QMAKE_FILE_BASE}.qm
genqm.name = translations
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
message("Project contains translations. Use updateqm to compile translations.")
translations.path = $$(INSTALL_ROOT)/share/$${projectname}/translations/
translations.files = $${OUT_PWD}/translations/*.qm
INSTALLS += translations
}