]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/vc6univ.t
Also corefoundation files for GTK+
[wxWidgets.git] / distrib / msw / tmake / vc6univ.t
1 #!#############################################################################
2 #! File: vc6univ.t
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
7 #! Created: 29.09.01
8 #! Version: $Id$
9 #!#############################################################################
10 #${
11 #! include the code which parses filelist.txt file and initializes
12 #! %wxCommon, %wxGeneric and %wxMSW hashes.
13 IncludeTemplate("filelist.t");
14
15 #! now transform these hashes into $project tags
16 foreach $file (sort keys %wxCommon) {
17 next if $wxCommon{$file} =~ /\b16\b/;
18
19 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
20 $project{$tag} .= $file . " "
21 }
22
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/;
27
28 my $tag;
29 if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" }
30 else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" }
31 $project{$tag} .= $file . " "
32 }
33
34 foreach $file (sort keys %wxUNIV) {
35 my $tag = $wxUNIV{$file} =~ /T/ ? "WXUNIVTHEMES" : "WXUNIVSRCS";
36 $project{$tag} .= $file . " "
37 }
38
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
42
43 #! some generic files implementing wxFoo are called foog.cpp and
44 #! not foo.cpp
45 my $filereal = $file;
46 if ( $file =~ /^([^.]+)g.cpp$/ ) {
47 $filereal = "$1.cpp";
48 }
49
50 next if $project{"WXMSWSRCS"} =~ /\b$filereal\b/ ||
51 $project{"WXUNIVSRCS"} =~ /\b$filereal\b/;
52
53 $project{"WXGENERICSRCS"} .= $file . " "
54 }
55
56 foreach $file (sort keys %wxHTML) {
57 $project{"WXHTMLSRCS"} .= $file . " "
58 }
59
60 foreach $file (sort keys %wxWXINCLUDE) {
61 next if $file =~ /setup.h/;
62 next if $file =~ /[^.]*.cpp$/;
63 $project{"WXHEADERS"} .= $file . " "
64 }
65
66 foreach $file (sort keys %wxGENERICINCLUDE) {
67 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
68 $project{"WXGENERICHEADERS"} .= $file . " "
69 }
70
71 foreach $file (sort keys %wxMSWINCLUDE) {
72 next unless $wxMSWINCLUDE{$file} =~ /\bL\b/;
73 $project{"WXMSWHEADERS"} .= $file . " "
74 }
75
76 foreach $file (sort keys %wxHTMLINCLUDE) {
77 $project{"WXHTMLHEADERS"} .= $file . " "
78 }
79 #$}
80 # Microsoft Developer Studio Project File - Name="wxUniv" - Package Owner=<4>
81 # Microsoft Developer Studio Generated Build File, Format Version 6.00
82 # ** DO NOT EDIT **
83
84 # TARGTYPE "Win32 (x86) Static Library" 0x0104
85
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
89 !MESSAGE
90 !MESSAGE NMAKE /f "wxUniv.mak".
91 !MESSAGE
92 !MESSAGE You can specify a configuration when running NMAKE
93 !MESSAGE by defining the macro CFG on the command line. For example:
94 !MESSAGE
95 !MESSAGE NMAKE /f "wxUniv.mak" CFG="wxUniv - Win32 Debug"
96 !MESSAGE
97 !MESSAGE Possible choices for configuration are:
98 !MESSAGE
99 !MESSAGE "wxUniv - Win32 Release" (based on "Win32 (x86) Static Library")
100 !MESSAGE "wxUniv - Win32 Debug" (based on "Win32 (x86) Static Library")
101 !MESSAGE
102
103 # Begin Project
104 # PROP AllowPerConfigDependencies 0
105 # PROP Scc_ProjName ""
106 # PROP Scc_LocalPath ""
107 CPP=cl.exe
108 RSC=rc.exe
109
110 !IF "$(CFG)" == "wxUniv - Win32 Release"
111
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 ""
117 # PROP Use_MFC 0
118 # PROP Use_Debug_Libraries 0
119 # PROP Output_Dir "../lib"
120 # PROP Intermediate_Dir "../UnivRelease"
121 # PROP Target_Dir ""
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
125 # ADD RSC /l 0x409
126 BSC32=bscmake.exe
127 # ADD BASE BSC32 /nologo
128 # ADD BSC32 /nologo
129 LIB32=link.exe -lib
130 # ADD BASE LIB32 /nologo
131 # ADD LIB32 /nologo /out:"..\lib\wxuniv.lib"
132
133 !ELSEIF "$(CFG)" == "wxUniv - Win32 Debug"
134
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 ""
140 # PROP Use_MFC 0
141 # PROP Use_Debug_Libraries 1
142 # PROP Output_Dir "../lib"
143 # PROP Intermediate_Dir "../UnivDebug"
144 # PROP Target_Dir ""
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
148 # ADD RSC /l 0x409
149 BSC32=bscmake.exe
150 # ADD BASE BSC32 /nologo
151 # ADD BSC32 /nologo
152 LIB32=link.exe -lib
153 # ADD BASE LIB32 /nologo
154 # ADD LIB32 /nologo /out:"..\lib\wxunivd.lib"
155
156 !ENDIF
157
158 # Begin Target
159
160 # Name "wxUniv - Win32 Release"
161 # Name "wxUniv - Win32 Debug"
162 # Begin Group "Common Files"
163
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");
167 # End Group
168 # Begin Group "Generic Files"
169
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");
172 # End Group
173 # Begin Group "wxHTML Files"
174
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");
177 # End Group
178 # Begin Group "MSW Files"
179
180 # PROP Default_Filter ""
181 # Begin Source File
182
183 SOURCE=.\msw\dummy.cpp
184 # ADD CPP /Yc"wx/wxprec.h"
185 # End Source File
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"
189
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");
192 # End Group
193 # End Group
194 # Begin Group "Universal Files"
195
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"
199
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");
202 # End Group
203 # End Group
204 # Begin Group "Headers"
205
206 # PROP Default_Filter ""
207 # Begin Group "Setup"
208
209 # PROP Default_Filter ""
210 # Begin Source File
211
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
216
217 "../lib/univ/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
218 copy "$(InputPath)" ..\lib\univ\wx\setup.h
219
220 # End Custom Build
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
224
225 "../lib/univd/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
226 copy "$(InputPath)" ..\lib\univd\wx\setup.h
227
228 # End Custom Build
229 !ENDIF
230 # End Source File
231 # End Group
232 # Begin Group "Common"
233
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");
236 # End Group
237 # Begin Group "MSW"
238
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");
241 # End Group
242 # Begin Group "Generic"
243
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");
246 # End Group
247 # Begin Group "HTML"
248
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");
251 # End Group
252 # Begin Group "Universal"
253
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");
256 # End Group
257 # End Group
258 # End Target
259 # End Project
260 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: