From 65716be9309f6317087c6416bf3f4d12cf4b68ba Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 2 Oct 2007 07:49:53 +0000 Subject: [PATCH] Correction for auto creation of *.qm files from *.ts. --- src/TableViewer/TableViewer.pro | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/TableViewer/TableViewer.pro b/src/TableViewer/TableViewer.pro index 461bc659b..c02c754b9 100644 --- a/src/TableViewer/TableViewer.pro +++ b/src/TableViewer/TableViewer.pro @@ -24,12 +24,26 @@ SOURCES = *.cxx TRANSLATIONS = resources/TableViewer_images.ts \ resources/TableViewer_msg_en.ts +unix:GUIResources = ../../resources +win32:GUIResources = ..\\..\\resources + +lrelease.name = LRELASE ${QMAKE_FILE_IN} +unix:lrelease.commands = $(QTDIR)/$(CONFIG_ID)/bin/lrelease ${QMAKE_FILE_NAME} -qm $${GUIResources}/${QMAKE_FILE_BASE}.qm +win32:lrelease.commands = $(QTDIR)\\$(CONFIG_ID)\\bin\\lrelease ${QMAKE_FILE_NAME} -qm $${GUIResources}\\${QMAKE_FILE_BASE}.qm +unix:lrelease.output = $${GUIResources}/${QMAKE_FILE_BASE}.qm +win32:lrelease.output = $${GUIResources}\\${QMAKE_FILE_BASE}.qm +lrelease.input = TRANSLATIONS +unix:lrelease.clean = $${GUIResources}/${QMAKE_FILE_BASE}.qm +win32:lrelease.clean = $${GUIResources}\\${QMAKE_FILE_BASE}.qm +lrelease.CONFIG += no_link target_predeps +QMAKE_EXTRA_COMPILERS += lrelease + ICONS = resources/*.png includes.files = $$HEADERS includes.path = ../../include -resources.files = $$ICONS resources/*.qm +resources.files = $$ICONS resources.path = ../../resources INSTALLS += includes resources -- 2.39.2