1 #!#############################################################################
3 #! Purpose: tmake template file from which wxBase.dsp is generated by running
4 #! tmake -t vc6base wxwin.pro -o wxBase.dsp
5 #! Author: Vadim Zeitlin
8 #!#############################################################################
11 use wxVersion qw(GetVersion);
13 #! include the code which parses filelist.txt file and initializes
14 #! %wxCommon, %wxGeneric and %wxMSW hashes.
15 IncludeTemplate("filelist.t");
17 #! now transform these hashes into $project tags
18 foreach $file (sort keys %wxCommon) {
19 next if $wxCommon{$file} !~ /\bB\b/;
21 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
22 $project{$tag} .= $file . " "
25 foreach $file (sort keys %wxMSW) {
26 next if $wxMSW{$file} !~ /\bB\b/;
28 my $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS";
29 $project{$tag} .= $file . " "
32 foreach $file (sort keys %wxBase) {
33 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
34 $project{$tag} .= $file . " "
37 foreach $file (sort keys %wxWXINCLUDE) {
38 next if $wxWXINCLUDE{$file} !~ /\bB\b/;
39 next if $file =~ /setup.h/;
40 next if $file =~ /[^.]*.cpp$/;
41 $project{"WXHEADERS"} .= $file . " "
44 foreach $file (sort keys %wxMSWINCLUDE) {
45 next if $wxMSWINCLUDE{$file} !~ /\bB\b/;
46 next if $file =~ /setup0?.h/;
47 $project{"WXMSWHEADERS"} .= $file . " "
50 #! LINK_VERSION is the value of the linker /version switch,
51 #! DLL_VERSION is the version string for the DLL filename
52 my %versions = GetVersion();
53 my ($verMaj, $verMin) = ( $versions{'MAJOR'}, $versions{'MINOR'} );
54 $project{"LINK_VERSION"} = "$verMaj.$verMin";
55 $project{"DLL_VERSION"} = "$verMaj$verMin" . $versions{'MICRO_IF_UNSTABLE'};
57 # Microsoft Developer Studio Project File - Name="wxBase" - Package Owner=<4>
58 # Microsoft Developer Studio Generated Build File, Format Version 6.00
61 # TARGTYPE "Win32 (x86) Static Library" 0x0104
62 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
64 CFG=wxBase - Win32 Debug
65 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
66 !MESSAGE use the Export Makefile command and run
68 !MESSAGE NMAKE /f "wxBase.mak".
70 !MESSAGE You can specify a configuration when running NMAKE
71 !MESSAGE by defining the macro CFG on the command line. For example:
73 !MESSAGE NMAKE /f "wxBase.mak" CFG="wxBase - Win32 Debug"
75 !MESSAGE Possible choices for configuration are:
77 !MESSAGE "wxBase - Win32 Release Unicode DLL" (based on "Win32 (x86) Dynamic-Link Library")
78 !MESSAGE "wxBase - Win32 Debug Unicode DLL" (based on "Win32 (x86) Dynamic-Link Library")
79 !MESSAGE "wxBase - Win32 Release Unicode" (based on "Win32 (x86) Static Library")
80 !MESSAGE "wxBase - Win32 Debug Unicode" (based on "Win32 (x86) Static Library")
81 !MESSAGE "wxBase - Win32 Release DLL" (based on "Win32 (x86) Dynamic-Link Library")
82 !MESSAGE "wxBase - Win32 Debug DLL" (based on "Win32 (x86) Dynamic-Link Library")
83 !MESSAGE "wxBase - Win32 Release" (based on "Win32 (x86) Static Library")
84 !MESSAGE "wxBase - Win32 Debug" (based on "Win32 (x86) Static Library")
88 # PROP AllowPerConfigDependencies 0
89 # PROP Scc_ProjName ""
90 # PROP Scc_LocalPath ""
94 !IF "$(CFG)" == "wxBase - Win32 Release Unicode DLL"
97 # PROP BASE Use_Debug_Libraries 0
98 # PROP BASE Output_Dir "../lib"
99 # PROP BASE Intermediate_Dir "../BaseReleaseUnicodeDll"
100 # PROP BASE Target_Dir ""
102 # PROP Use_Debug_Libraries 0
103 # PROP Output_Dir "../lib"
104 # PROP Intermediate_Dir "../BaseReleaseUnicodeDll"
105 # PROP Ignore_Export_Lib 0
107 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "WXBASEDLL_EXPORTS" /YX /FD /c
108 # ADD CPP /nologo /MD /W4 /O2 /I "../lib/basedllu" /I "../include" /I "./regex" /I "./zlib" /D "NDEBUG" /D wxUSE_GUI=0 /D "WIN32" /D WINVER=0x400 /D "WXMAKINGDLL" /D "_UNICODE" /D "UNICODE" /Yu"wx/wxprec.h" /FD /c
109 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
110 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
111 # ADD BASE RSC /l 0x409 /d "NDEBUG"
112 # ADD RSC /l 0x409 /i "../include" /d "NDEBUG"
114 # ADD BASE BSC32 /nologo
117 # 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 /nologo /dll /machine:I386 /out:"../lib/wxbase#$ $text = $project{"DLL_VERSION"} . 'u.dll"'
118 # ADD LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib ../lib/zlib.lib ../lib/regex.lib /nologo #$ $text = '/version:' . $project{LINK_VERSION} . ' /dll /machine:I386 /out:"../lib/wxbase' . $project{DLL_VERSION} . 'u.dll"'
120 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug Unicode DLL"
122 # PROP BASE Use_MFC 0
123 # PROP BASE Use_Debug_Libraries 1
124 # PROP BASE Output_Dir "../lib"
125 # PROP BASE Intermediate_Dir "../BaseDebugUnicodeDll"
126 # PROP BASE Target_Dir ""
128 # PROP Use_Debug_Libraries 1
129 # PROP Output_Dir "../lib"
130 # PROP Intermediate_Dir "../BaseDebugUnicodeDll"
131 # PROP Ignore_Export_Lib 0
133 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "WXBASEDLL_EXPORTS" /YX /FD /c
134 # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/basedllud" /I "../include" /I "./regex" /I "./zlib" /D "_DEBUG" /D wxUSE_GUI=0 /D "WIN32" /D WINVER=0x400 /D "WXMAKINGDLL" /D "_UNICODE" /D "UNICODE" /Yu"wx/wxprec.h" /FD /c
135 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
136 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
137 # ADD BASE RSC /l 0x409 /d "_DEBUG"
138 # ADD RSC /l 0x409 /i "../include" /d "_DEBUG"
140 # ADD BASE BSC32 /nologo
143 # 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 /nologo /dll /debug /machine:I386 /pdbtype:sept /out:"../lib/wxbase#$ $text = $project{"DLL_VERSION"} . 'ud.dll"'
144 # ADD LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib ../lib/zlibd.lib ../lib/regexd.lib /nologo #$ $text = '/version:' . $project{LINK_VERSION} . ' /dll /machine:I386 /out:"../lib/wxbase' . $project{DLL_VERSION} . 'ud.dll"'
145 !ELSEIF "$(CFG)" == "wxBase - Win32 Release Unicode"
147 # PROP BASE Use_MFC 0
148 # PROP BASE Use_Debug_Libraries 0
149 # PROP BASE Output_Dir "..\lib"
150 # PROP BASE Intermediate_Dir "..\BaseReleaseUnicode"
151 # PROP BASE Target_Dir ""
153 # PROP Use_Debug_Libraries 0
154 # PROP Output_Dir "..\lib"
155 # PROP Intermediate_Dir "..\BaseReleaseUnicode"
157 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
158 # ADD CPP /nologo /MD /W4 /O2 /I "../lib/baseu" /I "../include" /I "./regex" /I "./zlib" /D "NDEBUG" /D wxUSE_GUI=0 /D "WIN32" /D WINVER=0x400 /D "_UNICODE" /D "UNICODE" /Yu"wx/wxprec.h" /FD /c
159 # ADD BASE RSC /l 0x409
162 # ADD BASE BSC32 /nologo
165 # ADD BASE LIB32 /nologo
166 # ADD LIB32 /nologo /out:"..\lib\wxbaseu.lib"
168 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug Unicode"
170 # PROP BASE Use_MFC 0
171 # PROP BASE Use_Debug_Libraries 1
172 # PROP BASE Output_Dir "..\lib"
173 # PROP BASE Intermediate_Dir "..\BaseDebugUnicode"
174 # PROP BASE Target_Dir ""
176 # PROP Use_Debug_Libraries 1
177 # PROP Output_Dir "..\lib"
178 # PROP Intermediate_Dir "..\BaseDebugUnicode"
180 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
181 # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/baseud" /I "../include" /I "./regex" /I "./zlib" /D "_DEBUG" /D wxUSE_GUI=0 /D "WIN32" /D "__WXDEBUG__" /D WINVER=0x400 /D "_UNICODE" /D "UNICODE" /Yu"wx/wxprec.h" /FD /c
182 # ADD BASE RSC /l 0x409
185 # ADD BASE BSC32 /nologo
186 # ADD BSC32 /nologo /o"../lib/wxbase.bsc"
188 # ADD BASE LIB32 /nologo
189 # ADD LIB32 /nologo /out:"..\lib\wxbaseud.lib"
191 !ELSEIF "$(CFG)" == "wxBase - Win32 Release DLL"
193 # PROP BASE Use_MFC 0
194 # PROP BASE Use_Debug_Libraries 0
195 # PROP BASE Output_Dir "../lib"
196 # PROP BASE Intermediate_Dir "../BaseReleaseDll"
197 # PROP BASE Target_Dir ""
199 # PROP Use_Debug_Libraries 0
200 # PROP Output_Dir "../lib"
201 # PROP Intermediate_Dir "../BaseReleaseDll"
202 # PROP Ignore_Export_Lib 0
204 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "WXBASEDLL_EXPORTS" /YX /FD /c
205 # ADD CPP /nologo /MD /W4 /O2 /I "../lib/basedll" /I "../include" /I "./regex" /I "./zlib" /D "NDEBUG" /D wxUSE_GUI=0 /D "WIN32" /D WINVER=0x400 /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /c
206 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
207 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
208 # ADD BASE RSC /l 0x409 /d "NDEBUG"
209 # ADD RSC /l 0x409 /i "../include" /d "NDEBUG"
211 # ADD BASE BSC32 /nologo
214 # 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 /nologo /dll /machine:I386 /out:"../lib/wxbase#$ $text = $project{"DLL_VERSION"} . '.dll"'
215 # ADD LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib ../lib/zlib.lib ../lib/regex.lib /nologo #$ $text = '/version:' . $project{LINK_VERSION} . ' /dll /machine:I386 /out:"../lib/wxbase' . $project{DLL_VERSION} . '.dll"'
217 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug DLL"
219 # PROP BASE Use_MFC 0
220 # PROP BASE Use_Debug_Libraries 1
221 # PROP BASE Output_Dir "../lib"
222 # PROP BASE Intermediate_Dir "../BaseDebugDll"
223 # PROP BASE Target_Dir ""
225 # PROP Use_Debug_Libraries 1
226 # PROP Output_Dir "../lib"
227 # PROP Intermediate_Dir "../BaseDebugDll"
228 # PROP Ignore_Export_Lib 0
230 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "WXBASEDLL_EXPORTS" /YX /FD /c
231 # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/basedlld" /I "../include" /I "./regex" /I "./zlib" /D "_DEBUG" /D wxUSE_GUI=0 /D "WIN32" /D WINVER=0x400 /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /c
232 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
233 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
234 # ADD BASE RSC /l 0x409 /d "_DEBUG"
235 # ADD RSC /l 0x409 /i "../include" /d "_DEBUG"
237 # ADD BASE BSC32 /nologo
240 # 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 /nologo /dll /debug /machine:I386 /pdbtype:sept /out:"../lib/wxbase#$ $text = $project{"DLL_VERSION"} . 'd.dll"'
241 # ADD LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib ../lib/zlibd.lib ../lib/regexd.lib /nologo #$ $text = '/version:' . $project{LINK_VERSION} . ' /dll /machine:I386 /out:"../lib/wxbase' . $project{DLL_VERSION} . 'd.dll"'
243 !ELSEIF "$(CFG)" == "wxBase - Win32 Release"
245 # PROP BASE Use_MFC 0
246 # PROP BASE Use_Debug_Libraries 0
247 # PROP BASE Output_Dir "..\lib"
248 # PROP BASE Intermediate_Dir "..\BaseRelease"
249 # PROP BASE Target_Dir ""
251 # PROP Use_Debug_Libraries 0
252 # PROP Output_Dir "..\lib"
253 # PROP Intermediate_Dir "..\BaseRelease"
255 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
256 # ADD CPP /nologo /MD /W4 /O2 /I "../lib/base" /I "../include" /I "./regex" /I "./zlib" /D "NDEBUG" /D wxUSE_GUI=0 /D "WIN32" /D WINVER=0x400 /Yu"wx/wxprec.h" /FD /c
257 # ADD BASE RSC /l 0x409
260 # ADD BASE BSC32 /nologo
263 # ADD BASE LIB32 /nologo
264 # ADD LIB32 /nologo /out:"..\lib\wxbase.lib"
266 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug"
268 # PROP BASE Use_MFC 0
269 # PROP BASE Use_Debug_Libraries 1
270 # PROP BASE Output_Dir "..\lib"
271 # PROP BASE Intermediate_Dir "..\BaseDebug"
272 # PROP BASE Target_Dir ""
274 # PROP Use_Debug_Libraries 1
275 # PROP Output_Dir "..\lib"
276 # PROP Intermediate_Dir "..\BaseDebug"
278 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
279 # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/based" /I "../include" /I "./regex" /I "./zlib" /D "_DEBUG" /D wxUSE_GUI=0 /D "WIN32" /D "__WXDEBUG__" /D WINVER=0x400 /Yu"wx/wxprec.h" /FD /c
280 # ADD BASE RSC /l 0x409
283 # ADD BASE BSC32 /nologo
284 # ADD BSC32 /nologo /o"../lib/wxbase.bsc"
286 # ADD BASE LIB32 /nologo
287 # ADD LIB32 /nologo /out:"..\lib\wxbased.lib"
293 # Name "wxBase - Win32 Release Unicode DLL"
294 # Name "wxBase - Win32 Debug Unicode DLL"
295 # Name "wxBase - Win32 Release Unicode"
296 # Name "wxBase - Win32 Debug Unicode"
297 # Name "wxBase - Win32 Release DLL"
298 # Name "wxBase - Win32 Debug DLL"
299 # Name "wxBase - Win32 Release"
300 # Name "wxBase - Win32 Debug"
302 # Begin Group "Common Files"
304 # PROP Default_Filter ""
305 #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n");
306 #$ 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");
308 # Begin Group "MSW Files"
310 # PROP Default_Filter ""
313 SOURCE=.\msw\dummy.cpp
314 # ADD CPP /Yc"wx/wxprec.h"
316 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n");
317 #$ 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");
319 # Begin Group "Headers"
321 # PROP Default_Filter ""
322 # Begin Group "Setup"
324 # PROP Default_Filter ""
327 SOURCE=..\include\wx\msw\setup.h
328 !IF "$(CFG)" == "wxBase - Win32 Release Unicode DLL"
329 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
330 InputPath=..\include\wx\msw\setup.h
332 "../lib/basedllu/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
333 copy "$(InputPath)" ..\lib\basedllu\wx\setup.h
336 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug Unicode DLL"
337 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
338 InputPath=..\include\wx\msw\setup.h
340 "../lib/basedllud/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
341 copy "$(InputPath)" ..\lib\basedllud\wx\setup.h
343 !ELSEIF "$(CFG)" == "wxBase - Win32 Release Unicode"
344 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
345 InputPath=..\include\wx\msw\setup.h
347 "../lib/baseu/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
348 copy "$(InputPath)" ..\lib\baseu\wx\setup.h
351 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug Unicode"
352 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
353 InputPath=..\include\wx\msw\setup.h
355 "../lib/baseud/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
356 copy "$(InputPath)" ..\lib\baseud\wx\setup.h
359 !ELSEIF "$(CFG)" == "wxBase - Win32 Release DLL"
360 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
361 InputPath=..\include\wx\msw\setup.h
363 "../lib/basedll/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
364 copy "$(InputPath)" ..\lib\basedll\wx\setup.h
367 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug DLL"
368 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
369 InputPath=..\include\wx\msw\setup.h
371 "../lib/basedlld/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
372 copy "$(InputPath)" ..\lib\basedlld\wx\setup.h
374 !ELSEIF "$(CFG)" == "wxBase - Win32 Release"
375 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
376 InputPath=..\include\wx\msw\setup.h
378 "../lib/base/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
379 copy "$(InputPath)" ..\lib\base\wx\setup.h
382 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug"
383 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
384 InputPath=..\include\wx\msw\setup.h
386 "../lib/based/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
387 copy "$(InputPath)" ..\lib\based\wx\setup.h
394 # Begin Group "Common"
396 # PROP Default_Filter ""
397 #$ 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");
401 # PROP Default_Filter ""
402 #$ 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");
407 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=perl: