]>
Commit | Line | Data |
---|---|---|
2d1e89de VZ |
1 | #!############################################################################# |
2 | #! File: vc6univ.t | |
3 | #! Purpose: tmake template file from which the VC++ 6.0 project file for | |
c6b0ee9a VZ |
4 | #! building static wxWindows library wxUniv.dsp is generated by running |
5 | #! tmake -t vc6univ wxwin.pro -o wxUniv.dsp | |
2d1e89de VZ |
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 | #$} | |
c6b0ee9a | 78 | # Microsoft Developer Studio Project File - Name="wxUniv" - Package Owner=<4> |
2d1e89de VZ |
79 | # Microsoft Developer Studio Generated Build File, Format Version 6.00 |
80 | # ** DO NOT EDIT ** | |
81 | ||
82 | # TARGTYPE "Win32 (x86) Static Library" 0x0104 | |
83 | ||
c6b0ee9a | 84 | CFG=wxUniv - Win32 Debug |
2d1e89de VZ |
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 | |
c6b0ee9a | 88 | !MESSAGE NMAKE /f "wxUniv.mak". |
2d1e89de VZ |
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 | |
c6b0ee9a | 93 | !MESSAGE NMAKE /f "wxUniv.mak" CFG="wxUniv - Win32 Debug" |
2d1e89de VZ |
94 | !MESSAGE |
95 | !MESSAGE Possible choices for configuration are: | |
96 | !MESSAGE | |
c6b0ee9a VZ |
97 | !MESSAGE "wxUniv - Win32 Release" (based on "Win32 (x86) Static Library") |
98 | !MESSAGE "wxUniv - Win32 Debug" (based on "Win32 (x86) Static Library") | |
2d1e89de VZ |
99 | !MESSAGE |
100 | ||
101 | # Begin Project | |
102 | # PROP AllowPerConfigDependencies 0 | |
8e7b0418 VZ |
103 | # PROP Scc_ProjName "" |
104 | # PROP Scc_LocalPath "" | |
2d1e89de VZ |
105 | CPP=cl.exe |
106 | RSC=rc.exe | |
107 | ||
c6b0ee9a | 108 | !IF "$(CFG)" == "wxUniv - Win32 Release" |
2d1e89de VZ |
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 | ||
c6b0ee9a | 131 | !ELSEIF "$(CFG)" == "wxUniv - Win32 Debug" |
2d1e89de VZ |
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 | ||
c6b0ee9a VZ |
158 | # Name "wxUniv - Win32 Release" |
159 | # Name "wxUniv - Win32 Debug" | |
2d1e89de VZ |
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"); | |
2d1e89de VZ |
165 | # End Group |
166 | # Begin Group "Generic Files" | |
167 | ||
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"); | |
170 | # End Group | |
171 | # Begin Group "wxHTML Files" | |
172 | ||
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"); | |
175 | # End Group | |
176 | # Begin Group "MSW Files" | |
177 | ||
178 | # PROP Default_Filter "" | |
179 | # Begin Source File | |
180 | ||
181 | SOURCE=.\msw\dummy.cpp | |
182 | # ADD CPP /Yc"wx/wxprec.h" | |
183 | # End Source File | |
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"); | |
186 | # End Group | |
187 | # Begin Group "Universal Files" | |
188 | ||
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" | |
192 | ||
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"); | |
195 | # End Group | |
196 | # End Group | |
197 | # Begin Group "Headers" | |
198 | ||
199 | # PROP Default_Filter "" | |
200 | # Begin Group "Setup" | |
201 | ||
202 | # PROP Default_Filter "" | |
203 | # Begin Source File | |
204 | ||
205 | SOURCE=..\include\wx\univ\setup.h | |
c6b0ee9a | 206 | !IF "$(CFG)" == "wxUniv - Win32 Release" |
835074fe | 207 | # Begin Custom Build - Creating lib\univ\wx\setup.h from $(InputPath) |
2d1e89de VZ |
208 | InputPath=..\include\wx\univ\setup.h |
209 | ||
210 | "../lib/univ/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" | |
cebab22d | 211 | copy "$(InputPath)" ..\lib\univ\wx\setup.h |
2d1e89de VZ |
212 | |
213 | # End Custom Build | |
c6b0ee9a | 214 | !ELSEIF "$(CFG)" == "wxUniv - Win32 Debug" |
835074fe | 215 | # Begin Custom Build - Creating lib\univd\wx\setup.h from $(InputPath) |
2d1e89de VZ |
216 | InputPath=..\include\wx\univ\setup.h |
217 | ||
218 | "../lib/univd/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" | |
cebab22d | 219 | copy "$(InputPath)" ..\lib\univd\wx\setup.h |
2d1e89de VZ |
220 | |
221 | # End Custom Build | |
222 | !ENDIF | |
223 | # End Source File | |
224 | # End Group | |
225 | # Begin Group "Common" | |
226 | ||
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"); | |
229 | # End Group | |
230 | # Begin Group "MSW" | |
231 | ||
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"); | |
234 | # End Group | |
235 | # Begin Group "Generic" | |
236 | ||
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"); | |
239 | # End Group | |
240 | # Begin Group "HTML" | |
241 | ||
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"); | |
244 | # End Group | |
245 | # Begin Group "Universal" | |
246 | ||
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"); | |
249 | # End Group | |
250 | # End Group | |
251 | # End Target | |
252 | # End Project | |
253 | #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: |