X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=edksetup.bat;h=333f061eabc9ac3246693f1885e1409e9256331f;hp=b2cbd83f55c805fb7d632bcb7c5bf71908e06ad1;hb=7b8617fbc979e15cf92daa2b2eafe6e0b7e77d53;hpb=f907f57b9cd20ea567d78acaff1e7fec908569e5 diff --git a/edksetup.bat b/edksetup.bat index b2cbd83f55..333f061eab 100644 --- a/edksetup.bat +++ b/edksetup.bat @@ -10,12 +10,12 @@ @REM @REM set following environment in this file or in command shell -@REM set JAVA_HOME=C:\Java\jdk1.5.0_04 +@REM set JAVA_HOME=C:\Java\jdk1.5.0_06 @REM set ANT_HOME=C:\ANT @REM set XMLBEANS_HOME=C:\xmlbeans @REM set CYGWIN_HOME=C:\cygwin -@REM usage: edksetup.bat [skip] +@REM usage: edksetup.bat [Rebuild] [ForceRebuild] @REM if the argument, skip is present, only the paths and the @REM test and set of environment settings are performed. @@ -32,7 +32,7 @@ :check_vc if defined VCINSTALLDIR goto check_cygwin if defined VS71COMNTOOLS ( - call "%VS71COMNTOOLS%vsvars32.bat" + call "%VS71COMNTOOLS%\vsvars32.bat" ) else ( echo. echo !!! WARNING !!!! Cannot find Visual Studio !!! @@ -67,17 +67,20 @@ set WORKSPACE=%CD% set FRAMEWORK_TOOLS_PATH=%WORKSPACE%\Tools\bin +if not defined ORIGINAL_CLASSPATH set ORIGINAL_CLASSPATH= %CLASSPATH% +set CLASSPATH=%ORIGINAL_CLASSPATH% + if defined WORKSPACE_TOOLS_PATH goto check_path set PATH=%FRAMEWORK_TOOLS_PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin;%XMLBEANS_HOME%\bin;%PATH% set WORKSPACE_TOOLS_PATH=%FRAMEWORK_TOOLS_PATH% -echo Setting the PATH variable to include the Framework_Tools_Path for this WORKSPACE +echo Setting the PATH variable to include the FRAMEWORK_TOOLS_PATH for this WORKSPACE goto path_ok :check_path if "%FRAMEWORK_TOOLS_PATH%"=="%WORKSPACE_TOOLS_PATH%" goto path_ok set PATH=%FRAMEWORK_TOOLS_PATH%;%PATH% -set WORKSPACE_PATH=%WORKSPACE% -echo Resetting the PATH variable to include the Framework_Tools_Path for this WORKSPACE +set WORKSPACE_TOOLS_PATH=%WORKSPACE%\Tools\bin +echo Resetting the PATH variable to include the FRAMEWORK_TOOLS_PATH for this WORKSPACE :path_ok @@ -89,6 +92,7 @@ echo Resetting the PATH variable to include the Framework_Tools_Path for this WO @if "%1"=="/help" goto Usage @IF NOT EXIST "Tools\Jars\Common.jar" goto NormalBuild +@IF NOT EXIST "Tools\Jars\PcdTools.jar" goto NormalBuild @IF NOT EXIST "Tools\Jars\GenBuild.jar" goto NormalBuild @IF NOT EXIST "Tools\Jars\SurfaceArea.jar" goto NormalBuild @IF NOT EXIST "Tools\Jars\cpptasks.jar" goto NormalBuild @@ -107,8 +111,6 @@ echo Resetting the PATH variable to include the Framework_Tools_Path for this WO @IF NOT EXIST "Tools\bin\GenDepex.exe" goto NormalBuild @IF NOT EXIST "Tools\bin\GenFfsFile.exe" goto NormalBuild @IF NOT EXIST "Tools\bin\GenFvImage.exe" goto NormalBuild -@IF NOT EXIST "Tools\bin\GenFvImage_IA32.exe" goto NormalBuild -@IF NOT EXIST "Tools\bin\GenFvImage_IPF.exe" goto NormalBuild @IF NOT EXIST "Tools\bin\GenSection.exe" goto NormalBuild @IF NOT EXIST "Tools\bin\GenTEImage.exe" goto NormalBuild @IF NOT EXIST "Tools\bin\GuidChk.exe" goto NormalBuild @@ -130,11 +132,12 @@ echo Resetting the PATH variable to include the Framework_Tools_Path for this WO @if "%1"=="Rebuild" goto NormalBuild @if "%1"=="ForceRebuild" goto ForceBuild +@if NOT "%1"=="" goto Usage goto skipbuild -:ForceBuild -call ant -f %WORKSPACE%\Tools\build.xml cleanall +:ForceBuild +call ant -f %WORKSPACE%\Tools\build.xml -noclasspath cleanall :NormalBuild @REM @@ -150,7 +153,7 @@ echo. @REM Java Programs can use it. @REM It needs the XMLBEANS libraries in order to compile. @REM -set CLASSPATH=%XMLBEANS_HOME%\lib +set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean.jar set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean_xpath.jar @@ -173,10 +176,12 @@ call ant -f %WORKSPACE%\Tools\build.xml JavaCode @REM using the cpp-tasks to create our tools @REM set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\Common.jar +set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\PcdTools.jar set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\GenBuild.jar set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\cpptasks.jar set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\frameworktasks.jar set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Bin\FrameworkWizard.jar +set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Bin\MigrationTools.jar call ant -f %WORKSPACE%\Tools\build.xml C_Code @@ -227,7 +232,7 @@ echo XMLBEANS_HOME: %XMLBEANS_HOME% echo CYGWIN_HOME: %CYGWIN_HOME% echo PATH: %PATH% echo. -set CLASSPATH=%XMLBEANS_HOME%\lib +set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean.jar set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean_xpath.jar @@ -236,10 +241,13 @@ set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\saxon8.jar set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\resolver.jar set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\SurfaceArea.jar set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\Common.jar +set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\PcdTools.jar set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\GenBuild.jar set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\cpptasks.jar set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\frameworktasks.jar set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Bin\FrameworkWizard.jar +set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Bin\MigrationTools.jar +echo CLASSPATH: %CLASSPATH% goto end :Usage