2 @REM Copyright
(c
) 2006, Intel Corporation
3 @REM All rights reserved. This program and the accompanying materials
4 @REM are licensed and made available under the terms and conditions of the BSD License
5 @REM which accompanies this distribution. The full text of the license may be found at
6 @REM http
://opensource.org
/licenses
/bsd
-license.php
8 @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN
"AS IS" BASIS
,
9 @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND
, EITHER EXPRESS OR IMPLIED.
12 @REM
set following environment in this file or in
command shell
13 @REM
set JAVA_HOME
=C
:\Java\jdk1.5
.0_04
14 @REM
set ANT_HOME
=C
:\ANT
15 @REM
set XMLBEANS_HOME
=C
:\xmlbeans
16 @REM
set CYGWIN_HOME
=C
:\cygwin
18 @REM usage
: edksetup.bat
[skip
]
19 @REM
if the argument
, skip is present
, only the paths and the
20 @REM test and
set of environment settings are performed.
22 @REM ##############################################################
23 @REM # You should
not have to modify anything below this line
29 @REM Check the required system environment variables
32 if "%1"=="skip" goto skipbuild
35 if defined VCINSTALLDIR
goto check_cygwin
36 if defined VS71COMNTOOLS
(
37 call "%VS71COMNTOOLS%vsvars32.bat"
40 echo !!! WARNING
!!!! Cannot
find Visual Studio
!!!
45 if defined CYGWIN_HOME
goto check_java
47 set CYGWIN_HOME
=c
:\cygwin
50 echo !!! WARNING
!!!! Not set CYGWIN_HOME
, gcc build may
not be used
!!!
55 if "%JAVA_HOME%"=="" goto no_jdk
58 if "%ANT_HOME%"=="" goto no_ant
59 if not exist %ANT_HOME%\lib
\ant
-contrib.jar
goto no_antcontrib
62 if "%XMLBEANS_HOME%"=="" goto no_xmlbeans
63 if not exist %XMLBEANS_HOME%\lib\saxon8.jar
goto no_saxon8
66 @REM
Set the WORKSPACE to the current working directory
70 set FRAMEWORK_TOOLS_PATH
=%WORKSPACE%\Tools
\bin
71 set PATH=%JAVA_HOME%\bin
;%ANT_HOME%\bin
;%XMLBEANS_HOME%\bin
;%Framework_Tools_Path%;%PATH%
74 echo JAVA_HOME
: %JAVA_HOME%
75 echo ANT_HOME
: %ANT_HOME%
76 echo XMLBEANS_HOME
: %XMLBEANS_HOME%
77 echo CYGWIN_HOME
: %CYGWIN_HOME%
78 echo WORKSPACE
: %WORKSPACE%
83 @REM
Start to build the Framework Tools
88 echo Building the Framework Tools
92 @REM We are going to create the SurfaceArea.jar file first so that the other
93 @REM Java Programs can
use it.
94 @REM It needs the XMLBEANS libraries in order to compile.
96 set CLASSPATH
=%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar
;%XMLBEANS_HOME%\lib
\xbean.jar
97 set CLASSPATH
=%CLASSPATH%;%XMLBEANS_HOME%\lib
\xbean_xpath.jar
;%XMLBEANS_HOME%\lib\xmlpublic.jar
98 set CLASSPATH
=%CLASSPATH%;%XMLBEANS_HOME%\lib\saxon8.jar
;%XMLBEANS_HOME%\lib
\resolver.jar
100 call ant
-f
%WORKSPACE%\Tools
\build.xml SurfaceArea
103 @REM Now we can make the other Java Programs
104 @REM All of the remaining Java Programs require the SurfaceArea library to compile
106 set CLASSPATH
=%CLASSPATH%;%WORKSPACE%\
%Tools\Jars\SurfaceArea.jar
108 call ant
-f
%WORKSPACE%\Tools
\build.xml JavaCode
111 @REM We have all of the Java Programs and add
-in classes created
, so we can
start
112 @REM using the cpp
-tasks to create our tools
114 set CLASSPATH
=%CLASSPATH%;%WORKSPACE%\Tools\Jars\GenBuild.jar
115 set CLASSPATH
=%CLASSPATH%;%WORKSPACE%\Tools\Jars\cpptasks.jar
;%WORKSPACE%\Tools\Jars
\frameworktasks.jar
117 call ant
-f
%WORKSPACE%\Tools
\build.xml C_Code
126 echo !!! Please install Java
, and
set JAVA_HOME
!!!
132 echo !!! Please install Apache Ant
, and
set ANT_HOME
!!!
138 echo !!! Please install Ant
-contrib to ANT_HOME
!!!
144 echo !!! Please install XML Beans
, and
set XMLBEANS_HOME
!!!
150 echo !!! Please
copy saxon8.jar file to XMLBEANS_HOME\lib
!!!
156 @REM This just sets up the CLASSPATH
, the rest of the environment should have been
set already.
159 set FRAMEWORK_TOOLS_PATH
=%WORKSPACE%\Tools
\bin
160 if exist c
:\cygwin
set CYGWIN_HOME
=c
:\cygwin
162 echo JAVA_HOME
: %JAVA_HOME%
163 echo ANT_HOME
: %ANT_HOME%
164 echo XMLBEANS_HOME
: %XMLBEANS_HOME%
165 echo CYGWIN_HOME
: %CYGWIN_HOME%
166 echo WORKSPACE
: %WORKSPACE%
169 set CLASSPATH
=%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar
;%XMLBEANS_HOME%\lib
\xbean.jar
170 set CLASSPATH
=%CLASSPATH%;%XMLBEANS_HOME%\lib
\xbean_xpath.jar
;%XMLBEANS_HOME%\lib\xmlpublic.jar
171 set CLASSPATH
=%CLASSPATH%;%XMLBEANS_HOME%\lib\saxon8.jar
;%XMLBEANS_HOME%\lib
\resolver.jar
172 set CLASSPATH
=%CLASSPATH%;%WORKSPACE%\Tools\Jars\SurfaceArea.jar
;%WORKSPACE%\Tools\Jars\GenBuild.jar
173 set CLASSPATH
=%CLASSPATH%;%WORKSPACE%\Tools\Jars\cpptasks.jar
;%WORKSPACE%\Tools\Jars
\frameworktasks.jar