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 ';
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') =~ '\bUnicodeDll\b' || DisableOutput()
251 !MESSAGE #$ Substitute('"$$TARGET - Win32 Release Unicode" (based on "$$VC_PROJ_TYPE")');
252 #$ Project('WXCONFIGS') =~ '\bUnicodeDll\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 #$ if ( Project('WXCONFIGS') !~ '\bReleaseUnicodeDll\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
278 #$ Substitute('$$__IF "$(CFG)" == "$$TARGET - Win32 Release Unicode DLL"');
280 # PROP BASE Use_MFC 0
281 # PROP BASE Use_Debug_Libraries 0
282 # PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\""
283 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\""
284 # PROP BASE Target_Dir ""
286 # PROP Use_Debug_Libraries 0
287 # PROP Output_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\""
288 # PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\""
289 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
291 # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE");
292 # 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'}";
293 #$ Config("windows") || DisableOutput();
294 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
295 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
296 #$ Config("windows") || EnableOutput();
297 # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
298 # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
300 # ADD BASE BSC32 /nologo
303 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE");
304 # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_UNICODE_DLL'}";
306 #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || EnableOutput()
307 #$ if ( Project('WXCONFIGS') !~ '\bDebugUnicodeDll\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
308 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug Unicode DLL"');
310 # PROP BASE Use_MFC 0
311 # PROP BASE Use_Debug_Libraries 1
312 # PROP BASE Output_Dir #$ $text = "\"${KIND}DebugUnicodeDll\""
313 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugUnicodeDll\""
314 # PROP BASE Target_Dir ""
316 # PROP Use_Debug_Libraries 1
317 # PROP Output_Dir #$ $text = "\"${KIND}DebugUnicodeDll\""
318 # PROP Intermediate_Dir #$ $text = "\"${KIND}DebugUnicodeDll\""
319 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
321 # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG");
322 # 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'}";
323 #$ Config("windows") || DisableOutput();
324 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
325 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
326 #$ Config("windows") || EnableOutput();
327 # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
328 # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
330 # ADD BASE BSC32 /nologo
333 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG");
334 # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_UNICODE_DLL'}";
336 #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || EnableOutput()
337 #$ if ( Project('WXCONFIGS') !~ '\bReleaseUnicode\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
338 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Release Unicode"');
340 # PROP BASE Use_MFC 0
341 # PROP BASE Use_Debug_Libraries 0
342 # PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseUnicode\""
343 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicode\""
344 # PROP BASE Target_Dir ""
346 # PROP Use_Debug_Libraries 0
347 # PROP Output_Dir #$ $text = "\"${KIND}ReleaseUnicode\""
348 # PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicode\""
349 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
351 # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE");
352 # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_CPP_UNICODE'} $project{'WX_SETUPH_RELEASE_UNICODE'}";
353 #$ Config("windows") || DisableOutput();
354 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
355 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
356 #$ Config("windows") || EnableOutput();
357 # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
358 # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
360 # ADD BASE BSC32 /nologo
363 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE");
364 # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_UNICODE'}";
366 #$ Project('WXCONFIGS') =~ '\bReleaseUnicode\b' || EnableOutput()
367 #$ if ( Project('WXCONFIGS') !~ '\bDebugUnicode\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
368 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug Unicode"');
370 # PROP BASE Use_MFC 0
371 # PROP BASE Use_Debug_Libraries 1
372 # PROP BASE Output_Dir #$ $text = "\"${KIND}DebugUnicode\""
373 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugUnicode\""
374 # PROP BASE Target_Dir ""
376 # PROP Use_Debug_Libraries 1
377 # PROP Output_Dir #$ $text = "\"${KIND}DebugUnicode\""
378 # PROP Intermediate_Dir #$ $text = "\"${KIND}DebugUnicode\""
379 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
381 # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG");
382 # ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_CPP_UNICODE'} $project{'WX_SETUPH_DEBUG_UNICODE'}";
383 #$ Config("windows") || DisableOutput();
384 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
385 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
386 #$ Config("windows") || EnableOutput();
387 # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
388 # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
390 # ADD BASE BSC32 /nologo
393 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG");
394 # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_UNICODE'}";
396 #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || EnableOutput()
397 #$ if ( Project('WXCONFIGS') !~ '\bReleaseDll\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
398 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Release DLL"');
400 # PROP BASE Use_MFC 0
401 # PROP BASE Use_Debug_Libraries 0
402 # PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseDll\""
403 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseDll\""
404 # PROP BASE Target_Dir ""
406 # PROP Use_Debug_Libraries 0
407 # PROP Output_Dir #$ $text = "\"${KIND}ReleaseDll\""
408 # PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseDll\""
409 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
411 # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE");
412 # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_CPP_DLL'} $project{'WX_SETUPH_RELEASE_DLL'}";
413 #$ Config("windows") || DisableOutput();
414 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
415 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
416 #$ Config("windows") || EnableOutput();
417 # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
418 # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
420 # ADD BASE BSC32 /nologo
423 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE");
424 # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_DLL'}";
426 #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || EnableOutput()
427 #$ if ( Project('WXCONFIGS') !~ '\bDebugDll\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
428 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug DLL"');
430 # PROP BASE Use_MFC 0
431 # PROP BASE Use_Debug_Libraries 1
432 # PROP BASE Output_Dir #$ $text = "\"${KIND}DebugDll\""
433 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugDll\""
434 # PROP BASE Target_Dir ""
436 # PROP Use_Debug_Libraries 1
437 # PROP Output_Dir #$ $text = "\"${KIND}DebugDll\""
438 # PROP Intermediate_Dir #$ $text = "\"${KIND}DebugDll\""
439 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
441 # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG");
442 # ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_CPP_DLL'} $project{'WX_SETUPH_DEBUG_DLL'}";
443 #$ Config("windows") || DisableOutput();
444 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
445 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
446 #$ Config("windows") || EnableOutput();
447 # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
448 # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
450 # ADD BASE BSC32 /nologo
453 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG");
454 # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_DLL'}";
456 #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || EnableOutput()
457 #$ if ( Project('WXCONFIGS') !~ '\bRelease\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
458 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Release"');
460 # PROP BASE Use_MFC 0
461 # PROP BASE Use_Debug_Libraries 0
462 # PROP BASE Output_Dir #$ $text = "\"${KIND}Release\""
463 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}Release\""
464 # PROP BASE Target_Dir ""
466 # PROP Use_Debug_Libraries 0
467 # PROP Output_Dir #$ $text = "\"${KIND}Release\""
468 # PROP Intermediate_Dir #$ $text = "\"${KIND}Release\""
469 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
471 # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE");
472 # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_SETUPH_RELEASE'}";
473 #$ Config("windows") || DisableOutput();
474 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
475 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
476 #$ Config("windows") || EnableOutput();
477 # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
478 # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE");
480 # ADD BASE BSC32 /nologo
483 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE");
484 # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE'}";
486 #$ Project('WXCONFIGS') =~ '\bRelease\b' || EnableOutput()
487 #$ if ( Project('WXCONFIGS') !~ '\bDebug\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
488 #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug"');
490 # PROP BASE Use_MFC 0
491 # PROP BASE Use_Debug_Libraries 1
492 # PROP BASE Output_Dir #$ $text = "\"${KIND}Debug\""
493 # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}Debug\""
494 # PROP BASE Target_Dir ""
496 # PROP Use_Debug_Libraries 1
497 # PROP Output_Dir #$ $text = "\"${KIND}Debug\""
498 # PROP Intermediate_Dir #$ $text = "\"${KIND}Debug\""
499 #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
501 # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG");
502 # ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_SETUPH_DEBUG'}";
503 #$ Config("windows") || DisableOutput();
504 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
505 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
506 #$ Config("windows") || EnableOutput();
507 # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
508 # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE");
510 # ADD BASE BSC32 /nologo
513 # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG");
514 # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG'}";
516 #$ Project('WXCONFIGS') =~ '\bDebug\b' || EnableOutput()
521 #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || DisableOutput()
522 # Name #$ Substitute('"$$TARGET - Win32 Release Unicode DLL"');
523 #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || EnableOutput()
524 #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || DisableOutput()
525 # Name #$ Substitute('"$$TARGET - Win32 Debug Unicode DLL"');
526 #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || EnableOutput()
527 #$ Project('WXCONFIGS') =~ '\bUnicodeDll\b' || DisableOutput()
528 # Name #$ Substitute('"$$TARGET - Win32 Release Unicode"');
529 #$ Project('WXCONFIGS') =~ '\bUnicodeDll\b' || EnableOutput()
530 #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || DisableOutput()
531 # Name #$ Substitute('"$$TARGET - Win32 Debug Unicode"');
532 #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || EnableOutput()
533 #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || DisableOutput()
534 # Name #$ Substitute('"$$TARGET - Win32 Release DLL"');
535 #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || EnableOutput()
536 #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || DisableOutput()
537 # Name #$ Substitute('"$$TARGET - Win32 Debug DLL"');
538 #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || EnableOutput()
539 #$ Project('WXCONFIGS') =~ '\bRelease\b' || DisableOutput()
540 # Name #$ Substitute('"$$TARGET - Win32 Release"');
541 #$ Project('WXCONFIGS') =~ '\bRelease\b' || EnableOutput()
542 #$ Project('WXCONFIGS') =~ '\bDebug\b' || DisableOutput()
543 # Name #$ Substitute('"$$TARGET - Win32 Debug"');
544 #$ Project('WXCONFIGS') =~ '\bDebug\b' || EnableOutput()
546 foreach $n ( sort keys %file_names ) {
547 $f = $file_names{$n};
550 if ( $t eq "s" || $t eq "h" || $t eq "r" ) {
551 $text .= "# Begin Source File\n\nSOURCE=$file_path{$n}\n";
552 $text .= "# End Source File\n";
559 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=perl: