VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/BaseTools/set_vsprefix_envs.bat@ 77678

最後變更 在這個檔案從77678是 77662,由 vboxsync 提交於 6 年 前

EFI: First step in UDK2018 merge. Does not build yet.

  • 屬性 svn:eol-style 設為 CRLF
檔案大小: 4.1 KB
 
1@REM @file
2@REM This stand-alone program is typically called by the toolsetup.bat file,
3@REM however it may be executed directly from the BaseTools project folder
4@REM if the file is not executed within a WORKSPACE\BaseTools folder.
5@REM
6@REM Copyright (c) 2016-2017, Intel Corporation. All rights reserved.<BR>
7@REM
8@REM This program and the accompanying materials are licensed and made available
9@REM under the terms and conditions of the BSD License which accompanies this
10@REM distribution. The full text of the license may be found at:
11@REM http://opensource.org/licenses/bsd-license.php
12@REM
13@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR
15@REM IMPLIED.
16@REM
17
18@echo off
19pushd .
20
21if defined VS71COMNTOOLS (
22 if not defined VS2003_PREFIX (
23 set "VS2003_PREFIX=%VS71COMNTOOLS:~0,-14%"
24 )
25)
26
27if defined VS80COMNTOOLS (
28 if not defined VS2005_PREFIX (
29 set "VS2005_PREFIX=%VS80COMNTOOLS:~0,-14%"
30 )
31)
32
33if defined VS90COMNTOOLS (
34 if not defined VS2008_PREFIX (
35 set "VS2008_PREFIX=%VS90COMNTOOLS:~0,-14%"
36 )
37 if not defined WINSDK_PREFIX (
38 set "WINSDK_PREFIX=c:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\"
39 )
40 if not defined WINSDKx86_PREFIX (
41 set "WINSDKx86_PREFIX=c:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\bin\"
42 )
43)
44
45if defined VS100COMNTOOLS (
46 if not defined VS2010_PREFIX (
47 set "VS2010_PREFIX=%VS100COMNTOOLS:~0,-14%"
48 )
49 if not defined WINSDK7_PREFIX (
50 set "WINSDK7_PREFIX=c:\Program Files\Microsoft SDKs\Windows\v7.0A\Bin\"
51 )
52 if not defined WINSDK7x86_PREFIX (
53 set "WINSDK7x86_PREFIX=c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\"
54 )
55)
56
57if defined VS110COMNTOOLS (
58 if not defined VS2012_PREFIX (
59 set "VS2012_PREFIX=%VS110COMNTOOLS:~0,-14%"
60 )
61 if not defined WINSDK71_PREFIX (
62 set "WINSDK71_PREFIX=c:\Program Files\Microsoft SDKs\Windows\v7.1A\Bin\"
63 )
64 if not defined WINSDK71x86_PREFIX (
65 set "WINSDK71x86_PREFIX=c:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\"
66 )
67)
68
69if defined VS120COMNTOOLS (
70 if not defined VS2013_PREFIX (
71 set "VS2013_PREFIX=%VS120COMNTOOLS:~0,-14%"
72 )
73 if not defined WINSDK8_PREFIX (
74 set "WINSDK8_PREFIX=c:\Program Files\Windows Kits\8.0\bin\"
75 )
76 if not defined WINSDK8x86_PREFIX (
77 set "WINSDK8x86_PREFIX=c:\Program Files (x86)\Windows Kits\8.0\bin\"
78 )
79)
80
81if defined VS140COMNTOOLS (
82 if not defined VS2015_PREFIX (
83 set "VS2015_PREFIX=%VS140COMNTOOLS:~0,-14%"
84 )
85 if not defined WINSDK81_PREFIX (
86 set "WINSDK81_PREFIX=c:\Program Files\Windows Kits\8.1\bin\"
87 )
88 if not defined WINSDK81x86_PREFIX (
89 set "WINSDK81x86_PREFIX=c:\Program Files (x86)\Windows Kits\8.1\bin\"
90 )
91)
92
93@REM set VS2017
94if not defined VS150COMNTOOLS (
95 if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" (
96 for /f "usebackq tokens=1* delims=: " %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"`) do (
97 if /i "%%i"=="installationPath" call "%%j\VC\Auxiliary\Build\vcvars32.bat"
98 )
99 ) else if exist "%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe" (
100 for /f "usebackq tokens=1* delims=: " %%i in (`"%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"`) do (
101 if /i "%%i"=="installationPath" call "%%j\VC\Auxiliary\Build\vcvars32.bat"
102 )
103 ) else (
104 goto SetWinDDK
105 )
106)
107
108if defined VCToolsInstallDir (
109 if not defined VS2017_PREFIX (
110 set "VS2017_PREFIX=%VCToolsInstallDir%"
111 )
112)
113if not defined WINSDK10_PREFIX (
114 if defined WindowsSdkVerBinPath (
115 set "WINSDK10_PREFIX=%WindowsSdkVerBinPath%"
116 ) else if exist "%ProgramFiles(x86)%\Windows Kits\10\bin" (
117 set "WINSDK10_PREFIX=%ProgramFiles(x86)%\Windows Kits\10\bin\"
118 ) else if exist "%ProgramFiles%\Windows Kits\10\bin" (
119 set "WINSDK10_PREFIX=%ProgramFiles%\Windows Kits\10\bin\"
120 )
121)
122
123:SetWinDDK
124if not defined WINDDK3790_PREFIX (
125 set WINDDK3790_PREFIX=C:\WINDDK\3790.1830\bin\
126)
127
128if not defined IASL_PREFIX (
129 set IASL_PREFIX=C:\ASL\
130)
131
132popd
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette