1 #!#############################################################################
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
10 #!#############################################################################
12 #! include the code which parses filelist.txt file and initializes
13 #! %wxCommon, %wxGeneric and %wxMSW hashes.
14 IncludeTemplate("filelist.t");
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 . " "
22 foreach $file (sort keys %wxCommon) {
23 next if $wxCommon{$file} =~ /\b16\b/;
25 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
26 $project{$tag} .= $file . " "
29 foreach $file (sort keys %wxMSW) {
30 next if $wxMSW{$file} =~ /\b16\b/;
33 if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" }
34 else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" }
35 $project{$tag} .= $file . " "
38 foreach $file (sort keys %wxHTML) {
39 next if $wxHTML{$file} =~ /\b16\b/;
40 $project{"WXHTMLSRCS"} .= $file . " "
43 foreach $file (sort keys %wxWXINCLUDE) {
44 next if $file =~ /setup.h/;
45 next if $file =~ /[^.]*.cpp$/;
46 $project{"WXHEADERS"} .= $file . " "
49 foreach $file (sort keys %wxGENERICINCLUDE) {
50 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
51 $project{"WXGENERICHEADERS"} .= $file . " "
54 foreach $file (sort keys %wxMSWINCLUDE) {
55 next if $file =~ /setup0?.h/;
56 $project{"WXMSWHEADERS"} .= $file . " "
59 foreach $file (sort keys %wxHTMLINCLUDE) {
60 $project{"WXHTMLHEADERS"} .= $file . " "
63 # Microsoft Developer Studio Project File - Name="wxWindows" - Package Owner=<4>
64 # Microsoft Developer Studio Generated Build File, Format Version 6.00
67 # TARGTYPE "Win32 (x86) Static Library" 0x0104
68 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
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
74 !MESSAGE NMAKE /f "wxWindows.mak".
76 !MESSAGE You can specify a configuration when running NMAKE
77 !MESSAGE by defining the macro CFG on the command line. For example:
79 !MESSAGE NMAKE /f "wxWindows.mak" CFG="wxWindows - Win32 Debug"
81 !MESSAGE Possible choices for configuration are:
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")
90 # PROP AllowPerConfigDependencies 0
91 # PROP Scc_ProjName "wxWindows"
92 # PROP Scc_LocalPath ".."
96 !IF "$(CFG)" == "wxWindows - Win32 Release DLL"
99 # PROP BASE Use_Debug_Libraries 0
100 # PROP BASE Output_Dir "../lib"
101 # PROP BASE Intermediate_Dir "../ReleaseDll"
102 # PROP BASE Target_Dir ""
104 # PROP Use_Debug_Libraries 0
105 # PROP Output_Dir "../lib"
106 # PROP Intermediate_Dir "../ReleaseDLL"
107 # PROP Ignore_Export_Lib 0
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"
116 # ADD BASE BSC32 /nologo
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"'
122 !ELSEIF "$(CFG)" == "wxWindows - Win32 Debug DLL"
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 ""
130 # PROP Use_Debug_Libraries 1
131 # PROP Output_Dir "../lib"
132 # PROP Intermediate_Dir "../DebugDll"
133 # PROP Ignore_Export_Lib 0
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"
142 # ADD BASE BSC32 /nologo
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"'
148 !ELSEIF "$(CFG)" == "wxWindows - Win32 Release"
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 ""
156 # PROP Use_Debug_Libraries 0
157 # PROP Output_Dir "../Release"
158 # PROP Intermediate_Dir "../Release"
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
165 # ADD BASE BSC32 /nologo
168 # ADD BASE LIB32 /nologo
169 # ADD LIB32 /nologo /out:"..\lib\wxmsw.lib"
171 !ELSEIF "$(CFG)" == "wxWindows - Win32 Debug"
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 ""
179 # PROP Use_Debug_Libraries 1
180 # PROP Output_Dir "../Debug"
181 # PROP Intermediate_Dir "../Debug"
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
188 # ADD BASE BSC32 /nologo
191 # ADD BASE LIB32 /nologo
192 # ADD LIB32 /nologo /out:"..\lib\wxmswd.lib"
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"
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");
209 SOURCE=.\common\y_tab.c
210 # ADD CPP /W1 /D "USE_DEFINE"
211 # SUBTRACT CPP /YX /Yc /Yu
214 # Begin Group "Generic Files"
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");
219 # Begin Group "wxHTML Files"
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");
224 # Begin Group "MSW Files"
226 # PROP Default_Filter ""
229 SOURCE=.\msw\dummy.cpp
230 # ADD CPP /Yc"wx/wxprec.h"
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");
235 # Begin Group "OLE Files"
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");
240 # Begin Group "Headers"
242 # PROP Default_Filter ""
243 # Begin Group "Setup"
245 # PROP Default_Filter ""
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
253 "../lib/mswdll/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
254 copy $(InputPath) ..\lib\mswdll\wx\setup.h
257 !ELSEIF "$(CFG)" == "wxWindows - Win32 Debug DLL"
258 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
259 InputPath=..\include\wx\msw\setup0.h
261 "../lib/mswdlld/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
262 copy $(InputPath) ..\lib\mswdlld\wx\setup.h
265 !ELSEIF "$(CFG)" == "wxWindows - Win32 Release"
266 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
267 InputPath=..\include\wx\msw\setup0.h
269 "../lib/msw/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
270 copy $(InputPath) ..\lib\msw\wx\setup.h
273 !ELSEIF "$(CFG)" == "wxWindows - Win32 Debug"
274 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
275 InputPath=..\include\wx\msw\setup0.h
277 "../lib/mswd/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
278 copy $(InputPath) ..\lib\mswd\wx\setup.h
284 # Begin Group "Common"
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");
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");
294 # Begin Group "Generic"
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");
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");
307 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=perl: