]>
Commit | Line | Data |
---|---|---|
8dc52d20 | 1 | #!############################################################################# |
0797afee | 2 | #! File: vc6app.t |
8dc52d20 | 3 | #! Purpose: tmake template file from which the VC++ 6.0 project file for |
0797afee | 4 | #! building wxWindows applications are generated by running |
8dc52d20 | 5 | #! tmake -t vc6lib wxwin.pro -o wxvc.dsp |
0797afee VZ |
6 | #! you may append CONFIG+= to the end of the line, i.e. |
7 | #! tmake -t vc6lib wxwin.pro -o wxvc.dsp CONFIG+=unicode | |
8 | #! tmake -t vc6lib wxwin.pro -o wxvc.dsp CONFIG+=dll | |
8dc52d20 VZ |
9 | #! Author: Vadim Zeitlin |
10 | #! Created: 29.09.01 | |
11 | #! Version: $Id$ | |
12 | #!############################################################################# | |
13 | #${ | |
0797afee VZ |
14 | #! what kind of app are we building - this is used as prefix for the build |
15 | #! output dir | |
16 | $KIND=""; | |
17 | ||
8dc52d20 VZ |
18 | if ( Config("wx") ) { |
19 | Project('CONFIG += windows'); | |
20 | } | |
0797afee | 21 | if ( Config("wxbase") || Config("wxuniv") ) { |
8dc52d20 VZ |
22 | Project('CONFIG += wx'); |
23 | } | |
24 | if ( Config("wx") ) { | |
25 | if ( Config("wxnodir") ) { | |
26 | $WXDIR = "..\\.."; | |
27 | } | |
28 | else { | |
29 | #! VC 6.0 supports env vars in include path | |
30 | #! $WXDIR = $ENV{'WX'}; | |
31 | if ( $ENV{'wx'} ) { | |
32 | $WXDIR = "\$(wx)"; | |
33 | } | |
34 | else { | |
35 | $WXDIR = "\$(WXWIN)"; | |
36 | } | |
37 | } | |
38 | ||
89d25d58 | 39 | AddIncludePath("$WXDIR\\include"); |
8dc52d20 VZ |
40 | } |
41 | ||
8dc52d20 | 42 | #! let's be smart: if no extension is given, add .lib (this allows for |
89d25d58 VZ |
43 | #! LIBS=libname in project files which map either to -l libname.lib under |
44 | #! Windows or to -llibname under Unix). | |
8dc52d20 VZ |
45 | @libs = split(/\s+/, Project('LIBS')); |
46 | foreach $lib (@libs) { | |
47 | if ( $lib !~ "\.lib\$" ) { $lib .= ".lib"; } | |
48 | Project('TMAKE_LIBS *= ' . $lib); | |
49 | } | |
50 | ||
51 | if ( Config("windows") ) { | |
52 | $project{"VC_PROJ_TYPE"} = 'Win32 (x86) Application'; | |
53 | $project{"VC_PROJ_CODE"} = '0x0101'; | |
54 | $vc_base_libs = 'kernel32.lib user32.lib gdi32.lib winspool.lib ' . | |
55 | 'comdlg32.lib advapi32.lib shell32.lib ole32.lib ' . | |
56 | 'oleaut32.lib uuid.lib odbc32.lib odbccp32.lib '; | |
57 | if ( Config("wx") ) { | |
58 | $vc_base_libs .= "comctl32.lib rpcrt4.lib wsock32.lib "; | |
8dc52d20 VZ |
59 | } |
60 | $vc_link_release .= '/nologo /subsystem:windows /machine:I386'; | |
61 | $vc_link_debug .= '/nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept'; | |
62 | ||
89d25d58 | 63 | $vc_cpp_def_common = '/D "WIN32" /D "_WINDOWS" /D WINVER=0x400 '; |
8dc52d20 VZ |
64 | } else { |
65 | $project{"VC_PROJ_TYPE"} = 'Win32 (x86) Console Application'; | |
66 | $project{"VC_PROJ_CODE"} = '0x0103'; | |
67 | $vc_base_libs = 'kernel32.lib user32.lib advapi32.lib '; | |
68 | if ( Config("wx") ) { | |
69 | $vc_base_libs .= 'wsock32.lib '; | |
8dc52d20 VZ |
70 | } |
71 | $vc_link_release .= '/nologo /subsystem:console /machine:I386'; | |
72 | $vc_link_debug .= '/nologo /subsystem:console /debug /machine:I386 /pdbtype:sept'; | |
73 | ||
89d25d58 | 74 | $vc_cpp_def_common = '/D "WIN32" /D "_CONSOLE" '; |
8dc52d20 VZ |
75 | } |
76 | ||
89d25d58 VZ |
77 | $vc_cpp_def_release = '/D "NDEBUG" ' . $vc_cpp_def_common; |
78 | $vc_cpp_def_debug = '/D "_DEBUG" ' . $vc_cpp_def_common; | |
79 | ||
8dc52d20 VZ |
80 | foreach ( split(/ /, Project('LIBPATH')) ) { |
81 | $vc_link_release .= " /libpath:$_\\Release"; | |
82 | $vc_link_debug .= " /libpath:$_\\Debug"; | |
83 | } | |
84 | ||
8dc52d20 | 85 | if ( Config("wx") ) { |
89d25d58 VZ |
86 | if ( Config("wxbase") ) { |
87 | $KIND="Base"; | |
88 | $TOOLKIT="base"; | |
89 | } | |
90 | elsif ( Config("wxuniv") ) { | |
91 | $KIND="Univ"; | |
92 | $TOOLKIT="univ"; | |
93 | } | |
94 | else { | |
95 | $TOOLKIT="msw" | |
96 | } | |
97 | ||
98 | $WX_BASENAME = "$WXDIR\\lib\\wx$TOOLKIT"; | |
99 | $UNICODE_SUFFIX = "u"; | |
100 | $DEBUG_SUFFIX = "d"; | |
101 | ||
102 | #! compiler options: for the given configuration they are just obrained | |
103 | #! by concatenating together all relevant values from the list below | |
104 | $project{"WX_CPP_DEBUG"} = '/MDd /D "__WXDEBUG__" /D "WXDEBUG=1" '; | |
105 | $project{"WX_CPP_RELEASE"} = '/MD '; | |
106 | $project{"WX_CPP_UNICODE"} = '/D _UNICODE /D UNICODE '; | |
107 | $project{"WX_CPP_DLL"} = '/D WXUSINGDLL '; | |
108 | ||
109 | #! ... plus the config-dependent path to setup.h | |
110 | $project{"WX_SETUPH_DEBUG"} = "/I$WXDIR\\lib\\$TOOLKIT$DEBUG_SUFFIX "; | |
111 | $project{"WX_SETUPH_RELEASE"} = "/I$WXDIR\\lib\\$TOOLKIT "; | |
112 | $project{"WX_SETUPH_DEBUG_DLL"} = "/I$WXDIR\\lib\\$TOOLKIT$DLL$DEBUG_SUFFIX "; | |
113 | $project{"WX_SETUPH_RELEASE_DLL"} = "/I$WXDIR\\lib\\$TOOLKIT$DLL "; | |
114 | $project{"WX_SETUPH_DEBUG_UNICODE"} = "/I$WXDIR\\lib\\$TOOLKIT$UNICODE_SUFFIX$DEBUG_SUFFIX "; | |
115 | $project{"WX_SETUPH_RELEASE_UNICODE"} = "/I$WXDIR\\lib\\$TOOLKIT$UNICODE_SUFFIX "; | |
116 | $project{"WX_SETUPH_DEBUG_UNICODE_DLL"} = "/I$WXDIR\\lib\\$TOOLKIT$DLL$UNICODE_SUFFIX$DEBUG_SUFFIX "; | |
117 | $project{"WX_SETUPH_RELEASE_UNICODE_DLL"} = "/I$WXDIR\\lib\\$TOOLKIT$DLL$UNICODE_SUFFIX "; | |
118 | ||
119 | #! the libraries we must link with when linking against static wxWin | |
120 | #! library (DLL already includes all needed libs) | |
121 | #! | |
122 | #! FIXME: actually this should depend on the contents of setup.h! | |
123 | $EXTRA_LIBS="zlib regex"; | |
124 | if ( !Config("wxbase") ) { | |
125 | $EXTRA_LIBS.=" png jpeg tiff"; | |
126 | } | |
127 | foreach ( split(/ /, $EXTRA_LIBS) ) { | |
128 | $DEBUG_EXTRA_LIBS .= "$WXDIR\\lib\\$_.lib "; | |
129 | $RELEASE_EXTRA_LIBS .= "$WXDIR\\lib\\$_" . "d.lib "; | |
130 | } | |
131 | ||
132 | #! the wxWin lib name itself is composed from the basename with various | |
133 | #! suffixes: 'u' for Unicode, 'd' for debug and we also need the version | |
134 | #! for the DLL | |
135 | $DLL_VERSION = "232"; | |
136 | ||
137 | $project{"WX_LINK_DEBUG"} = $DEBUG_EXTRA_LIBS . "$WX_BASENAME$DEBUG_SUFFIX.lib"; | |
138 | $project{"WX_LINK_RELEASE"} = $RELEASE_EXTRA_LIBS . "$WX_BASENAME.lib"; | |
139 | $project{"WX_LINK_DEBUG_DLL"} = "$WX_BASENAME$DLL_VERSION$DEBUG_SUFFIX.lib"; | |
140 | $project{"WX_LINK_RELEASE_DLL"} = "$WX_BASENAME$DLL_VERSION.lib"; | |
141 | $project{"WX_LINK_DEBUG_UNICODE"} = $DEBUG_EXTRA_LIBS . "$WX_BASENAME$UNICODE_SUFFIX$DEBUG_SUFFIX.lib"; | |
142 | $project{"WX_LINK_RELEASE_UNICODE"} = $RELEASE_EXTRA_LIBS . "$WX_BASENAME$UNICODE_SUFFIX.lib"; | |
143 | $project{"WX_LINK_DEBUG_UNICODE_DLL"} = "$WX_BASENAME$DLL_VERSION$UNICODE_SUFFIX$DEBUG_SUFFIX.lib"; | |
144 | $project{"WX_LINK_RELEASE_UNICODE_DLL"} = "$WX_BASENAME$DLL_VERSION$UNICODE_SUFFIX.lib"; | |
8dc52d20 VZ |
145 | } |
146 | ||
147 | $project{"VC_BASE_LINK_RELEASE"} = $vc_base_libs . $vc_link_release; | |
148 | $project{"VC_BASE_LINK_DEBUG"} = $vc_base_libs . $vc_link_debug; | |
149 | $tmake_libs = Project('TMAKE_LIBS') ? (Project('TMAKE_LIBS') . " ") : ""; | |
150 | $project{"VC_LINK_RELEASE"} = $vc_base_libs . $tmake_libs . $vc_link_release; | |
151 | $project{"VC_LINK_DEBUG"} = $vc_base_libs . $tmake_libs . $vc_link_debug; | |
152 | ||
153 | $vc_cpp_opt_common1 = '/nologo /W4 '; | |
154 | ||
0797afee | 155 | $vc_cpp_opt_release = $vc_cpp_opt_common1 . '/O2 '; |
8dc52d20 VZ |
156 | $vc_cpp_opt_debug = $vc_cpp_opt_common1 . '/Zi /Od '; |
157 | $vc_cpp_opt_common = '/YX /FD /c'; | |
158 | $project{"VC_BASE_CPP_RELEASE"} = $vc_cpp_opt_release . $vc_cpp_def_release . $vc_cpp_opt_common; | |
159 | $project{"VC_BASE_CPP_DEBUG"} = $vc_cpp_opt_debug . $vc_cpp_def_debug . $vc_cpp_opt_common; | |
160 | ExpandGlue("INCPATH",'/I "','" /I "','"'); | |
161 | if ( $text ne "" ) { $vc_inc = $text . " "; $text = ""; } else { $vc_inc = ""; } | |
162 | ExpandGlue("DEFINES",'/D "','" /D "','"'); | |
163 | if ( $text ne "" ) { $vc_def = $text . " "; $text = ""; } else { $vc_def = ""; } | |
164 | if ( Config("wx") ) { | |
165 | #! define wxWindows compilation flags | |
0797afee | 166 | $vc_def .= '/D WIN32 /D WINVER=0x400 /D _MT '; |
8dc52d20 VZ |
167 | |
168 | if ( Config("wxbase") ) { | |
169 | $vc_def .= '/D wxUSE_GUI=0 '; | |
170 | } | |
171 | else { | |
172 | $vc_def .= '/D wxUSE_GUI=1 '; | |
0797afee VZ |
173 | |
174 | if ( Config("wxuniv") ) { | |
175 | $vc_def .= '/D "__WXUNIVERSAL__" '; | |
0797afee | 176 | } |
8dc52d20 VZ |
177 | } |
178 | } | |
0797afee VZ |
179 | else { |
180 | $vc_inc_debug = | |
181 | $vc_inc_release = ""; | |
182 | } | |
8dc52d20 VZ |
183 | |
184 | $project{"VC_CPP_INCLUDE"} = $vc_inc; | |
0797afee VZ |
185 | $project{"VC_CPP_RELEASE"} = $vc_cpp_opt_release . $vc_inc . $vc_inc_release . $vc_cpp_def_release . $vc_def . $vc_cpp_opt_common; |
186 | $project{"VC_CPP_DEBUG"} = $vc_cpp_opt_debug . $vc_inc . $vc_inc_debug . $vc_cpp_def_debug . $vc_def . $vc_cpp_opt_common; | |
8dc52d20 VZ |
187 | |
188 | if ( Project('RES_FILE') ) { | |
189 | tmake_error(".res files are not supported, use .rc."); | |
190 | } | |
191 | ||
192 | $project{"MAKEFILE"} = $project{"PROJECT"} . ".mak"; | |
193 | $project{"TARGETAPP"} = $project{"TARGET"} . ".exe"; | |
194 | Project('TMAKE_FILETAGS = HEADERS SOURCES TARGET DESTDIR $$FILETAGS'); | |
195 | foreach ( split(/\s/,Project('TMAKE_FILETAGS')) ) { | |
196 | $project{$_} =~ s-/-\\-g; | |
197 | } | |
198 | StdInit(); | |
199 | if ( defined($project{"DESTDIR"}) ) { | |
200 | $project{"TARGETAPP"} = $project{"DESTDIR"} . "\\" . $project{"TARGETAPP"}; | |
201 | $project{"TARGETAPP"} =~ s/\\+/\\/g; | |
202 | } | |
203 | %all_files = (); | |
204 | @files = split(/\s+/,$project{"HEADERS"}); | |
205 | foreach ( @files ) { $all_files{$_} = "h" }; | |
206 | @files = split(/\s+/,$project{"SOURCES"}); | |
207 | foreach ( @files ) { $all_files{$_} = "s" }; | |
208 | @files = split(/\s+/,$project{"RC_FILE"}); | |
209 | foreach ( @files ) { $all_files{$_} = "r" }; | |
210 | ||
8dc52d20 VZ |
211 | %file_names = (); |
212 | foreach $f ( %all_files ) { | |
213 | $n = $f; | |
214 | $n =~ s/^.*\\//; | |
215 | $file_names{$n} = $f; | |
216 | $file_path{$n} = ".\\" . $f; | |
217 | $file_path2{$n} = (($f =~ /^\./) ? "" : ".\\") . $f; | |
218 | } | |
219 | ||
220 | #$} | |
221 | # Microsoft Developer Studio Project File - #$ Substitute('Name="$$TARGET" - Package Owner=<4>'); | |
222 | # Microsoft Developer Studio Generated Build File, Format Version 6.00 | |
223 | # ** DO NOT EDIT ** | |
224 | ||
225 | # TARGTYPE #$ Substitute('"$$VC_PROJ_TYPE" $$VC_PROJ_CODE'); | |
226 | ||
227 | CFG=#$ Substitute('$$TARGET - Win32 Debug'); | |
228 | !MESSAGE This is not a valid makefile. To build this project using NMAKE, | |
229 | !MESSAGE use the Export Makefile command and run | |
230 | !MESSAGE | |
231 | !MESSAGE NMAKE /f "#$ ExpandGlue('MAKEFILE','','','".'); | |
232 | !MESSAGE | |
233 | !MESSAGE You can specify a configuration when running NMAKE | |
234 | !MESSAGE by defining the macro CFG on the command line. For example: | |
235 | !MESSAGE | |
236 | !MESSAGE NMAKE /f #$ Substitute('"$$MAKEFILE" CFG="$$TARGET - Win32 Debug"'); | |
237 | !MESSAGE | |
238 | !MESSAGE Possible choices for configuration are: | |
239 | !MESSAGE | |
8dc52d20 | 240 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Debug" (based on "$$VC_PROJ_TYPE")'); |
89d25d58 VZ |
241 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Release" (based on "$$VC_PROJ_TYPE")'); |
242 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Debug DLL" (based on "$$VC_PROJ_TYPE")'); | |
243 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Release DLL" (based on "$$VC_PROJ_TYPE")'); | |
244 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Debug Unicode" (based on "$$VC_PROJ_TYPE")'); | |
245 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Release Unicode" (based on "$$VC_PROJ_TYPE")'); | |
246 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Debug Unicode DLL" (based on "$$VC_PROJ_TYPE")'); | |
247 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Release Unicode DLL" (based on "$$VC_PROJ_TYPE")'); | |
8dc52d20 VZ |
248 | !MESSAGE |
249 | ||
250 | # Begin Project | |
251 | # PROP Scc_ProjName "" | |
252 | # PROP Scc_LocalPath "" | |
253 | CPP=cl.exe | |
254 | #$ Config("windows") && ($text='MTL=midl.exe'); | |
255 | RSC=rc.exe | |
256 | ||
89d25d58 VZ |
257 | !IF "$(CFG)" == #$ Substitute('"$$TARGET - Win32 Debug"'); |
258 | ||
259 | # PROP BASE Use_MFC 0 | |
260 | # PROP BASE Use_Debug_Libraries 1 | |
261 | # PROP BASE Output_Dir #$ $text = "\"${KIND}Debug\"" | |
262 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}Debug\"" | |
263 | # PROP BASE Target_Dir "" | |
264 | # PROP Use_MFC 0 | |
265 | # PROP Use_Debug_Libraries 1 | |
266 | # PROP Output_Dir #$ $text = "\"${KIND}Debug\"" | |
267 | # PROP Intermediate_Dir #$ $text = "\"${KIND}Debug\"" | |
268 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); | |
269 | # PROP Target_Dir "" | |
270 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG"); | |
271 | # ADD CPP #$ $text = "'$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_SETUPH_DEBUG'}'"; | |
272 | #$ Config("windows") || DisableOutput(); | |
273 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
274 | # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
275 | #$ Config("windows") || EnableOutput(); | |
276 | # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
277 | # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
278 | BSC32=bscmake.exe | |
279 | # ADD BASE BSC32 /nologo | |
280 | # ADD BSC32 /nologo | |
281 | LINK32=link.exe | |
282 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG"); | |
283 | # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG'}"; | |
284 | ||
285 | !ELSEIF "$(CFG)" == #$ Substitute('"$$TARGET - Win32 Release"'); | |
286 | ||
287 | # PROP BASE Use_MFC 0 | |
288 | # PROP BASE Use_Debug_Libraries 0 | |
289 | # PROP BASE Output_Dir #$ $text = "\"${KIND}Release\"" | |
290 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}Release\"" | |
291 | # PROP BASE Target_Dir "" | |
292 | # PROP Use_MFC 0 | |
293 | # PROP Use_Debug_Libraries 0 | |
294 | # PROP Output_Dir #$ $text = "\"${KIND}Release\"" | |
295 | # PROP Intermediate_Dir #$ $text = "\"${KIND}Release\"" | |
296 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); | |
297 | # PROP Target_Dir "" | |
298 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE"); | |
299 | # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_SETUPH_RELEASE'}"; | |
300 | #$ Config("windows") || DisableOutput(); | |
301 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
302 | # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
303 | #$ Config("windows") || EnableOutput(); | |
304 | # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
305 | # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
306 | BSC32=bscmake.exe | |
307 | # ADD BASE BSC32 /nologo | |
308 | # ADD BSC32 /nologo | |
309 | LINK32=link.exe | |
310 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE"); | |
311 | # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE'}"; | |
312 | ||
313 | !ELSEIF "$(CFG)" == #$ Substitute('"$$TARGET - Win32 Debug DLL"'); | |
314 | ||
315 | # PROP BASE Use_MFC 0 | |
316 | # PROP BASE Use_Debug_Libraries 1 | |
317 | # PROP BASE Output_Dir #$ $text = "\"${KIND}DebugDll\"" | |
318 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugDll\"" | |
319 | # PROP BASE Target_Dir "" | |
320 | # PROP Use_MFC 0 | |
321 | # PROP Use_Debug_Libraries 1 | |
322 | # PROP Output_Dir #$ $text = "\"${KIND}DebugDll\"" | |
323 | # PROP Intermediate_Dir #$ $text = "\"${KIND}DebugDll\"" | |
324 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); | |
325 | # PROP Target_Dir "" | |
326 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG"); | |
327 | # ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_CPP_DLL'} $project{'WX_SETUPH_DEBUG_DLL'}"; | |
328 | #$ Config("windows") || DisableOutput(); | |
329 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
330 | # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
331 | #$ Config("windows") || EnableOutput(); | |
332 | # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
333 | # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
334 | BSC32=bscmake.exe | |
335 | # ADD BASE BSC32 /nologo | |
336 | # ADD BSC32 /nologo | |
337 | LINK32=link.exe | |
338 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG"); | |
339 | # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_DLL'}"; | |
340 | ||
341 | !ELSEIF "$(CFG)" == #$ Substitute('"$$TARGET - Win32 Release DLL"'); | |
8dc52d20 VZ |
342 | |
343 | # PROP BASE Use_MFC 0 | |
344 | # PROP BASE Use_Debug_Libraries 0 | |
89d25d58 VZ |
345 | # PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseDll\"" |
346 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseDll\"" | |
8dc52d20 VZ |
347 | # PROP BASE Target_Dir "" |
348 | # PROP Use_MFC 0 | |
349 | # PROP Use_Debug_Libraries 0 | |
89d25d58 VZ |
350 | # PROP Output_Dir #$ $text = "\"${KIND}ReleaseDll\"" |
351 | # PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseDll\"" | |
8dc52d20 VZ |
352 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); |
353 | # PROP Target_Dir "" | |
354 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE"); | |
89d25d58 | 355 | # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_CPP_DLL'} $project{'WX_SETUPH_RELEASE_DLL'}"; |
8dc52d20 VZ |
356 | #$ Config("windows") || DisableOutput(); |
357 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
358 | # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
359 | #$ Config("windows") || EnableOutput(); | |
360 | # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
361 | # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
362 | BSC32=bscmake.exe | |
363 | # ADD BASE BSC32 /nologo | |
364 | # ADD BSC32 /nologo | |
365 | LINK32=link.exe | |
366 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE"); | |
89d25d58 | 367 | # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_DLL'}"; |
8dc52d20 | 368 | |
89d25d58 | 369 | !ELSEIF "$(CFG)" == #$ Substitute('"$$TARGET - Win32 Debug Unicode"'); |
8dc52d20 VZ |
370 | |
371 | # PROP BASE Use_MFC 0 | |
372 | # PROP BASE Use_Debug_Libraries 1 | |
89d25d58 VZ |
373 | # PROP BASE Output_Dir #$ $text = "\"${KIND}DebugUnicode\"" |
374 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugUnicode\"" | |
8dc52d20 VZ |
375 | # PROP BASE Target_Dir "" |
376 | # PROP Use_MFC 0 | |
377 | # PROP Use_Debug_Libraries 1 | |
89d25d58 VZ |
378 | # PROP Output_Dir #$ $text = "\"${KIND}DebugUnicode\"" |
379 | # PROP Intermediate_Dir #$ $text = "\"${KIND}DebugUnicode\"" | |
8dc52d20 VZ |
380 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); |
381 | # PROP Target_Dir "" | |
382 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG"); | |
89d25d58 | 383 | # ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_CPP_UNICODE'} $project{'WX_SETUPH_DEBUG_UNICODE'}"; |
8dc52d20 VZ |
384 | #$ Config("windows") || DisableOutput(); |
385 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
386 | # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
387 | #$ Config("windows") || EnableOutput(); | |
388 | # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
389 | # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
390 | BSC32=bscmake.exe | |
391 | # ADD BASE BSC32 /nologo | |
392 | # ADD BSC32 /nologo | |
393 | LINK32=link.exe | |
394 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG"); | |
89d25d58 VZ |
395 | # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_UNICODE'}"; |
396 | ||
397 | !ELSEIF "$(CFG)" == #$ Substitute('"$$TARGET - Win32 Release Unicode"'); | |
398 | ||
399 | # PROP BASE Use_MFC 0 | |
400 | # PROP BASE Use_Debug_Libraries 0 | |
401 | # PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseUnicode\"" | |
402 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicode\"" | |
403 | # PROP BASE Target_Dir "" | |
404 | # PROP Use_MFC 0 | |
405 | # PROP Use_Debug_Libraries 0 | |
406 | # PROP Output_Dir #$ $text = "\"${KIND}ReleaseUnicode\"" | |
407 | # PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicode\"" | |
408 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); | |
409 | # PROP Target_Dir "" | |
410 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE"); | |
411 | # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_CPP_UNICODE'} $project{'WX_SETUPH_RELEASE_UNICODE'}"; | |
412 | #$ Config("windows") || DisableOutput(); | |
413 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
414 | # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
415 | #$ Config("windows") || EnableOutput(); | |
416 | # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
417 | # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
418 | BSC32=bscmake.exe | |
419 | # ADD BASE BSC32 /nologo | |
420 | # ADD BSC32 /nologo | |
421 | LINK32=link.exe | |
422 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE"); | |
423 | # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_UNICODE'}"; | |
424 | ||
425 | !ELSEIF "$(CFG)" == #$ Substitute('"$$TARGET - Win32 Debug Unicode DLL"'); | |
426 | ||
427 | # PROP BASE Use_MFC 0 | |
428 | # PROP BASE Use_Debug_Libraries 1 | |
429 | # PROP BASE Output_Dir #$ $text = "\"${KIND}DebugUnicodeDll\"" | |
430 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugUnicodeDll\"" | |
431 | # PROP BASE Target_Dir "" | |
432 | # PROP Use_MFC 0 | |
433 | # PROP Use_Debug_Libraries 1 | |
434 | # PROP Output_Dir #$ $text = "\"${KIND}DebugUnicodeDll\"" | |
435 | # PROP Intermediate_Dir #$ $text = "\"${KIND}DebugUnicodeDll\"" | |
436 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); | |
437 | # PROP Target_Dir "" | |
438 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG"); | |
439 | # ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_CPP_DLL'} $project{'WX_CPP_UNICODE'} $project{'WX_SETUPH_DEBUG_UNICODE_DLL'}"; | |
440 | #$ Config("windows") || DisableOutput(); | |
441 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
442 | # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
443 | #$ Config("windows") || EnableOutput(); | |
444 | # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
445 | # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
446 | BSC32=bscmake.exe | |
447 | # ADD BASE BSC32 /nologo | |
448 | # ADD BSC32 /nologo | |
449 | LINK32=link.exe | |
450 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG"); | |
451 | # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_UNICODE_DLL'}"; | |
452 | ||
453 | !ELSEIF "$(CFG)" == #$ Substitute('"$$TARGET - Win32 Release Unicode DLL"'); | |
454 | ||
455 | # PROP BASE Use_MFC 0 | |
456 | # PROP BASE Use_Debug_Libraries 0 | |
457 | # PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\"" | |
458 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\"" | |
459 | # PROP BASE Target_Dir "" | |
460 | # PROP Use_MFC 0 | |
461 | # PROP Use_Debug_Libraries 0 | |
462 | # PROP Output_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\"" | |
463 | # PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\"" | |
464 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); | |
465 | # PROP Target_Dir "" | |
466 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE"); | |
467 | # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_CPP_DLL'} $project{'WX_CPP_UNICODE'} $project{'WX_SETUPH_RELEASE_UNICODE_DLL'}"; | |
468 | #$ Config("windows") || DisableOutput(); | |
469 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
470 | # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
471 | #$ Config("windows") || EnableOutput(); | |
472 | # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
473 | # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
474 | BSC32=bscmake.exe | |
475 | # ADD BASE BSC32 /nologo | |
476 | # ADD BSC32 /nologo | |
477 | LINK32=link.exe | |
478 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE"); | |
479 | # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_UNICODE_DLL'}"; | |
8dc52d20 VZ |
480 | |
481 | !ENDIF | |
482 | ||
483 | # Begin Target | |
484 | ||
89d25d58 VZ |
485 | # Name #$ Substitute('"$$TARGET - Win32 Debug"'); |
486 | # Name #$ Substitute('"$$TARGET - Win32 Release"'); | |
487 | # Name #$ Substitute('"$$TARGET - Win32 Debug DLL"'); | |
488 | # Name #$ Substitute('"$$TARGET - Win32 Release DLL"'); | |
489 | # Name #$ Substitute('"$$TARGET - Win32 Debug Unicode"'); | |
490 | # Name #$ Substitute('"$$TARGET - Win32 Release Unicode"'); | |
491 | # Name #$ Substitute('"$$TARGET - Win32 Debug Unicode DLL"'); | |
492 | # Name #$ Substitute('"$$TARGET - Win32 Release Unicode DLL"'); | |
8dc52d20 VZ |
493 | #${ |
494 | foreach $n ( sort keys %file_names ) { | |
495 | $f = $file_names{$n}; | |
496 | $p = $file_path{$n}; | |
497 | $t = $all_files{$f}; | |
498 | if ( $t eq "s" || $t eq "h" || $t eq "r" ) { | |
499 | $text .= "# Begin Source File\n\nSOURCE=$file_path{$n}\n"; | |
500 | $text .= "# End Source File\n"; | |
501 | } | |
502 | } | |
503 | chop $text; | |
504 | #$} | |
505 | # End Target | |
506 | # End Project | |
507 | #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: |