summaryrefslogtreecommitdiff
path: root/mkspecs/win32-msvc.net
Unidiff
Diffstat (limited to 'mkspecs/win32-msvc.net') (more/less context) (ignore whitespace changes)
-rw-r--r--mkspecs/win32-msvc.net/qmake.conf104
-rw-r--r--mkspecs/win32-msvc.net/qplatformdefs.h87
2 files changed, 191 insertions, 0 deletions
diff --git a/mkspecs/win32-msvc.net/qmake.conf b/mkspecs/win32-msvc.net/qmake.conf
new file mode 100644
index 0000000..bcc1ea7
--- a/dev/null
+++ b/mkspecs/win32-msvc.net/qmake.conf
@@ -0,0 +1,104 @@
1#
2# $Id$
3#
4# qmake configuration for Win32/Microsoft C++.NET
5#
6
7 MAKEFILE_GENERATOR= MSVC.NET
8 TEMPLATE = app
9 CONFIG += qt warn_on release incremental
10 DEFINES += UNICODE WIN32 NDEBUG
11
12exists( $(QTDIR)\.qtwinconfig ) {
13 include( $(QTDIR)\.qtwinconfig )
14}
15
16 QMAKE_CC = cl
17 QMAKE_LEX = flex
18 QMAKE_LEXFLAGS =
19 QMAKE_YACC = byacc
20 QMAKE_YACCFLAGS = -d
21 QMAKE_CFLAGS = -nologo -Zm200
22 QMAKE_CFLAGS_WARN_ON= -W3
23 QMAKE_CFLAGS_WARN_OFF= -W0
24 QMAKE_CFLAGS_RELEASE= -O1
25 QMAKE_CFLAGS_DEBUG= -Z7
26 QMAKE_CFLAGS_MT = -MD
27 QMAKE_CFLAGS_MT_DBG= -MD
28 QMAKE_CFLAGS_MT_DLL= -MD
29 QMAKE_CFLAGS_MT_DLLDBG= -MD
30 QMAKE_CFLAGS_ST = -ML
31 QMAKE_CFLAGS_ST_DBG= -MLd
32 QMAKE_CFLAGS_YACC=
33
34contains(CONFIG,stl){
35 QMAKE_CFLAGS+= -GX
36}
37contains(CONFIG,exceptions){
38 QMAKE_CFLAGS += -GX
39}
40contains(CONFIG,rtti){
41 QMAKE_CFLAGS+= -GR
42}
43
44 QMAKE_CXX = $$QMAKE_CC
45 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
46 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
47 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
48 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE
49 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG
50 QMAKE_CXXFLAGS_MT= $$QMAKE_CFLAGS_MT
51 QMAKE_CXXFLAGS_MT_DBG= $$QMAKE_CFLAGS_MT_DBG
52 QMAKE_CXXFLAGS_MT_DLL= $$QMAKE_CFLAGS_MT_DLL
53QMAKE_CXXFLAGS_MT_DLLDBG= $$QMAKE_CFLAGS_MT_DLLDBG
54 QMAKE_CXXFLAGS_ST= $$QMAKE_CFLAGS_ST
55 QMAKE_CXXFLAGS_ST_DBG= $$QMAKE_CFLAGS_ST_DBG
56 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
57 QMAKE_CXXFLAGS_STL= $$QMAKE_CFLAGS_STL
58
59 QMAKE_INCDIR =
60 QMAKE_INCDIR_QT = $(QTDIR)\include
61 QMAKE_LIBDIR_QT = $(QTDIR)\lib
62
63 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src
64 QMAKE_RUN_CC_IMP= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<
65 QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src
66 QMAKE_RUN_CXX_IMP= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $<
67
68 QMAKE_LINK = link
69 QMAKE_LFLAGS = /NOLOGO
70 QMAKE_LFLAGS_RELEASE= /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.dll /DELAYLOAD:wsock32.dll /DELAYLOAD:winspool.dll
71 QMAKE_LFLAGS_DEBUG= /DEBUG
72 QMAKE_LFLAGS_CONSOLE= /SUBSYSTEM:CONSOLE
73 QMAKE_LFLAGS_WINDOWS= /SUBSYSTEM:WINDOWS
74QMAKE_LFLAGS_CONSOLE_DLL= /SUBSYSTEM:CONSOLE /DLL
75QMAKE_LFLAGS_WINDOWS_DLL= /SUBSYSTEM:WINDOWS /DLL
76 QMAKE_LFLAGS_QT_DLL= /BASE:0x39D00000
77
78 QMAKE_LIBS =
79 QMAKE_LIBS_CONSOLE=
80 QMAKE_LIBS_WINDOWS= kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib
81 QMAKE_LIBS_QT = qt.lib
82 QMAKE_LIBS_QT_THREAD= qt-mt.lib
83 QMAKE_LIBS_QT_ENTRY= qtmain.lib
84
85 QMAKE_LIBS_OPENGL= opengl32.lib glu32.lib delayimp.lib
86 QMAKE_LFLAGS_OPENGL= /DELAYLOAD:opengl32.dll
87
88 QMAKE_MOC = $(QTDIR)\bin\moc.exe
89 QMAKE_UIC = $(QTDIR)\bin\uic.exe
90 QMAKE_IDC = $(QTDIR)\bin\idc.exe
91
92 QMAKE_IDL = midl
93 QMAKE_LIB = lib /NOLOGO
94 QMAKE_RC = rc
95
96 QMAKE_ZIP = zip -r -9
97
98 QMAKE_COPY = copy
99 QMAKE_MOVE = move
100 QMAKE_DEL_FILE = del
101 QMAKE_DEL_DIR = deltree
102
103 VCPROJ_EXTENSION= .vcproj
104 VCSOLUTION_EXTENSION= .vcs
diff --git a/mkspecs/win32-msvc.net/qplatformdefs.h b/mkspecs/win32-msvc.net/qplatformdefs.h
new file mode 100644
index 0000000..76ed8af
--- a/dev/null
+++ b/mkspecs/win32-msvc.net/qplatformdefs.h
@@ -0,0 +1,87 @@
1#ifndef QPLATFORMDEFS_H
2#define QPLATFORMDEFS_H
3
4#ifdef UNICODE
5#ifndef _UNICODE
6#define _UNICODE
7#endif
8#endif
9
10// Get Qt defines/settings
11
12#include "qglobal.h"
13
14#define _POSIX_
15#include <limits.h>
16#undef _POSIX_
17
18#include <tchar.h>
19#include <io.h>
20#include <direct.h>
21#include <stdio.h>
22#include <fcntl.h>
23#include <errno.h>
24#include <sys/stat.h>
25#include <stdlib.h>
26#include <windows.h>
27
28#define Q_FS_FAT
29#ifdef QT_LARGE_FILE_SUPPORT
30 #define QT_STATBUF struct _stati64 // non-ANSI defs
31 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs
32 #define QT_STAT ::_stati64
33 #define QT_FSTAT ::_fstati64
34#else
35 #define QT_STATBUF struct _stat // non-ANSI defs
36 #define QT_STATBUF4TSTAT struct _stat // non-ANSI defs
37 #define QT_STAT ::_stat
38 #define QT_FSTAT ::_fstat
39#endif
40 #define QT_STAT_REG _S_IFREG
41 #define QT_STAT_DIR _S_IFDIR
42 #define QT_STAT_MASK _S_IFMT
43#if defined(_S_IFLNK)
44 # define QT_STAT_LNK _S_IFLNK
45#endif
46 #define QT_FILENO _fileno
47 #define QT_OPEN ::_open
48 #define QT_CLOSE ::_close
49#ifdef QT_LARGE_FILE_SUPPORT
50 #define QT_LSEEK ::_lseeki64
51 #define QT_TSTAT ::_tstati64
52#else
53 #define QT_LSEEK ::_lseek
54 #define QT_TSTAT ::_tstat
55#endif
56 #define QT_READ ::_read
57 #define QT_WRITE ::_write
58 #define QT_ACCESS ::_access
59 #define QT_GETCWD ::_getcwd
60 #define QT_CHDIR ::_chdir
61 #define QT_MKDIR ::_mkdir
62 #define QT_RMDIR ::_rmdir
63 #define QT_OPEN_RDONLY _O_RDONLY
64 #define QT_OPEN_WRONLY _O_WRONLY
65 #define QT_OPEN_RDWR _O_RDWR
66 #define QT_OPEN_CREAT _O_CREAT
67 #define QT_OPEN_TRUNC _O_TRUNC
68 #define QT_OPEN_APPEND _O_APPEND
69#if defined(O_TEXT)
70 # define QT_OPEN_TEXT _O_TEXT
71 # define QT_OPEN_BINARY _O_BINARY
72#endif
73
74 #define QT_SIGNAL_ARGS int
75
76 #define QT_VSNPRINTF ::_vsnprintf
77 #define QT_SNPRINTF ::_snprintf
78
79 # define F_OK0
80 # define X_OK1
81 # define W_OK2
82 # define R_OK4
83
84typedef int mode_t;
85
86
87#endif // QPLATFORMDEFS_H