1 #!#############################################################################
3 #! Purpose: tmake template file from which the VC++ 6.0 project file for
4 #! building static wxWindows library wxUniv.dsp is generated by running
5 #! tmake -t vc6univ wxwin.pro -o wxUniv.dsp
6 #! Author: Vadim Zeitlin
9 #!#############################################################################
11 #! include the code which parses filelist.txt file and initializes
12 #! %wxCommon, %wxGeneric and %wxMSW hashes.
13 IncludeTemplate("filelist.t");
15 #! now transform these hashes into $project tags
16 foreach $file (sort keys %wxCommon) {
17 next if $wxCommon{$file} =~ /\b16\b/;
19 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
20 $project{$tag} .= $file . " "
23 foreach $file (sort keys %wxMSW) {
24 #! take only "low level" MSW sources: note that all "base" ones are
25 #! automatically low level
26 next unless $wxMSW{$file} =~ /\b(L|B)\b/;
29 if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" }
30 else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" }
31 $project{$tag} .= $file . " "
34 foreach $file (sort keys %wxUNIV) {
35 my $tag = $wxUNIV{$file} =~ /T/ ? "WXUNIVTHEMES" : "WXUNIVSRCS";
36 $project{$tag} .= $file . " "
39 foreach $file (sort keys %wxGeneric) {
40 #! don't take generic versions of the Win32 low level GUI classes
41 #! nor the files for which we have universal versions
43 #! some generic files implementing wxFoo are called foog.cpp and
46 if ( $file =~ /^([^.]+)g.cpp$/ ) {
50 next if $project{"WXMSWSRCS"} =~ /\b$filereal\b/ ||
51 $project{"WXUNIVSRCS"} =~ /\b$filereal\b/;
53 $project{"WXGENERICSRCS"} .= $file . " "
56 foreach $file (sort keys %wxHTML) {
57 $project{"WXHTMLSRCS"} .= $file . " "
60 foreach $file (sort keys %wxWXINCLUDE) {
61 next if $file =~ /setup.h/;
62 next if $file =~ /[^.]*.cpp$/;
63 $project{"WXHEADERS"} .= $file . " "
66 foreach $file (sort keys %wxGENERICINCLUDE) {
67 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
68 $project{"WXGENERICHEADERS"} .= $file . " "
71 foreach $file (sort keys %wxMSWINCLUDE) {
72 next unless $wxMSWINCLUDE{$file} =~ /\bL\b/;
73 $project{"WXMSWHEADERS"} .= $file . " "
76 foreach $file (sort keys %wxHTMLINCLUDE) {
77 $project{"WXHTMLHEADERS"} .= $file . " "
80 # Microsoft Developer Studio Project File - Name="wxUniv" - Package Owner=<4>
81 # Microsoft Developer Studio Generated Build File, Format Version 6.00
84 # TARGTYPE "Win32 (x86) Static Library" 0x0104
86 CFG=wxUniv - Win32 Debug
87 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
88 !MESSAGE use the Export Makefile command and run
90 !MESSAGE NMAKE /f "wxUniv.mak".
92 !MESSAGE You can specify a configuration when running NMAKE
93 !MESSAGE by defining the macro CFG on the command line. For example:
95 !MESSAGE NMAKE /f "wxUniv.mak" CFG="wxUniv - Win32 Debug"
97 !MESSAGE Possible choices for configuration are:
99 !MESSAGE "wxUniv - Win32 Release" (based on "Win32 (x86) Static Library")
100 !MESSAGE "wxUniv - Win32 Debug" (based on "Win32 (x86) Static Library")
104 # PROP AllowPerConfigDependencies 0
105 # PROP Scc_ProjName ""
106 # PROP Scc_LocalPath ""
110 !IF "$(CFG)" == "wxUniv - Win32 Release"
112 # PROP BASE Use_MFC 0
113 # PROP BASE Use_Debug_Libraries 0
114 # PROP BASE Output_Dir "../lib"
115 # PROP BASE Intermediate_Dir "../UnivRelease"
116 # PROP BASE Target_Dir ""
118 # PROP Use_Debug_Libraries 0
119 # PROP Output_Dir "../lib"
120 # PROP Intermediate_Dir "../UnivRelease"
122 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MT" /YX /FD /c
123 # ADD CPP /nologo /MD /W4 /O2 /I "../lib/univ" /I "../include" /I "./zlib" /I "./jpeg" /I "./png" /I "./regex" /I "./tiff" /D "WIN32" /D "NDEBUG" /D WINVER=0x0400 /D "STRICT" /D "__WXUNIVERSAL__" /Yu"wx/wxprec.h" /FD /c
124 # ADD BASE RSC /l 0x409
127 # ADD BASE BSC32 /nologo
130 # ADD BASE LIB32 /nologo
131 # ADD LIB32 /nologo /out:"..\lib\wxuniv.lib"
133 !ELSEIF "$(CFG)" == "wxUniv - Win32 Debug"
135 # PROP BASE Use_MFC 0
136 # PROP BASE Use_Debug_Libraries 1
137 # PROP BASE Output_Dir "../lib"
138 # PROP BASE Intermediate_Dir "../UnivDebug"
139 # PROP BASE Target_Dir ""
141 # PROP Use_Debug_Libraries 1
142 # PROP Output_Dir "../lib"
143 # PROP Intermediate_Dir "../UnivDebug"
145 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
146 # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/univd" /I "../include" /I "./zlib" /I "./jpeg" /I "./png" /I "./regex" /I "./tiff" /D "WIN32" /D "_DEBUG" /D "__WXDEBUG__" /D WINVER=0x0400 /D "STRICT" /D "__WXUNIVERSAL__" /Yu"wx/wxprec.h" /FD /c
147 # ADD BASE RSC /l 0x409
150 # ADD BASE BSC32 /nologo
153 # ADD BASE LIB32 /nologo
154 # ADD LIB32 /nologo /out:"..\lib\wxunivd.lib"
160 # Name "wxUniv - Win32 Release"
161 # Name "wxUniv - Win32 Debug"
162 # Begin Group "Common Files"
164 # PROP Default_Filter ""
165 #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n");
166 #$ 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");
168 # Begin Group "Generic Files"
170 # PROP Default_Filter ""
171 #$ ExpandGlue("WXGENERICSRCS", "# Begin Source File\n\nSOURCE=.\\generic\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\generic\\", "\n# End Source File\n");
173 # Begin Group "wxHTML Files"
175 # PROP Default_Filter ""
176 #$ ExpandGlue("WXHTMLSRCS", "# Begin Source File\n\nSOURCE=.\\html\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\html\\", "\n# End Source File\n");
178 # Begin Group "MSW Files"
180 # PROP Default_Filter ""
183 SOURCE=.\msw\dummy.cpp
184 # ADD CPP /Yc"wx/wxprec.h"
186 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n");
187 #$ 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");
188 # Begin Group "OLE Files"
190 # PROP Default_Filter ""
191 #$ 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");
194 # Begin Group "Universal Files"
196 # PROP Default_Filter ""
197 #$ ExpandGlue("WXUNIVSRCS", "# Begin Source File\n\nSOURCE=.\\univ\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\univ\\", "\n# End Source File\n");
198 # Begin Group "Theme Files"
200 # PROP Default_Filter ""
201 #$ ExpandGlue("WXUNIVTHEMES", "# Begin Source File\n\nSOURCE=.\\univ\\themes\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\univ\\themes\\", "\n# End Source File\n");
204 # Begin Group "Headers"
206 # PROP Default_Filter ""
207 # Begin Group "Setup"
209 # PROP Default_Filter ""
212 SOURCE=..\include\wx\univ\setup.h
213 !IF "$(CFG)" == "wxUniv - Win32 Release"
214 # Begin Custom Build - Creating lib\univ\wx\setup.h from $(InputPath)
215 InputPath=..\include\wx\univ\setup.h
217 "../lib/univ/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
218 copy "$(InputPath)" ..\lib\univ\wx\setup.h
221 !ELSEIF "$(CFG)" == "wxUniv - Win32 Debug"
222 # Begin Custom Build - Creating lib\univd\wx\setup.h from $(InputPath)
223 InputPath=..\include\wx\univ\setup.h
225 "../lib/univd/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
226 copy "$(InputPath)" ..\lib\univd\wx\setup.h
232 # Begin Group "Common"
234 # PROP Default_Filter ""
235 #$ 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");
239 # PROP Default_Filter ""
240 #$ 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");
242 # Begin Group "Generic"
244 # PROP Default_Filter ""
245 #$ 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");
249 # PROP Default_Filter ""
250 #$ 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");
252 # Begin Group "Universal"
254 # PROP Default_Filter ""
255 #$ ExpandGlue("WXUNIVHEADERS", "# Begin Source File\n\nSOURCE=..\\include\\wx\\univ\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=..\\include\\wx\\univ\\", "\n# End Source File\n");
260 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: