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/;
28 my $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS";
29 $project{$tag} .= $file . " "
32 foreach $file (sort keys %wxUNIV) {
33 my $tag = $wxUNIV{$file} =~ /Theme/ ? "WXUNIVTHEMES" : "WXUNIVSRCS";
34 $project{$tag} .= $file . " "
37 foreach $file (sort keys %wxGeneric) {
38 #! don't take generic versions of the Win32 low level GUI classes
39 #! nor the files for which we have universal versions
41 #! some generic files implementing wxFoo are called foog.cpp and
44 if ( $file =~ /^([^.]+)g.cpp$/ ) {
48 next if $project{"WXMSWSRCS"} =~ /\b$filereal\b/ ||
49 $project{"WXUNIVSRCS"} =~ /\b$filereal\b/;
51 $project{"WXGENERICSRCS"} .= $file . " "
54 foreach $file (sort keys %wxHTML) {
55 $project{"WXHTMLSRCS"} .= $file . " "
58 foreach $file (sort keys %wxWXINCLUDE) {
59 next if $file =~ /setup.h/;
60 next if $file =~ /[^.]*.cpp$/;
61 $project{"WXHEADERS"} .= $file . " "
64 foreach $file (sort keys %wxGENERICINCLUDE) {
65 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
66 $project{"WXGENERICHEADERS"} .= $file . " "
69 foreach $file (sort keys %wxMSWINCLUDE) {
70 next unless $wxMSWINCLUDE{$file} =~ /\bL\b/;
71 $project{"WXMSWHEADERS"} .= $file . " "
74 foreach $file (sort keys %wxHTMLINCLUDE) {
75 $project{"WXHTMLHEADERS"} .= $file . " "
78 # Microsoft Developer Studio Project File - Name="wxUniv" - Package Owner=<4>
79 # Microsoft Developer Studio Generated Build File, Format Version 6.00
82 # TARGTYPE "Win32 (x86) Static Library" 0x0104
84 CFG=wxUniv - Win32 Debug
85 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
86 !MESSAGE use the Export Makefile command and run
88 !MESSAGE NMAKE /f "wxUniv.mak".
90 !MESSAGE You can specify a configuration when running NMAKE
91 !MESSAGE by defining the macro CFG on the command line. For example:
93 !MESSAGE NMAKE /f "wxUniv.mak" CFG="wxUniv - Win32 Debug"
95 !MESSAGE Possible choices for configuration are:
97 !MESSAGE "wxUniv - Win32 Release" (based on "Win32 (x86) Static Library")
98 !MESSAGE "wxUniv - Win32 Debug" (based on "Win32 (x86) Static Library")
102 # PROP AllowPerConfigDependencies 0
103 # PROP Scc_ProjName ""
104 # PROP Scc_LocalPath ""
108 !IF "$(CFG)" == "wxUniv - Win32 Release"
110 # PROP BASE Use_MFC 0
111 # PROP BASE Use_Debug_Libraries 0
112 # PROP BASE Output_Dir "../lib"
113 # PROP BASE Intermediate_Dir "../UnivRelease"
114 # PROP BASE Target_Dir ""
116 # PROP Use_Debug_Libraries 0
117 # PROP Output_Dir "../lib"
118 # PROP Intermediate_Dir "../UnivRelease"
120 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MT" /YX /FD /c
121 # 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
122 # ADD BASE RSC /l 0x409
125 # ADD BASE BSC32 /nologo
128 # ADD BASE LIB32 /nologo
129 # ADD LIB32 /nologo /out:"..\lib\wxuniv.lib"
131 !ELSEIF "$(CFG)" == "wxUniv - Win32 Debug"
133 # PROP BASE Use_MFC 0
134 # PROP BASE Use_Debug_Libraries 1
135 # PROP BASE Output_Dir "../lib"
136 # PROP BASE Intermediate_Dir "../UnivDebug"
137 # PROP BASE Target_Dir ""
139 # PROP Use_Debug_Libraries 1
140 # PROP Output_Dir "../lib"
141 # PROP Intermediate_Dir "../UnivDebug"
143 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
144 # 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
145 # ADD BASE RSC /l 0x409
148 # ADD BASE BSC32 /nologo
151 # ADD BASE LIB32 /nologo
152 # ADD LIB32 /nologo /out:"..\lib\wxunivd.lib"
158 # Name "wxUniv - Win32 Release"
159 # Name "wxUniv - Win32 Debug"
160 # Begin Group "Common Files"
162 # PROP Default_Filter ""
163 #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n");
164 #$ 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");
166 # Begin Group "Generic Files"
168 # PROP Default_Filter ""
169 #$ ExpandGlue("WXGENERICSRCS", "# Begin Source File\n\nSOURCE=.\\generic\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\generic\\", "\n# End Source File\n");
171 # Begin Group "wxHTML Files"
173 # PROP Default_Filter ""
174 #$ ExpandGlue("WXHTMLSRCS", "# Begin Source File\n\nSOURCE=.\\html\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\html\\", "\n# End Source File\n");
176 # Begin Group "MSW Files"
178 # PROP Default_Filter ""
181 SOURCE=.\msw\dummy.cpp
182 # ADD CPP /Yc"wx/wxprec.h"
184 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n");
185 #$ 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");
187 # Begin Group "Universal Files"
189 # PROP Default_Filter ""
190 #$ ExpandGlue("WXUNIVSRCS", "# Begin Source File\n\nSOURCE=.\\univ\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\univ\\", "\n# End Source File\n");
191 # Begin Group "Theme Files"
193 # PROP Default_Filter ""
194 #$ 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");
197 # Begin Group "Headers"
199 # PROP Default_Filter ""
200 # Begin Group "Setup"
202 # PROP Default_Filter ""
205 SOURCE=..\include\wx\univ\setup.h
206 !IF "$(CFG)" == "wxUniv - Win32 Release"
207 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
208 InputPath=..\include\wx\univ\setup.h
210 "../lib/univ/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
211 copy $(InputPath) ..\lib\univ\wx\setup.h
214 !ELSEIF "$(CFG)" == "wxUniv - Win32 Debug"
215 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
216 InputPath=..\include\wx\univ\setup.h
218 "../lib/univd/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
219 copy $(InputPath) ..\lib\univd\wx\setup.h
225 # Begin Group "Common"
227 # PROP Default_Filter ""
228 #$ 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");
232 # PROP Default_Filter ""
233 #$ 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");
235 # Begin Group "Generic"
237 # PROP Default_Filter ""
238 #$ 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");
242 # PROP Default_Filter ""
243 #$ 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");
245 # Begin Group "Universal"
247 # PROP Default_Filter ""
248 #$ 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");
253 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: