]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/vc6msw.t
1fad86dc3949cc6043962b3bb17f6050b421ae8b
[wxWidgets.git] / distrib / msw / tmake / vc6msw.t
1 #!#############################################################################
2 #! File: vc6msw.t
3 #! Purpose: tmake template file from which the VC++ 6.0 project file for
4 #! building all configurations of wxMSW library wxWindows.dsp
5 #! is generated by running
6 #! tmake -t vc6msw wxwin.pro -o wxWindows.dsp
7 #! Author: Vadim Zeitlin
8 #! Created: 29.09.01
9 #! Version: $Id$
10 #!#############################################################################
11 #${
12 #! include the code which parses filelist.txt file and initializes
13 #! %wxCommon, %wxGeneric and %wxMSW hashes.
14 IncludeTemplate("filelist.t");
15
16 #! now transform these hashes into $project tags
17 foreach $file (sort keys %wxGeneric) {
18 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
19 $project{"WXGENERICSRCS"} .= $file . " "
20 }
21
22 foreach $file (sort keys %wxCommon) {
23 next if $wxCommon{$file} =~ /\b16\b/;
24
25 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
26 $project{$tag} .= $file . " "
27 }
28
29 foreach $file (sort keys %wxMSW) {
30 next if $wxMSW{$file} =~ /\b16\b/;
31
32 my $tag;
33 if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" }
34 else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" }
35 $project{$tag} .= $file . " "
36 }
37
38 foreach $file (sort keys %wxHTML) {
39 next if $wxHTML{$file} =~ /\b16\b/;
40 $project{"WXHTMLSRCS"} .= $file . " "
41 }
42
43 foreach $file (sort keys %wxWXINCLUDE) {
44 next if $file =~ /setup.h/;
45 next if $file =~ /[^.]*.cpp$/;
46 $project{"WXHEADERS"} .= $file . " "
47 }
48
49 foreach $file (sort keys %wxGENERICINCLUDE) {
50 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
51 $project{"WXGENERICHEADERS"} .= $file . " "
52 }
53
54 foreach $file (sort keys %wxMSWINCLUDE) {
55 next if $file =~ /setup0?.h/;
56 $project{"WXMSWHEADERS"} .= $file . " "
57 }
58
59 foreach $file (sort keys %wxHTMLINCLUDE) {
60 $project{"WXHTMLHEADERS"} .= $file . " "
61 }
62 #$}
63 # Microsoft Developer Studio Project File - Name="wxWindows" - Package Owner=<4>
64 # Microsoft Developer Studio Generated Build File, Format Version 6.00
65 # ** DO NOT EDIT **
66
67 # TARGTYPE "Win32 (x86) Static Library" 0x0104
68 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
69
70 CFG=wxWindows - Win32 Debug
71 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
72 !MESSAGE use the Export Makefile command and run
73 !MESSAGE
74 !MESSAGE NMAKE /f "wxWindows.mak".
75 !MESSAGE
76 !MESSAGE You can specify a configuration when running NMAKE
77 !MESSAGE by defining the macro CFG on the command line. For example:
78 !MESSAGE
79 !MESSAGE NMAKE /f "wxWindows.mak" CFG="wxWindows - Win32 Debug"
80 !MESSAGE
81 !MESSAGE Possible choices for configuration are:
82 !MESSAGE
83 !MESSAGE "wxWindows - Win32 Release DLL" (based on "Win32 (x86) Dynamic-Link Library")
84 !MESSAGE "wxWindows - Win32 Debug DLL" (based on "Win32 (x86) Dynamic-Link Library")
85 !MESSAGE "wxWindows - Win32 Release" (based on "Win32 (x86) Static Library")
86 !MESSAGE "wxWindows - Win32 Debug" (based on "Win32 (x86) Static Library")
87 !MESSAGE
88
89 # Begin Project
90 # PROP AllowPerConfigDependencies 0
91 # PROP Scc_ProjName "wxWindows"
92 # PROP Scc_LocalPath ".."
93 CPP=cl.exe
94 RSC=rc.exe
95
96 !IF "$(CFG)" == "wxWindows - Win32 Release DLL"
97
98 # PROP BASE Use_MFC 0
99 # PROP BASE Use_Debug_Libraries 0
100 # PROP BASE Output_Dir "../lib"
101 # PROP BASE Intermediate_Dir "../ReleaseDll"
102 # PROP BASE Target_Dir ""
103 # PROP Use_MFC 0
104 # PROP Use_Debug_Libraries 0
105 # PROP Output_Dir "../lib"
106 # PROP Intermediate_Dir "../ReleaseDLL"
107 # PROP Ignore_Export_Lib 0
108 # PROP Target_Dir ""
109 # ADD BASE CPP /nologo /MD /W4 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /c
110 # ADD CPP /nologo /MD /W4 /O2 /I "../lib/mswdll" /I "../include" /I "./zlib" /I "./jpeg" /I "./png" /I "./regex" /I "./tiff" /D "_USRDLL" /D "WIN32" /D "NDEBUG" /D WINVER=0x0400 /D "STRICT" /D "_MT" /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /c
111 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
112 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
113 # ADD BASE RSC /l 0x409 /d "NDEBUG"
114 # ADD RSC /l 0x409 /i "../include" /d "NDEBUG"
115 BSC32=bscmake.exe
116 # ADD BASE BSC32 /nologo
117 # ADD BSC32 /nologo
118 LINK32=link.exe
119 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib winmm.lib ..\lib\jpeg.lib ..\lib\tiff.lib ..\lib\png.lib ..\lib\regex.lib ..\lib\zlib.lib /nologo /dll /machine:I386 /out:"../lib/wxmsw#$ $text = $project{"WXVERSION"} . '.dll"'
120 # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib ..\lib\jpeg.lib ..\lib\tiff.lib ..\lib\png.lib ..\lib\regex.lib ..\lib\zlib.lib /nologo /version:2.3 /dll /machine:I386 /out:"../lib/wxmsw#$ $text = $project{"WXVERSION"} . '.dll"'
121
122 !ELSEIF "$(CFG)" == "wxWindows - Win32 Debug DLL"
123
124 # PROP BASE Use_MFC 0
125 # PROP BASE Use_Debug_Libraries 1
126 # PROP BASE Output_Dir "../lib"
127 # PROP BASE Intermediate_Dir "../DebugDll"
128 # PROP BASE Target_Dir ""
129 # PROP Use_MFC 0
130 # PROP Use_Debug_Libraries 1
131 # PROP Output_Dir "../lib"
132 # PROP Intermediate_Dir "../DebugDll"
133 # PROP Ignore_Export_Lib 0
134 # PROP Target_Dir ""
135 # ADD BASE CPP /nologo /MDd /W4 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /GZ /c
136 # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/mswdlld" /I "../include" /I "./zlib" /I "./jpeg" /I "./png" /I "./regex" /I "./tiff" /D "_USRDLL" /D "WIN32" /D "_DEBUG" /D WINVER=0x0400 /D "STRICT" /D "_MT" /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /c
137 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
138 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
139 # ADD BASE RSC /l 0x409 /d "_DEBUG"
140 # ADD RSC /l 0x409 /i "../include" /d "_DEBUG"
141 BSC32=bscmake.exe
142 # ADD BASE BSC32 /nologo
143 # ADD BSC32 /nologo
144 LINK32=link.exe
145 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib winmm.lib ..\lib\jpegd.lib ..\lib\tiffd.lib ..\lib\pngd.lib ..\lib\regexd.lib ..\lib\zlibd.lib /dll /debug /machine:I386 /pdbtype:sept /out:"../lib/wxmsw#$ $text = $project{"WXVERSION"} . 'd.dll"'
146 # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib ..\lib\jpegd.lib ..\lib\tiffd.lib ..\lib\pngd.lib ..\lib\regexd.lib ..\lib\zlibd.lib /nologo /version:2.3 /dll /debug /machine:I386 /pdbtype:sept /out:"../lib/wxmsw#$ $text = $project{"WXVERSION"} . 'd.dll"'
147
148 !ELSEIF "$(CFG)" == "wxWindows - Win32 Release"
149
150 # PROP BASE Use_MFC 0
151 # PROP BASE Use_Debug_Libraries 0
152 # PROP BASE Output_Dir "../Release"
153 # PROP BASE Intermediate_Dir "../Release"
154 # PROP BASE Target_Dir ""
155 # PROP Use_MFC 0
156 # PROP Use_Debug_Libraries 0
157 # PROP Output_Dir "../Release"
158 # PROP Intermediate_Dir "../Release"
159 # PROP Target_Dir ""
160 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MT" /YX /FD /c
161 # ADD CPP /nologo /MD /W4 /O2 /I "../lib/msw" /I "../include" /I "./zlib" /I "./jpeg" /I "./png" /I "./regex" /I "./tiff" /D "WIN32" /D "NDEBUG" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /c
162 # ADD BASE RSC /l 0x409
163 # ADD RSC /l 0x409
164 BSC32=bscmake.exe
165 # ADD BASE BSC32 /nologo
166 # ADD BSC32 /nologo
167 LIB32=link.exe -lib
168 # ADD BASE LIB32 /nologo
169 # ADD LIB32 /nologo /out:"..\lib\wxmsw.lib"
170
171 !ELSEIF "$(CFG)" == "wxWindows - Win32 Debug"
172
173 # PROP BASE Use_MFC 0
174 # PROP BASE Use_Debug_Libraries 1
175 # PROP BASE Output_Dir "../Debug"
176 # PROP BASE Intermediate_Dir "../Debug"
177 # PROP BASE Target_Dir ""
178 # PROP Use_MFC 0
179 # PROP Use_Debug_Libraries 1
180 # PROP Output_Dir "../Debug"
181 # PROP Intermediate_Dir "../Debug"
182 # PROP Target_Dir ""
183 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
184 # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/mswd" /I "../include" /I "./zlib" /I "./jpeg" /I "./png" /I "./regex" /I "./tiff" /D "WIN32" /D "_DEBUG" /D "__WXDEBUG__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /c
185 # ADD BASE RSC /l 0x409
186 # ADD RSC /l 0x409
187 BSC32=bscmake.exe
188 # ADD BASE BSC32 /nologo
189 # ADD BSC32 /nologo
190 LIB32=link.exe -lib
191 # ADD BASE LIB32 /nologo
192 # ADD LIB32 /nologo /out:"..\lib\wxmswd.lib"
193
194 !ENDIF
195
196 # Begin Target
197
198 # Name "wxWindows - Win32 Release DLL"
199 # Name "wxWindows - Win32 Debug DLL"
200 # Name "wxWindows - Win32 Release"
201 # Name "wxWindows - Win32 Debug"
202 # Begin Group "Common Files"
203
204 # PROP Default_Filter ""
205 #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n");
206 #$ ExpandGlue("WXCSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n");
207 # Begin Source File
208
209 SOURCE=.\common\y_tab.c
210 # ADD CPP /W1 /D "USE_DEFINE"
211 # SUBTRACT CPP /YX /Yc /Yu
212 # End Source File
213 # End Group
214 # Begin Group "Generic Files"
215
216 # PROP Default_Filter ""
217 #$ ExpandGlue("WXGENERICSRCS", "# Begin Source File\n\nSOURCE=.\\generic\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\generic\\", "\n# End Source File\n");
218 # End Group
219 # Begin Group "wxHTML Files"
220
221 # PROP Default_Filter ""
222 #$ ExpandGlue("WXHTMLSRCS", "# Begin Source File\n\nSOURCE=.\\html\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\html\\", "\n# End Source File\n");
223 # End Group
224 # Begin Group "MSW Files"
225
226 # PROP Default_Filter ""
227 # Begin Source File
228
229 SOURCE=.\msw\dummy.cpp
230 # ADD CPP /Yc"wx/wxprec.h"
231 # End Source File
232 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n");
233 #$ ExpandGlue("WXMSWCSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n");
234 # End Group
235 # Begin Group "OLE Files"
236
237 # PROP Default_Filter ""
238 #$ ExpandGlue("WXOLESRCS", "# Begin Source File\n\nSOURCE=.\\msw\\ole\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\ole\\", "\n# End Source File\n");
239 # End Group
240 # Begin Group "Headers"
241
242 # PROP Default_Filter ""
243 # Begin Group "Setup"
244
245 # PROP Default_Filter ""
246 # Begin Source File
247
248 SOURCE=..\include\wx\msw\setup0.h
249 !IF "$(CFG)" == "wxWindows - Win32 Release DLL"
250 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
251 InputPath=..\include\wx\msw\setup0.h
252
253 "../lib/mswdll/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
254 copy $(InputPath) ..\lib\mswdll\wx\setup.h
255
256 # End Custom Build
257 !ELSEIF "$(CFG)" == "wxWindows - Win32 Debug DLL"
258 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
259 InputPath=..\include\wx\msw\setup0.h
260
261 "../lib/mswdlld/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
262 copy $(InputPath) ..\lib\mswdlld\wx\setup.h
263
264 # End Custom Build
265 !ELSEIF "$(CFG)" == "wxWindows - Win32 Release"
266 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
267 InputPath=..\include\wx\msw\setup0.h
268
269 "../lib/msw/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
270 copy $(InputPath) ..\lib\msw\wx\setup.h
271
272 # End Custom Build
273 !ELSEIF "$(CFG)" == "wxWindows - Win32 Debug"
274 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
275 InputPath=..\include\wx\msw\setup0.h
276
277 "../lib/mswd/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
278 copy $(InputPath) ..\lib\mswd\wx\setup.h
279
280 # End Custom Build
281 !ENDIF
282 # End Source File
283 # End Group
284 # Begin Group "Common"
285
286 # PROP Default_Filter ""
287 #$ ExpandGlue("WXHEADERS", "# Begin Source File\n\nSOURCE=..\\include\\wx\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=..\\include\\wx\\", "\n# End Source File\n");
288 # End Group
289 # Begin Group "MSW"
290
291 # PROP Default_Filter ""
292 #$ ExpandGlue("WXMSWHEADERS", "# Begin Source File\n\nSOURCE=..\\include\\wx\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=..\\include\\wx\\msw\\", "\n# End Source File\n");
293 # End Group
294 # Begin Group "Generic"
295
296 # PROP Default_Filter ""
297 #$ ExpandGlue("WXGENERICHEADERS", "# Begin Source File\n\nSOURCE=..\\include\\wx\\generic\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=..\\include\\wx\\generic\\", "\n# End Source File\n");
298 # End Group
299 # Begin Group "HTML"
300
301 # PROP Default_Filter ""
302 #$ ExpandGlue("WXHTMLHEADERS", "# Begin Source File\n\nSOURCE=..\\include\\wx\\html\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=..\\include\\wx\\html\\", "\n# End Source File\n");
303 # End Group
304 # End Group
305 # End Target
306 # End Project
307 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=perl: