mirror of https://github.com/acidanthera/audk.git
Modified to handle XMLBEANS_HOME
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@30 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
abea19dbe1
commit
42b67fc47e
30
edksetup.bat
30
edksetup.bat
|
@ -32,9 +32,12 @@ if defined VS71COMNTOOLS (
|
|||
|
||||
:check_java
|
||||
if "%JAVA_HOME%"=="" goto no_jdk
|
||||
echo.
|
||||
echo JAVA_HOME: %JAVA_HOME%
|
||||
|
||||
@REM Set the WORKSPACE to the Current Working Directory
|
||||
set WORKSPACE=%~dp0
|
||||
echo WORKSPACE: %WORKSPACE%
|
||||
|
||||
:set_cygwin
|
||||
if not defined CYGWIN_HOME (
|
||||
|
@ -43,16 +46,19 @@ if not defined CYGWIN_HOME (
|
|||
echo !!! Not set CYGWIN_HOME, gcc build may not be used !!!
|
||||
echo.
|
||||
)
|
||||
) else (
|
||||
echo CYGWIN_HOME: %CYGWIN_HOME%
|
||||
)
|
||||
|
||||
if "%ANT_HOME%"=="" goto no_ant
|
||||
echo ANT_HOME: %ANT_HOME%
|
||||
if not exist %ANT_HOME%\lib\ant-contrib.jar goto no_antcontrib
|
||||
|
||||
if "%XMLBEANS_HOME%"=="" goto no_xmlbeans
|
||||
echo XMLBEANS_HOME: %XMLBEANS_HOME%
|
||||
|
||||
set Framework_Tools_Path=%WORKSPACE%\Tools\bin
|
||||
|
||||
echo.
|
||||
echo WORKSPACE: %WORKSPACE%
|
||||
echo ANT_HOME: %ANT_HOME%
|
||||
echo JAVA_HOME: %JAVA_HOME%
|
||||
|
||||
if "%PATHBACKUP%"=="" set PATHBACKUP=%PATH%
|
||||
set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATHBACKUP%;%CYGWIN_HOME%\bin
|
||||
|
@ -60,6 +66,10 @@ set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bi
|
|||
echo PATH: %PATH%
|
||||
echo.
|
||||
|
||||
if not exist %XMLBEANS_HOME%\lib\saxon8.jar goto no_saxon8
|
||||
|
||||
echo Building the Tiano Tools
|
||||
|
||||
@REM We are going to create the SurfaceArea.jar file first so that other Java Program can use it
|
||||
set CLASSPATH=%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar;%XMLBEANS_HOME%\lib\xbean.jar;%XMLBEANS_HOME%\lib\xbean_xpath.jar;%XMLBEANS_HOME%\lib\xmlpublic.jar;%XMLBEANS_HOME%\lib\saxon8.jar
|
||||
|
||||
|
@ -89,12 +99,24 @@ echo !!! Please install Apache Ant, and set ANT_HOME !!!
|
|||
echo.
|
||||
goto end
|
||||
|
||||
:no_antcontrib
|
||||
echo.
|
||||
echo !!! Please install Ant-contrib to ANT_HOME !!!
|
||||
echo.
|
||||
goto end
|
||||
|
||||
:no_xmlbeans
|
||||
echo.
|
||||
echo !!! Please install XML Beans, and set XMLBEANS_HOME !!!
|
||||
echo.
|
||||
goto end
|
||||
|
||||
:no_saxon8
|
||||
echo.
|
||||
echo !!! Please copy saxon8.jar file to XMLBEANS_HOME\lib !!!
|
||||
echo.
|
||||
goto end
|
||||
|
||||
:end
|
||||
@echo on
|
||||
|
||||
|
|
Loading…
Reference in New Issue