From: nds Date: Thu, 29 May 2008 07:42:22 +0000 (+0000) Subject: Porting to Win32 platform. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4b85c5e2a77648405e96874e78a5f5247479bfcf;p=modules%2Fgui.git Porting to Win32 platform. --- diff --git a/src/CAF/CAF.pro b/src/CAF/CAF.pro index cfaca213c..9bd5d3490 100644 --- a/src/CAF/CAF.pro +++ b/src/CAF/CAF.pro @@ -1,4 +1,5 @@ -TEMPLATE = lib +unix:TEMPLATE = lib +win32:TEMPLATE = vclib DESTDIR = ../../$(CONFIG_ID)/lib MOC_DIR = ../../moc @@ -31,7 +32,7 @@ win32:GUIResources = ..\\..\\resources lrelease.name = LRELASE ${QMAKE_FILE_IN} unix:lrelease.commands = $(QTDIR)/bin/lrelease ${QMAKE_FILE_NAME} -qm $${GUIResources}/${QMAKE_FILE_BASE}.qm -win32:lrelease.commands = $(QTDIR)\\bin\\lrelease ${QMAKE_FILE_NAME} -qm $${GUIResources}\\${QMAKE_FILE_BASE}.qm +win32:lrelease.commands = $(QTDIR)\\bin\\lrelease ${QMAKE_FILE_IN} -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 diff --git a/src/Plot2d/Plot2d.pro b/src/Plot2d/Plot2d.pro index df3ea535a..8ff602108 100644 --- a/src/Plot2d/Plot2d.pro +++ b/src/Plot2d/Plot2d.pro @@ -46,6 +46,7 @@ QMAKE_EXTRA_COMPILERS += lrelease ICONS = resources/*.png +win32:SOURCES+=$$ICONS win32:Resource=$$ICONS win32:copy_res.name = Install resources ${QMAKE_FILE_IN} win32:copy_res.commands = type ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT} diff --git a/src/STD/STD.pro b/src/STD/STD.pro index 9454c21d2..8bc7c46b1 100644 --- a/src/STD/STD.pro +++ b/src/STD/STD.pro @@ -43,6 +43,7 @@ win32:QMAKE_EXTRA_COMPILERS += copy_hdr ICONS = resources/*.png +win32:SOURCES+=$$ICONS win32:Resource=$$ICONS win32:copy_res.name = Install resources ${QMAKE_FILE_IN} win32:copy_res.commands = type ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT} diff --git a/src/SUIT/SUIT.pro b/src/SUIT/SUIT.pro index 440c22f43..a2308c0cb 100644 --- a/src/SUIT/SUIT.pro +++ b/src/SUIT/SUIT.pro @@ -43,6 +43,7 @@ win32:QMAKE_EXTRA_COMPILERS += copy_hdr ICONS = resources/*.png +win32:SOURCES+=$$ICONS win32:Resource=$$ICONS win32:copy_res.name = Install resources ${QMAKE_FILE_IN} win32:copy_res.commands = type ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT} diff --git a/src/TableViewer/TableViewer.pro b/src/TableViewer/TableViewer.pro index a985d3e9c..4e612cfae 100644 --- a/src/TableViewer/TableViewer.pro +++ b/src/TableViewer/TableViewer.pro @@ -47,6 +47,7 @@ win32:QMAKE_EXTRA_COMPILERS += copy_hdr ICONS = resources/*.png win32:Resource=$$ICONS +win32:SOURCES+=$$ICONS win32:copy_res.name = Install resources ${QMAKE_FILE_IN} win32:copy_res.commands = type ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT} win32:copy_res.output = $${GUIResources}\\${QMAKE_FILE_BASE}.png diff --git a/src/VTKViewer/VTKViewer.pro b/src/VTKViewer/VTKViewer.pro index 46673de6f..529e28077 100644 --- a/src/VTKViewer/VTKViewer.pro +++ b/src/VTKViewer/VTKViewer.pro @@ -89,6 +89,7 @@ win32:QMAKE_EXTRA_COMPILERS += copy_hdr ICONS = resources/*.png +win32:SOURCES+=$$ICONS win32:Resource=$$ICONS win32:copy_res.name = Install resources ${QMAKE_FILE_IN} win32:copy_res.commands = type ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}