From: nds Date: Mon, 27 Oct 2008 09:04:15 +0000 (+0000) Subject: Debug/release mode in a compilation. X-Git-Tag: V1_1_0~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b31d77bbfa0cf85438912d6bd9e669a8e8cc5a77;p=modules%2Fgui.git Debug/release mode in a compilation. --- diff --git a/SUIT.pro b/SUIT.pro index 08a6dcf6e..9a03f02db 100644 --- a/SUIT.pro +++ b/SUIT.pro @@ -4,6 +4,15 @@ win32:TEMPLATE = vcsubdirs CONFIG += ordered win32:CONFIG += embed_manifest_exe +CONFIG -= debug release debug_and_release +CONFIG += qt thread dll shared + +CONFIG_MODE= $$(CONFIG_MODE) +contains( CONFIG_MODE, debug ) { + CONFIG += debug +} else { + CONFIG += release +} SUBDIRS = src/Qtx \ src/Style \ diff --git a/src/Event/Event.pro b/src/Event/Event.pro index c8087357d..c598cdad1 100644 --- a/src/Event/Event.pro +++ b/src/Event/Event.pro @@ -1,5 +1,8 @@ TEMPLATE = lib TARGET = Event + +include(../Common.pro) + DESTDIR = ../../$(CONFIG_ID)/lib MOC_DIR = ../../moc OBJECTS_DIR = ../../$(CONFIG_ID)/obj/$$TARGET @@ -7,9 +10,6 @@ OBJECTS_DIR = ../../$(CONFIG_ID)/obj/$$TARGET INCLUDEPATH += ../../include LIBS += -CONFIG -= debug release debug_and_release -CONFIG += qt thread debug dll shared - win32:DEFINES += WIN32 DEFINES += EVENT_EXPORTS diff --git a/src/HTMLService/HTMLService.pro b/src/HTMLService/HTMLService.pro index 2655ff5c7..4e6e0a98b 100755 --- a/src/HTMLService/HTMLService.pro +++ b/src/HTMLService/HTMLService.pro @@ -1,6 +1,8 @@ unix:TEMPLATE = lib win32:TEMPLATE = vclib +include(../Common.pro) + DESTDIR = ../../$(CONFIG_ID)/lib MOC_DIR = ../../moc OBJECTS_DIR = ../../$(CONFIG_ID)/obj/$$TARGET @@ -16,9 +18,6 @@ LIBS += -L../../$(CONFIG_ID)/lib $${CAS_KERNEL} $${CAS_VIEWER} win32:LIBS *= -L$(QTLIB) win32:INCLUDEPATH *= $(QTINC) $(QTINC)\QtCore $(QTINC)\QtGui $(QTINC)\QtXml -CONFIG -= debug release debug_and_release -CONFIG += qt thread debug dll shared - win32:copy_hdr.name = Install ${QMAKE_FILE_IN} win32:copy_hdr.commands = type ${QMAKE_FILE_IN} > ../../include/${QMAKE_FILE_BASE}.hxx win32:copy_hdr.output = ../../include/${QMAKE_FILE_BASE}.hxx diff --git a/src/LogWindow/LogWindow.pro b/src/LogWindow/LogWindow.pro index 653c56df1..23867fe15 100644 --- a/src/LogWindow/LogWindow.pro +++ b/src/LogWindow/LogWindow.pro @@ -1,6 +1,8 @@ unix:TEMPLATE = lib win32:TEMPLATE = vclib +include(../Common.pro) + win32:QMAKE_MOC=$(QTDIR)\bin\moc.exe DESTDIR = ../../$(CONFIG_ID)/lib @@ -12,9 +14,6 @@ LIBS += -L../../$(CONFIG_ID)/lib -lSUIT -lQtx win32:LIBS *= -L$(QTLIB) win32:INCLUDEPATH *= $(QTINC) $(QTINC)\QtCore $(QTINC)\QtGui $(QTINC)\QtXml -CONFIG -= debug release debug_and_release -CONFIG += qt thread debug dll shared - win32:DEFINES += WNT WIN32 DEFINES += LOGWINDOW_EXPORTS