diff options
Diffstat (limited to 'subsurface-install.pri')
-rw-r--r-- | subsurface-install.pri | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/subsurface-install.pri b/subsurface-install.pri index b630b605c..ec208328c 100644 --- a/subsurface-install.pri +++ b/subsurface-install.pri @@ -113,4 +113,18 @@ XSLTDIR = $(DATADIR)/subsurface INSTALLS += target desktop icon manpage xslt doc marbledir install.target = install } +!isEmpty(TRANSLATIONS) { + isEmpty(QMAKE_LRELEASE) { + win32: QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe + else: QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease + } + isEmpty(TS_DIR):TS_DIR = translations + TSQM.target = .translations + TSQM.name = lrelease subsurface.pro + TSQM.depends = $$TRANSLATIONS + TSQM.output = $$TS_DIR/${QMAKE_FILE_BASE}.qm + TSQM.commands = $$QMAKE_LRELEASE subsurface.pro && echo "OK" > .translations + QMAKE_EXTRA_TARGETS += TSQM + PRE_TARGETDEPS += .translations +} QMAKE_EXTRA_TARGETS += install $$install.depends |