]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/vc6lib.t
templates for VC++ project files
[wxWidgets.git] / distrib / msw / tmake / vc6lib.t
1 #!#############################################################################
2 #! File: vc6lib.t
3 #! Purpose: tmake template file from which the VC++ 6.0 project file for
4 #! building static wxWindows library wxvc.dsp is generated by running
5 #! tmake -t vc6lib wxwin.pro -o wxvc.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 %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 #$}
62 # Microsoft Developer Studio Project File - Name="wxvc" - Package Owner=<4>
63 # Microsoft Developer Studio Generated Build File, Format Version 6.00
64 # ** DO NOT EDIT **
65
66 # TARGTYPE "Win32 (x86) Static Library" 0x0104
67
68 CFG=wxvc - Win32 Debug
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
72 !MESSAGE NMAKE /f "wxvc.mak".
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
77 !MESSAGE NMAKE /f "wxvc.mak" CFG="wxvc - Win32 Debug"
78 !MESSAGE
79 !MESSAGE Possible choices for configuration are:
80 !MESSAGE
81 !MESSAGE "wxvc - Win32 Release" (based on "Win32 (x86) Static Library")
82 !MESSAGE "wxvc - Win32 Debug" (based on "Win32 (x86) Static Library")
83 !MESSAGE
84
85 # Begin Project
86 # PROP AllowPerConfigDependencies 0
87 # PROP Scc_ProjName "wxvc"
88 # PROP Scc_LocalPath ".."
89 CPP=cl.exe
90 RSC=rc.exe
91
92 !IF "$(CFG)" == "wxvc - Win32 Release"
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
105 # ADD CPP /nologo /MD /W4 /O2 /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
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
115 !ELSEIF "$(CFG)" == "wxvc - Win32 Debug"
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
128 # ADD CPP /nologo /MDd /W4 /Zi /Od /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
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
142 # Name "wxvc - Win32 Release"
143 # Name "wxvc - Win32 Debug"
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");
175 # End Group
176 # Begin Group "OLE Files"
177
178 # PROP Default_Filter ""
179 #$ 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");
180 # End Group
181 # Begin Group "Headers"
182
183 # PROP Default_Filter ""
184 # Begin Group "Setup"
185
186 # PROP Default_Filter ""
187 # Begin Source File
188
189 SOURCE=..\include\wx\msw\setup0.h
190 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
191 InputPath=..\include\wx\msw\setup0.h
192
193 "../include/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
194 copy $(InputPath) ..\include\wx\setup.h
195
196 # End Custom Build
197 # End Source File
198 # Begin Source File
199
200 SOURCE=..\include\wx\setup.h
201 # End Source File
202 # End Group
203 # Begin Group "Common"
204
205 # PROP Default_Filter ""
206 #$ 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");
207 # End Group
208 # Begin Group "MSW"
209
210 # PROP Default_Filter ""
211 #$ 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");
212 # End Group
213 # Begin Group "Generic"
214
215 # PROP Default_Filter ""
216 #$ 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");
217 # End Group
218 # Begin Group "HTML"
219
220 # PROP Default_Filter ""
221 #$ 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");
222 # End Group
223 # End Group
224 # End Target
225 # End Project
226 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: