1 #!#############################################################################
3 #! Purpose: tmake template file from which the VC++ 6.0 project file for
4 #! building wxWindows applications are generated by running
5 #! tmake -t vc6lib wxwin.pro -o wxvc.dsp
6 #! you may select the configurations to include into the generated
7 #! project file by setting WXCONFIGS tag, i.e.:
8 #! tmake ... 'WXCONFIGS += DebugUnicode ReleaseUnicode'
9 #! tmake ... 'WXCONFIGS = *'
10 #! (in the last example all configurations will be included)
11 #! Author: Vadim Zeitlin
14 #!#############################################################################
16 #! what kind of app are we building - this is used as prefix for the build
20 if ( Config("wxbase") || Config("wxuniv") ) {
21 Project('CONFIG += wx');
23 if ( Config("wx") && !Config("wxbase") ) {
24 Project('CONFIG += windows');
27 #! let's be smart: if no extension is given, add .lib (this allows for
28 #! LIBS=libname in project files which map either to -l libname.lib under
29 #! Windows or to -llibname under Unix).
30 @libs = split(/\s+/, Project('LIBS'));
31 foreach $lib (@libs) {
32 if ( $lib !~ "\.lib\$" ) { $lib .= ".lib"; }
33 Project('TMAKE_LIBS *= ' . $lib);
36 if ( Config("windows") ) {
37 $project{"VC_PROJ_TYPE"} = 'Win32 (x86) Application';
38 $project{"VC_PROJ_CODE"} = '0x0101';
39 $vc_base_libs = 'kernel32.lib user32.lib gdi32.lib winspool.lib ' .
40 'comdlg32.lib advapi32.lib shell32.lib ole32.lib ' .
41 'oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ';
43 $vc_base_libs .= "comctl32.lib rpcrt4.lib wsock32.lib ";
45 $vc_link_release .= '/nologo /subsystem:windows /machine:I386';
46 $vc_link_debug .= '/nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept';
48 $vc_cpp_def_common = '/D "WIN32" /D "_WINDOWS" /D WINVER=0x400 ';
50 $project{"VC_PROJ_TYPE"} = 'Win32 (x86) Console Application';
51 $project{"VC_PROJ_CODE"} = '0x0103';
52 $vc_base_libs = 'kernel32.lib user32.lib advapi32.lib shell32.lib ';
54 $vc_base_libs .= 'wsock32.lib ';
56 $vc_link_release .= '/nologo /subsystem:console /machine:I386';
57 $vc_link_debug .= '/nologo /subsystem:console /debug /machine:I386 /pdbtype:sept';
59 $vc_cpp_def_common = '/D "WIN32" /D "_CONSOLE" ';
62 $vc_cpp_def_release = '/D "NDEBUG" ' . $vc_cpp_def_common;
63 $vc_cpp_def_debug = '/D "_DEBUG" ' . $vc_cpp_def_common;
65 foreach ( split(/ /, Project('LIBPATH')) ) {
66 $vc_link_release .= " /libpath:$_\\Release";
67 $vc_link_debug .= " /libpath:$_\\Debug";
71 #! default rel path works for all the demos and most of the samples
72 #! if no explicit path given
73 $WXDIR = Project("WXDIR") || (Project("WXDIRREL") || "..\\..");
75 AddIncludePath("$WXDIR\\include");
77 if ( !Project('WXCONFIGS') ) {
79 Project('WXCONFIGS = Debug Release DebugDll ReleaseDll');
81 elsif ( Project('WXCONFIGS') == '*' ) {
82 #! special value: generate all configs
83 Project('WXCONFIGS = Debug Release DebugDll ReleaseDll DebugUnicode ReleaseUnicode DebugUnicodeDll ReleaseUnicodeDll');
86 #! we must use !IF the first time but !ELSEIF the subsequent ones
87 Project('__IF = !IF');
89 if ( Config("wxbase") ) {
93 elsif ( Config("wxuniv") ) {
101 $WX_BASENAME = "$WXDIR\\lib\\wx$TOOLKIT";
102 $UNICODE_SUFFIX = "u";
106 #! compiler options: for the given configuration they are just obrained
107 #! by concatenating together all relevant values from the list below
108 $project{"WX_CPP_DEBUG"} = '/MDd /D "__WXDEBUG__" /D "WXDEBUG=1" ';
109 $project{"WX_CPP_RELEASE"} = '/MD ';
110 $project{"WX_CPP_UNICODE"} = '/D _UNICODE /D UNICODE ';
111 $project{"WX_CPP_DLL"} = '/D WXUSINGDLL ';
113 #! ... plus the config-dependent path to setup.h
114 $project{"WX_SETUPH_DEBUG"} = "/I$WXDIR\\lib\\$TOOLKIT$DEBUG_SUFFIX ";
115 $project{"WX_SETUPH_RELEASE"} = "/I$WXDIR\\lib\\$TOOLKIT ";
116 $project{"WX_SETUPH_DEBUG_DLL"} = "/I$WXDIR\\lib\\$TOOLKIT$DLL$DEBUG_SUFFIX ";
117 $project{"WX_SETUPH_RELEASE_DLL"} = "/I$WXDIR\\lib\\$TOOLKIT$DLL ";
118 $project{"WX_SETUPH_DEBUG_UNICODE"} = "/I$WXDIR\\lib\\$TOOLKIT$UNICODE_SUFFIX$DEBUG_SUFFIX ";
119 $project{"WX_SETUPH_RELEASE_UNICODE"} = "/I$WXDIR\\lib\\$TOOLKIT$UNICODE_SUFFIX ";
120 $project{"WX_SETUPH_DEBUG_UNICODE_DLL"} = "/I$WXDIR\\lib\\$TOOLKIT$DLL$UNICODE_SUFFIX$DEBUG_SUFFIX ";
121 $project{"WX_SETUPH_RELEASE_UNICODE_DLL"} = "/I$WXDIR\\lib\\$TOOLKIT$DLL$UNICODE_SUFFIX ";
123 #! the libraries we must link with when linking against static wxWin
124 #! library (DLL already includes all needed libs)
126 #! FIXME: actually this should depend on the contents of setup.h!
127 $EXTRA_LIBS="zlib regex";
128 if ( !Config("wxbase") ) {
129 $EXTRA_LIBS.=" png jpeg tiff";
131 foreach ( split(/ /, $EXTRA_LIBS) ) {
132 $RELEASE_EXTRA_LIBS .= "$WXDIR\\lib\\$_.lib ";
133 $DEBUG_EXTRA_LIBS .= "$WXDIR\\lib\\$_" . "d.lib ";
136 #! the wxWin lib name itself is composed from the basename with various
137 #! suffixes: 'u' for Unicode, 'd' for debug and we also need the version
139 $DLL_VERSION = "233";
141 $project{"WX_LINK_DEBUG"} = $DEBUG_EXTRA_LIBS . "$WX_BASENAME$DEBUG_SUFFIX.lib";
142 $project{"WX_LINK_RELEASE"} = $RELEASE_EXTRA_LIBS . "$WX_BASENAME.lib";
143 $project{"WX_LINK_DEBUG_DLL"} = "$WX_BASENAME$DLL_VERSION$DEBUG_SUFFIX.lib";
144 $project{"WX_LINK_RELEASE_DLL"} = "$WX_BASENAME$DLL_VERSION.lib";
145 $project{"WX_LINK_DEBUG_UNICODE"} = $DEBUG_EXTRA_LIBS . "$WX_BASENAME$UNICODE_SUFFIX$DEBUG_SUFFIX.lib";
146 $project{"WX_LINK_RELEASE_UNICODE"} = $RELEASE_EXTRA_LIBS . "$WX_BASENAME$UNICODE_SUFFIX.lib";
147 $project{"WX_LINK_DEBUG_UNICODE_DLL"} = "$WX_BASENAME$DLL_VERSION$UNICODE_SUFFIX$DEBUG_SUFFIX.lib";
148 $project{"WX_LINK_RELEASE_UNICODE_DLL"} = "$WX_BASENAME$DLL_VERSION$UNICODE_SUFFIX.lib";
151 $project{"VC_BASE_LINK_RELEASE"} = $vc_base_libs . $vc_link_release;
152 $project{"VC_BASE_LINK_DEBUG"} = $vc_base_libs . $vc_link_debug;
153 $tmake_libs = Project('TMAKE_LIBS') ? (Project('TMAKE_LIBS') . " ") : "";
154 $project{"VC_LINK_RELEASE"} = $vc_base_libs . $tmake_libs . $vc_link_release;
155 $project{"VC_LINK_DEBUG"} = $vc_base_libs . $tmake_libs . $vc_link_debug;
157 $vc_cpp_opt_common1 = '/nologo /W4 ';
159 $vc_cpp_opt_release = $vc_cpp_opt_common1 . '/O2 ';
160 $vc_cpp_opt_debug = $vc_cpp_opt_common1 . '/Zi /Od ';
161 $vc_cpp_opt_common = '/YX /FD /c';
162 $project{"VC_BASE_CPP_RELEASE"} = $vc_cpp_opt_release . $vc_cpp_def_release . $vc_cpp_opt_common;
163 $project{"VC_BASE_CPP_DEBUG"} = $vc_cpp_opt_debug . $vc_cpp_def_debug . $vc_cpp_opt_common;
164 ExpandGlue("INCPATH",'/I "','" /I "','"');
165 if ( $text ne "" ) { $vc_inc = $text . " "; $text = ""; } else { $vc_inc = ""; }
166 ExpandGlue("DEFINES",'/D "','" /D "','"');
167 if ( $text ne "" ) { $vc_def = $text . " "; $text = ""; } else { $vc_def = ""; }
168 if ( Config("wx") ) {
169 #! define wxWindows compilation flags
170 $vc_def .= '/D WIN32 /D WINVER=0x400 ';
172 if ( Config("wxbase") ) {
173 $vc_def .= '/D wxUSE_GUI=0 ';
176 $vc_def .= '/D wxUSE_GUI=1 ';
178 if ( Config("wxuniv") ) {
179 $vc_def .= '/D "__WXUNIVERSAL__" ';
185 $vc_inc_release = "";
188 $project{"VC_CPP_INCLUDE"} = $vc_inc;
189 $project{"VC_CPP_RELEASE"} = $vc_cpp_opt_release . $vc_inc . $vc_inc_release . $vc_cpp_def_release . $vc_def . $vc_cpp_opt_common;
190 $project{"VC_CPP_DEBUG"} = $vc_cpp_opt_debug . $vc_inc . $vc_inc_debug . $vc_cpp_def_debug . $vc_def . $vc_cpp_opt_common;
192 if ( Project('RES_FILE') ) {
193 tmake_error(".res files are not supported, use .rc.");
196 $project{"MAKEFILE"} = $project{"PROJECT"} . ".mak";
197 $project{"TARGETAPP"} = $project{"TARGET"} . ".exe";
198 Project('TMAKE_FILETAGS = HEADERS SOURCES TARGET DESTDIR $$FILETAGS');
199 foreach ( split(/\s/,Project('TMAKE_FILETAGS')) ) {
200 $project{$_} =~ s-/-\\-g;
203 if ( defined($project{"DESTDIR"}) ) {
204 $project{"TARGETAPP"} = $project{"DESTDIR"} . "\\" . $project{"TARGETAPP"};
205 $project{"TARGETAPP"} =~ s/\\+/\\/g;
208 @files = split(/\s+/,$project{"HEADERS"});
209 foreach ( @files ) { $all_files{$_} = "h" };
210 @files = split(/\s+/,$project{"SOURCES"});
211 foreach ( @files ) { $all_files{$_} = "s" };
212 @files = split(/\s+/,$project{"RC_FILE"});
213 foreach ( @files ) { $all_files{$_} = "r" };
216 foreach $f ( %all_files ) {
219 $file_names{$n} = $f;
220 $file_path{$n} = ".\\" . $f;
221 $file_path2{$n} = (($f =~ /^\./) ? "" : ".\\") . $f;
225 # Microsoft Developer Studio Project File - #$ Substitute('Name="$$TARGET" - Package Owner=<4>');
226 # Microsoft Developer Studio Generated Build File, Format Version 6.00
229 # TARGTYPE #$ Substitute('"$$VC_PROJ_TYPE" $$VC_PROJ_CODE');
231 CFG=#$ Substitute('$$TARGET - Win32 Debug');
232 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
233 !MESSAGE use the Export Makefile command and run
235 !MESSAGE NMAKE /f "#$ ExpandGlue('MAKEFILE','','','".');
237 !MESSAGE You can specify a configuration when running NMAKE
238 !MESSAGE by defining the macro CFG on the command line. For example:
240 !MESSAGE NMAKE /f #$ Substitute('"$$MAKEFILE" CFG="$$TARGET - Win32 Debug"');
242 !MESSAGE Possible choices for configuration are:
244 #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || DisableOutput()
245 !MESSAGE #$ Substitute('"$$TARGET - Win32 Release Unicode DLL" (based on "$$VC_PROJ_TYPE")');
246 #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || EnableOutput()
247 #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || DisableOutput()
248 !MESSAGE #$ Substitute('"$$TARGET - Win32 Debug Unicode DLL" (based on "$$VC_PROJ_TYPE")');
249 #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || EnableOutput()
250 #$ Project('WXCONFIGS') =~ '\bReleaseUnicode\b' || DisableOutput()
251 !MESSAGE #$ Substitute('"$$TARGET - Win32 Release Unicode" (based on "$$VC_PROJ_TYPE")');
252 #$ Project('WXCONFIGS') =~ '\bReleaseUnicode\b' || EnableOutput()
253 #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || DisableOutput()
254 !MESSAGE #$ Substitute('"$$TARGET - Win32 Debug Unicode" (based on "$$VC_PROJ_TYPE")');
255 #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || EnableOutput()
256 #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || DisableOutput()
257 !MESSAGE #$ Substitute('"$$TARGET - Win32 Release DLL" (based on "$$VC_PROJ_TYPE")');
258 #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || EnableOutput()
259 #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || DisableOutput()
260 !MESSAGE #$ Substitute('"$$TARGET - Win32 Debug DLL" (based on "$$VC_PROJ_TYPE")');
261 #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || EnableOutput()
262 #$ Project('WXCONFIGS') =~ '\bRelease\b' || DisableOutput()
263 !MESSAGE #$ Substitute('"$$TARGET - Win32 Release" (based on "$$VC_PROJ_TYPE")');
264 #$ Project('WXCONFIGS') =~ '\bRelease\b' || EnableOutput()
265 #$ Project('WXCONFIGS') =~ '\bDebug\b' || DisableOutput()
266 !MESSAGE #$ Substitute('"$$TARGET - Win32 Debug" (based on "$$VC_PROJ_TYPE")');
267 #$ Project('WXCONFIGS') =~ '\bDebug\b' || EnableOutput()
271 # PROP Scc_ProjName ""
272 # PROP Scc_LocalPath ""
274 #$ Config("windows") && ($text='MTL=midl.exe');
277 #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || DisableOutput()
278 #$ Substitute('$$__IF "$(CFG)" == "$$TARGET - Win32 Release Unicode DLL"');
279 #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' && Project('__IF = !ELSEIF')
281 # PROP BASE Use_MFC 0
282 # PROP BASE Use_Debug_Libraries 0
283 # PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\""
284 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\""
285 # PROP BASE Target_Dir ""
287 # PROP Use_Debug_Libraries 0
288 # PROP Output_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\""
289 # PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\""
290 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
292 # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE");
293 # 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'}";
294 #$ Config("windows") || DisableOutput();
295 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
296 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
297 #$ Config("windows") || EnableOutput();
298 # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
299 # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
301 # ADD BASE BSC32 /nologo
304 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE");
305 # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_UNICODE_DLL'}";
307 #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || EnableOutput()
308 #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || DisableOutput()
309 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug Unicode DLL"');
310 #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' && Project('__IF = !ELSEIF')
312 # PROP BASE Use_MFC 0
313 # PROP BASE Use_Debug_Libraries 1
314 # PROP BASE Output_Dir #$ $text = "\"${KIND}DebugUnicodeDll\""
315 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugUnicodeDll\""
316 # PROP BASE Target_Dir ""
318 # PROP Use_Debug_Libraries 1
319 # PROP Output_Dir #$ $text = "\"${KIND}DebugUnicodeDll\""
320 # PROP Intermediate_Dir #$ $text = "\"${KIND}DebugUnicodeDll\""
321 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
323 # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG");
324 # 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'}";
325 #$ Config("windows") || DisableOutput();
326 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
327 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
328 #$ Config("windows") || EnableOutput();
329 # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
330 # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
332 # ADD BASE BSC32 /nologo
335 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG");
336 # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_UNICODE_DLL'}";
338 #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || EnableOutput()
339 #$ Project('WXCONFIGS') =~ '\bReleaseUnicode\b' || DisableOutput()
340 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Release Unicode"');
341 #$ Project('WXCONFIGS') =~ '\bReleaseUnicode\b' && Project('__IF = !ELSEIF')
343 # PROP BASE Use_MFC 0
344 # PROP BASE Use_Debug_Libraries 0
345 # PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseUnicode\""
346 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicode\""
347 # PROP BASE Target_Dir ""
349 # PROP Use_Debug_Libraries 0
350 # PROP Output_Dir #$ $text = "\"${KIND}ReleaseUnicode\""
351 # PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicode\""
352 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
354 # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE");
355 # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_CPP_UNICODE'} $project{'WX_SETUPH_RELEASE_UNICODE'}";
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");
363 # ADD BASE BSC32 /nologo
366 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE");
367 # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_UNICODE'}";
369 #$ Project('WXCONFIGS') =~ '\bReleaseUnicode\b' || EnableOutput()
370 #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || DisableOutput()
371 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug Unicode"');
372 #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' && Project('__IF = !ELSEIF')
374 # PROP BASE Use_MFC 0
375 # PROP BASE Use_Debug_Libraries 1
376 # PROP BASE Output_Dir #$ $text = "\"${KIND}DebugUnicode\""
377 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugUnicode\""
378 # PROP BASE Target_Dir ""
380 # PROP Use_Debug_Libraries 1
381 # PROP Output_Dir #$ $text = "\"${KIND}DebugUnicode\""
382 # PROP Intermediate_Dir #$ $text = "\"${KIND}DebugUnicode\""
383 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
385 # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG");
386 # ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_CPP_UNICODE'} $project{'WX_SETUPH_DEBUG_UNICODE'}";
387 #$ Config("windows") || DisableOutput();
388 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
389 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
390 #$ Config("windows") || EnableOutput();
391 # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
392 # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
394 # ADD BASE BSC32 /nologo
397 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG");
398 # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_UNICODE'}";
400 #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || EnableOutput()
401 #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || DisableOutput()
402 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Release DLL"');
403 #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' && Project('__IF = !ELSEIF')
405 # PROP BASE Use_MFC 0
406 # PROP BASE Use_Debug_Libraries 0
407 # PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseDll\""
408 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseDll\""
409 # PROP BASE Target_Dir ""
411 # PROP Use_Debug_Libraries 0
412 # PROP Output_Dir #$ $text = "\"${KIND}ReleaseDll\""
413 # PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseDll\""
414 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
416 # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE");
417 # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_CPP_DLL'} $project{'WX_SETUPH_RELEASE_DLL'}";
418 #$ Config("windows") || DisableOutput();
419 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
420 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
421 #$ Config("windows") || EnableOutput();
422 # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
423 # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
425 # ADD BASE BSC32 /nologo
428 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE");
429 # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_DLL'}";
431 #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || EnableOutput()
432 #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || DisableOutput()
433 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug DLL"');
434 #$ Project('WXCONFIGS') =~ '\bDebugDll\b' && Project('__IF = !ELSEIF')
436 # PROP BASE Use_MFC 0
437 # PROP BASE Use_Debug_Libraries 1
438 # PROP BASE Output_Dir #$ $text = "\"${KIND}DebugDll\""
439 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugDll\""
440 # PROP BASE Target_Dir ""
442 # PROP Use_Debug_Libraries 1
443 # PROP Output_Dir #$ $text = "\"${KIND}DebugDll\""
444 # PROP Intermediate_Dir #$ $text = "\"${KIND}DebugDll\""
445 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
447 # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG");
448 # ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_CPP_DLL'} $project{'WX_SETUPH_DEBUG_DLL'}";
449 #$ Config("windows") || DisableOutput();
450 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
451 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
452 #$ Config("windows") || EnableOutput();
453 # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
454 # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
456 # ADD BASE BSC32 /nologo
459 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG");
460 # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_DLL'}";
462 #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || EnableOutput()
463 #$ Project('WXCONFIGS') =~ '\bRelease\b' || DisableOutput()
464 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Release"');
465 #$ Project('WXCONFIGS') =~ '\bRelease\b' && Project('__IF = !ELSEIF')
467 # PROP BASE Use_MFC 0
468 # PROP BASE Use_Debug_Libraries 0
469 # PROP BASE Output_Dir #$ $text = "\"${KIND}Release\""
470 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}Release\""
471 # PROP BASE Target_Dir ""
473 # PROP Use_Debug_Libraries 0
474 # PROP Output_Dir #$ $text = "\"${KIND}Release\""
475 # PROP Intermediate_Dir #$ $text = "\"${KIND}Release\""
476 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
478 # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE");
479 # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_SETUPH_RELEASE'}";
480 #$ Config("windows") || DisableOutput();
481 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
482 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
483 #$ Config("windows") || EnableOutput();
484 # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
485 # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
487 # ADD BASE BSC32 /nologo
490 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE");
491 # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE'}";
493 #$ Project('WXCONFIGS') =~ '\bRelease\b' || EnableOutput()
494 #$ Project('WXCONFIGS') =~ '\bDebug\b' || DisableOutput()
495 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug"');
496 #$ Project('WXCONFIGS') =~ '\bDebug\b' && Project('__IF = !ELSEIF')
498 # PROP BASE Use_MFC 0
499 # PROP BASE Use_Debug_Libraries 1
500 # PROP BASE Output_Dir #$ $text = "\"${KIND}Debug\""
501 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}Debug\""
502 # PROP BASE Target_Dir ""
504 # PROP Use_Debug_Libraries 1
505 # PROP Output_Dir #$ $text = "\"${KIND}Debug\""
506 # PROP Intermediate_Dir #$ $text = "\"${KIND}Debug\""
507 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
509 # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG");
510 # ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_SETUPH_DEBUG'}";
511 #$ Config("windows") || DisableOutput();
512 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
513 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
514 #$ Config("windows") || EnableOutput();
515 # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
516 # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
518 # ADD BASE BSC32 /nologo
521 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG");
522 # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG'}";
524 #$ Project('WXCONFIGS') =~ '\bDebug\b' || EnableOutput()
529 #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || DisableOutput()
530 # Name #$ Substitute('"$$TARGET - Win32 Release Unicode DLL"');
531 #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || EnableOutput()
532 #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || DisableOutput()
533 # Name #$ Substitute('"$$TARGET - Win32 Debug Unicode DLL"');
534 #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || EnableOutput()
535 #$ Project('WXCONFIGS') =~ '\bReleaseUnicode\b' || DisableOutput()
536 # Name #$ Substitute('"$$TARGET - Win32 Release Unicode"');
537 #$ Project('WXCONFIGS') =~ '\bReleaseUnicode\b' || EnableOutput()
538 #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || DisableOutput()
539 # Name #$ Substitute('"$$TARGET - Win32 Debug Unicode"');
540 #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || EnableOutput()
541 #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || DisableOutput()
542 # Name #$ Substitute('"$$TARGET - Win32 Release DLL"');
543 #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || EnableOutput()
544 #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || DisableOutput()
545 # Name #$ Substitute('"$$TARGET - Win32 Debug DLL"');
546 #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || EnableOutput()
547 #$ Project('WXCONFIGS') =~ '\bRelease\b' || DisableOutput()
548 # Name #$ Substitute('"$$TARGET - Win32 Release"');
549 #$ Project('WXCONFIGS') =~ '\bRelease\b' || EnableOutput()
550 #$ Project('WXCONFIGS') =~ '\bDebug\b' || DisableOutput()
551 # Name #$ Substitute('"$$TARGET - Win32 Debug"');
552 #$ Project('WXCONFIGS') =~ '\bDebug\b' || EnableOutput()
554 foreach $n ( sort keys %file_names ) {
555 $f = $file_names{$n};
558 if ( $t eq "s" || $t eq "h" || $t eq "r" ) {
559 $text .= "# Begin Source File\n\nSOURCE=$file_path{$n}\n";
560 $text .= "# End Source File\n";
567 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=perl: