# HG changeset patch # User Michael Goffioul # Date 1328221950 0 # Node ID df86157a49123fe23f21e494e1fb3489520a70d2 # Parent 3b6177bd63b052fc0f70d4511f546d5c6dd77dfc Re-enable MSVC/Win32 compilation. * gui/src/MainWindow.h: Include . * gui/src/msvc.pri: New file * gui/src/src.pro: Use it. * .hgsubstate: Update to current tip of qirc and qterminal repos. diff -r 3b6177bd63b0 -r df86157a4912 .hgsubstate --- a/.hgsubstate Wed Feb 01 19:28:51 2012 +0100 +++ b/.hgsubstate Thu Feb 02 22:32:30 2012 +0000 @@ -1,3 +1,3 @@ f9813bce2c06a6130a68db4478d1b16ddadaf276 gnulib -86a267ce6ab8c3c9fa40f3e0dbc109a26479384e gui/qirc -4535670b65621538da028b2e54b2ba30b7839f95 gui/qterminal +34c2a274a1b607d2616d9903099a0905237c8f80 gui/qirc +75e8afc065a08cbf8400dcb3386c5dc030cf8719 gui/qterminal diff -r 3b6177bd63b0 -r df86157a4912 gui/src/MainWindow.h --- a/gui/src/MainWindow.h Wed Feb 01 19:28:51 2012 +0100 +++ b/gui/src/MainWindow.h Thu Feb 02 22:32:30 2012 +0000 @@ -27,6 +27,7 @@ #include #include #include +#include #include "ResourceManager.h" #include "OctaveLink.h" #include "WorkspaceView.h" diff -r 3b6177bd63b0 -r df86157a4912 gui/src/msvc.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gui/src/msvc.pri Thu Feb 02 22:32:30 2012 +0000 @@ -0,0 +1,11 @@ +CONFIG += release + +QMAKE_CXXFLAGS += -MP +LIBDIR_SUFFIX = release + +msvc-debug { + QMAKE_CXXFLAGS_RELEASE += -Zi + QMAKE_CXXFLAGS_RELEASE -= -O2 + QMAKE_LFLAGS_RELEASE += -debug + QMAKE_CLEAN += $(DESTDIR)$(QMAKE_TARGET).pdb +} diff -r 3b6177bd63b0 -r df86157a4912 gui/src/src.pro --- a/gui/src/src.pro Wed Feb 01 19:28:51 2012 +0100 +++ b/gui/src/src.pro Thu Feb 02 22:32:30 2012 +0000 @@ -27,9 +27,12 @@ languages/es-es.ts \ languages/ru-ru.ts \ languages/uk-ua.ts # Available translations + +win32-msvc*: include(msvc.pri) + LIBS += -lqscintilla2 \ - -L../qirc/libqirc -lqirc \ - -L../qterminal/libqterminal -lqterminal \ + -L../qirc/libqirc/$$LIBDIR_SUFFIX -lqirc \ + -L../qterminal/libqterminal/$$LIBDIR_SUFFIX -lqterminal \ $$system(mkoctfile -p LIBS) \ $$system(mkoctfile -p OCTAVE_LIBS) @@ -64,8 +67,7 @@ win32-msvc* { DEFINES += QSCINTILLA_DLL - #CONFIG += console - include(msvc-debug.pri) + QMAKE_CXXFLAGS += -wd4244 } QMAKE_LFLAGS += $$LFLAGS $$system(mkoctfile -p RLD_FLAG)