source: sasmodels/vcvarsall.bat @ 2694cb8

Last change on this file since 2694cb8 was 71c5f4d, checked in by Omer Eisenberg <omereis@…>, 7 years ago

included constants in C. Fixed bug in C for loop

  • Property mode set to 100644
File size: 1.9 KB
Line 
1@echo off
2
3if "%1" == "" goto x86
4if not "%2" == "" goto usage
5
6if /i %1 == x86       goto x86
7if /i %1 == amd64     goto amd64
8if /i %1 == x64       goto amd64
9if /i %1 == x86_amd64 goto x86_amd64
10goto usage
11
12:x86
13echo Setting environment for using Microsoft Visual Studio 2008 x86 tools.
14set VCINSTALLDIR=%~dp0VC\
15set WindowsSdkDir=%~dp0WinSDK\
16if not exist "%VCINSTALLDIR%bin\cl.exe" goto missing
17set PATH=%VCINSTALLDIR%Bin;%WindowsSdkDir%Bin;%PATH%
18set INCLUDE=%VCINSTALLDIR%Include;%WindowsSdkDir%Include;%INCLUDE%
19set LIB=%VCINSTALLDIR%Lib;%WindowsSdkDir%Lib;%LIB%
20set LIBPATH=%VCINSTALLDIR%Lib;%WindowsSdkDir%Lib;%LIBPATH%
21goto :eof
22
23:amd64
24echo Setting environment for using Microsoft Visual Studio 2008 x64 tools.
25set VCINSTALLDIR=%~dp0VC\
26set WindowsSdkDir=%~dp0WinSDK\
27if not exist "%VCINSTALLDIR%Bin\amd64\cl.exe" goto missing
28set PATH=%VCINSTALLDIR%Bin\amd64;%WindowsSdkDir%Bin\x64;%WindowsSdkDir%Bin;%PATH%
29set INCLUDE=%VCINSTALLDIR%Include;%WindowsSdkDir%Include;%INCLUDE%
30set LIB=%VCINSTALLDIR%Lib\amd64;%WindowsSdkDir%Lib\x64;%LIB%
31set LIBPATH=%VCINSTALLDIR%Lib\amd64;%WindowsSdkDir%Lib\x64;%LIBPATH%
32goto :eof
33
34:x86_amd64
35echo Setting environment for using Microsoft Visual Studio 2008 x64 cross tools.
36set VCINSTALLDIR=%~dp0VC\
37set WindowsSdkDir=%~dp0WinSDK\
38if not exist "%VCINSTALLDIR%Bin\x86_amd64\cl.exe" goto missing
39set PATH=%VCINSTALLDIR%Bin\x86_amd64;%WindowsSdkDir%Bin;%PATH%
40set INCLUDE=%VCINSTALLDIR%Include;%WindowsSdkDir%Include;%INCLUDE%
41set LIB=%VCINSTALLDIR%Lib\amd64;%WindowsSdkDir%Lib\x64;%LIB%
42set LIBPATH=%VCINSTALLDIR%Lib\amd64;%WindowsSdkDir%Lib\x64;%LIBPATH%
43goto :eof
44
45:usage
46echo Error in script usage. The correct usage is:
47echo     %0 [option]
48echo where [option] is: x86 ^| amd64 ^| x86_amd64
49echo:
50echo For example:
51echo     %0 x86_ia64
52goto :eof
53
54:missing
55echo The specified configuration type is missing.  The tools for the
56echo configuration might not be installed.
57goto :eof
Note: See TracBrowser for help on using the repository browser.