summaryrefslogtreecommitdiffstats
path: root/edksetup.bat
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2019-06-12 11:28:46 +0800
committerLiming Gao <liming.gao@intel.com>2019-06-28 15:04:42 +0800
commit6759212fa69d5d266c2854ea6de44bfd3f7e370b (patch)
tree780f1255422bc89603fc4f2dbdc293b9def0bf7b /edksetup.bat
parent541d6017e2d1f3a3a9e016c0ce03704e57f7ceb1 (diff)
downloadedk2-6759212fa69d5d266c2854ea6de44bfd3f7e370b.tar.gz
edk2-6759212fa69d5d266c2854ea6de44bfd3f7e370b.tar.bz2
edk2-6759212fa69d5d266c2854ea6de44bfd3f7e370b.zip
Edk2Setup: Support different VS tool chain setup
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1693 This patch is to update edksetup with additional option: VS2017 VS2015 VS2013 VS2012 to setup different VS environment. And will report error if the specified VS tool is not installed. For VS2017, also consider the case that only VS2017 build tool is installed. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'edksetup.bat')
-rwxr-xr-xedksetup.bat10
1 files changed, 9 insertions, 1 deletions
diff --git a/edksetup.bat b/edksetup.bat
index d607e2ebea..5f6028deff 100755
--- a/edksetup.bat
+++ b/edksetup.bat
@@ -133,15 +133,23 @@ if defined CYGWIN_HOME (
:cygwin_done
if /I "%1"=="Rebuild" shift
if /I "%1"=="ForceRebuild" shift
+if /I "%1"=="VS2017" shift
+if /I "%1"=="VS2015" shift
+if /I "%1"=="VS2013" shift
+if /I "%1"=="VS2012" shift
if "%1"=="" goto end
:Usage
@echo.
- @echo Usage: "%0 [-h | -help | --help | /h | /help | /?] [Reconfig] [Rebuild] [ForceRebuild]"
+ @echo Usage: "%0 [-h | -help | --help | /h | /help | /?] [Reconfig] [Rebuild] [ForceRebuild] [VS2017] [VS2015] [VS2013] [VS2012]"
@echo.
@echo Reconfig Reinstall target.txt, tools_def.txt and build_rule.txt.
@echo Rebuild Perform incremental rebuild of BaseTools binaries.
@echo ForceRebuild Force a full rebuild of BaseTools binaries.
+ @echo VS2012 Set the env for VS2012 build.
+ @echo VS2013 Set the env for VS2013 build.
+ @echo VS2015 Set the env for VS2015 build.
+ @echo VS2017 Set the env for VS2017 build.
@echo.
@echo Note that target.template, tools_def.template and build_rules.template
@echo will only be copied to target.txt, tools_def.txt and build_rule.txt