]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Scripts/SetVisualStudio.bat
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Scripts / SetVisualStudio.bat
index a302a835969f036d30093172a4b253cded311671..60d493a4110dcc680ce9b42156f56c8d37ca2407 100755 (executable)
 @REM This script can also be used to build the Win32 binaries\r
 @REM\r
 @REM Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
-@REM This program and the accompanying materials\r
-@REM are licensed and made available under the terms and conditions of the BSD License\r
-@REM which accompanies this distribution.  The full text of the license may be found at\r
-@REM http://opensource.org/licenses/bsd-license.php\r
-@REM\r
-@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+@REM SPDX-License-Identifier: BSD-2-Clause-Patent\r
 @REM\r
 @echo off\r
 @if defined NT32_X64 @goto CheckLatest\r
 \r
 :CheckLatest\r
 echo.\r
+@if defined VS140COMNTOOLS (\r
+   @set "COMMONTOOLSx64=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64"\r
+   @goto SetVs\r
+)\r
+\r
 @if defined VS120COMNTOOLS (\r
    @set "COMMONTOOLSx64=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64"\r
    @goto SetVs\r
@@ -68,7 +67,7 @@ if not exist "%COMMONTOOLSx64%\vcvarsx86_amd64.bat" (
 @goto End\r
 \r
 :RebuildTools\r
-@call python "%WORKSPACE%\BaseTools\Scripts\UpdateBuildVersions.py"\r
+@call python "%BASE_TOOLS_PATH%\Scripts\UpdateBuildVersions.py"\r
 @set "BIN_DIR=%EDK_TOOLS_PATH%\Bin\Win32"\r
 if not exist "%BIN_DIR%" @mkdir "%BIN_DIR%"\r
 @echo Removing temporary and binary files\r