/[eiffelstudio]/trunk/Delivery/studio/config/windows/msc/windows_sdk_v6.1.bat
ViewVC logotype

Contents of /trunk/Delivery/studio/config/windows/msc/windows_sdk_v6.1.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 72758 - (show annotations)
Sat Mar 15 04:13:39 2008 UTC (11 years, 10 months ago) by manus
File MIME type: text/plain
File size: 20350 byte(s)
Added new batch file for Windows SDK 6.1.

1 @ECHO OFF
2 :: --------------------------------------------------------------------------------------------
3 :: File : SetEnv.cmd
4 ::
5 :: Abstract: This batch file sets the appropriate environment
6 :: variables for the Windows SDK build environment with
7 :: respect to OS and platform type.
8 ::
9 :: "Usage Setenv [/Debug | /Release][/x86 | /x64 | /ia64][/vista | /xp | /2003 | /2008 ][-h] "
10 ::
11 :: /Debug - Create a Debug configuration build environment
12 :: /Release - Create a Release configuration build environment
13 :: /x86 - Create 32-bit x86 applications
14 :: /x64 - Create 64-bit x64 applications
15 :: /ia64 - Create 64-bit ia64 applications
16 :: /vista - Windows Vista applications
17 :: /xp - Create Windows XP SP2 applications
18 :: /2003 - Create Windows Server 2003 applications
19 :: /2008 - Create Windows Server 2008 or Vista SP1 applications
20 ::
21 :: --------------------------------------------------------------------------------------------
22
23
24 :: -------------------------------------------------------------------
25 :: Establish default values
26 :: -------------------------------------------------------------------
27 SET MSSdk=%~1
28 SHIFT
29 Set SdkTools=%MSSdk%\Bin
30 Set OSLibraries=%MSSdk%\Lib
31 Set OSIncludes=%MSSdk%\Include;%MSSdk%\Include\gl
32
33 :: Reset TARGET_CPU to allow defaults to work
34 SET TARGET_CPU=
35
36 IF /I "%PROCESSOR_ARCHITECTURE%"=="x86" (
37 SET TARGET_CPU=x86
38 ) ELSE IF /I "%PROCESSOR_ARCHITECTURE%"=="IA64" (
39 SET TARGET_CPU=IA64
40 ) ELSE IF /I "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
41 SET TARGET_CPU=x64
42 ) ELSE IF /I "%PROCESSOR_ARCHITECTURE%"=="x64" (
43 SET TARGET_CPU=x64
44 ) ELSE IF /I "%PROCESSOR_ARCHITEW6432%"=="IA64" (
45 SET TARGET_CPU=IA64
46 ) ELSE IF /I "%PROCESSOR_ARCHITEW6432%"=="AMD64" (
47 SET TARGET_CPU=x64
48 ) ELSE (SET TARGET_CPU=x86
49 )
50
51 :: -------------------------------------------------------------------
52 :: Parse command line argument values
53 :: Note: Currently, last one on the command line wins (ex: /DEBUG /RELEASE)
54 :: -------------------------------------------------------------------
55 IF NOT "x%~5"=="x" GOTO ERROR_Usage
56 :Parse_Args
57 IF /I "%~1"=="/Debug" (SET TARGET_DEBUGTYPE=DEBUG& SHIFT & GOTO Parse_Args)
58 IF /I "%~1"=="/Release" (SET TARGET_DEBUGTYPE=RELEASE& SHIFT & GOTO Parse_Args)
59 IF /I "%~1"=="/x86" (SET TARGET_CPU=x86& SHIFT & GOTO Parse_Args)
60 IF /I "%~1"=="/x64" (SET TARGET_CPU=x64& SHIFT & GOTO Parse_Args)
61 IF /I "%~1"=="/ia64" (SET TARGET_CPU=IA64& SHIFT & GOTO Parse_Args)
62 IF /I "%~1"=="/vista" (SET TARGET_PLATFORM=LH& SHIFT & GOTO Parse_Args)
63 IF /I "%~1"=="/xp" (SET TARGET_PLATFORM=XP& SHIFT & GOTO Parse_Args)
64 IF /I "%~1"=="/2003" (SET TARGET_PLATFORM=SRV& SHIFT & GOTO Parse_Args)
65 IF /I "%~1"=="/2008" (SET TARGET_PLATFORM=LHS& SHIFT & GOTO Parse_Args)
66 IF /I "%~1"=="-h" (GOTO ERROR_Usage)
67 IF /I "%~1"=="/?" (GOTO ERROR_Usage)
68 IF "%~1" EQU "" (GOTO Done_Args)
69 ECHO Unknown command-line switch: %~1
70 GOTO ERROR_Usage
71 :Done_Args
72
73 :: -------------------------------------------------------------------
74 :: Prevent path duplication if setenv is run multiple times within a
75 :: single cmd session
76 :: -------------------------------------------------------------------
77 IF "x!ORIGINALPATH!x" == "xx" (
78 SET "ORIGINALINCLUDE=!INCLUDE!"
79 SET "ORIGINALLIB=!LIB!"
80 SET "ORIGINALPATH=!PATH!"
81 ) ELSE (
82 SET "INCLUDE=!ORIGINALINCLUDE!"
83 SET "LIB=!ORIGINALLIB!"
84 SET "PATH=!ORIGINALPATH!"
85 )
86
87
88 :: -------------------------------------------------------------------
89 :: Default to DEBUG if no debug type specified and set the type
90 :: -------------------------------------------------------------------
91 IF "x%TARGET_DEBUGTYPE%"=="x" SET TARGET_DEBUGTYPE=DEBUG
92 IF "%TARGET_DEBUGTYPE%"=="DEBUG" (
93 SET NODEBUG=
94 SET DEBUGMSG=DEBUG
95 COLOR 0E
96 ) ELSE IF "%TARGET_DEBUGTYPE%"=="RELEASE" (
97 SET NODEBUG=1
98 SET DEBUGMSG=RELEASE
99 COLOR 02
100 ) ELSE GOTO ERROR_Usage
101
102
103 :: -------------------------------------------------------------------
104 :: Default to LHS if no target type specified and configure for appropriate target
105 :: -------------------------------------------------------------------
106 IF "x%TARGET_PLATFORM%"=="x" (
107 For /F "tokens=1,3 delims=;." %%i IN ('Cmd /c Ver') DO (
108 IF "%%i"=="Microsoft Windows XP [Version 5" (
109 SET TARGET_PLATFORM=XP
110 ) ELSE IF "%%i"=="Microsoft Windows [Version 5" (
111 SET TARGET_PLATFORM=SRV
112 ) ELSE IF "%%i"=="Microsoft Windows [Version 6" (
113 IF "%%j" == "6000]" (
114 SET TARGET_PLATFORM=LH
115 ) ELSE (
116 SET TARGET_PLATFORM=LHS
117 )
118 ) ELSE (
119 SET TARGET_PLATFORM=LHS
120 )
121 )
122 )
123
124
125 :: Determine which registry keys to look at based on architecture type. Set default values for VC
126 :: and VS root, which would be used if one or both the corresponding registry keys are not found.
127 IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
128 SET RegKeyPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7
129 SET VSRegKeyPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7
130 SET "VCRoot=%ProgramFiles(x86)%\Microsoft Visual Studio 9.0"
131 SET "VSRoot=%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\"
132 ) ELSE IF "%PROCESSOR_ARCHITECTURE%"=="IA64" (
133 SET RegKeyPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7
134 SET VSRegKeyPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7
135 SET "VCRoot=%ProgramFiles(x86)%\Microsoft Visual Studio 9.0"
136 SET "VSRoot=%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\"
137 ) ELSE (
138 SET RegKeyPath=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VC7
139 SET VSRegKeyPath=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VS7
140 SET "VCRoot=%ProgramFiles%\Microsoft Visual Studio 9.0"
141 SET "VSRoot=%ProgramFiles%\Microsoft Visual Studio 9.0\"
142 )
143
144 :: Read the value for VCRoot and VSRoot from the registry.
145 FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "%RegKeyPath%" /v 9.0') DO SET VCRoot=%%B
146 FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "%VSRegKeyPath%" /v 9.0') DO SET VSRoot=%%B
147
148 :: Hide the error output from the call to 'REG' since VCRoot and VSRoot have already been set
149 :: to a default value.
150 CLS
151
152 :: Root path for VCTools
153 Set "VCTools=%VCRoot%Bin"
154
155 :: Setup our VCTools environment path
156 :: Use cross-tools from non-native compilation
157 IF "%TARGET_CPU%" =="x64" (
158 IF "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
159 IF EXIST "%VCTools%\amd64\cl.exe" (
160 SET "VCTools=%VCTools%\amd64"
161 ) ELSE IF EXIST "%VCTools%\x86_amd64\cl.exe" (
162 SET "VCTools=!VSTools!\x86_amd64"
163 ) ELSE (
164 SET VCTools=
165 ECHO The x64 compilers are not currently installed.
166 ECHO Please go to Add/Remove Programs to update your installation.
167 ECHO .
168 )
169 ) ELSE IF "%PROCESSOR_ARCHITEW6432%"=="AMD64" (
170 IF EXIST "%VCTools%\amd64\cl.exe" (
171 SET "VCTools=%VCTools%\amd64"
172 ) ELSE IF EXIST "%VCTools%\x86_amd64\cl.exe" (
173 SET "VCTools=!VCTools!\x86_amd64"
174 ) ELSE (
175 SET VCTools=
176 ECHO The x64 compilers are not currently installed.
177 ECHO Please go to Add/Remove Programs to update your installation.
178 ECHO .
179 )
180 ) ELSE IF EXIST "%VCTools%\x86_amd64\cl.exe" (
181 SET "VCTools=%VCTools%\x86_amd64;%VCTools%"
182 ) ELSE (
183 SET VCTools=
184 ECHO The x64 compilers are not currently installed.
185 ECHO Please go to Add/Remove Programs to update your installation.
186 ECHO .
187 )
188 ) ELSE IF "%TARGET_CPU%" =="IA64" (
189 IF "%PROCESSOR_ARCHITECTURE%" == "IA64" (
190 IF EXIST "%VCTools%\IA64\cl.exe" (
191 SET "VCTools=%VCTools%\IA64"
192 ) ELSE IF EXIST "%VCTools%\x86_ia64\cl.exe" (
193 SET "VCTools=!VCTools!\x86_ia64"
194 ) ELSE (
195 SET VCTools=
196 ECHO The IA64 compilers are not currently installed.
197 ECHO Please go to Add/Remove Programs to update your installation.
198 ECHO .
199 )
200 ) ELSE IF "%PROCESSOR_ARCHITEW6432%"=="IA64" (
201 IF EXIST "%VCTools%\IA64\cl.exe" (
202 SET "VCTools=%VCTools%\IA64"
203 ) ELSE IF EXIST "%VCTools%\x86_ia64\cl.exe" (
204 SET "VCTools=!VCTools!\x86_ia64"
205 ) ELSE (
206 SET VCTools=
207 ECHO The IA64 compilers are not currently installed.
208 ECHO Please go to Add/Remove Programs to update your installation.
209 ECHO .
210 )
211 ) ELSE (
212 IF EXIST "%VCTools%\x86_IA64\cl.exe" (
213 SET "VCTools=%VCTools%\x86_IA64;%VCTools%"
214 ) ELSE (
215 SET VCTools=
216 ECHO The IA64 compilers are not currently installed.
217 ECHO Please go to Add/Remove Programs to update your installation.
218 ECHO .
219 )
220 )
221 ) ELSE IF NOT EXIST "%VCTools%\cl.exe" (
222 SET VCTools=
223 ECHO The x86 compilers are not currently installed.
224 ECHO Please go to Add/Remove Programs to update your installation.
225 ECHO .
226 )
227
228 Set "VSTools=%VCRoot%vcpackages;%VSRoot%Common7\IDE"
229 Set "VCINSTALLDIR=%VCRoot%"
230 Set "VCLibraries=%VCRoot%Lib"
231 Set "VCIncludes=%VCRoot%Include"
232
233
234 IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
235 IF "%TARGET_CPU%"=="x64" (
236 Set "VCIncludes=%VSRoot%Include;%VCRoot%Include"
237 )
238 )
239
240
241 :: Setup our SdkTools environment path
242 IF "%PROCESSOR_ARCHITECTURE%" =="AMD64" (
243 SET "SdkTools=%SdkTools%\x64;%SdkTools%"
244 ) ELSE IF "%PROCESSOR_ARCHITECTURE%" =="IA64" (
245 SET "SdkTools=%SdkTools%\IA64;%SdkTools%"
246 )else IF "%PROCESSOR_ARCHITEW6432%" =="AMD64" (
247 SET "SdkTools=%SdkTools%\x64;%SdkTools%"
248 ) ELSE IF "%PROCESSOR_ARCHITEW6432%" =="IA64" (
249 SET "SdkTools=%SdkTools%\IA64;%SdkTools%"
250 )
251
252 :: Setting the path
253 IF "%TARGET_CPU%" =="x64" (
254 SET "FxTools=%windir%\Microsoft.NET\Framework64\v3.5;%windir%\Microsoft.NET\Framework\v3.5;%windir%\Microsoft.NET\Framework64\v2.0.50727;%windir%\Microsoft.NET\Framework\v2.0.50727"
255 ) ELSE IF "%TARGET_CPU%" =="IA64" (
256 SET "FxTools=%windir%\Microsoft.NET\Framework64\v3.5;%windir%\Microsoft.NET\Framework\v3.5;%windir%\Microsoft.NET\Framework64\v2.0.50727;%windir%\Microsoft.NET\Framework\v2.0.50727"
257 ) ELSE (
258 SET "FxTools=%windir%\Microsoft.NET\Framework\v3.5;%windir%\Microsoft.NET\Framework\v2.0.50727"
259 )
260 SET Path=%VCTools%;%VSTools%;%SdkTools%;%FxTools%;!Path!
261
262 :: Setting the Platform
263 SET TARGETOS=WINNT
264
265 ECHO Setting SDK environment relative to %MSSdk%.
266 GOTO Set_%TARGET_PLATFORM%%TARGET_CPU%
267
268 :: -------------------------------------------------------------------
269 :: SET Windows Server 2008 x86 specific variables
270 :: -------------------------------------------------------------------
271 :Set_LHSx86
272 ECHO Targeting Windows Server 2008 x86 %DEBUGMSG%
273 ECHO.
274
275 IF NOT "x!VCINSTALLDIR!x"=="xx" (
276 IF EXIST "!VCINSTALLDIR!ATLMFC" (
277 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
278 SET "LIB=!VCINSTALLDIR!ATLMFC\LIB;%LIB%"
279 )
280 )
281
282 SET Lib=%VCLibraries%;%OSLibraries%;!Lib!
283 SET Include=%VCIncludes%;%OSIncludes%;!Include!
284 SET CPU=i386
285 SET APPVER=6.0
286 TITLE Microsoft Windows Server 2008 %DEBUGMSG% Build Environment
287 GOTO End_Success
288
289
290 :: -------------------------------------------------------------------
291 :: SET Windows Server 2008 x64 specific variables
292 :: -------------------------------------------------------------------
293 :Set_LHSX64
294 ECHO Targeting Windows Server 2008 x64 %DEBUGMSG%
295 ECHO.
296
297 IF NOT "x!VCINSTALLDIR!x"=="xx" (
298 IF EXIST "!VCINSTALLDIR!ATLMFC\LIB\AMD64" (
299 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
300 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
301 SET "LIB=!VCINSTALLDIR!ATLMFC\LIB\AMD64;%LIB%"
302 )
303 )
304
305 Set Lib=%VCLibraries%\amd64;%OSLibraries%\X64;!Lib!
306 Set Include=%VCIncludes%;%OSIncludes%;!Include!
307 SET CPU=AMD64
308
309
310 SET APPVER=6.0
311 TITLE Microsoft Windows Server 2008 x64 %DEBUGMSG% Build Environment
312 GOTO End_Success
313
314
315 :: -------------------------------------------------------------------
316 :: SET Windows Server 2008 specific variables
317 :: -------------------------------------------------------------------
318 :Set_LHSIA64
319 ECHO Targeting Windows Server 2008 IA64 %DEBUGMSG%
320 ECHO.
321
322 IF NOT "x!VCINSTALLDIR!x"=="xx" (
323 IF EXIST "!VCINSTALLDIR!ATLMFC\LIB\IA64" (
324 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
325 SET "LIB=!VCINSTALLDIR!ATLMFC\LIB\IA64;%LIB%"
326 )
327 )
328
329 Set Lib=%VCLibraries%\IA64;%OSLibraries%\IA64;!Lib!
330 Set Include=%VCIncludes%;%OSIncludes%;!Include!
331 SET CPU=IA64
332 SET APPVER=6.0
333 TITLE Microsoft Windows Server 2008 IA64 %DEBUGMSG% Build Environment
334 GOTO End_Success
335
336
337 :: -------------------------------------------------------------------
338 :: SET Windows Vista x86 specific variables
339 :: -------------------------------------------------------------------
340 :Set_LHx86
341 ECHO Targeting Windows Vista x86 %DEBUGMSG%
342 ECHO.
343
344 IF NOT "x!VCINSTALLDIR!x"=="xx" (
345 IF EXIST "!VCINSTALLDIR!ATLMFC" (
346 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
347 SET "LIB=!VCINSTALLDIR!ATLMFC\LIB;%LIB%"
348 )
349 )
350
351 SET Lib=%VCLibraries%;%OSLibraries%;!Lib!
352 SET Include=%VCIncludes%;%OSIncludes%;!Include!
353 SET CPU=i386
354 SET APPVER=6.0
355 TITLE Microsoft Windows Vista x86 %DEBUGMSG% Build Environment
356 GOTO End_Success
357
358
359 :: -------------------------------------------------------------------
360 :: SET Windows Vista x64 specific variables
361 :: -------------------------------------------------------------------
362 :Set_LHX64
363 ECHO Targeting Windows Vista x64 %DEBUGMSG%
364 ECHO.
365
366 IF NOT "x!VCINSTALLDIR!x"=="xx" (
367 IF EXIST "!VCINSTALLDIR!ATLMFC\LIB\AMD64" (
368 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
369 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
370 SET "LIB=!VCINSTALLDIR!ATLMFC\LIB\AMD64;%LIB%"
371 )
372 )
373
374 Set Lib=%VCLibraries%\amd64;%OSLibraries%\X64;!Lib!
375 Set Include=%VCIncludes%;%OSIncludes%;!Include!
376 SET CPU=AMD64
377
378
379 SET APPVER=6.0
380 TITLE Microsoft Windows Vista x64 %DEBUGMSG% Build Environment
381 GOTO End_Success
382
383
384 :: -------------------------------------------------------------------
385 :: SET Windows Vista IA64 specific variables
386 :: -------------------------------------------------------------------
387 :Set_LHIA64
388 ECHO Targeting Windows Vista IA64 %DEBUGMSG%
389 ECHO.
390
391 IF NOT "x!VCINSTALLDIR!x"=="xx" (
392 IF EXIST "!VCINSTALLDIR!ATLMFC\LIB\IA64" (
393 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
394 SET "LIB=!VCINSTALLDIR!ATLMFC\LIB\IA64;%LIB%"
395 )
396 )
397
398 Set Lib=%VCLibraries%\IA64;%OSLibraries%\IA64;!Lib!
399 Set Include=%VCIncludes%;%OSIncludes%;!Include!
400 SET CPU=IA64
401 SET APPVER=6.0
402 TITLE Microsoft Windows Vista IA64 %DEBUGMSG% Build Environment
403 GOTO End_Success
404
405
406 :: -------------------------------------------------------------------
407 :: SET Windows XP x86 specific variables
408 :: -------------------------------------------------------------------
409 :Set_XPx86
410 ECHO Targeting Windows XP x86 %DEBUGMSG%
411 ECHO.
412
413 IF NOT "x!VCINSTALLDIR!x"=="xx" (
414 IF EXIST "!VCINSTALLDIR!ATLMFC" (
415 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
416 SET "LIB=!VCINSTALLDIR!ATLMFC\LIB;%LIB%"
417 )
418 )
419
420 SET Lib=%VCLibraries%;%OSLibraries%;!Lib!
421 SET Include=%VCIncludes%;%OSIncludes%;!Include!
422 SET CPU=i386
423 SET APPVER=5.01
424 TITLE Microsoft Windows XP x86 %DEBUGMSG% Build Environment
425 GOTO End_Success
426
427
428 :: -------------------------------------------------------------------
429 :: SET Windows XP x64 specific variables
430 :: -------------------------------------------------------------------
431 :Set_XPx64
432 ECHO Targeting Windows XP x64 %DEBUGMSG%
433 ECHO.
434
435 IF NOT "x!VCINSTALLDIR!x"=="xx" (
436 IF EXIST "!VCINSTALLDIR!ATLMFC\LIB\AMD64" (
437 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
438 SET "LIB=!VCINSTALLDIR!ATLMFC\LIB\AMD64;%LIB%"
439 )
440 )
441
442 Set Lib=%VCLibraries%\amd64;%OSLibraries%\x64;!Lib!
443 Set Include=%VCIncludes%;%OSIncludes%;!Include!
444 SET CPU=AMD64
445 SET APPVER=5.02
446 TITLE Microsoft Windows XP x64 %DEBUGMSG% Build Environment
447 GOTO End_Success
448
449 :: -------------------------------------------------------------------
450 :: SET Windows XP IA64 specific variables
451 :: -------------------------------------------------------------------
452 :Set_XPIA64
453 ECHO Targeting Windows XP IA64 %DEBUGMSG%
454 ECHO.
455
456 IF NOT "x!VCINSTALLDIR!x"=="xx" (
457 IF EXIST "!VCINSTALLDIR!ATLMFC\LIB\IA64" (
458 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
459 SET "LIB=!VCINSTALLDIR!ATLMFC\LIB\IA64;%LIB%"
460 )
461 )
462
463 Set Lib=%VCLibraries%\IA64;%OSLibraries%\IA64;!Lib!
464 Set Include=%VCIncludes%;%OSIncludes%;!Include!
465 SET CPU=IA64
466 SET APPVER=5.01
467 TITLE Microsoft Windows XP IA64 %DEBUGMSG% Build Environment
468 GOTO End_Success
469
470
471 :: -------------------------------------------------------------------
472 :: SET Windows Server x86 2003 specific variables
473 :: -------------------------------------------------------------------
474 :Set_SRVx86
475 ECHO Targeting Windows Server 2003 x86 %DEBUGMSG%
476 ECHO.
477
478 IF NOT "x!VCINSTALLDIR!x"=="xx" (
479 IF EXIST "!VCINSTALLDIR!ATLMFC" (
480 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
481 SET "LIB=!VCINSTALLDIR!ATLMFC\LIB;%LIB%"
482 )
483 )
484
485 SET Lib=%VCLibraries%;%OSLibraries%;!Lib!
486 SET Include=%VCIncludes%;%OSIncludes%;!Include!
487 SET CPU=i386
488 SET APPVER=5.02
489 TITLE Microsoft Windows Server 2003 x86 %DEBUGMSG% Build Environment
490 GOTO End_Success
491
492 :: -------------------------------------------------------------------
493 :: SET Windows Server x64 2003 specific variables
494 :: -------------------------------------------------------------------
495 :Set_SRVx64
496 ECHO Targeting Windows Server 2003 x64 %DEBUGMSG%
497 ECHO.
498
499 IF NOT "x!VCINSTALLDIR!x"=="xx" (
500 IF EXIST "!VCINSTALLDIR!ATLMFC\LIB\AMD64" (
501 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
502 SET "LIB=!VCINSTALLDIR!ATLMFC\LIB\AMD64;%LIB%"
503 )
504 )
505
506 Set Lib=%VCLibraries%\amd64;%OSLibraries%\x64;!Lib!
507 Set Include=%VCIncludes%;%OSIncludes%;!Include!
508 SET CPU=AMD64
509 SET APPVER=5.02
510 TITLE Microsoft Windows Server 2003 x64 %DEBUGMSG% Build Environment
511 GOTO End_Success
512
513 :: -------------------------------------------------------------------
514 :: SET Windows Server IA64 2003 specific variables
515 :: -------------------------------------------------------------------
516 :Set_SRVIA64
517 ECHO Targeting Windows Server 2003 IA64 %DEBUGMSG%
518 ECHO.
519
520 IF NOT "x!VCINSTALLDIR!x"=="xx" (
521 IF EXIST "!VCINSTALLDIR!ATLMFC\LIB\IA64" (
522 SET "INCLUDE=!VCINSTALLDIR!ATLMFC\INCLUDE;%INCLUDE%"
523 SET "LIB=!VCINSTALLDIR!ATLMFC\LIB\IA64;%LIB%"
524 )
525 )
526
527 Set Lib=%VCLibraries%\IA64;%OSLibraries%\IA64;!Lib!
528 Set Include=%VCIncludes%;%OSIncludes%;!Include!
529 SET CPU=IA64
530 SET APPVER=5.02
531 TITLE Microsoft Windows Server 2003 IA64 %DEBUGMSG% Build Environment
532 GOTO End_Success
533
534
535 :: -------------------------------------------------------------------
536 :: Echo usage
537 :: -------------------------------------------------------------------
538 :ERROR_Usage
539 ECHO Usage: "Setenv [/Debug | /Release][/x86 | /x64 | /ia64][/vista | /xp | /2003 | /2008 ][-h or /?]"
540 ECHO.
541 ECHO /Debug - Create a Debug configuration build environment
542 ECHO /Release - Create a Release configuration build environment
543 ECHO /x86 - Create 32-bit x86 applications
544 ECHO /x64 - Create 64-bit x64 applications
545 ECHO /ia64 - Create 64-bit ia64 applications
546 ECHO /vista - Windows Vista applications
547 ECHO /xp - Create Windows XP SP2 applications
548 ECHO /2003 - Create Windows Server 2003 applications
549 ECHO /2008 - Create Windows Server 2008 or Vista SP1 applications
550 GOTO End_Fail
551
552 :: -------------------------------------------------------------------
553 :: End Successfully (Success, no cleanup)
554 :: -------------------------------------------------------------------
555 :End_Success
556 IF "x%OS%x" == "xWindows_NTx" SET DEBUGMSG= & GOTO CleanUp
557 ECHO *** WARNING ***
558 ECHO You are currently building on a Windows 9x based platform. Most samples have
559 ECHO NMAKE create a destination directory for created objects and executables.
560 ECHO There is a known issue with the OS where NMAKE fails to create this destination
561 ECHO directory when the current directory is several directories deep. To fix this
562 ECHO problem, you must create the destination directory by hand from the command
563 ECHO line before calling NMAKE.
564 ECHO.
565 GOTO CleanUp
566
567
568 :: -------------------------------------------------------------------
569 :: Fail
570 :: -------------------------------------------------------------------
571 :End_Fail
572 SET VCBUILD_DEFAULT_OPTIONS=
573 GOTO CleanUp
574
575 :: -------------------------------------------------------------------
576 :: Clean up
577 :: -------------------------------------------------------------------
578 :CleanUp
579 SET OSLibraries=
580 SET OSIncludes=
581 SET VSRoot=
582 SET VCTools=
583 SET VSTools=
584 SET VCLibraries=
585 SET VCIncludes=
586 SET TARGET_PLATFORM=
587 SET TARGET_DEBUGTYPE=
588 SET TARGET_CPU=

Properties

Name Value
svn:eol-style native
svn:keywords Author Date ID Revision

  ViewVC Help
Powered by ViewVC 1.1.23