]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Correction for auto creation of *.qm files from *.ts.
authornds <nds@opencascade.com>
Tue, 2 Oct 2007 07:49:53 +0000 (07:49 +0000)
committernds <nds@opencascade.com>
Tue, 2 Oct 2007 07:49:53 +0000 (07:49 +0000)
src/TableViewer/TableViewer.pro

index 461bc659b8b216d6bfaef58dfe8d4b25cfc2bfac..c02c754b9e14ebdd3447a2709fd941c89390f233 100644 (file)
@@ -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