]>
Commit | Line | Data |
---|---|---|
8dc52d20 VZ |
1 | #!############################################################################# |
2 | #! File: vc6lib.t | |
3 | #! Purpose: tmake template file from which the VC++ 6.0 project file for | |
0797afee VZ |
4 | #! building static wxWindows library wx.dsp is generated by running |
5 | #! tmake -t vc6lib wxwin.pro -o wx.dsp | |
8dc52d20 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 %wxGeneric) { | |
17 | next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/; | |
18 | $project{"WXGENERICSRCS"} .= $file . " " | |
19 | } | |
20 | ||
21 | foreach $file (sort keys %wxCommon) { | |
22 | next if $wxCommon{$file} =~ /\b16\b/; | |
23 | ||
24 | my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS"; | |
25 | $project{$tag} .= $file . " " | |
26 | } | |
27 | ||
28 | foreach $file (sort keys %wxMSW) { | |
29 | next if $wxMSW{$file} =~ /\b16\b/; | |
30 | ||
31 | my $tag; | |
32 | if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" } | |
33 | else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" } | |
34 | $project{$tag} .= $file . " " | |
35 | } | |
36 | ||
37 | foreach $file (sort keys %wxHTML) { | |
38 | next if $wxHTML{$file} =~ /\b16\b/; | |
39 | $project{"WXHTMLSRCS"} .= $file . " " | |
40 | } | |
41 | ||
42 | foreach $file (sort keys %wxWXINCLUDE) { | |
43 | next if $file =~ /setup.h/; | |
44 | next if $file =~ /[^.]*.cpp$/; | |
45 | $project{"WXHEADERS"} .= $file . " " | |
46 | } | |
47 | ||
48 | foreach $file (sort keys %wxGENERICINCLUDE) { | |
49 | next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/; | |
50 | $project{"WXGENERICHEADERS"} .= $file . " " | |
51 | } | |
52 | ||
53 | foreach $file (sort keys %wxMSWINCLUDE) { | |
54 | next if $file =~ /setup0?.h/; | |
55 | $project{"WXMSWHEADERS"} .= $file . " " | |
56 | } | |
57 | ||
58 | foreach $file (sort keys %wxHTMLINCLUDE) { | |
59 | $project{"WXHTMLHEADERS"} .= $file . " " | |
60 | } | |
61 | #$} | |
0797afee | 62 | # Microsoft Developer Studio Project File - Name="wx" - Package Owner=<4> |
8dc52d20 VZ |
63 | # Microsoft Developer Studio Generated Build File, Format Version 6.00 |
64 | # ** DO NOT EDIT ** | |
65 | ||
66 | # TARGTYPE "Win32 (x86) Static Library" 0x0104 | |
67 | ||
0797afee | 68 | CFG=wx - Win32 Debug |
8dc52d20 VZ |
69 | !MESSAGE This is not a valid makefile. To build this project using NMAKE, |
70 | !MESSAGE use the Export Makefile command and run | |
71 | !MESSAGE | |
0797afee | 72 | !MESSAGE NMAKE /f "wx.mak". |
8dc52d20 VZ |
73 | !MESSAGE |
74 | !MESSAGE You can specify a configuration when running NMAKE | |
75 | !MESSAGE by defining the macro CFG on the command line. For example: | |
76 | !MESSAGE | |
0797afee | 77 | !MESSAGE NMAKE /f "wx.mak" CFG="wx - Win32 Debug" |
8dc52d20 VZ |
78 | !MESSAGE |
79 | !MESSAGE Possible choices for configuration are: | |
80 | !MESSAGE | |
0797afee VZ |
81 | !MESSAGE "wx - Win32 Release" (based on "Win32 (x86) Static Library") |
82 | !MESSAGE "wx - Win32 Debug" (based on "Win32 (x86) Static Library") | |
8dc52d20 VZ |
83 | !MESSAGE |
84 | ||
85 | # Begin Project | |
86 | # PROP AllowPerConfigDependencies 0 | |
0797afee | 87 | # PROP Scc_ProjName "wx" |
8dc52d20 VZ |
88 | # PROP Scc_LocalPath ".." |
89 | CPP=cl.exe | |
90 | RSC=rc.exe | |
91 | ||
0797afee | 92 | !IF "$(CFG)" == "wx - Win32 Release" |
8dc52d20 VZ |
93 | |
94 | # PROP BASE Use_MFC 0 | |
95 | # PROP BASE Use_Debug_Libraries 0 | |
96 | # PROP BASE Output_Dir "../Release" | |
97 | # PROP BASE Intermediate_Dir "../Release" | |
98 | # PROP BASE Target_Dir "" | |
99 | # PROP Use_MFC 0 | |
100 | # PROP Use_Debug_Libraries 0 | |
101 | # PROP Output_Dir "../Release" | |
102 | # PROP Intermediate_Dir "../Release" | |
103 | # PROP Target_Dir "" | |
104 | # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MT" /YX /FD /c | |
0797afee | 105 | # ADD CPP /nologo /MD /W4 /O2 /I "../lib/msw" /I "../include" /I "./zlib" /I "./jpeg" /I "./png" /I "./regex" /I "./tiff" /D "WIN32" /D "NDEBUG" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /c |
8dc52d20 VZ |
106 | # ADD BASE RSC /l 0x409 |
107 | # ADD RSC /l 0x409 | |
108 | BSC32=bscmake.exe | |
109 | # ADD BASE BSC32 /nologo | |
110 | # ADD BSC32 /nologo | |
111 | LIB32=link.exe -lib | |
112 | # ADD BASE LIB32 /nologo | |
113 | # ADD LIB32 /nologo /out:"..\lib\wxmsw.lib" | |
114 | ||
0797afee | 115 | !ELSEIF "$(CFG)" == "wx - Win32 Debug" |
8dc52d20 VZ |
116 | |
117 | # PROP BASE Use_MFC 0 | |
118 | # PROP BASE Use_Debug_Libraries 1 | |
119 | # PROP BASE Output_Dir "../Debug" | |
120 | # PROP BASE Intermediate_Dir "../Debug" | |
121 | # PROP BASE Target_Dir "" | |
122 | # PROP Use_MFC 0 | |
123 | # PROP Use_Debug_Libraries 1 | |
124 | # PROP Output_Dir "../Debug" | |
125 | # PROP Intermediate_Dir "../Debug" | |
126 | # PROP Target_Dir "" | |
127 | # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c | |
0797afee | 128 | # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/mswd" /I "../include" /I "./zlib" /I "./jpeg" /I "./png" /I "./regex" /I "./tiff" /D "WIN32" /D "_DEBUG" /D "__WXDEBUG__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /c |
8dc52d20 VZ |
129 | # ADD BASE RSC /l 0x409 |
130 | # ADD RSC /l 0x409 | |
131 | BSC32=bscmake.exe | |
132 | # ADD BASE BSC32 /nologo | |
133 | # ADD BSC32 /nologo | |
134 | LIB32=link.exe -lib | |
135 | # ADD BASE LIB32 /nologo | |
136 | # ADD LIB32 /nologo /out:"..\lib\wxmswd.lib" | |
137 | ||
138 | !ENDIF | |
139 | ||
140 | # Begin Target | |
141 | ||
0797afee VZ |
142 | # Name "wx - Win32 Release" |
143 | # Name "wx - Win32 Debug" | |
8dc52d20 VZ |
144 | # Begin Group "Common Files" |
145 | ||
146 | # PROP Default_Filter "" | |
147 | #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n"); | |
148 | #$ 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"); | |
149 | # Begin Source File | |
150 | ||
151 | SOURCE=.\common\y_tab.c | |
152 | # ADD CPP /W1 /D "USE_DEFINE" | |
153 | # SUBTRACT CPP /YX /Yc /Yu | |
154 | # End Source File | |
155 | # End Group | |
156 | # Begin Group "Generic Files" | |
157 | ||
158 | # PROP Default_Filter "" | |
159 | #$ ExpandGlue("WXGENERICSRCS", "# Begin Source File\n\nSOURCE=.\\generic\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\generic\\", "\n# End Source File\n"); | |
160 | # End Group | |
161 | # Begin Group "wxHTML Files" | |
162 | ||
163 | # PROP Default_Filter "" | |
164 | #$ ExpandGlue("WXHTMLSRCS", "# Begin Source File\n\nSOURCE=.\\html\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\html\\", "\n# End Source File\n"); | |
165 | # End Group | |
166 | # Begin Group "MSW Files" | |
167 | ||
168 | # PROP Default_Filter "" | |
169 | # Begin Source File | |
170 | ||
171 | SOURCE=.\msw\dummy.cpp | |
172 | # ADD CPP /Yc"wx/wxprec.h" | |
173 | # End Source File | |
174 | #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n"); | |
0797afee | 175 | #$ 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"); |
8dc52d20 VZ |
176 | # End Group |
177 | # Begin Group "OLE Files" | |
178 | ||
179 | # PROP Default_Filter "" | |
180 | #$ 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"); | |
181 | # End Group | |
182 | # Begin Group "Headers" | |
183 | ||
184 | # PROP Default_Filter "" | |
185 | # Begin Group "Setup" | |
186 | ||
187 | # PROP Default_Filter "" | |
188 | # Begin Source File | |
189 | ||
190 | SOURCE=..\include\wx\msw\setup0.h | |
0797afee | 191 | !IF "$(CFG)" == "wx - Win32 Release" |
8dc52d20 VZ |
192 | # Begin Custom Build - Creating wx/setup.h from $(InputPath) |
193 | InputPath=..\include\wx\msw\setup0.h | |
194 | ||
0797afee VZ |
195 | "../lib/msw/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" |
196 | copy $(InputPath) ..\lib\msw\wx\setup.h | |
8dc52d20 VZ |
197 | |
198 | # End Custom Build | |
0797afee VZ |
199 | !ELSEIF "$(CFG)" == "wx - Win32 Debug" |
200 | # Begin Custom Build - Creating wx/setup.h from $(InputPath) | |
201 | InputPath=..\include\wx\msw\setup0.h | |
8dc52d20 | 202 | |
0797afee VZ |
203 | "../lib/mswd/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" |
204 | copy $(InputPath) ..\lib\mswd\wx\setup.h | |
205 | ||
206 | # End Custom Build | |
207 | !ENDIF | |
8dc52d20 VZ |
208 | # End Source File |
209 | # End Group | |
210 | # Begin Group "Common" | |
211 | ||
212 | # PROP Default_Filter "" | |
213 | #$ 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"); | |
214 | # End Group | |
215 | # Begin Group "MSW" | |
216 | ||
217 | # PROP Default_Filter "" | |
218 | #$ 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"); | |
219 | # End Group | |
220 | # Begin Group "Generic" | |
221 | ||
222 | # PROP Default_Filter "" | |
223 | #$ 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"); | |
224 | # End Group | |
225 | # Begin Group "HTML" | |
226 | ||
227 | # PROP Default_Filter "" | |
228 | #$ 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"); | |
229 | # End Group | |
230 | # End Group | |
231 | # End Target | |
232 | # End Project | |
233 | #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: |