]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/vc6univ.t
Committing in .
[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 = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS";
29 $project{$tag} .= $file . " "
30 }
31
32 foreach $file (sort keys %wxUNIV) {
33 my $tag = $wxUNIV{$file} =~ /Theme/ ? "WXUNIVTHEMES" : "WXUNIVSRCS";
34 $project{$tag} .= $file . " "
35 }
36
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
40
41 #! some generic files implementing wxFoo are called foog.cpp and
42 #! not foo.cpp
43 my $filereal = $file;
44 if ( $file =~ /^([^.]+)g.cpp$/ ) {
45 $filereal = "$1.cpp";
46 }
47
48 next if $project{"WXMSWSRCS"} =~ /\b$filereal\b/ ||
49 $project{"WXUNIVSRCS"} =~ /\b$filereal\b/;
50
51 $project{"WXGENERICSRCS"} .= $file . " "
52 }
53
54 foreach $file (sort keys %wxHTML) {
55 $project{"WXHTMLSRCS"} .= $file . " "
56 }
57
58 foreach $file (sort keys %wxWXINCLUDE) {
59 next if $file =~ /setup.h/;
60 next if $file =~ /[^.]*.cpp$/;
61 $project{"WXHEADERS"} .= $file . " "
62 }
63
64 foreach $file (sort keys %wxGENERICINCLUDE) {
65 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
66 $project{"WXGENERICHEADERS"} .= $file . " "
67 }
68
69 foreach $file (sort keys %wxMSWINCLUDE) {
70 next unless $wxMSWINCLUDE{$file} =~ /\bL\b/;
71 $project{"WXMSWHEADERS"} .= $file . " "
72 }
73
74 foreach $file (sort keys %wxHTMLINCLUDE) {
75 $project{"WXHTMLHEADERS"} .= $file . " "
76 }
77 #$}
78 # Microsoft Developer Studio Project File - Name="wxuniv" - Package Owner=<4>
79 # Microsoft Developer Studio Generated Build File, Format Version 6.00
80 # ** DO NOT EDIT **
81
82 # TARGTYPE "Win32 (x86) Static Library" 0x0104
83
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
87 !MESSAGE
88 !MESSAGE NMAKE /f "wxuniv.mak".
89 !MESSAGE
90 !MESSAGE You can specify a configuration when running NMAKE
91 !MESSAGE by defining the macro CFG on the command line. For example:
92 !MESSAGE
93 !MESSAGE NMAKE /f "wxuniv.mak" CFG="wxuniv - Win32 Debug"
94 !MESSAGE
95 !MESSAGE Possible choices for configuration are:
96 !MESSAGE
97 !MESSAGE "wxuniv - Win32 Release" (based on "Win32 (x86) Static Library")
98 !MESSAGE "wxuniv - Win32 Debug" (based on "Win32 (x86) Static Library")
99 !MESSAGE
100
101 # Begin Project
102 # PROP AllowPerConfigDependencies 0
103 # PROP Scc_ProjName "wxuniv"
104 # PROP Scc_LocalPath ".."
105 CPP=cl.exe
106 RSC=rc.exe
107
108 !IF "$(CFG)" == "wxuniv - Win32 Release"
109
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 ""
115 # PROP Use_MFC 0
116 # PROP Use_Debug_Libraries 0
117 # PROP Output_Dir "../lib"
118 # PROP Intermediate_Dir "../UnivRelease"
119 # PROP Target_Dir ""
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
123 # ADD RSC /l 0x409
124 BSC32=bscmake.exe
125 # ADD BASE BSC32 /nologo
126 # ADD BSC32 /nologo
127 LIB32=link.exe -lib
128 # ADD BASE LIB32 /nologo
129 # ADD LIB32 /nologo /out:"..\lib\wxuniv.lib"
130
131 !ELSEIF "$(CFG)" == "wxuniv - Win32 Debug"
132
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 ""
138 # PROP Use_MFC 0
139 # PROP Use_Debug_Libraries 1
140 # PROP Output_Dir "../lib"
141 # PROP Intermediate_Dir "../UnivDebug"
142 # PROP Target_Dir ""
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
146 # ADD RSC /l 0x409
147 BSC32=bscmake.exe
148 # ADD BASE BSC32 /nologo
149 # ADD BSC32 /nologo
150 LIB32=link.exe -lib
151 # ADD BASE LIB32 /nologo
152 # ADD LIB32 /nologo /out:"..\lib\wxunivd.lib"
153
154 !ENDIF
155
156 # Begin Target
157
158 # Name "wxuniv - Win32 Release"
159 # Name "wxuniv - Win32 Debug"
160 # Begin Group "Common Files"
161
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");
165 # Begin Source File
166
167 SOURCE=.\common\y_tab.c
168 # ADD CPP /W1 /D "USE_DEFINE"
169 # SUBTRACT CPP /YX /Yc /Yu
170 # End Source File
171 # End Group
172 # Begin Group "Generic Files"
173
174 # PROP Default_Filter ""
175 #$ ExpandGlue("WXGENERICSRCS", "# Begin Source File\n\nSOURCE=.\\generic\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\generic\\", "\n# End Source File\n");
176 # End Group
177 # Begin Group "wxHTML Files"
178
179 # PROP Default_Filter ""
180 #$ ExpandGlue("WXHTMLSRCS", "# Begin Source File\n\nSOURCE=.\\html\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\html\\", "\n# End Source File\n");
181 # End Group
182 # Begin Group "MSW Files"
183
184 # PROP Default_Filter ""
185 # Begin Source File
186
187 SOURCE=.\msw\dummy.cpp
188 # ADD CPP /Yc"wx/wxprec.h"
189 # End Source File
190 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n");
191 #$ 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");
192 # End Group
193 # Begin Group "Universal Files"
194
195 # PROP Default_Filter ""
196 #$ ExpandGlue("WXUNIVSRCS", "# Begin Source File\n\nSOURCE=.\\univ\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\univ\\", "\n# End Source File\n");
197 # Begin Group "Theme Files"
198
199 # PROP Default_Filter ""
200 #$ 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");
201 # End Group
202 # End Group
203 # Begin Group "Headers"
204
205 # PROP Default_Filter ""
206 # Begin Group "Setup"
207
208 # PROP Default_Filter ""
209 # Begin Source File
210
211 SOURCE=..\include\wx\univ\setup.h
212 !IF "$(CFG)" == "wxuniv - Win32 Release"
213 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
214 InputPath=..\include\wx\univ\setup.h
215
216 "../lib/univ/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
217 copy $(InputPath) ..\lib\univ\wx\setup.h
218
219 # End Custom Build
220 !ELSEIF "$(CFG)" == "wxuniv - Win32 Debug"
221 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
222 InputPath=..\include\wx\univ\setup.h
223
224 "../lib/univd/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
225 copy $(InputPath) ..\lib\univd\wx\setup.h
226
227 # End Custom Build
228 !ENDIF
229 # End Source File
230 # End Group
231 # Begin Group "Common"
232
233 # PROP Default_Filter ""
234 #$ 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");
235 # End Group
236 # Begin Group "MSW"
237
238 # PROP Default_Filter ""
239 #$ 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");
240 # End Group
241 # Begin Group "Generic"
242
243 # PROP Default_Filter ""
244 #$ 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");
245 # End Group
246 # Begin Group "HTML"
247
248 # PROP Default_Filter ""
249 #$ 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");
250 # End Group
251 # Begin Group "Universal"
252
253 # PROP Default_Filter ""
254 #$ 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");
255 # End Group
256 # End Group
257 # End Target
258 # End Project
259 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: