]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/toolsetup.bat
OvmfPkg/VmgExitLib: Add support for IOIO_PROT NAE events
[mirror_edk2.git] / BaseTools / toolsetup.bat
index 395694fa090a949a51dde8611c9cd430f16c2624..61ebf4ae09bc64fc67d03f9bb22215d8270da46e 100755 (executable)
@@ -3,7 +3,7 @@
 @REM   however it may be executed directly from the BaseTools project folder\r
 @REM   if the file is not executed within a WORKSPACE\BaseTools folder.\r
 @REM\r
-@REM Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+@REM Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
 @REM (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
 @REM\r
 @REM SPDX-License-Identifier: BSD-2-Clause-Patent\r
@@ -42,6 +42,12 @@ if /I "%1"=="/?" goto Usage
     set FORCE_REBUILD=TRUE\r
     goto loop\r
   )\r
+  if /I "%1"=="VS2019" (\r
+    shift\r
+    set VS2019=TRUE\r
+    set VSTool=VS2019\r
+    goto loop\r
+  )\r
   if /I "%1"=="VS2017" (\r
     shift\r
     set VS2017=TRUE\r
@@ -176,7 +182,9 @@ IF NOT exist "%EDK_TOOLS_PATH%\set_vsprefix_envs.bat" (
   @echo.\r
   goto end\r
 )\r
-if defined VS2017 (\r
+if defined VS2019 (\r
+  call %EDK_TOOLS_PATH%\set_vsprefix_envs.bat VS2019\r
+) else if defined VS2017 (\r
   call %EDK_TOOLS_PATH%\set_vsprefix_envs.bat VS2017\r
 ) else if defined VS2015 (\r
   call %EDK_TOOLS_PATH%\set_vsprefix_envs.bat VS2015\r
@@ -444,7 +452,7 @@ goto end
 \r
 :Usage\r
   @echo.\r
-  echo  Usage: "%0 [-h | -help | --help | /h | /help | /?] [ Rebuild | ForceRebuild ] [Reconfig] [base_tools_path [edk_tools_path]] [VS2017] [VS2015] [VS2013] [VS2012]"\r
+  echo  Usage: "%0 [-h | -help | --help | /h | /help | /?] [ Rebuild | ForceRebuild ] [Reconfig] [base_tools_path [edk_tools_path]] [VS2019] [VS2017] [VS2015] [VS2013] [VS2012]"\r
   @echo.\r
   @echo         base_tools_path   BaseTools project path, BASE_TOOLS_PATH will be set to this path.\r
   @echo         edk_tools_path    EDK_TOOLS_PATH will be set to this path.\r
@@ -457,12 +465,14 @@ goto end
   @echo         VS2013            Set the env for VS2013 build.\r
   @echo         VS2015            Set the env for VS2015 build.\r
   @echo         VS2017            Set the env for VS2017 build.\r
+  @echo         VS2019            Set the env for VS2019 build.\r
   @echo.\r
 \r
 :end\r
 set REBUILD=\r
 set FORCE_REBUILD=\r
 set RECONFIG=\r
+set VS2019=\r
 set VS2017=\r
 set VS2015=\r
 set VS2013=\r