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 WORKSPACE
=C
:\mdk
17 @REM ##############################################################
18 @REM # You should
not have to modify anything below this line
24 if defined VCINSTALLDIR
goto check_java
25 if defined VS71COMNTOOLS
(
26 call "%VS71COMNTOOLS%vsvars32.bat"
29 echo !!! WARNING
!!!! Cannot
find Visual Studio
!!!
34 if "%JAVA_HOME%"=="" goto no_jdk
36 echo JAVA_HOME
: %JAVA_HOME%
38 @REM
Set the WORKSPACE to the Current Working Directory
40 echo WORKSPACE
: %WORKSPACE%
43 if not defined CYGWIN_HOME
(
44 if exist c
:\cygwin
(set CYGWIN_HOME
=c
:\cygwin
) else (
46 echo !!! Not set CYGWIN_HOME
, gcc build may
not be used
!!!
50 echo CYGWIN_HOME
: %CYGWIN_HOME%
53 if "%ANT_HOME%"=="" goto no_ant
54 echo ANT_HOME
: %ANT_HOME%
55 if not exist %ANT_HOME%\lib
\ant
-contrib.jar
goto no_antcontrib
57 if "%XMLBEANS_HOME%"=="" goto no_xmlbeans
58 echo XMLBEANS_HOME
: %XMLBEANS_HOME%
60 set Framework_Tools_Path
=%WORKSPACE%\Tools
\bin
63 set PATH=%Framework_Tools_Path%;%PATH%
68 if not exist %XMLBEANS_HOME%\lib\saxon8.jar
goto no_saxon8
70 echo Building the Tiano Tools
72 @REM We are going to create the SurfaceArea.jar file first so that other Java Program can
use it
73 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
75 call ant
-f
%WORKSPACE%Tools
\build.xml SurfaceArea
77 @REM Now we can make the other Java Programs
78 set CLASSPATH
=%WORKSPACE%Tools\Jars\SurfaceArea.jar
;%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
80 call ant
-f
%WORKSPACE%Tools
\build.xml JavaCode
82 @REM We have all of the Java Programs and add
-in classes created
, so we can
start using the cpp
-tasks to create our tools
83 set CLASSPATH
=%WORKSPACE%Tools\Jars\SurfaceArea.jar
;%WORKSPACE%Tools\Jars\GenBuild.jar
;%WORKSPACE%Tools\Jars\cpptasks.jar
;%WORKSPACE%Tools\Jars
\frameworktasks.jar
;%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
85 call ant
-f
%WORKSPACE%Tools
\build.xml C_Code
91 echo !!! Please install Java
, and
set JAVA_HOME
!!!
97 echo !!! Please install Apache Ant
, and
set ANT_HOME
!!!
103 echo !!! Please install Ant
-contrib to ANT_HOME
!!!
109 echo !!! Please install XML Beans
, and
set XMLBEANS_HOME
!!!
115 echo !!! Please
copy saxon8.jar file to XMLBEANS_HOME\lib
!!!