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