]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/vc6bdll.t
updated templates for creation of VC++ 6.0 project files for wxBase/wxMSW/wxUniv...
[wxWidgets.git] / distrib / msw / tmake / vc6bdll.t
1 #!#############################################################################
2 #! File: vc6bdll.t
3 #! Purpose: tmake template file from which wxBaseDll.dsp is generated by running
4 #! tmake -t vc6bdll wxwin.pro -o wxBaseDll.dsp
5 #! Author: Vadim Zeitlin
6 #! Created: 22.03.00
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 %wxCommon) {
16 next if $wxCommon{$file} !~ /\bB\b/;
17
18 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
19 $project{$tag} .= $file . " "
20 }
21
22 foreach $file (sort keys %wxMSW) {
23 next if $wxMSW{$file} !~ /\bB\b/;
24
25 my $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS";
26 $project{$tag} .= $file . " "
27 }
28
29 foreach $file (sort keys %wxBase) {
30 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
31 $project{$tag} .= $file . " "
32 }
33
34 foreach $file (sort keys %wxWXINCLUDE) {
35 next if $wxWXINCLUDE{$file} !~ /\bB\b/;
36 next if $file =~ /setup.h/;
37 next if $file =~ /[^.]*.cpp$/;
38 $project{"WXHEADERS"} .= $file . " "
39 }
40
41 foreach $file (sort keys %wxMSWINCLUDE) {
42 next if $wxMSWINCLUDE{$file} !~ /\bB\b/;
43 next if $file =~ /setup0?.h/;
44 $project{"WXMSWHEADERS"} .= $file . " "
45 }
46
47 $project{"WXVERSION"} = "232";
48 #$}
49 # Microsoft Developer Studio Project File - Name="wxBaseDll" - Package Owner=<4>
50 # Microsoft Developer Studio Generated Build File, Format Version 6.00
51 # ** DO NOT EDIT **
52
53 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
54
55 CFG=wxBaseDll - Win32 Debug
56 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
57 !MESSAGE use the Export Makefile command and run
58 !MESSAGE
59 !MESSAGE NMAKE /f "wxBaseDll.mak".
60 !MESSAGE
61 !MESSAGE You can specify a configuration when running NMAKE
62 !MESSAGE by defining the macro CFG on the command line. For example:
63 !MESSAGE
64 !MESSAGE NMAKE /f "wxBaseDll.mak" CFG="wxBaseDll - Win32 Debug"
65 !MESSAGE
66 !MESSAGE Possible choices for configuration are:
67 !MESSAGE
68 !MESSAGE "wxBaseDll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
69 !MESSAGE "wxBaseDll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
70 !MESSAGE
71
72 # Begin Project
73 # PROP AllowPerConfigDependencies 0
74 # PROP Scc_ProjName ""
75 # PROP Scc_LocalPath ""
76 CPP=cl.exe
77 MTL=midl.exe
78 RSC=rc.exe
79
80 !IF "$(CFG)" == "wxBaseDll - Win32 Release"
81
82 # PROP BASE Use_MFC 0
83 # PROP BASE Use_Debug_Libraries 0
84 # PROP BASE Output_Dir "../lib"
85 # PROP BASE Intermediate_Dir "../BaseDllRelease"
86 # PROP BASE Target_Dir ""
87 # PROP Use_MFC 0
88 # PROP Use_Debug_Libraries 0
89 # PROP Output_Dir "../lib"
90 # PROP Intermediate_Dir "../BaseDllRelease"
91 # PROP Ignore_Export_Lib 0
92 # PROP Target_Dir ""
93 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MT" /D "_USRDLL" /D "WXBASEDLL_EXPORTS" /YX /FD /c
94 # ADD CPP /nologo /MD /W4 /O2 /I "../lib/basedll" /I "../include" /I "./regex" /I "./zlib" /D "NDEBUG" /D wxUSE_GUI=0 /D "WIN32" /D WINVER=0x400 /D "_MT" /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /c
95 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
96 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
97 # ADD BASE RSC /l 0x409 /d "NDEBUG"
98 # ADD RSC /l 0x409 /i "../include" /d "NDEBUG"
99 BSC32=bscmake.exe
100 # ADD BASE BSC32 /nologo
101 # ADD BSC32 /nologo
102 LINK32=link.exe
103 # 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 /nologo /dll /machine:I386 /out:"../lib/wxbase#$ $text = $project{"WXVERSION"} . '.dll"'
104 # ADD LINK32 kernel32.lib user32.lib advapi32.lib wsock32.lib ../lib/zlib.lib ../lib/regex.lib /nologo /version:2.3 /dll /machine:I386 /out:"../lib/wxbase#$ $text = $project{"WXVERSION"} . '.dll"'
105
106 !ELSEIF "$(CFG)" == "wxBaseDll - Win32 Debug"
107
108 # PROP BASE Use_MFC 0
109 # PROP BASE Use_Debug_Libraries 1
110 # PROP BASE Output_Dir "../lib"
111 # PROP BASE Intermediate_Dir "../BaseDllDebug"
112 # PROP BASE Target_Dir ""
113 # PROP Use_MFC 0
114 # PROP Use_Debug_Libraries 1
115 # PROP Output_Dir "../lib"
116 # PROP Intermediate_Dir "../BaseDllDebug"
117 # PROP Ignore_Export_Lib 0
118 # PROP Target_Dir ""
119 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MT" /D "_USRDLL" /D "WXBASEDLL_EXPORTS" /YX /FD /c
120 # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/basedlld" /I "../include" /I "./regex" /I "./zlib" /D "_DEBUG" /D wxUSE_GUI=0 /D "WIN32" /D WINVER=0x400 /D "_MT" /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /c
121 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
122 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
123 # ADD BASE RSC /l 0x409 /d "_DEBUG"
124 # ADD RSC /l 0x409 /i "../include" /d "_DEBUG"
125 BSC32=bscmake.exe
126 # ADD BASE BSC32 /nologo
127 # ADD BSC32 /nologo
128 LINK32=link.exe
129 # 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 /nologo /dll /debug /machine:I386 /pdbtype:sept /out:"../lib/wxbase#$ $text = $project{"WXVERSION"} . 'd.dll"'
130 # ADD LINK32 kernel32.lib user32.lib advapi32.lib wsock32.lib ../lib/zlibd.lib ../lib/regexd.lib /nologo /version:2.2 /dll /debug /machine:I386 /pdbtype:sept /out:"../lib/wxbase#$ $text = $project{"WXVERSION"} . 'd.dll"'
131
132 !ENDIF
133
134 # Begin Target
135
136 # Name "wxBaseDll - Win32 Release"
137 # Name "wxBaseDll - Win32 Debug"
138 # Begin Source File
139
140 SOURCE=.\common\base.rc
141 # End Source File
142 # Begin Source File
143
144 SOURCE=.\msw\dummydll.cpp
145 # ADD CPP /Yc"wx/wxprec.h"
146 # End Source File
147 # Begin Group "Common Files"
148
149 # PROP Default_Filter ""
150 #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n");
151 #$ 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");
152 # End Group
153 # Begin Group "MSW Files"
154
155 # PROP Default_Filter ""
156 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n");
157 #$ 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");
158 # End Group
159 # Begin Group "Headers"
160
161 # PROP Default_Filter ""
162 # Begin Group "Setup"
163
164 # PROP Default_Filter ""
165 # Begin Source File
166
167 SOURCE=..\include\wx\msw\setup0.h
168
169 !IF "$(CFG)" == "wxBaseDll - Win32 Release"
170
171 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
172 InputPath=..\include\wx\msw\setup0.h
173
174 "../lib/basedll/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
175 copy $(InputPath) ..\lib\basedll\wx\setup.h
176
177 # End Custom Build
178
179 !ELSEIF "$(CFG)" == "wxBaseDll - Win32 Debug"
180
181 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
182 InputPath=..\include\wx\msw\setup0.h
183
184 "../lib/basedlld/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
185 copy $(InputPath) ..\lib\basedlld\wx\setup.h
186
187 # End Custom Build
188
189 !ENDIF
190
191 # End Source File
192 # End Group
193 # Begin Group "Common"
194
195 # PROP Default_Filter ""
196 #$ 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");
197 # End Group
198 # Begin Group "MSW"
199
200 # PROP Default_Filter ""
201 #$ 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");
202 # End Group
203 # End Group
204 # End Target
205 # End Project
206 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: