VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/BaseTools/Scripts/SetVisualStudio.bat@ 105681

最後變更 在這個檔案從105681是 101291,由 vboxsync 提交於 14 月 前

EFI/FirmwareNew: Make edk2-stable202308 build on all supported platforms (using gcc at least, msvc not tested yet), bugref:4643

  • 屬性 svn:eol-style 設為 CRLF
  • 屬性 svn:executable 設為 *
檔案大小: 2.4 KB
 
1@REM @file
2@REM Windows batch file to set up the Microsoft Visual Studio environment
3@REM
4@REM This script is used to set up one of the Microsoft Visual Studio
5@REM environments, VS2015 for
6@REM building the Nt32Pkg/Nt32Pkg.dsc emulation environment to run on
7@REM an X64 version of Windows.
8@REM The system environment variables in this script are set by the
9@rem Edk2Setup.bat script (that will be renamed to edksetup.bat).
10@REM
11@REM This script can also be used to build the Win32 binaries
12@REM
13@REM Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
14@REM SPDX-License-Identifier: BSD-2-Clause-Patent
15@REM
16@echo off
17@if defined NT32_X64 @goto CheckLatest
18@if "%REBUILD_TOOLS%"=="TRUE" @goto RebuildTools
19
20:CheckLatest
21echo.
22@if defined VS140COMNTOOLS (
23 @set "COMMONTOOLSx64=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64"
24 @goto SetVs
25)
26@echo.
27@echo No version of Microsoft Visual Studio was found on this system
28@echo.
29@exit /B 1
30
31@REM Set up the X64 environment for building Nt32Pkg/Nt32Pkg.dsc to run on an X64 platform
32:SetVs
33if exist "%COMMONTOOLSx64%\vcvarsx86_amd64.bat" (
34 @call "%COMMONTOOLSx64%\vcvarsx86_amd64.bat"
35 @if errorlevel 1 (
36 @echo. ERROR setting Microsoft Visual Studio %1
37 @set COMMONTOOLSx64=
38 @exit /B 1
39 )
40)
41if not exist "%COMMONTOOLSx64%\vcvarsx86_amd64.bat" (
42 @echo ERROR : This script does not exist: "%COMMONTOOLSx64%\vcvarsx86_amd64.bat"
43 @set COMMONTOOLSx64=
44 @exit /B 1
45)
46@set COMMONTOOLSx64=
47@goto End
48
49:RebuildTools
50@call python "%BASE_TOOLS_PATH%\Scripts\UpdateBuildVersions.py"
51@set "BIN_DIR=%EDK_TOOLS_PATH%\Bin\Win32"
52if not exist "%BIN_DIR%" @mkdir "%BIN_DIR%"
53@echo Removing temporary and binary files
54@cd "%BASE_TOOLS_PATH%"
55@call nmake cleanall
56@echo Rebuilding the EDK II BaseTools
57@cd "%BASE_TOOLS_PATH%\Source\C"
58@call nmake -nologo -a -f Makefile
59@if errorlevel 1 (
60@echo Error building the C-based BaseTools
61@cd "%WORKSPACE%"
62@exit /B1
63)
64@cd %BASE_TOOLS_PATH%\Source\Python
65@call nmake -nologo -a -f Makefile
66@if errorlevel 1 (
67@echo Error building the Python-based BaseTools
68@cd %WORKSPACE%
69@exit /B1
70)
71@cd %WORKSPACE%
72
73@goto End
74
75:VersionNotFound
76@echo.
77@echo This Microsoft Visual Studio version is in not installed on this system: %1
78@echo.
79@exit /B 1
80
81:End
82@exit /B 0
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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