]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/vc6dll.t
updated templates for creation of VC++ 6.0 project files for wxBase/wxMSW/wxUniv...
[wxWidgets.git] / distrib / msw / tmake / vc6dll.t
1 #!#############################################################################
2 #! File: vc6dll.t
3 #! Purpose: tmake template file from which wxdll.dsp is generated by running
4 #! tmake -t vc6dll wxwin.pro -o wxdll.dsp
5 #! Author: Vadim Zeitlin
6 #! Created: 13.10.99
7 #! Version: $Id$
8 #!#############################################################################
9 #${
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
13
14 #! now transform these hashes into $project tags
15 foreach $file (sort keys %wxGeneric) {
16 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
17 $project{"WXGENERICSRCS"} .= $file . " "
18 }
19
20 foreach $file (sort keys %wxCommon) {
21 next if $wxCommon{$file} =~ /\b16\b/;
22
23 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
24 $project{$tag} .= $file . " "
25 }
26
27 foreach $file (sort keys %wxMSW) {
28 next if $wxMSW{$file} =~ /\b16\b/;
29
30 my $tag;
31 if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" }
32 else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" }
33 $project{$tag} .= $file . " "
34 }
35
36 foreach $file (sort keys %wxHTML) {
37 next if $wxHTML{$file} =~ /\b16\b/;
38 $project{"WXHTMLSRCS"} .= $file . " "
39 }
40
41 foreach $file (sort keys %wxWXINCLUDE) {
42 next if $file =~ /setup.h/;
43 next if $file =~ /[^.]*.cpp$/;
44 $project{"WXHEADERS"} .= $file . " "
45 }
46
47 foreach $file (sort keys %wxGENERICINCLUDE) {
48 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
49 $project{"WXGENERICHEADERS"} .= $file . " "
50 }
51
52 foreach $file (sort keys %wxMSWINCLUDE) {
53 next if $file =~ /setup0?.h/;
54 $project{"WXMSWHEADERS"} .= $file . " "
55 }
56
57 foreach $file (sort keys %wxHTMLINCLUDE) {
58 $project{"WXHTMLHEADERS"} .= $file . " "
59 }
60
61 $project{"WXVERSION"} = "232";
62 #$}
63 # Microsoft Developer Studio Project File - Name="wxdll" - Package Owner=<4>
64 # Microsoft Developer Studio Generated Build File, Format Version 6.00
65 # ** DO NOT EDIT **
66
67 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
68
69 CFG=wxdll - Win32 Debug
70 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
71 !MESSAGE use the Export Makefile command and run
72 !MESSAGE
73 !MESSAGE NMAKE /f "wxdll.mak".
74 !MESSAGE
75 !MESSAGE You can specify a configuration when running NMAKE
76 !MESSAGE by defining the macro CFG on the command line. For example:
77 !MESSAGE
78 !MESSAGE NMAKE /f "wxdll.mak" CFG="wxdll - Win32 Debug"
79 !MESSAGE
80 !MESSAGE Possible choices for configuration are:
81 !MESSAGE
82 !MESSAGE "wxdll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
83 !MESSAGE "wxdll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
84 !MESSAGE
85
86 # Begin Project
87 # PROP AllowPerConfigDependencies 0
88 # PROP Scc_ProjName ""
89 # PROP Scc_LocalPath ""
90 CPP=cl.exe
91 MTL=midl.exe
92 RSC=rc.exe
93
94 !IF "$(CFG)" == "wxdll - Win32 Release"
95
96 # PROP BASE Use_MFC 0
97 # PROP BASE Use_Debug_Libraries 0
98 # PROP BASE Output_Dir "../lib"
99 # PROP BASE Intermediate_Dir "../ReleaseDll"
100 # PROP BASE Target_Dir ""
101 # PROP Use_MFC 0
102 # PROP Use_Debug_Libraries 0
103 # PROP Output_Dir "../lib"
104 # PROP Intermediate_Dir "../ReleaseDLL"
105 # PROP Ignore_Export_Lib 0
106 # PROP Target_Dir ""
107 # ADD BASE CPP /nologo /MD /W4 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /c
108 # ADD CPP /nologo /MD /W4 /O2 /I "../lib/mswdll" /I "../include" /I "./zlib" /I "./jpeg" /I "./png" /I "./regex" /I "./tiff" /D "_USRDLL" /D "WIN32" /D "NDEBUG" /D WINVER=0x0400 /D "STRICT" /D "_MT" /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /c
109 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
110 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
111 # ADD BASE RSC /l 0x409 /d "NDEBUG"
112 # ADD RSC /l 0x409 /i "../include" /d "NDEBUG"
113 BSC32=bscmake.exe
114 # ADD BASE BSC32 /nologo
115 # ADD BSC32 /nologo
116 LINK32=link.exe
117 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib winmm.lib ..\lib\jpeg.lib ..\lib\tiff.lib ..\lib\png.lib ..\lib\regex.lib ..\lib\zlib.lib /nologo /dll /machine:I386 /out:"../lib/wxmsw#$ $text = $project{"WXVERSION"} . '.dll"'
118 # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib ..\lib\jpeg.lib ..\lib\tiff.lib ..\lib\png.lib ..\lib\regex.lib ..\lib\zlib.lib /nologo /version:2.3 /dll /machine:I386 /out:"../lib/wxmsw#$ $text = $project{"WXVERSION"} . '.dll"'
119
120 !ELSEIF "$(CFG)" == "wxdll - Win32 Debug"
121
122 # PROP BASE Use_MFC 0
123 # PROP BASE Use_Debug_Libraries 1
124 # PROP BASE Output_Dir "../lib"
125 # PROP BASE Intermediate_Dir "../DebugDll"
126 # PROP BASE Target_Dir ""
127 # PROP Use_MFC 0
128 # PROP Use_Debug_Libraries 1
129 # PROP Output_Dir "../lib"
130 # PROP Intermediate_Dir "../DebugDll"
131 # PROP Ignore_Export_Lib 0
132 # PROP Target_Dir ""
133 # ADD BASE CPP /nologo /MDd /W4 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /GZ /c
134 # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/mswdlld" /I "../include" /I "./zlib" /I "./jpeg" /I "./png" /I "./regex" /I "./tiff" /D "_USRDLL" /D "WIN32" /D "_DEBUG" /D WINVER=0x0400 /D "STRICT" /D "_MT" /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /c
135 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
136 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
137 # ADD BASE RSC /l 0x409 /d "_DEBUG"
138 # ADD RSC /l 0x409 /i "../include" /d "_DEBUG"
139 BSC32=bscmake.exe
140 # ADD BASE BSC32 /nologo
141 # ADD BSC32 /nologo
142 LINK32=link.exe
143 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib winmm.lib ..\lib\jpegd.lib ..\lib\tiffd.lib ..\lib\pngd.lib ..\lib\regexd.lib ..\lib\zlibd.lib /dll /debug /machine:I386 /pdbtype:sept /out:"../lib/wxmsw#$ $text = $project{"WXVERSION"} . 'd.dll"'
144 # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib ..\lib\jpegd.lib ..\lib\tiffd.lib ..\lib\pngd.lib ..\lib\regexd.lib ..\lib\zlibd.lib /nologo /version:2.3 /dll /debug /machine:I386 /pdbtype:sept /out:"../lib/wxmsw#$ $text = $project{"WXVERSION"} . 'd.dll"'
145
146 !ENDIF
147
148 # Begin Target
149
150 # Name "wxdll - Win32 Release"
151 # Name "wxdll - Win32 Debug"
152
153 # Begin Group "Common Files"
154
155 # PROP Default_Filter ""
156 #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n");
157 #$ 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");
158 # Begin Source File
159
160 SOURCE=.\common\y_tab.c
161 # ADD CPP /W1 /D "USE_DEFINE"
162 # SUBTRACT CPP /YX /Yc /Yu
163 # End Source File
164 # End Group
165 # Begin Group "Generic Files"
166
167 # PROP Default_Filter ""
168 #$ ExpandGlue("WXGENERICSRCS", "# Begin Source File\n\nSOURCE=.\\generic\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\generic\\", "\n# End Source File\n");
169 # End Group
170 # Begin Group "wxHTML Files"
171
172 # PROP Default_Filter ""
173 #$ ExpandGlue("WXHTMLSRCS", "# Begin Source File\n\nSOURCE=.\\html\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\html\\", "\n# End Source File\n");
174 # End Group
175 # Begin Group "MSW Files"
176
177 # PROP Default_Filter ""
178 # Begin Source File
179
180 SOURCE=.\msw\dummydll.cpp
181 # ADD CPP /Yc"wx/wxprec.h"
182 # End Source File
183 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n");
184 #$ 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");
185 # End Group
186 # Begin Group "OLE Files"
187
188 # PROP Default_Filter ""
189 #$ 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");
190 # End Group
191 # Begin Group "Resources"
192
193 # PROP Default_Filter ""
194 # Begin Source File
195
196 SOURCE=.\msw\version.rc
197 # End Source File
198 # End Group
199 # Begin Group "Headers"
200
201 # PROP Default_Filter ""
202 # Begin Group "Setup"
203
204 # PROP Default_Filter ""
205 # Begin Source File
206
207 SOURCE=..\include\wx\msw\setup0.h
208 !IF "$(CFG)" == "wxdll - Win32 Release"
209 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
210 InputPath=..\include\wx\msw\setup0.h
211
212 "../lib/mswdll/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
213 copy $(InputPath) ..\lib\mswdll\wx\setup.h
214
215 # End Custom Build
216 !ELSEIF "$(CFG)" == "wxdll - Win32 Debug"
217 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
218 InputPath=..\include\wx\msw\setup0.h
219
220 "../lib/mswdlld/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
221 copy $(InputPath) ..\lib\mswdlld\wx\setup.h
222
223 # End Custom Build
224 !ENDIF
225 # End Source File
226 # End Group
227 # Begin Group "Common"
228
229 # PROP Default_Filter ""
230 #$ 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");
231 # End Group
232 # Begin Group "MSW"
233
234 # PROP Default_Filter ""
235 #$ 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");
236 # End Group
237 # Begin Group "Generic"
238
239 # PROP Default_Filter ""
240 #$ 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");
241 # End Group
242 # Begin Group "HTML"
243
244 # PROP Default_Filter ""
245 #$ 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");
246 # End Group
247 # End Group
248 # End Target
249 # End Project
250 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: