]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/vc6base.t
updated templates for creation of VC++ 6.0 project files for wxBase/wxMSW/wxUniv...
[wxWidgets.git] / distrib / msw / tmake / vc6base.t
1 #!#############################################################################
2 #! File: vc6base.t
3 #! Purpose: tmake template file from which wxBase.dsp is generated by running
4 #! tmake -t vc6base wxwin.pro -o wxBase.dsp
5 #! Author: Vadim Zeitlin
6 #! Created: 27.11.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 %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 # Microsoft Developer Studio Project File - Name="wxBase" - Package Owner=<4>
48 # Microsoft Developer Studio Generated Build File, Format Version 6.00
49 # ** DO NOT EDIT **
50
51 # TARGTYPE "Win32 (x86) Static Library" 0x0104
52
53 CFG=wxBase - Win32 Debug
54 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
55 !MESSAGE use the Export Makefile command and run
56 !MESSAGE
57 !MESSAGE NMAKE /f "wxBase.mak".
58 !MESSAGE
59 !MESSAGE You can specify a configuration when running NMAKE
60 !MESSAGE by defining the macro CFG on the command line. For example:
61 !MESSAGE
62 !MESSAGE NMAKE /f "wxBase.mak" CFG="wxBase - Win32 Debug"
63 !MESSAGE
64 !MESSAGE Possible choices for configuration are:
65 !MESSAGE
66 !MESSAGE "wxBase - Win32 Release" (based on "Win32 (x86) Static Library")
67 !MESSAGE "wxBase - Win32 Debug" (based on "Win32 (x86) Static Library")
68 !MESSAGE
69
70 # Begin Project
71 # PROP AllowPerConfigDependencies 0
72 # PROP Scc_ProjName ""
73 # PROP Scc_LocalPath ""
74 CPP=cl.exe
75 RSC=rc.exe
76
77 !IF "$(CFG)" == "wxBase - Win32 Release"
78
79 # PROP BASE Use_MFC 0
80 # PROP BASE Use_Debug_Libraries 0
81 # PROP BASE Output_Dir "..\lib"
82 # PROP BASE Intermediate_Dir "..\BaseRelease"
83 # PROP BASE Target_Dir ""
84 # PROP Use_MFC 0
85 # PROP Use_Debug_Libraries 0
86 # PROP Output_Dir "..\lib"
87 # PROP Intermediate_Dir "..\BaseRelease"
88 # PROP Target_Dir ""
89 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MT" /YX /FD /c
90 # ADD CPP /nologo /MD /W4 /O2 /I "../lib/base" /I "../include" /I "./regex" /I "./zlib" /D "NDEBUG" /D wxUSE_GUI=0 /D "WIN32" /D WINVER=0x400 /D "_MT" /Yu"wx/wxprec.h" /FD /c
91 # ADD BASE RSC /l 0x409
92 # ADD RSC /l 0x409
93 BSC32=bscmake.exe
94 # ADD BASE BSC32 /nologo
95 # ADD BSC32 /nologo
96 LIB32=link.exe -lib
97 # ADD BASE LIB32 /nologo
98 # ADD LIB32 /nologo /out:"..\lib\wxbase.lib"
99
100 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug"
101
102 # PROP BASE Use_MFC 0
103 # PROP BASE Use_Debug_Libraries 1
104 # PROP BASE Output_Dir "..\lib"
105 # PROP BASE Intermediate_Dir "..\BaseDebug"
106 # PROP BASE Target_Dir ""
107 # PROP Use_MFC 0
108 # PROP Use_Debug_Libraries 1
109 # PROP Output_Dir "..\lib"
110 # PROP Intermediate_Dir "..\BaseDebug"
111 # PROP Target_Dir ""
112 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MT" /YX /FD /c
113 # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/based" /I "../include" /I "./regex" /I "./zlib" /D "_DEBUG" /D wxUSE_GUI=0 /D "WIN32" /D "__WXDEBUG__" /D WINVER=0x400 /D "_MT" /Yu"wx/wxprec.h" /FD /c
114 # ADD BASE RSC /l 0x409
115 # ADD RSC /l 0x409
116 BSC32=bscmake.exe
117 # ADD BASE BSC32 /nologo
118 # ADD BSC32 /nologo /o"../lib/wxbase.bsc"
119 LIB32=link.exe -lib
120 # ADD BASE LIB32 /nologo
121 # ADD LIB32 /nologo /out:"..\lib\wxbased.lib"
122
123 !ENDIF
124
125 # Begin Target
126
127 # Name "wxBase - Win32 Release"
128 # Name "wxBase - Win32 Debug"
129
130 # Begin Group "Common Files"
131
132 # PROP Default_Filter ""
133 #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n");
134 #$ 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");
135 # End Group
136 # Begin Group "MSW Files"
137
138 # PROP Default_Filter ""
139 # Begin Source File
140
141 SOURCE=.\msw\dummy.cpp
142 # ADD CPP /Yc"wx/wxprec.h"
143 # End Source File
144 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n");
145 #$ 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");
146 # End Group
147 # Begin Group "Headers"
148
149 # PROP Default_Filter ""
150 # Begin Group "Setup"
151
152 # PROP Default_Filter ""
153 # Begin Source File
154
155 SOURCE=..\include\wx\msw\setup0.h
156
157 !IF "$(CFG)" == "wxBase - Win32 Release"
158
159 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
160 InputPath=..\include\wx\msw\setup0.h
161
162 "../lib/base/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
163 copy $(InputPath) ..\lib\base\wx\setup.h
164
165 # End Custom Build
166
167 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug"
168
169 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
170 InputPath=..\include\wx\msw\setup0.h
171
172 "../lib/based/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
173 copy $(InputPath) ..\lib\based\wx\setup.h
174
175 # End Custom Build
176
177 !ENDIF
178
179 # End Source File
180 # End Group
181 # Begin Group "Common"
182
183 # PROP Default_Filter ""
184 #$ 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");
185 # End Group
186 # Begin Group "MSW"
187
188 # PROP Default_Filter ""
189 #$ 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");
190 # End Group
191 # End Group
192 # End Target
193 # End Project
194 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: