]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/vc6univ.t
corrected typo in conditional compilation for Darwin/Mac OS X
[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 # 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
206 !IF "$(CFG)" == "wxUniv - Win32 Release"
207 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
208 InputPath=..\include\wx\univ\setup.h
209
210 "../lib/univ/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
211 copy $(InputPath) ..\lib\univ\wx\setup.h
212
213 # End Custom Build
214 !ELSEIF "$(CFG)" == "wxUniv - Win32 Debug"
215 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
216 InputPath=..\include\wx\univ\setup.h
217
218 "../lib/univd/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
219 copy $(InputPath) ..\lib\univd\wx\setup.h
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: