X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=edksetup.bat;h=91b83c637d21ead17e07639b06bc7b6b9af383bf;hp=475d830db936031d6da60992ec4d1750931efd7b;hb=59ab6d02a98545df6b35178cce796af7ad56d0b9;hpb=26096d369d88f4101847b32e8b59dde43f6fe47c diff --git a/edksetup.bat b/edksetup.bat index 475d830db9..91b83c637d 100644 --- a/edksetup.bat +++ b/edksetup.bat @@ -39,8 +39,20 @@ set WORKSPACE=%CD% @if /I "%1"=="/?" goto Usage @if /I "%1"=="/help" goto Usage @if /I not "%1"=="--nt32" goto check_new_build +if not defined VCINSTALLDIR ( + if defined VS71COMNTOOLS ( + call "%VS71COMNTOOLS%\vsvars32.bat" + ) else ( + if defined VS80COMNTOOLS ( + call "%VS80COMNTOOLS%\vsvars32.bat" + ) else ( + echo. + echo !!! WARNING !!! Cannot find Visual Studio !!! + echo. + ) + ) +) shift -goto check_vc :check_new_build @if /I "%1"=="NewBuild" goto NewBuild @@ -56,10 +68,9 @@ if defined VS71COMNTOOLS ( call "%VS71COMNTOOLS%\vsvars32.bat" ) else ( echo. - echo !!! WARNING !!!! Cannot find Visual Studio !!! + echo !!! WARNING !!! Cannot find Visual Studio !!! echo. ) -goto check_new_build :check_cygwin if defined CYGWIN_HOME goto check_java @@ -67,7 +78,7 @@ if exist c:\cygwin ( set CYGWIN_HOME=c:\cygwin ) else ( echo. - echo !!! WARNING !!!! Not set CYGWIN_HOME, gcc build may not be used !!! + echo !!! WARNING !!! No CYGWIN_HOME set, gcc build may not be used !!! echo. ) @@ -273,12 +284,12 @@ goto end :Usage echo. -echo Usage: %0 [--nt32] [NewBuild] [Rebuild] [ForceRebuild] [Reconfig] +echo Usage: "%0 [--nt32] [NewBuild | Rebuild | ForceRebuild | Reconfig]" echo --nt32 Call vsvars32.bat for NT32 platform build echo NewBuild Using new build tools in BaseTools package -echo Rebuild: Incremental build, only build those updated tools; -echo ForceRebuild: Rebuild all tools neither updated or not; -echo Reconfig: Reinstall target.txt, tools_def.txt, FrameworkDatabase.db. +echo Rebuild Incremental build, only build those updated tools (Ant build only) +echo ForceRebuild Rebuild all tools neither updated or not (Ant build only) +echo Reconfig Reinstall target.txt, tools_def.txt, FrameworkDatabase.db (Ant build only) echo. echo Note that target.template, tools_def.template, FrameworkDatabase.template will be echo only copied to target.txt, tools_def.txt, FrameworkDatabase.db respectively if they