]>
Commit | Line | Data |
---|---|---|
1 | @REM @file\r | |
2 | @REM Windows batch file to find the Visual Studio set up script\r | |
3 | @REM\r | |
4 | @REM Copyright (c) 2013-2014, ARM Limited. All rights reserved.\r | |
5 | \r | |
6 | @REM This program and the accompanying materials\r | |
7 | @REM are licensed and made available under the terms and conditions of the BSD License\r | |
8 | @REM which accompanies this distribution. The full text of the license may be found at\r | |
9 | @REM http://opensource.org/licenses/bsd-license.php\r | |
10 | @REM\r | |
11 | @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | @REM\r | |
14 | \r | |
15 | \r | |
16 | @echo off\r | |
17 | goto :main\r | |
18 | \r | |
19 | :read_vsvars\r | |
20 | @rem Do nothing if already found, otherwise call vsvars32.bat if there\r | |
21 | if defined VCINSTALLDIR goto :EOF\r | |
22 | set GET_VSVARS_BAT_CHECK_DIR=%*\r | |
23 | set GET_VSVARS_BAT_CHECK_DIR=%GET_VSVARS_BAT_CHECK_DIR:"=%\r | |
24 | if exist "%GET_VSVARS_BAT_CHECK_DIR%\vsvars32.bat" call "%GET_VSVARS_BAT_CHECK_DIR%\vsvars32.bat"\r | |
25 | :vsvars_done\r | |
26 | goto :EOF\r | |
27 | \r | |
28 | \r | |
29 | REM NOTE: This file will find the most recent Visual Studio installation\r | |
30 | REM apparent from the environment.\r | |
31 | REM To use an older version, modify your environment set up.\r | |
32 | REM (Or invoke the relevant vsvars32 file beforehand).\r | |
33 | \r | |
34 | :main\r | |
35 | if defined VCINSTALLDIR goto :done\r | |
36 | if defined VS140COMNTOOLS call :read_vsvars "%VS140COMNTOOLS%"\r | |
37 | if defined VS120COMNTOOLS call :read_vsvars "%VS120COMNTOOLS%"\r | |
38 | if defined VS110COMNTOOLS call :read_vsvars "%VS110COMNTOOLS%"\r | |
39 | if defined VS100COMNTOOLS call :read_vsvars "%VS100COMNTOOLS%"\r | |
40 | if defined VS90COMNTOOLS call :read_vsvars "%VS90COMNTOOLS%"\r | |
41 | if defined VS80COMNTOOLS call :read_vsvars "%VS80COMNTOOLS%"\r | |
42 | if defined VS71COMNTOOLS call :read_vsvars "%VS71COMNTOOLS%"\r | |
43 | \r | |
44 | :done\r | |
45 | set GET_VSVARS_BAT_CHECK_DIR=\r |