X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=edksetup.bat;h=740537faa699fd5f0166eede603ac5a6501dfb3f;hp=da7c7e5ff0c799db7ad1f3d83fd8161fa5d7df5c;hb=2b5f1d9fb97f6bdbc5459ccd9e81e7bbe9ec0ff3;hpb=a9008cdd8a1d7fcd6f781deec9f20af7fe526faf diff --git a/edksetup.bat b/edksetup.bat index da7c7e5ff0..740537faa6 100644 --- a/edksetup.bat +++ b/edksetup.bat @@ -25,6 +25,14 @@ @echo off +@REM +@REM Set the WORKSPACE to the current working directory +@REM +set WORKSPACE=%CD% + +@if /I "%1"=="NewBuild" goto NewBuild + +:AntBuild @REM @REM Check the required system environment variables @REM @@ -60,11 +68,6 @@ if not exist %ANT_HOME%\lib\ant-contrib.jar goto no_antcontrib if "%XMLBEANS_HOME%"=="" goto no_xmlbeans if not exist %XMLBEANS_HOME%\lib\saxon8.jar goto no_saxon8 -@REM -@REM Set the WORKSPACE to the current working directory -@REM -set WORKSPACE=%CD% - set FRAMEWORK_TOOLS_PATH=%WORKSPACE%\Tools\bin if not defined ORIGINAL_CLASSPATH set ORIGINAL_CLASSPATH=%CLASSPATH% @@ -84,14 +87,14 @@ echo Resetting the PATH variable to include the FRAMEWORK_TOOLS_PATH for this WO :path_ok -@if "%1"=="-h" goto Usage -@if "%1"=="-help" goto Usage -@if "%1"=="--help" goto Usage -@if "%1"=="/h" goto Usage -@if "%1"=="/?" goto Usage -@if "%1"=="/help" goto Usage -@if "%1"=="ForceRebuild" goto ForceBuild -@if "%1"=="Reconfig" goto Reconfig +@if /I "%1"=="-h" goto Usage +@if /I "%1"=="-help" goto Usage +@if /I "%1"=="--help" goto Usage +@if /I "%1"=="/h" goto Usage +@if /I "%1"=="/?" goto Usage +@if /I "%1"=="/help" goto Usage +@if /I "%1"=="ForceRebuild" goto ForceBuild +@if /I "%1"=="Reconfig" goto Reconfig @IF NOT EXIST "Tools\Jars\Common.jar" goto NormalBuild @IF NOT EXIST "Tools\Jars\PcdTools.jar" goto NormalBuild @@ -132,7 +135,7 @@ echo Resetting the PATH variable to include the FRAMEWORK_TOOLS_PATH for this WO @IF NOT EXIST "Tools\bin\antlr.exe" goto NormalBuild @IF NOT EXIST "Tools\bin\dlg.exe" goto NormalBuild -@if "%1"=="Rebuild" goto NormalBuild +@if /I "%1"=="Rebuild" goto NormalBuild @if NOT "%1"=="" goto Usage goto skipbuild @@ -239,6 +242,8 @@ set CLASSPATH=%XMLBEANS_HOME%\lib\xbean.jar;%CLASSPATH% set CLASSPATH=%XMLBEANS_HOME%\lib\xbean_xpath.jar;%CLASSPATH% set CLASSPATH=%XMLBEANS_HOME%\lib\xmlpublic.jar;%CLASSPATH% set CLASSPATH=%XMLBEANS_HOME%\lib\saxon8.jar;%CLASSPATH% +set CLASSPATH=%XMLBEANS_HOME%\lib\saxon8-dom.jar;%CLASSPATH% +set CLASSPATH=%XMLBEANS_HOME%\lib\saxon8-xpath.jar;%CLASSPATH% set CLASSPATH=%XMLBEANS_HOME%\lib\resolver.jar;%CLASSPATH% set CLASSPATH=%WORKSPACE%\Tools\Jars\SurfaceArea.jar;%CLASSPATH% set CLASSPATH=%WORKSPACE%\Tools\Jars\Common.jar;%CLASSPATH% @@ -270,6 +275,12 @@ echo only copied to target.txt, tools_def.txt, FrameworkDatabase.db respectivel echo are not existed. Using option [Reconfig] to do the force copy. echo. +:NewBuild +@IF NOT EXIST "BaseTools\toolsetup.bat" goto AntBuild +@set EDK_TOOLS_PATH=%WORKSPACE%\BaseTools +@call BaseTools\toolsetup.bat +@goto end + :end @echo on