]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/vc6app.t
added watmgl.t to Makefile
[wxWidgets.git] / distrib / msw / tmake / vc6app.t
CommitLineData
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
17533c89
VZ
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)
8dc52d20
VZ
11#! Author: Vadim Zeitlin
12#! Created: 29.09.01
13#! Version: $Id$
14#!#############################################################################
15#${
0797afee
VZ
16 #! what kind of app are we building - this is used as prefix for the build
17 #! output dir
18 $KIND="";
19
0797afee 20 if ( Config("wxbase") || Config("wxuniv") ) {
8dc52d20
VZ
21 Project('CONFIG += wx');
22 }
17533c89
VZ
23 if ( Config("wx") && !Config("wxbase") ) {
24 Project('CONFIG += windows');
25 }
8dc52d20 26
8dc52d20 27 #! let's be smart: if no extension is given, add .lib (this allows for
89d25d58
VZ
28 #! LIBS=libname in project files which map either to -l libname.lib under
29 #! Windows or to -llibname under Unix).
8dc52d20
VZ
30 @libs = split(/\s+/, Project('LIBS'));
31 foreach $lib (@libs) {
32 if ( $lib !~ "\.lib\$" ) { $lib .= ".lib"; }
33 Project('TMAKE_LIBS *= ' . $lib);
34 }
35
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 ';
42 if ( Config("wx") ) {
43 $vc_base_libs .= "comctl32.lib rpcrt4.lib wsock32.lib ";
8dc52d20
VZ
44 }
45 $vc_link_release .= '/nologo /subsystem:windows /machine:I386';
46 $vc_link_debug .= '/nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept';
47
89d25d58 48 $vc_cpp_def_common = '/D "WIN32" /D "_WINDOWS" /D WINVER=0x400 ';
8dc52d20
VZ
49 } else {
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 ';
53 if ( Config("wx") ) {
54 $vc_base_libs .= 'wsock32.lib ';
8dc52d20
VZ
55 }
56 $vc_link_release .= '/nologo /subsystem:console /machine:I386';
57 $vc_link_debug .= '/nologo /subsystem:console /debug /machine:I386 /pdbtype:sept';
58
89d25d58 59 $vc_cpp_def_common = '/D "WIN32" /D "_CONSOLE" ';
8dc52d20
VZ
60 }
61
89d25d58
VZ
62 $vc_cpp_def_release = '/D "NDEBUG" ' . $vc_cpp_def_common;
63 $vc_cpp_def_debug = '/D "_DEBUG" ' . $vc_cpp_def_common;
64
8dc52d20
VZ
65 foreach ( split(/ /, Project('LIBPATH')) ) {
66 $vc_link_release .= " /libpath:$_\\Release";
67 $vc_link_debug .= " /libpath:$_\\Debug";
68 }
69
8dc52d20 70 if ( Config("wx") ) {
2aabc7da
VZ
71 #! default rel path works for all the demos and most of the samples
72 #! if no explicit path given
a53e32df 73 $WXDIR = Project("WXDIR") || (Project("WXDIRREL") || "..\\..");
2aabc7da
VZ
74
75 AddIncludePath("$WXDIR\\include");
76
17533c89
VZ
77 if ( !Project('WXCONFIGS') ) {
78 #! default value
79 Project('WXCONFIGS = Debug Release DebugDll ReleaseDll');
80 }
81 elsif ( Project('WXCONFIGS') == '*' ) {
82 #! special value: generate all configs
83 Project('WXCONFIGS = Debug Release DebugDll ReleaseDll DebugUnicode ReleaseUnicode DebugUnicodeDll ReleaseUnicodeDll');
84 }
85
86 #! we must use !IF the first time but !ELSEIF the subsequent ones
87 Project('__IF = !IF');
88
89d25d58
VZ
89 if ( Config("wxbase") ) {
90 $KIND="Base";
91 $TOOLKIT="base";
92 }
93 elsif ( Config("wxuniv") ) {
94 $KIND="Univ";
95 $TOOLKIT="univ";
96 }
97 else {
98 $TOOLKIT="msw"
99 }
100
101 $WX_BASENAME = "$WXDIR\\lib\\wx$TOOLKIT";
102 $UNICODE_SUFFIX = "u";
103 $DEBUG_SUFFIX = "d";
5e46051f 104 $DLL = "dll";
89d25d58
VZ
105
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 ';
112
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 ";
122
123 #! the libraries we must link with when linking against static wxWin
124 #! library (DLL already includes all needed libs)
125 #!
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";
130 }
131 foreach ( split(/ /, $EXTRA_LIBS) ) {
85f7ec57
VZ
132 $RELEASE_EXTRA_LIBS .= "$WXDIR\\lib\\$_.lib ";
133 $DEBUG_EXTRA_LIBS .= "$WXDIR\\lib\\$_" . "d.lib ";
89d25d58
VZ
134 }
135
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
138 #! for the DLL
2557f8d8 139 $DLL_VERSION = "233";
89d25d58
VZ
140
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";
8dc52d20
VZ
149 }
150
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;
156
157 $vc_cpp_opt_common1 = '/nologo /W4 ';
158
0797afee 159 $vc_cpp_opt_release = $vc_cpp_opt_common1 . '/O2 ';
8dc52d20
VZ
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
8976cbbc 170 $vc_def .= '/D WIN32 /D WINVER=0x400 ';
8dc52d20
VZ
171
172 if ( Config("wxbase") ) {
173 $vc_def .= '/D wxUSE_GUI=0 ';
174 }
175 else {
176 $vc_def .= '/D wxUSE_GUI=1 ';
0797afee
VZ
177
178 if ( Config("wxuniv") ) {
179 $vc_def .= '/D "__WXUNIVERSAL__" ';
0797afee 180 }
8dc52d20
VZ
181 }
182 }
0797afee
VZ
183 else {
184 $vc_inc_debug =
185 $vc_inc_release = "";
186 }
8dc52d20
VZ
187
188 $project{"VC_CPP_INCLUDE"} = $vc_inc;
0797afee
VZ
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;
8dc52d20
VZ
191
192 if ( Project('RES_FILE') ) {
193 tmake_error(".res files are not supported, use .rc.");
194 }
195
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;
201 }
202 StdInit();
203 if ( defined($project{"DESTDIR"}) ) {
204 $project{"TARGETAPP"} = $project{"DESTDIR"} . "\\" . $project{"TARGETAPP"};
205 $project{"TARGETAPP"} =~ s/\\+/\\/g;
206 }
207 %all_files = ();
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" };
214
8dc52d20
VZ
215 %file_names = ();
216 foreach $f ( %all_files ) {
217 $n = $f;
218 $n =~ s/^.*\\//;
219 $file_names{$n} = $f;
220 $file_path{$n} = ".\\" . $f;
221 $file_path2{$n} = (($f =~ /^\./) ? "" : ".\\") . $f;
222 }
223
224#$}
225# Microsoft Developer Studio Project File - #$ Substitute('Name="$$TARGET" - Package Owner=<4>');
226# Microsoft Developer Studio Generated Build File, Format Version 6.00
227# ** DO NOT EDIT **
228
229# TARGTYPE #$ Substitute('"$$VC_PROJ_TYPE" $$VC_PROJ_CODE');
230
231CFG=#$ 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
234!MESSAGE
235!MESSAGE NMAKE /f "#$ ExpandGlue('MAKEFILE','','','".');
236!MESSAGE
237!MESSAGE You can specify a configuration when running NMAKE
238!MESSAGE by defining the macro CFG on the command line. For example:
239!MESSAGE
240!MESSAGE NMAKE /f #$ Substitute('"$$MAKEFILE" CFG="$$TARGET - Win32 Debug"');
241!MESSAGE
242!MESSAGE Possible choices for configuration are:
243!MESSAGE
17533c89 244#$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || DisableOutput()
89d25d58 245!MESSAGE #$ Substitute('"$$TARGET - Win32 Release Unicode DLL" (based on "$$VC_PROJ_TYPE")');
17533c89
VZ
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()
8dc52d20
VZ
268!MESSAGE
269
270# Begin Project
271# PROP Scc_ProjName ""
272# PROP Scc_LocalPath ""
273CPP=cl.exe
274#$ Config("windows") && ($text='MTL=midl.exe');
275RSC=rc.exe
276
17533c89
VZ
277#$ if ( Project('WXCONFIGS') !~ '\bReleaseUnicodeDll\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
278#$ Substitute('$$__IF "$(CFG)" == "$$TARGET - Win32 Release Unicode DLL"');
89d25d58
VZ
279
280# PROP BASE Use_MFC 0
281# PROP BASE Use_Debug_Libraries 0
17533c89
VZ
282# PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\""
283# PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\""
89d25d58
VZ
284# PROP BASE Target_Dir ""
285# PROP Use_MFC 0
286# PROP Use_Debug_Libraries 0
17533c89
VZ
287# PROP Output_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\""
288# PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\""
89d25d58
VZ
289#$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
290# PROP Target_Dir ""
291# ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE");
17533c89 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'}";
89d25d58
VZ
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");
299BSC32=bscmake.exe
300# ADD BASE BSC32 /nologo
301# ADD BSC32 /nologo
302LINK32=link.exe
303# ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE");
17533c89 304# ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_UNICODE_DLL'}";
89d25d58 305
17533c89
VZ
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"');
89d25d58
VZ
309
310# PROP BASE Use_MFC 0
311# PROP BASE Use_Debug_Libraries 1
17533c89
VZ
312# PROP BASE Output_Dir #$ $text = "\"${KIND}DebugUnicodeDll\""
313# PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugUnicodeDll\""
89d25d58
VZ
314# PROP BASE Target_Dir ""
315# PROP Use_MFC 0
316# PROP Use_Debug_Libraries 1
17533c89
VZ
317# PROP Output_Dir #$ $text = "\"${KIND}DebugUnicodeDll\""
318# PROP Intermediate_Dir #$ $text = "\"${KIND}DebugUnicodeDll\""
89d25d58
VZ
319#$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
320# PROP Target_Dir ""
321# ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG");
17533c89 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'}";
89d25d58
VZ
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");
329BSC32=bscmake.exe
330# ADD BASE BSC32 /nologo
331# ADD BSC32 /nologo
332LINK32=link.exe
333# ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG");
17533c89 334# ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_UNICODE_DLL'}";
89d25d58 335
17533c89
VZ
336#$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || EnableOutput()
337#$ if ( Project('WXCONFIGS') !~ '\bReleaseUnicode\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
338#$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Release Unicode"');
8dc52d20
VZ
339
340# PROP BASE Use_MFC 0
341# PROP BASE Use_Debug_Libraries 0
17533c89
VZ
342# PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseUnicode\""
343# PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicode\""
8dc52d20
VZ
344# PROP BASE Target_Dir ""
345# PROP Use_MFC 0
346# PROP Use_Debug_Libraries 0
17533c89
VZ
347# PROP Output_Dir #$ $text = "\"${KIND}ReleaseUnicode\""
348# PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicode\""
8dc52d20
VZ
349#$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
350# PROP Target_Dir ""
351# ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE");
17533c89 352# ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_CPP_UNICODE'} $project{'WX_SETUPH_RELEASE_UNICODE'}";
8dc52d20
VZ
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");
359BSC32=bscmake.exe
360# ADD BASE BSC32 /nologo
361# ADD BSC32 /nologo
362LINK32=link.exe
363# ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE");
17533c89 364# ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_UNICODE'}";
8dc52d20 365
17533c89
VZ
366#$ Project('WXCONFIGS') =~ '\bReleaseUnicode\b' || EnableOutput()
367#$ if ( Project('WXCONFIGS') !~ '\bDebugUnicode\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
368#$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug Unicode"');
8dc52d20
VZ
369
370# PROP BASE Use_MFC 0
371# PROP BASE Use_Debug_Libraries 1
89d25d58
VZ
372# PROP BASE Output_Dir #$ $text = "\"${KIND}DebugUnicode\""
373# PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugUnicode\""
8dc52d20
VZ
374# PROP BASE Target_Dir ""
375# PROP Use_MFC 0
376# PROP Use_Debug_Libraries 1
89d25d58
VZ
377# PROP Output_Dir #$ $text = "\"${KIND}DebugUnicode\""
378# PROP Intermediate_Dir #$ $text = "\"${KIND}DebugUnicode\""
8dc52d20
VZ
379#$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
380# PROP Target_Dir ""
381# ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG");
89d25d58 382# ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_CPP_UNICODE'} $project{'WX_SETUPH_DEBUG_UNICODE'}";
8dc52d20
VZ
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");
389BSC32=bscmake.exe
390# ADD BASE BSC32 /nologo
391# ADD BSC32 /nologo
392LINK32=link.exe
393# ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG");
89d25d58
VZ
394# ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_UNICODE'}";
395
17533c89
VZ
396#$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || EnableOutput()
397#$ if ( Project('WXCONFIGS') !~ '\bReleaseDll\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
398#$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Release DLL"');
89d25d58
VZ
399
400# PROP BASE Use_MFC 0
401# PROP BASE Use_Debug_Libraries 0
17533c89
VZ
402# PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseDll\""
403# PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseDll\""
89d25d58
VZ
404# PROP BASE Target_Dir ""
405# PROP Use_MFC 0
406# PROP Use_Debug_Libraries 0
17533c89
VZ
407# PROP Output_Dir #$ $text = "\"${KIND}ReleaseDll\""
408# PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseDll\""
89d25d58
VZ
409#$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
410# PROP Target_Dir ""
411# ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE");
17533c89 412# ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_CPP_DLL'} $project{'WX_SETUPH_RELEASE_DLL'}";
89d25d58
VZ
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");
419BSC32=bscmake.exe
420# ADD BASE BSC32 /nologo
421# ADD BSC32 /nologo
422LINK32=link.exe
423# ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE");
17533c89 424# ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_DLL'}";
89d25d58 425
17533c89
VZ
426#$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || EnableOutput()
427#$ if ( Project('WXCONFIGS') !~ '\bDebugDll\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
428#$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug DLL"');
89d25d58
VZ
429
430# PROP BASE Use_MFC 0
431# PROP BASE Use_Debug_Libraries 1
17533c89
VZ
432# PROP BASE Output_Dir #$ $text = "\"${KIND}DebugDll\""
433# PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugDll\""
89d25d58
VZ
434# PROP BASE Target_Dir ""
435# PROP Use_MFC 0
436# PROP Use_Debug_Libraries 1
17533c89
VZ
437# PROP Output_Dir #$ $text = "\"${KIND}DebugDll\""
438# PROP Intermediate_Dir #$ $text = "\"${KIND}DebugDll\""
89d25d58
VZ
439#$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
440# PROP Target_Dir ""
441# ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG");
17533c89 442# ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_CPP_DLL'} $project{'WX_SETUPH_DEBUG_DLL'}";
89d25d58
VZ
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");
449BSC32=bscmake.exe
450# ADD BASE BSC32 /nologo
451# ADD BSC32 /nologo
452LINK32=link.exe
453# ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG");
17533c89 454# ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_DLL'}";
89d25d58 455
17533c89
VZ
456#$ Project('WXCONFIGS') =~ '\bDebugDll\b' || EnableOutput()
457#$ if ( Project('WXCONFIGS') !~ '\bRelease\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
458#$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Release"');
89d25d58
VZ
459
460# PROP BASE Use_MFC 0
461# PROP BASE Use_Debug_Libraries 0
17533c89
VZ
462# PROP BASE Output_Dir #$ $text = "\"${KIND}Release\""
463# PROP BASE Intermediate_Dir #$ $text = "\"${KIND}Release\""
89d25d58
VZ
464# PROP BASE Target_Dir ""
465# PROP Use_MFC 0
466# PROP Use_Debug_Libraries 0
17533c89
VZ
467# PROP Output_Dir #$ $text = "\"${KIND}Release\""
468# PROP Intermediate_Dir #$ $text = "\"${KIND}Release\""
89d25d58
VZ
469#$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0');
470# PROP Target_Dir ""
471# ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE");
17533c89 472# ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_SETUPH_RELEASE'}";
89d25d58
VZ
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");
479BSC32=bscmake.exe
480# ADD BASE BSC32 /nologo
481# ADD BSC32 /nologo
482LINK32=link.exe
483# ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE");
17533c89 484# ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE'}";
8dc52d20 485
17533c89
VZ
486#$ Project('WXCONFIGS') =~ '\bRelease\b' || EnableOutput()
487#$ if ( Project('WXCONFIGS') !~ '\bDebug\b' ) { Project('__IF = !ELSEIF'); DisableOutput() };
488#$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug"');
489
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 ""
495# PROP Use_MFC 0
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');
500# PROP Target_Dir ""
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");
509BSC32=bscmake.exe
510# ADD BASE BSC32 /nologo
511# ADD BSC32 /nologo
512LINK32=link.exe
513# ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG");
514# ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG'}";
515
516#$ Project('WXCONFIGS') =~ '\bDebug\b' || EnableOutput()
8dc52d20
VZ
517!ENDIF
518
519# Begin Target
520
17533c89 521#$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || DisableOutput()
89d25d58 522# Name #$ Substitute('"$$TARGET - Win32 Release Unicode DLL"');
17533c89
VZ
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()
8dc52d20
VZ
545#${
546 foreach $n ( sort keys %file_names ) {
547 $f = $file_names{$n};
548 $p = $file_path{$n};
549 $t = $all_files{$f};
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";
553 }
554 }
555 chop $text;
556#$}
557# End Target
558# End Project
17533c89 559#! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=perl: