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 #!#############################################################################
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
14 #! now transform these hashes into $project tags
15 foreach $file (sort keys %wxCommon) {
16 next if $wxCommon{$file} !~ /\bB\b/;
18 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
19 $project{$tag} .= $file . " "
22 foreach $file (sort keys %wxMSW) {
23 next if $wxMSW{$file} !~ /\bB\b/;
25 my $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS";
26 $project{$tag} .= $file . " "
29 foreach $file (sort keys %wxBase) {
30 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
31 $project{$tag} .= $file . " "
34 foreach $file (sort keys %wxWXINCLUDE) {
35 next if $wxWXINCLUDE{$file} !~ /\bB\b/;
36 next if $file =~ /setup.h/;
37 next if $file =~ /[^.]*.cpp$/;
38 $project{"WXHEADERS"} .= $file . " "
41 foreach $file (sort keys %wxMSWINCLUDE) {
42 next if $wxMSWINCLUDE{$file} !~ /\bB\b/;
43 next if $file =~ /setup0?.h/;
44 $project{"WXMSWHEADERS"} .= $file . " "
47 $project{"WXVERSION"} = "250";
49 # Microsoft Developer Studio Project File - Name="wxBase" - Package Owner=<4>
50 # Microsoft Developer Studio Generated Build File, Format Version 6.00
53 # TARGTYPE "Win32 (x86) Static Library" 0x0104
54 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
56 CFG=wxBase - Win32 Debug
57 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
58 !MESSAGE use the Export Makefile command and run
60 !MESSAGE NMAKE /f "wxBase.mak".
62 !MESSAGE You can specify a configuration when running NMAKE
63 !MESSAGE by defining the macro CFG on the command line. For example:
65 !MESSAGE NMAKE /f "wxBase.mak" CFG="wxBase - Win32 Debug"
67 !MESSAGE Possible choices for configuration are:
69 !MESSAGE "wxBase - Win32 Release Unicode DLL" (based on "Win32 (x86) Dynamic-Link Library")
70 !MESSAGE "wxBase - Win32 Debug Unicode DLL" (based on "Win32 (x86) Dynamic-Link Library")
71 !MESSAGE "wxBase - Win32 Release Unicode" (based on "Win32 (x86) Static Library")
72 !MESSAGE "wxBase - Win32 Debug Unicode" (based on "Win32 (x86) Static Library")
73 !MESSAGE "wxBase - Win32 Release DLL" (based on "Win32 (x86) Dynamic-Link Library")
74 !MESSAGE "wxBase - Win32 Debug DLL" (based on "Win32 (x86) Dynamic-Link Library")
75 !MESSAGE "wxBase - Win32 Release" (based on "Win32 (x86) Static Library")
76 !MESSAGE "wxBase - Win32 Debug" (based on "Win32 (x86) Static Library")
80 # PROP AllowPerConfigDependencies 0
81 # PROP Scc_ProjName ""
82 # PROP Scc_LocalPath ""
86 !IF "$(CFG)" == "wxBase - Win32 Release Unicode DLL"
89 # PROP BASE Use_Debug_Libraries 0
90 # PROP BASE Output_Dir "../lib"
91 # PROP BASE Intermediate_Dir "../BaseReleaseUnicodeDll"
92 # PROP BASE Target_Dir ""
94 # PROP Use_Debug_Libraries 0
95 # PROP Output_Dir "../lib"
96 # PROP Intermediate_Dir "../BaseReleaseUnicodeDll"
97 # PROP Ignore_Export_Lib 0
99 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "WXBASEDLL_EXPORTS" /YX /FD /c
100 # 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
101 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
102 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
103 # ADD BASE RSC /l 0x409 /d "NDEBUG"
104 # ADD RSC /l 0x409 /i "../include" /d "NDEBUG"
106 # ADD BASE BSC32 /nologo
109 # 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{"WXVERSION"} . 'u.dll"'
110 # ADD LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib ../lib/zlib.lib ../lib/regex.lib /nologo /version:2.3 /dll /machine:I386 /out:"../lib/wxbase#$ $text = $project{"WXVERSION"} . 'u.dll"'
112 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug Unicode DLL"
114 # PROP BASE Use_MFC 0
115 # PROP BASE Use_Debug_Libraries 1
116 # PROP BASE Output_Dir "../lib"
117 # PROP BASE Intermediate_Dir "../BaseDebugUnicodeDll"
118 # PROP BASE Target_Dir ""
120 # PROP Use_Debug_Libraries 1
121 # PROP Output_Dir "../lib"
122 # PROP Intermediate_Dir "../BaseDebugUnicodeDll"
123 # PROP Ignore_Export_Lib 0
125 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "WXBASEDLL_EXPORTS" /YX /FD /c
126 # 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
127 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
128 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
129 # ADD BASE RSC /l 0x409 /d "_DEBUG"
130 # ADD RSC /l 0x409 /i "../include" /d "_DEBUG"
132 # ADD BASE BSC32 /nologo
135 # 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{"WXVERSION"} . 'ud.dll"'
136 # ADD LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib ../lib/zlibd.lib ../lib/regexd.lib /nologo /version:2.2 /dll /debug /machine:I386 /pdbtype:sept /out:"../lib/wxbase#$ $text = $project{"WXVERSION"} . 'ud.dll"'
138 !ELSEIF "$(CFG)" == "wxBase - Win32 Release Unicode"
140 # PROP BASE Use_MFC 0
141 # PROP BASE Use_Debug_Libraries 0
142 # PROP BASE Output_Dir "..\lib"
143 # PROP BASE Intermediate_Dir "..\BaseReleaseUnicode"
144 # PROP BASE Target_Dir ""
146 # PROP Use_Debug_Libraries 0
147 # PROP Output_Dir "..\lib"
148 # PROP Intermediate_Dir "..\BaseReleaseUnicode"
150 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
151 # 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
152 # ADD BASE RSC /l 0x409
155 # ADD BASE BSC32 /nologo
158 # ADD BASE LIB32 /nologo
159 # ADD LIB32 /nologo /out:"..\lib\wxbaseu.lib"
161 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug Unicode"
163 # PROP BASE Use_MFC 0
164 # PROP BASE Use_Debug_Libraries 1
165 # PROP BASE Output_Dir "..\lib"
166 # PROP BASE Intermediate_Dir "..\BaseDebugUnicode"
167 # PROP BASE Target_Dir ""
169 # PROP Use_Debug_Libraries 1
170 # PROP Output_Dir "..\lib"
171 # PROP Intermediate_Dir "..\BaseDebugUnicode"
173 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
174 # 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
175 # ADD BASE RSC /l 0x409
178 # ADD BASE BSC32 /nologo
179 # ADD BSC32 /nologo /o"../lib/wxbase.bsc"
181 # ADD BASE LIB32 /nologo
182 # ADD LIB32 /nologo /out:"..\lib\wxbaseud.lib"
184 !ELSEIF "$(CFG)" == "wxBase - Win32 Release DLL"
186 # PROP BASE Use_MFC 0
187 # PROP BASE Use_Debug_Libraries 0
188 # PROP BASE Output_Dir "../lib"
189 # PROP BASE Intermediate_Dir "../BaseReleaseDll"
190 # PROP BASE Target_Dir ""
192 # PROP Use_Debug_Libraries 0
193 # PROP Output_Dir "../lib"
194 # PROP Intermediate_Dir "../BaseReleaseDll"
195 # PROP Ignore_Export_Lib 0
197 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "WXBASEDLL_EXPORTS" /YX /FD /c
198 # 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
199 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
200 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
201 # ADD BASE RSC /l 0x409 /d "NDEBUG"
202 # ADD RSC /l 0x409 /i "../include" /d "NDEBUG"
204 # ADD BASE BSC32 /nologo
207 # 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{"WXVERSION"} . '.dll"'
208 # ADD LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib ../lib/zlib.lib ../lib/regex.lib /nologo /version:2.3 /dll /machine:I386 /out:"../lib/wxbase#$ $text = $project{"WXVERSION"} . '.dll"'
210 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug DLL"
212 # PROP BASE Use_MFC 0
213 # PROP BASE Use_Debug_Libraries 1
214 # PROP BASE Output_Dir "../lib"
215 # PROP BASE Intermediate_Dir "../BaseDebugDll"
216 # PROP BASE Target_Dir ""
218 # PROP Use_Debug_Libraries 1
219 # PROP Output_Dir "../lib"
220 # PROP Intermediate_Dir "../BaseDebugDll"
221 # PROP Ignore_Export_Lib 0
223 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "WXBASEDLL_EXPORTS" /YX /FD /c
224 # 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
225 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
226 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
227 # ADD BASE RSC /l 0x409 /d "_DEBUG"
228 # ADD RSC /l 0x409 /i "../include" /d "_DEBUG"
230 # ADD BASE BSC32 /nologo
233 # 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{"WXVERSION"} . 'd.dll"'
234 # ADD LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib ../lib/zlibd.lib ../lib/regexd.lib /nologo /version:2.2 /dll /debug /machine:I386 /pdbtype:sept /out:"../lib/wxbase#$ $text = $project{"WXVERSION"} . 'd.dll"'
236 !ELSEIF "$(CFG)" == "wxBase - Win32 Release"
238 # PROP BASE Use_MFC 0
239 # PROP BASE Use_Debug_Libraries 0
240 # PROP BASE Output_Dir "..\lib"
241 # PROP BASE Intermediate_Dir "..\BaseRelease"
242 # PROP BASE Target_Dir ""
244 # PROP Use_Debug_Libraries 0
245 # PROP Output_Dir "..\lib"
246 # PROP Intermediate_Dir "..\BaseRelease"
248 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
249 # 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
250 # ADD BASE RSC /l 0x409
253 # ADD BASE BSC32 /nologo
256 # ADD BASE LIB32 /nologo
257 # ADD LIB32 /nologo /out:"..\lib\wxbase.lib"
259 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug"
261 # PROP BASE Use_MFC 0
262 # PROP BASE Use_Debug_Libraries 1
263 # PROP BASE Output_Dir "..\lib"
264 # PROP BASE Intermediate_Dir "..\BaseDebug"
265 # PROP BASE Target_Dir ""
267 # PROP Use_Debug_Libraries 1
268 # PROP Output_Dir "..\lib"
269 # PROP Intermediate_Dir "..\BaseDebug"
271 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
272 # 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
273 # ADD BASE RSC /l 0x409
276 # ADD BASE BSC32 /nologo
277 # ADD BSC32 /nologo /o"../lib/wxbase.bsc"
279 # ADD BASE LIB32 /nologo
280 # ADD LIB32 /nologo /out:"..\lib\wxbased.lib"
286 # Name "wxBase - Win32 Release Unicode DLL"
287 # Name "wxBase - Win32 Debug Unicode DLL"
288 # Name "wxBase - Win32 Release Unicode"
289 # Name "wxBase - Win32 Debug Unicode"
290 # Name "wxBase - Win32 Release DLL"
291 # Name "wxBase - Win32 Debug DLL"
292 # Name "wxBase - Win32 Release"
293 # Name "wxBase - Win32 Debug"
295 # Begin Group "Common Files"
297 # PROP Default_Filter ""
298 #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n");
299 #$ 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");
301 # Begin Group "MSW Files"
303 # PROP Default_Filter ""
306 SOURCE=.\msw\dummy.cpp
307 # ADD CPP /Yc"wx/wxprec.h"
309 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n");
310 #$ 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");
312 # Begin Group "Headers"
314 # PROP Default_Filter ""
315 # Begin Group "Setup"
317 # PROP Default_Filter ""
320 SOURCE=..\include\wx\msw\setup.h
321 !IF "$(CFG)" == "wxBase - Win32 Release Unicode DLL"
322 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
323 InputPath=..\include\wx\msw\setup.h
325 "../lib/basedllu/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
326 copy "$(InputPath)" ..\lib\basedllu\wx\setup.h
329 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug Unicode DLL"
330 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
331 InputPath=..\include\wx\msw\setup.h
333 "../lib/basedllud/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
334 copy "$(InputPath)" ..\lib\basedllud\wx\setup.h
336 !ELSEIF "$(CFG)" == "wxBase - Win32 Release Unicode"
337 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
338 InputPath=..\include\wx\msw\setup.h
340 "../lib/baseu/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
341 copy "$(InputPath)" ..\lib\baseu\wx\setup.h
344 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug Unicode"
345 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
346 InputPath=..\include\wx\msw\setup.h
348 "../lib/baseud/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
349 copy "$(InputPath)" ..\lib\baseud\wx\setup.h
352 !ELSEIF "$(CFG)" == "wxBase - Win32 Release DLL"
353 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
354 InputPath=..\include\wx\msw\setup.h
356 "../lib/basedll/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
357 copy "$(InputPath)" ..\lib\basedll\wx\setup.h
360 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug DLL"
361 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
362 InputPath=..\include\wx\msw\setup.h
364 "../lib/basedlld/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
365 copy "$(InputPath)" ..\lib\basedlld\wx\setup.h
367 !ELSEIF "$(CFG)" == "wxBase - Win32 Release"
368 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
369 InputPath=..\include\wx\msw\setup.h
371 "../lib/base/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
372 copy "$(InputPath)" ..\lib\base\wx\setup.h
375 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug"
376 # Begin Custom Build - Copying $(InputPath) to $(TargetDir)
377 InputPath=..\include\wx\msw\setup.h
379 "../lib/based/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
380 copy "$(InputPath)" ..\lib\based\wx\setup.h
387 # Begin Group "Common"
389 # PROP Default_Filter ""
390 #$ 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");
394 # PROP Default_Filter ""
395 #$ 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");
400 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=perl: