summaryrefslogtreecommitdiff
path: root/mkspecs/win32-msvc
Unidiff
Diffstat (limited to 'mkspecs/win32-msvc') (more/less context) (ignore whitespace changes)
-rw-r--r--mkspecs/win32-msvc/qmake.conf37
-rw-r--r--mkspecs/win32-msvc/qplatformdefs.h4
-rw-r--r--mkspecs/win32-msvc/win32app.dsp12
-rw-r--r--mkspecs/win32-msvc/win32dll.dsp12
-rw-r--r--mkspecs/win32-msvc/win32lib.dsp10
5 files changed, 42 insertions, 33 deletions
diff --git a/mkspecs/win32-msvc/qmake.conf b/mkspecs/win32-msvc/qmake.conf
index 6175be3..2d0c6da 100644
--- a/mkspecs/win32-msvc/qmake.conf
+++ b/mkspecs/win32-msvc/qmake.conf
@@ -1,12 +1,14 @@
1# 1#
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for Win32/Microsoft C++ 4# qmake configuration for win32-msvc
5#
6# Written for Microsoft C++.
5# 7#
6 8
7 MAKEFILE_GENERATOR= MSVC 9 MAKEFILE_GENERATOR= MSVC
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release incremental flat 11 CONFIG += qt warn_on release incremental flat link_prl precompile_header
10 DEFINES += UNICODE 12 DEFINES += UNICODE
11 13
12exists( $(QTDIR)\.qtwinconfig ) { 14exists( $(QTDIR)\.qtwinconfig ) {
@@ -15,7 +17,7 @@ exists( $(QTDIR)\.qtwinconfig ) {
15 17
16 QMAKE_CC = cl 18 QMAKE_CC = cl
17 QMAKE_LEX = flex 19 QMAKE_LEX = flex
18 QMAKE_LEXFLAGS = 20 QMAKE_LEXFLAGS =
19 QMAKE_YACC = byacc 21 QMAKE_YACC = byacc
20 QMAKE_YACCFLAGS = -d 22 QMAKE_YACCFLAGS = -d
21 QMAKE_CFLAGS = -nologo -Zm200 $(CFLAGS_EXTRA) 23 QMAKE_CFLAGS = -nologo -Zm200 $(CFLAGS_EXTRA)
@@ -28,16 +30,12 @@ QMAKE_CFLAGS_MT_DBG = -MDd
28 QMAKE_CFLAGS_MT_DLL= -MD 30 QMAKE_CFLAGS_MT_DLL= -MD
29 QMAKE_CFLAGS_MT_DLLDBG= -MDd 31 QMAKE_CFLAGS_MT_DLLDBG= -MDd
30 QMAKE_CFLAGS_YACC= 32 QMAKE_CFLAGS_YACC=
31 33 QMAKE_CFLAGS_STL_ON= -GX
32contains(CONFIG,stl){ 34 QMAKE_CFLAGS_STL_OFF=
33 QMAKE_CFLAGS+= -GX $(CFLAGS_EXTRA) 35 QMAKE_CFLAGS_RTTI_ON= -GR
34} 36 QMAKE_CFLAGS_RTTI_OFF=
35contains(CONFIG,exceptions){ 37QMAKE_CFLAGS_EXCEPTIONS_ON = -GX
36 QMAKE_CFLAGS += -GX 38QMAKE_CFLAGS_EXCEPTIONS_OFF =
37}
38contains(CONFIG,rtti){
39 QMAKE_CFLAGS+= -GR $(CFLAGS_EXTRA)
40}
41 39
42 QMAKE_CXX = $$QMAKE_CC 40 QMAKE_CXX = $$QMAKE_CC
43 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA) 41 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA)
@@ -50,7 +48,12 @@ QMAKE_CXXFLAGS_MT_DBG = $$QMAKE_CFLAGS_MT_DBG
50 QMAKE_CXXFLAGS_MT_DLL= $$QMAKE_CFLAGS_MT_DLL 48 QMAKE_CXXFLAGS_MT_DLL= $$QMAKE_CFLAGS_MT_DLL
51QMAKE_CXXFLAGS_MT_DLLDBG= $$QMAKE_CFLAGS_MT_DLLDBG 49QMAKE_CXXFLAGS_MT_DLLDBG= $$QMAKE_CFLAGS_MT_DLLDBG
52 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC 50 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
53 QMAKE_CXXFLAGS_STL= $$QMAKE_CFLAGS_STL 51 QMAKE_CXXFLAGS_STL_ON= $$QMAKE_CFLAGS_STL_ON
52 QMAKE_CXXFLAGS_STL_OFF= $$QMAKE_CFLAGS_STL_OFF
53 QMAKE_CXXFLAGS_RTTI_ON= $$QMAKE_CFLAGS_RTTI_ON
54 QMAKE_CXXFLAGS_RTTI_OFF= $$QMAKE_CFLAGS_RTTI_OFF
55QMAKE_CXXFLAGS_EXCEPTIONS_ON = $$QMAKE_CFLAGS_EXCEPTIONS_ON
56QMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$QMAKE_CFLAGS_EXCEPTIONS_OFF
54 57
55 QMAKE_INCDIR = 58 QMAKE_INCDIR =
56 QMAKE_INCDIR_QT = $(QTDIR)\include 59 QMAKE_INCDIR_QT = $(QTDIR)\include
@@ -58,8 +61,10 @@ QMAKE_LIBDIR_QT = $(QTDIR)\lib
58 61
59 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src 62 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src
60 QMAKE_RUN_CC_IMP= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< 63 QMAKE_RUN_CC_IMP= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<
64 QMAKE_RUN_CC_IMP_BATCH= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<<
61 QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src 65 QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src
62 QMAKE_RUN_CXX_IMP= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< 66 QMAKE_RUN_CXX_IMP= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $<
67 QMAKE_RUN_CXX_IMP_BATCH= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<<
63 68
64 QMAKE_LINK = link 69 QMAKE_LINK = link
65 QMAKE_LFLAGS = /NOLOGO $(LFLAGS_EXTRA) 70 QMAKE_LFLAGS = /NOLOGO $(LFLAGS_EXTRA)
@@ -94,6 +99,8 @@ QMAKE_ZIP = zip -r -9
94 QMAKE_COPY = copy 99 QMAKE_COPY = copy
95 QMAKE_MOVE = move 100 QMAKE_MOVE = move
96 QMAKE_DEL_FILE = del 101 QMAKE_DEL_FILE = del
97 QMAKE_DEL_DIR = deltree 102 QMAKE_DEL_DIR = rmdir
103 QMAKE_CHK_DIR_EXISTS= if not exist
104 QMAKE_MKDIR = mkdir
98 105
99 DSP_EXTENSION = .dsp 106 DSP_EXTENSION = .dsp
diff --git a/mkspecs/win32-msvc/qplatformdefs.h b/mkspecs/win32-msvc/qplatformdefs.h
index 76ed8af..d828db8 100644
--- a/mkspecs/win32-msvc/qplatformdefs.h
+++ b/mkspecs/win32-msvc/qplatformdefs.h
@@ -26,7 +26,7 @@
26#include <windows.h> 26#include <windows.h>
27 27
28#define Q_FS_FAT 28#define Q_FS_FAT
29#ifdef QT_LARGE_FILE_SUPPORT 29#ifdef QT_LARGEFILE_SUPPORT
30 #define QT_STATBUF struct _stati64 // non-ANSI defs 30 #define QT_STATBUF struct _stati64 // non-ANSI defs
31 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs 31 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs
32 #define QT_STAT ::_stati64 32 #define QT_STAT ::_stati64
@@ -46,7 +46,7 @@
46 #define QT_FILENO _fileno 46 #define QT_FILENO _fileno
47 #define QT_OPEN ::_open 47 #define QT_OPEN ::_open
48 #define QT_CLOSE ::_close 48 #define QT_CLOSE ::_close
49#ifdef QT_LARGE_FILE_SUPPORT 49#ifdef QT_LARGEFILE_SUPPORT
50 #define QT_LSEEK ::_lseeki64 50 #define QT_LSEEK ::_lseeki64
51 #define QT_TSTAT ::_tstati64 51 #define QT_TSTAT ::_tstati64
52#else 52#else
diff --git a/mkspecs/win32-msvc/win32app.dsp b/mkspecs/win32-msvc/win32app.dsp
index d09aa86..61d6a4a 100644
--- a/mkspecs/win32-msvc/win32app.dsp
+++ b/mkspecs/win32-msvc/win32app.dsp
@@ -41,14 +41,14 @@ RSC=rc.exe
41# PROP Output_Dir "$$MSVCDSP_TARGETDIRREL" 41# PROP Output_Dir "$$MSVCDSP_TARGETDIRREL"
42# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" 42# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL"
43# PROP Target_Dir "" 43# PROP Target_Dir ""
44# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE 44# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "$$MSVCDSP_WINCONDEF" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE $$PRECOMPILED_FLAGS_REL
45# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 45# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
46# ADD RSC /l 0x409 /d "NDEBUG" 46# ADD RSC /l 0x409 /d "NDEBUG"
47BSC32=bscmake.exe 47BSC32=bscmake.exe
48# ADD BSC32 /nologo 48# ADD BSC32 /nologo
49LINK32=link.exe 49LINK32=link.exe
50# ADD LINK32 $$MSVCDSP_LIBS $$MSVCDSP_VERSION /subsystem:$$MSVCDSP_SUBSYSTEM $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS $$QMAKE_LFLAGS_RELEASE 50# ADD LINK32 $$MSVCDSP_LIBS $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS $$QMAKE_LFLAGS_RELEASE $$PRECOMPILED_OBJECT
51$$MSVCDSP_REGSVR_REL 51$$MSVCDSP_POST_LINK_REL
52 52
53!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" 53!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug"
54 54
@@ -62,14 +62,14 @@ $$MSVCDSP_REGSVR_REL
62# PROP Output_Dir "$$MSVCDSP_TARGETDIRDEB" 62# PROP Output_Dir "$$MSVCDSP_TARGETDIRDEB"
63# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" 63# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB"
64# PROP Target_Dir "" 64# PROP Target_Dir ""
65# ADD CPP $$MSVCDSP_MTDEFD /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG 65# ADD CPP $$MSVCDSP_MTDEFD /W3 $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "$$MSVCDSP_WINCONDEF" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG $$PRECOMPILED_FLAGS_DEB
66# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 66# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
67# ADD RSC /l 0x409 /d "_DEBUG" 67# ADD RSC /l 0x409 /d "_DEBUG"
68BSC32=bscmake.exe 68BSC32=bscmake.exe
69# ADD BSC32 /nologo 69# ADD BSC32 /nologo
70LINK32=link.exe 70LINK32=link.exe
71# ADD LINK32 $$MSVCDSP_LIBS $$MSVCDSP_VERSION /subsystem:$$MSVCDSP_SUBSYSTEM $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS /pdbtype:sept $$QMAKE_LFLAGS_DEBUG 71# ADD LINK32 $$MSVCDSP_LIBS $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS /pdbtype:sept $$QMAKE_LFLAGS_DEBUG $$PRECOMPILED_OBJECT
72$$MSVCDSP_REGSVR_DBG 72$$MSVCDSP_POST_LINK_DBG
73 73
74!ENDIF 74!ENDIF
75 75
diff --git a/mkspecs/win32-msvc/win32dll.dsp b/mkspecs/win32-msvc/win32dll.dsp
index 78b68d5..c619db4 100644
--- a/mkspecs/win32-msvc/win32dll.dsp
+++ b/mkspecs/win32-msvc/win32dll.dsp
@@ -42,14 +42,14 @@ RSC=rc.exe
42# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" 42# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL"
43# PROP Ignore_Export_Lib 1 43# PROP Ignore_Export_Lib 1
44# PROP Target_Dir "" 44# PROP Target_Dir ""
45# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE 45# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE $$PRECOMPILED_FLAGS_REL
46# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 46# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
47# ADD RSC /l 0x409 /d "NDEBUG" 47# ADD RSC /l 0x409 /d "NDEBUG"
48BSC32=bscmake.exe 48BSC32=bscmake.exe
49# ADD BSC32 /nologo 49# ADD BSC32 /nologo
50LINK32=link.exe 50LINK32=link.exe
51# ADD LINK32 $$MSVCDSP_LIBS /dll $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS $$QMAKE_LFLAGS_RELEASE 51# ADD LINK32 $$MSVCDSP_LIBS /dll $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS $$QMAKE_LFLAGS_RELEASE $$PRECOMPILED_OBJECT
52$$MSVCDSP_COPY_DLL_REL 52$$MSVCDSP_POST_LINK_REL
53 53
54!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" 54!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug"
55 55
@@ -64,14 +64,14 @@ $$MSVCDSP_COPY_DLL_REL
64# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" 64# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB"
65# PROP Ignore_Export_Lib 1 65# PROP Ignore_Export_Lib 1
66# PROP Target_Dir "" 66# PROP Target_Dir ""
67# ADD CPP $$MSVCDSP_MTDEFD /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG 67# ADD CPP $$MSVCDSP_MTDEFD /W3 $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG $$PRECOMPILED_FLAGS_DEB
68# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 68# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
69# ADD RSC /l 0x409 /d "_DEBUG" 69# ADD RSC /l 0x409 /d "_DEBUG"
70BSC32=bscmake.exe 70BSC32=bscmake.exe
71# ADD BSC32 /nologo 71# ADD BSC32 /nologo
72LINK32=link.exe 72LINK32=link.exe
73# ADD LINK32 $$MSVCDSP_LIBS /dll $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS /pdbtype:sept $$QMAKE_LFLAGS_DEBUG 73# ADD LINK32 $$MSVCDSP_LIBS /dll $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS /pdbtype:sept $$QMAKE_LFLAGS_DEBUG $$PRECOMPILED_OBJECT
74$$MSVCDSP_COPY_DLL_DBG 74$$MSVCDSP_POST_LINK_DBG
75 75
76!ENDIF 76!ENDIF
77 77
diff --git a/mkspecs/win32-msvc/win32lib.dsp b/mkspecs/win32-msvc/win32lib.dsp
index 70263c0..81d9f5a 100644
--- a/mkspecs/win32-msvc/win32lib.dsp
+++ b/mkspecs/win32-msvc/win32lib.dsp
@@ -40,12 +40,13 @@ RSC=rc.exe
40# PROP Output_Dir "$$MSVCDSP_TARGETDIRREL" 40# PROP Output_Dir "$$MSVCDSP_TARGETDIRREL"
41# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" 41# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL"
42# PROP Target_Dir "" 42# PROP Target_Dir ""
43# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE 43# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_LIB" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE $$PRECOMPILED_FLAGS_REL
44# ADD RSC /l 0x409 /d "NDEBUG" 44# ADD RSC /l 0x409 /d "NDEBUG"
45BSC32=bscmake.exe 45BSC32=bscmake.exe
46# ADD BSC32 /nologo 46# ADD BSC32 /nologo
47LIB32=link.exe -lib 47LIB32=link.exe -lib
48# ADD LIB32 /nologo $$MSVCDSP_TARGET 48# ADD LIB32 /nologo $$MSVCDSP_TARGET $$PRECOMPILED_OBJECT
49$$MSVCDSP_POST_LINK_REL
49 50
50!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" 51!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug"
51 52
@@ -59,12 +60,13 @@ LIB32=link.exe -lib
59# PROP Output_Dir "$$MSVCDSP_TARGETDIRDEB" 60# PROP Output_Dir "$$MSVCDSP_TARGETDIRDEB"
60# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" 61# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB"
61# PROP Target_Dir "" 62# PROP Target_Dir ""
62# ADD CPP $$MSVCDSP_MTDEFD /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG 63# ADD CPP $$MSVCDSP_MTDEFD /W3 $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_LIB" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG $$PRECOMPILED_FLAGS_DEB
63# ADD RSC /l 0x409 /d "_DEBUG" 64# ADD RSC /l 0x409 /d "_DEBUG"
64BSC32=bscmake.exe 65BSC32=bscmake.exe
65# ADD BSC32 /nologo 66# ADD BSC32 /nologo
66LIB32=link.exe -lib 67LIB32=link.exe -lib
67# ADD LIB32 /nologo $$MSVCDSP_TARGET 68# ADD LIB32 /nologo $$MSVCDSP_TARGET $$PRECOMPILED_OBJECT
69$$MSVCDSP_POST_LINK_DBG
68 70
69!ENDIF 71!ENDIF
70 72