]>
Commit | Line | Data |
---|---|---|
8dc52d20 | 1 | #!############################################################################# |
0797afee | 2 | #! File: vc6app.t |
8dc52d20 | 3 | #! Purpose: tmake template file from which the VC++ 6.0 project file for |
0797afee | 4 | #! building wxWindows applications are generated by running |
8dc52d20 | 5 | #! tmake -t vc6lib wxwin.pro -o wxvc.dsp |
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"; | |
5e46051f | 110 | $DLL = "dll"; |
89d25d58 VZ |
111 | |
112 | #! compiler options: for the given configuration they are just obrained | |
113 | #! by concatenating together all relevant values from the list below | |
114 | $project{"WX_CPP_DEBUG"} = '/MDd /D "__WXDEBUG__" /D "WXDEBUG=1" '; | |
115 | $project{"WX_CPP_RELEASE"} = '/MD '; | |
116 | $project{"WX_CPP_UNICODE"} = '/D _UNICODE /D UNICODE '; | |
117 | $project{"WX_CPP_DLL"} = '/D WXUSINGDLL '; | |
118 | ||
119 | #! ... plus the config-dependent path to setup.h | |
120 | $project{"WX_SETUPH_DEBUG"} = "/I$WXDIR\\lib\\$TOOLKIT$DEBUG_SUFFIX "; | |
121 | $project{"WX_SETUPH_RELEASE"} = "/I$WXDIR\\lib\\$TOOLKIT "; | |
122 | $project{"WX_SETUPH_DEBUG_DLL"} = "/I$WXDIR\\lib\\$TOOLKIT$DLL$DEBUG_SUFFIX "; | |
123 | $project{"WX_SETUPH_RELEASE_DLL"} = "/I$WXDIR\\lib\\$TOOLKIT$DLL "; | |
124 | $project{"WX_SETUPH_DEBUG_UNICODE"} = "/I$WXDIR\\lib\\$TOOLKIT$UNICODE_SUFFIX$DEBUG_SUFFIX "; | |
125 | $project{"WX_SETUPH_RELEASE_UNICODE"} = "/I$WXDIR\\lib\\$TOOLKIT$UNICODE_SUFFIX "; | |
126 | $project{"WX_SETUPH_DEBUG_UNICODE_DLL"} = "/I$WXDIR\\lib\\$TOOLKIT$DLL$UNICODE_SUFFIX$DEBUG_SUFFIX "; | |
127 | $project{"WX_SETUPH_RELEASE_UNICODE_DLL"} = "/I$WXDIR\\lib\\$TOOLKIT$DLL$UNICODE_SUFFIX "; | |
128 | ||
129 | #! the libraries we must link with when linking against static wxWin | |
130 | #! library (DLL already includes all needed libs) | |
131 | #! | |
132 | #! FIXME: actually this should depend on the contents of setup.h! | |
133 | $EXTRA_LIBS="zlib regex"; | |
134 | if ( !Config("wxbase") ) { | |
135 | $EXTRA_LIBS.=" png jpeg tiff"; | |
136 | } | |
137 | foreach ( split(/ /, $EXTRA_LIBS) ) { | |
85f7ec57 VZ |
138 | $RELEASE_EXTRA_LIBS .= "$WXDIR\\lib\\$_.lib "; |
139 | $DEBUG_EXTRA_LIBS .= "$WXDIR\\lib\\$_" . "d.lib "; | |
89d25d58 VZ |
140 | } |
141 | ||
142 | #! the wxWin lib name itself is composed from the basename with various | |
143 | #! suffixes: 'u' for Unicode, 'd' for debug and we also need the version | |
144 | #! for the DLL | |
145 | $DLL_VERSION = "232"; | |
146 | ||
147 | $project{"WX_LINK_DEBUG"} = $DEBUG_EXTRA_LIBS . "$WX_BASENAME$DEBUG_SUFFIX.lib"; | |
148 | $project{"WX_LINK_RELEASE"} = $RELEASE_EXTRA_LIBS . "$WX_BASENAME.lib"; | |
149 | $project{"WX_LINK_DEBUG_DLL"} = "$WX_BASENAME$DLL_VERSION$DEBUG_SUFFIX.lib"; | |
150 | $project{"WX_LINK_RELEASE_DLL"} = "$WX_BASENAME$DLL_VERSION.lib"; | |
151 | $project{"WX_LINK_DEBUG_UNICODE"} = $DEBUG_EXTRA_LIBS . "$WX_BASENAME$UNICODE_SUFFIX$DEBUG_SUFFIX.lib"; | |
152 | $project{"WX_LINK_RELEASE_UNICODE"} = $RELEASE_EXTRA_LIBS . "$WX_BASENAME$UNICODE_SUFFIX.lib"; | |
153 | $project{"WX_LINK_DEBUG_UNICODE_DLL"} = "$WX_BASENAME$DLL_VERSION$UNICODE_SUFFIX$DEBUG_SUFFIX.lib"; | |
154 | $project{"WX_LINK_RELEASE_UNICODE_DLL"} = "$WX_BASENAME$DLL_VERSION$UNICODE_SUFFIX.lib"; | |
8dc52d20 VZ |
155 | } |
156 | ||
157 | $project{"VC_BASE_LINK_RELEASE"} = $vc_base_libs . $vc_link_release; | |
158 | $project{"VC_BASE_LINK_DEBUG"} = $vc_base_libs . $vc_link_debug; | |
159 | $tmake_libs = Project('TMAKE_LIBS') ? (Project('TMAKE_LIBS') . " ") : ""; | |
160 | $project{"VC_LINK_RELEASE"} = $vc_base_libs . $tmake_libs . $vc_link_release; | |
161 | $project{"VC_LINK_DEBUG"} = $vc_base_libs . $tmake_libs . $vc_link_debug; | |
162 | ||
163 | $vc_cpp_opt_common1 = '/nologo /W4 '; | |
164 | ||
0797afee | 165 | $vc_cpp_opt_release = $vc_cpp_opt_common1 . '/O2 '; |
8dc52d20 VZ |
166 | $vc_cpp_opt_debug = $vc_cpp_opt_common1 . '/Zi /Od '; |
167 | $vc_cpp_opt_common = '/YX /FD /c'; | |
168 | $project{"VC_BASE_CPP_RELEASE"} = $vc_cpp_opt_release . $vc_cpp_def_release . $vc_cpp_opt_common; | |
169 | $project{"VC_BASE_CPP_DEBUG"} = $vc_cpp_opt_debug . $vc_cpp_def_debug . $vc_cpp_opt_common; | |
170 | ExpandGlue("INCPATH",'/I "','" /I "','"'); | |
171 | if ( $text ne "" ) { $vc_inc = $text . " "; $text = ""; } else { $vc_inc = ""; } | |
172 | ExpandGlue("DEFINES",'/D "','" /D "','"'); | |
173 | if ( $text ne "" ) { $vc_def = $text . " "; $text = ""; } else { $vc_def = ""; } | |
174 | if ( Config("wx") ) { | |
175 | #! define wxWindows compilation flags | |
0797afee | 176 | $vc_def .= '/D WIN32 /D WINVER=0x400 /D _MT '; |
8dc52d20 VZ |
177 | |
178 | if ( Config("wxbase") ) { | |
179 | $vc_def .= '/D wxUSE_GUI=0 '; | |
180 | } | |
181 | else { | |
182 | $vc_def .= '/D wxUSE_GUI=1 '; | |
0797afee VZ |
183 | |
184 | if ( Config("wxuniv") ) { | |
185 | $vc_def .= '/D "__WXUNIVERSAL__" '; | |
0797afee | 186 | } |
8dc52d20 VZ |
187 | } |
188 | } | |
0797afee VZ |
189 | else { |
190 | $vc_inc_debug = | |
191 | $vc_inc_release = ""; | |
192 | } | |
8dc52d20 VZ |
193 | |
194 | $project{"VC_CPP_INCLUDE"} = $vc_inc; | |
0797afee VZ |
195 | $project{"VC_CPP_RELEASE"} = $vc_cpp_opt_release . $vc_inc . $vc_inc_release . $vc_cpp_def_release . $vc_def . $vc_cpp_opt_common; |
196 | $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 |
197 | |
198 | if ( Project('RES_FILE') ) { | |
199 | tmake_error(".res files are not supported, use .rc."); | |
200 | } | |
201 | ||
202 | $project{"MAKEFILE"} = $project{"PROJECT"} . ".mak"; | |
203 | $project{"TARGETAPP"} = $project{"TARGET"} . ".exe"; | |
204 | Project('TMAKE_FILETAGS = HEADERS SOURCES TARGET DESTDIR $$FILETAGS'); | |
205 | foreach ( split(/\s/,Project('TMAKE_FILETAGS')) ) { | |
206 | $project{$_} =~ s-/-\\-g; | |
207 | } | |
208 | StdInit(); | |
209 | if ( defined($project{"DESTDIR"}) ) { | |
210 | $project{"TARGETAPP"} = $project{"DESTDIR"} . "\\" . $project{"TARGETAPP"}; | |
211 | $project{"TARGETAPP"} =~ s/\\+/\\/g; | |
212 | } | |
213 | %all_files = (); | |
214 | @files = split(/\s+/,$project{"HEADERS"}); | |
215 | foreach ( @files ) { $all_files{$_} = "h" }; | |
216 | @files = split(/\s+/,$project{"SOURCES"}); | |
217 | foreach ( @files ) { $all_files{$_} = "s" }; | |
218 | @files = split(/\s+/,$project{"RC_FILE"}); | |
219 | foreach ( @files ) { $all_files{$_} = "r" }; | |
220 | ||
8dc52d20 VZ |
221 | %file_names = (); |
222 | foreach $f ( %all_files ) { | |
223 | $n = $f; | |
224 | $n =~ s/^.*\\//; | |
225 | $file_names{$n} = $f; | |
226 | $file_path{$n} = ".\\" . $f; | |
227 | $file_path2{$n} = (($f =~ /^\./) ? "" : ".\\") . $f; | |
228 | } | |
229 | ||
230 | #$} | |
231 | # Microsoft Developer Studio Project File - #$ Substitute('Name="$$TARGET" - Package Owner=<4>'); | |
232 | # Microsoft Developer Studio Generated Build File, Format Version 6.00 | |
233 | # ** DO NOT EDIT ** | |
234 | ||
235 | # TARGTYPE #$ Substitute('"$$VC_PROJ_TYPE" $$VC_PROJ_CODE'); | |
236 | ||
237 | CFG=#$ Substitute('$$TARGET - Win32 Debug'); | |
238 | !MESSAGE This is not a valid makefile. To build this project using NMAKE, | |
239 | !MESSAGE use the Export Makefile command and run | |
240 | !MESSAGE | |
241 | !MESSAGE NMAKE /f "#$ ExpandGlue('MAKEFILE','','','".'); | |
242 | !MESSAGE | |
243 | !MESSAGE You can specify a configuration when running NMAKE | |
244 | !MESSAGE by defining the macro CFG on the command line. For example: | |
245 | !MESSAGE | |
246 | !MESSAGE NMAKE /f #$ Substitute('"$$MAKEFILE" CFG="$$TARGET - Win32 Debug"'); | |
247 | !MESSAGE | |
248 | !MESSAGE Possible choices for configuration are: | |
249 | !MESSAGE | |
17533c89 | 250 | #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || DisableOutput() |
89d25d58 | 251 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Release Unicode DLL" (based on "$$VC_PROJ_TYPE")'); |
17533c89 VZ |
252 | #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || EnableOutput() |
253 | #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || DisableOutput() | |
254 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Debug Unicode DLL" (based on "$$VC_PROJ_TYPE")'); | |
255 | #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || EnableOutput() | |
256 | #$ Project('WXCONFIGS') =~ '\bUnicodeDll\b' || DisableOutput() | |
257 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Release Unicode" (based on "$$VC_PROJ_TYPE")'); | |
258 | #$ Project('WXCONFIGS') =~ '\bUnicodeDll\b' || EnableOutput() | |
259 | #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || DisableOutput() | |
260 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Debug Unicode" (based on "$$VC_PROJ_TYPE")'); | |
261 | #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || EnableOutput() | |
262 | #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || DisableOutput() | |
263 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Release DLL" (based on "$$VC_PROJ_TYPE")'); | |
264 | #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || EnableOutput() | |
265 | #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || DisableOutput() | |
266 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Debug DLL" (based on "$$VC_PROJ_TYPE")'); | |
267 | #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || EnableOutput() | |
268 | #$ Project('WXCONFIGS') =~ '\bRelease\b' || DisableOutput() | |
269 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Release" (based on "$$VC_PROJ_TYPE")'); | |
270 | #$ Project('WXCONFIGS') =~ '\bRelease\b' || EnableOutput() | |
271 | #$ Project('WXCONFIGS') =~ '\bDebug\b' || DisableOutput() | |
272 | !MESSAGE #$ Substitute('"$$TARGET - Win32 Debug" (based on "$$VC_PROJ_TYPE")'); | |
273 | #$ Project('WXCONFIGS') =~ '\bDebug\b' || EnableOutput() | |
8dc52d20 VZ |
274 | !MESSAGE |
275 | ||
276 | # Begin Project | |
277 | # PROP Scc_ProjName "" | |
278 | # PROP Scc_LocalPath "" | |
279 | CPP=cl.exe | |
280 | #$ Config("windows") && ($text='MTL=midl.exe'); | |
281 | RSC=rc.exe | |
282 | ||
17533c89 VZ |
283 | #$ if ( Project('WXCONFIGS') !~ '\bReleaseUnicodeDll\b' ) { Project('__IF = !ELSEIF'); DisableOutput() }; |
284 | #$ Substitute('$$__IF "$(CFG)" == "$$TARGET - Win32 Release Unicode DLL"'); | |
89d25d58 VZ |
285 | |
286 | # PROP BASE Use_MFC 0 | |
287 | # PROP BASE Use_Debug_Libraries 0 | |
17533c89 VZ |
288 | # PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\"" |
289 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\"" | |
89d25d58 VZ |
290 | # PROP BASE Target_Dir "" |
291 | # PROP Use_MFC 0 | |
292 | # PROP Use_Debug_Libraries 0 | |
17533c89 VZ |
293 | # PROP Output_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\"" |
294 | # PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicodeDll\"" | |
89d25d58 VZ |
295 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); |
296 | # PROP Target_Dir "" | |
297 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE"); | |
17533c89 | 298 | # 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 |
299 | #$ Config("windows") || DisableOutput(); |
300 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
301 | # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
302 | #$ Config("windows") || EnableOutput(); | |
303 | # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
304 | # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
305 | BSC32=bscmake.exe | |
306 | # ADD BASE BSC32 /nologo | |
307 | # ADD BSC32 /nologo | |
308 | LINK32=link.exe | |
309 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE"); | |
17533c89 | 310 | # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_UNICODE_DLL'}"; |
89d25d58 | 311 | |
17533c89 VZ |
312 | #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || EnableOutput() |
313 | #$ if ( Project('WXCONFIGS') !~ '\bDebugUnicodeDll\b' ) { Project('__IF = !ELSEIF'); DisableOutput() }; | |
314 | #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug Unicode DLL"'); | |
89d25d58 VZ |
315 | |
316 | # PROP BASE Use_MFC 0 | |
317 | # PROP BASE Use_Debug_Libraries 1 | |
17533c89 VZ |
318 | # PROP BASE Output_Dir #$ $text = "\"${KIND}DebugUnicodeDll\"" |
319 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugUnicodeDll\"" | |
89d25d58 VZ |
320 | # PROP BASE Target_Dir "" |
321 | # PROP Use_MFC 0 | |
322 | # PROP Use_Debug_Libraries 1 | |
17533c89 VZ |
323 | # PROP Output_Dir #$ $text = "\"${KIND}DebugUnicodeDll\"" |
324 | # PROP Intermediate_Dir #$ $text = "\"${KIND}DebugUnicodeDll\"" | |
89d25d58 VZ |
325 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); |
326 | # PROP Target_Dir "" | |
327 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG"); | |
17533c89 | 328 | # 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 |
329 | #$ Config("windows") || DisableOutput(); |
330 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
331 | # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
332 | #$ Config("windows") || EnableOutput(); | |
333 | # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
334 | # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
335 | BSC32=bscmake.exe | |
336 | # ADD BASE BSC32 /nologo | |
337 | # ADD BSC32 /nologo | |
338 | LINK32=link.exe | |
339 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG"); | |
17533c89 | 340 | # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_UNICODE_DLL'}"; |
89d25d58 | 341 | |
17533c89 VZ |
342 | #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || EnableOutput() |
343 | #$ if ( Project('WXCONFIGS') !~ '\bReleaseUnicode\b' ) { Project('__IF = !ELSEIF'); DisableOutput() }; | |
344 | #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Release Unicode"'); | |
8dc52d20 VZ |
345 | |
346 | # PROP BASE Use_MFC 0 | |
347 | # PROP BASE Use_Debug_Libraries 0 | |
17533c89 VZ |
348 | # PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseUnicode\"" |
349 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicode\"" | |
8dc52d20 VZ |
350 | # PROP BASE Target_Dir "" |
351 | # PROP Use_MFC 0 | |
352 | # PROP Use_Debug_Libraries 0 | |
17533c89 VZ |
353 | # PROP Output_Dir #$ $text = "\"${KIND}ReleaseUnicode\"" |
354 | # PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseUnicode\"" | |
8dc52d20 VZ |
355 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); |
356 | # PROP Target_Dir "" | |
357 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE"); | |
17533c89 | 358 | # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_CPP_UNICODE'} $project{'WX_SETUPH_RELEASE_UNICODE'}"; |
8dc52d20 VZ |
359 | #$ Config("windows") || DisableOutput(); |
360 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
361 | # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
362 | #$ Config("windows") || EnableOutput(); | |
363 | # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
364 | # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
365 | BSC32=bscmake.exe | |
366 | # ADD BASE BSC32 /nologo | |
367 | # ADD BSC32 /nologo | |
368 | LINK32=link.exe | |
369 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE"); | |
17533c89 | 370 | # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_UNICODE'}"; |
8dc52d20 | 371 | |
17533c89 VZ |
372 | #$ Project('WXCONFIGS') =~ '\bReleaseUnicode\b' || EnableOutput() |
373 | #$ if ( Project('WXCONFIGS') !~ '\bDebugUnicode\b' ) { Project('__IF = !ELSEIF'); DisableOutput() }; | |
374 | #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug Unicode"'); | |
8dc52d20 VZ |
375 | |
376 | # PROP BASE Use_MFC 0 | |
377 | # PROP BASE Use_Debug_Libraries 1 | |
89d25d58 VZ |
378 | # PROP BASE Output_Dir #$ $text = "\"${KIND}DebugUnicode\"" |
379 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugUnicode\"" | |
8dc52d20 VZ |
380 | # PROP BASE Target_Dir "" |
381 | # PROP Use_MFC 0 | |
382 | # PROP Use_Debug_Libraries 1 | |
89d25d58 VZ |
383 | # PROP Output_Dir #$ $text = "\"${KIND}DebugUnicode\"" |
384 | # PROP Intermediate_Dir #$ $text = "\"${KIND}DebugUnicode\"" | |
8dc52d20 VZ |
385 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); |
386 | # PROP Target_Dir "" | |
387 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG"); | |
89d25d58 | 388 | # ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_CPP_UNICODE'} $project{'WX_SETUPH_DEBUG_UNICODE'}"; |
8dc52d20 VZ |
389 | #$ Config("windows") || DisableOutput(); |
390 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
391 | # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
392 | #$ Config("windows") || EnableOutput(); | |
393 | # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
394 | # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
395 | BSC32=bscmake.exe | |
396 | # ADD BASE BSC32 /nologo | |
397 | # ADD BSC32 /nologo | |
398 | LINK32=link.exe | |
399 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG"); | |
89d25d58 VZ |
400 | # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_UNICODE'}"; |
401 | ||
17533c89 VZ |
402 | #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || EnableOutput() |
403 | #$ if ( Project('WXCONFIGS') !~ '\bReleaseDll\b' ) { Project('__IF = !ELSEIF'); DisableOutput() }; | |
404 | #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Release DLL"'); | |
89d25d58 VZ |
405 | |
406 | # PROP BASE Use_MFC 0 | |
407 | # PROP BASE Use_Debug_Libraries 0 | |
17533c89 VZ |
408 | # PROP BASE Output_Dir #$ $text = "\"${KIND}ReleaseDll\"" |
409 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}ReleaseDll\"" | |
89d25d58 VZ |
410 | # PROP BASE Target_Dir "" |
411 | # PROP Use_MFC 0 | |
412 | # PROP Use_Debug_Libraries 0 | |
17533c89 VZ |
413 | # PROP Output_Dir #$ $text = "\"${KIND}ReleaseDll\"" |
414 | # PROP Intermediate_Dir #$ $text = "\"${KIND}ReleaseDll\"" | |
89d25d58 VZ |
415 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); |
416 | # PROP Target_Dir "" | |
417 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE"); | |
17533c89 | 418 | # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_CPP_DLL'} $project{'WX_SETUPH_RELEASE_DLL'}"; |
89d25d58 VZ |
419 | #$ Config("windows") || DisableOutput(); |
420 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
421 | # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
422 | #$ Config("windows") || EnableOutput(); | |
423 | # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
424 | # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
425 | BSC32=bscmake.exe | |
426 | # ADD BASE BSC32 /nologo | |
427 | # ADD BSC32 /nologo | |
428 | LINK32=link.exe | |
429 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE"); | |
17533c89 | 430 | # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE_DLL'}"; |
89d25d58 | 431 | |
17533c89 VZ |
432 | #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || EnableOutput() |
433 | #$ if ( Project('WXCONFIGS') !~ '\bDebugDll\b' ) { Project('__IF = !ELSEIF'); DisableOutput() }; | |
434 | #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug DLL"'); | |
89d25d58 VZ |
435 | |
436 | # PROP BASE Use_MFC 0 | |
437 | # PROP BASE Use_Debug_Libraries 1 | |
17533c89 VZ |
438 | # PROP BASE Output_Dir #$ $text = "\"${KIND}DebugDll\"" |
439 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}DebugDll\"" | |
89d25d58 VZ |
440 | # PROP BASE Target_Dir "" |
441 | # PROP Use_MFC 0 | |
442 | # PROP Use_Debug_Libraries 1 | |
17533c89 VZ |
443 | # PROP Output_Dir #$ $text = "\"${KIND}DebugDll\"" |
444 | # PROP Intermediate_Dir #$ $text = "\"${KIND}DebugDll\"" | |
89d25d58 VZ |
445 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); |
446 | # PROP Target_Dir "" | |
447 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG"); | |
17533c89 | 448 | # ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_CPP_DLL'} $project{'WX_SETUPH_DEBUG_DLL'}"; |
89d25d58 VZ |
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"); | |
455 | BSC32=bscmake.exe | |
456 | # ADD BASE BSC32 /nologo | |
457 | # ADD BSC32 /nologo | |
458 | LINK32=link.exe | |
459 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG"); | |
17533c89 | 460 | # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG_DLL'}"; |
89d25d58 | 461 | |
17533c89 VZ |
462 | #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || EnableOutput() |
463 | #$ if ( Project('WXCONFIGS') !~ '\bRelease\b' ) { Project('__IF = !ELSEIF'); DisableOutput() }; | |
464 | #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Release"'); | |
89d25d58 VZ |
465 | |
466 | # PROP BASE Use_MFC 0 | |
467 | # PROP BASE Use_Debug_Libraries 0 | |
17533c89 VZ |
468 | # PROP BASE Output_Dir #$ $text = "\"${KIND}Release\"" |
469 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}Release\"" | |
89d25d58 VZ |
470 | # PROP BASE Target_Dir "" |
471 | # PROP Use_MFC 0 | |
472 | # PROP Use_Debug_Libraries 0 | |
17533c89 VZ |
473 | # PROP Output_Dir #$ $text = "\"${KIND}Release\"" |
474 | # PROP Intermediate_Dir #$ $text = "\"${KIND}Release\"" | |
89d25d58 VZ |
475 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); |
476 | # PROP Target_Dir "" | |
477 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_RELEASE"); | |
17533c89 | 478 | # ADD CPP #$ $text = "$project{'VC_CPP_RELEASE'} $project{'WX_CPP_RELEASE'} $project{'WX_SETUPH_RELEASE'}"; |
89d25d58 VZ |
479 | #$ Config("windows") || DisableOutput(); |
480 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
481 | # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 | |
482 | #$ Config("windows") || EnableOutput(); | |
483 | # ADD BASE RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
484 | # ADD RSC /l 0x409 /d "NDEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
485 | BSC32=bscmake.exe | |
486 | # ADD BASE BSC32 /nologo | |
487 | # ADD BSC32 /nologo | |
488 | LINK32=link.exe | |
489 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_RELEASE"); | |
17533c89 | 490 | # ADD LINK32 #$ $text = "$project{'VC_LINK_RELEASE'} $project{'WX_LINK_RELEASE'}"; |
8dc52d20 | 491 | |
17533c89 VZ |
492 | #$ Project('WXCONFIGS') =~ '\bRelease\b' || EnableOutput() |
493 | #$ if ( Project('WXCONFIGS') !~ '\bDebug\b' ) { Project('__IF = !ELSEIF'); DisableOutput() }; | |
494 | #$ Substitute(' $$__IF "$(CFG)" == "$$TARGET - Win32 Debug"'); | |
495 | ||
496 | # PROP BASE Use_MFC 0 | |
497 | # PROP BASE Use_Debug_Libraries 1 | |
498 | # PROP BASE Output_Dir #$ $text = "\"${KIND}Debug\"" | |
499 | # PROP BASE Intermediate_Dir #$ $text = "\"${KIND}Debug\"" | |
500 | # PROP BASE Target_Dir "" | |
501 | # PROP Use_MFC 0 | |
502 | # PROP Use_Debug_Libraries 1 | |
503 | # PROP Output_Dir #$ $text = "\"${KIND}Debug\"" | |
504 | # PROP Intermediate_Dir #$ $text = "\"${KIND}Debug\"" | |
505 | #$ Config("windows") && ($text='# PROP Ignore_Export_Lib 0'); | |
506 | # PROP Target_Dir "" | |
507 | # ADD BASE CPP #$ Expand("VC_BASE_CPP_DEBUG"); | |
508 | # ADD CPP #$ $text = "$project{'VC_CPP_DEBUG'} $project{'WX_CPP_DEBUG'} $project{'WX_SETUPH_DEBUG'}"; | |
509 | #$ Config("windows") || DisableOutput(); | |
510 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
511 | # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 | |
512 | #$ Config("windows") || EnableOutput(); | |
513 | # ADD BASE RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
514 | # ADD RSC /l 0x409 /d "_DEBUG" #$ Expand("VC_CPP_INCLUDE"); | |
515 | BSC32=bscmake.exe | |
516 | # ADD BASE BSC32 /nologo | |
517 | # ADD BSC32 /nologo | |
518 | LINK32=link.exe | |
519 | # ADD BASE LINK32 #$ Expand("VC_BASE_LINK_DEBUG"); | |
520 | # ADD LINK32 #$ $text = "$project{'VC_LINK_DEBUG'} $project{'WX_LINK_DEBUG'}"; | |
521 | ||
522 | #$ Project('WXCONFIGS') =~ '\bDebug\b' || EnableOutput() | |
8dc52d20 VZ |
523 | !ENDIF |
524 | ||
525 | # Begin Target | |
526 | ||
17533c89 | 527 | #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || DisableOutput() |
89d25d58 | 528 | # Name #$ Substitute('"$$TARGET - Win32 Release Unicode DLL"'); |
17533c89 VZ |
529 | #$ Project('WXCONFIGS') =~ '\bReleaseUnicodeDll\b' || EnableOutput() |
530 | #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || DisableOutput() | |
531 | # Name #$ Substitute('"$$TARGET - Win32 Debug Unicode DLL"'); | |
532 | #$ Project('WXCONFIGS') =~ '\bDebugUnicodeDll\b' || EnableOutput() | |
533 | #$ Project('WXCONFIGS') =~ '\bUnicodeDll\b' || DisableOutput() | |
534 | # Name #$ Substitute('"$$TARGET - Win32 Release Unicode"'); | |
535 | #$ Project('WXCONFIGS') =~ '\bUnicodeDll\b' || EnableOutput() | |
536 | #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || DisableOutput() | |
537 | # Name #$ Substitute('"$$TARGET - Win32 Debug Unicode"'); | |
538 | #$ Project('WXCONFIGS') =~ '\bDebugUnicode\b' || EnableOutput() | |
539 | #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || DisableOutput() | |
540 | # Name #$ Substitute('"$$TARGET - Win32 Release DLL"'); | |
541 | #$ Project('WXCONFIGS') =~ '\bReleaseDll\b' || EnableOutput() | |
542 | #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || DisableOutput() | |
543 | # Name #$ Substitute('"$$TARGET - Win32 Debug DLL"'); | |
544 | #$ Project('WXCONFIGS') =~ '\bDebugDll\b' || EnableOutput() | |
545 | #$ Project('WXCONFIGS') =~ '\bRelease\b' || DisableOutput() | |
546 | # Name #$ Substitute('"$$TARGET - Win32 Release"'); | |
547 | #$ Project('WXCONFIGS') =~ '\bRelease\b' || EnableOutput() | |
548 | #$ Project('WXCONFIGS') =~ '\bDebug\b' || DisableOutput() | |
549 | # Name #$ Substitute('"$$TARGET - Win32 Debug"'); | |
550 | #$ Project('WXCONFIGS') =~ '\bDebug\b' || EnableOutput() | |
8dc52d20 VZ |
551 | #${ |
552 | foreach $n ( sort keys %file_names ) { | |
553 | $f = $file_names{$n}; | |
554 | $p = $file_path{$n}; | |
555 | $t = $all_files{$f}; | |
556 | if ( $t eq "s" || $t eq "h" || $t eq "r" ) { | |
557 | $text .= "# Begin Source File\n\nSOURCE=$file_path{$n}\n"; | |
558 | $text .= "# End Source File\n"; | |
559 | } | |
560 | } | |
561 | chop $text; | |
562 | #$} | |
563 | # End Target | |
564 | # End Project | |
17533c89 | 565 | #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=perl: |