]>
Commit | Line | Data |
---|---|---|
1 | @REM\r | |
2 | @REM Copyright (c) 2006, Intel Corporation\r | |
3 | @REM All rights reserved. This program and the accompanying materials\r | |
4 | @REM are licensed and made available under the terms and conditions of the BSD License\r | |
5 | @REM which accompanies this distribution. The full text of the license may be found at\r | |
6 | @REM http://opensource.org/licenses/bsd-license.php\r | |
7 | @REM\r | |
8 | @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
9 | @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
10 | @REM\r | |
11 | \r | |
12 | @REM set following environment in this file or in command shell\r | |
13 | @REM set JAVA_HOME=C:\Java\jdk1.5.0_04\r | |
14 | @REM set ANT_HOME=C:\ANT\r | |
15 | @REM set XMLBEANS_HOME=C:\xmlbeans\r | |
16 | @REM set CYGWIN_HOME=C:\cygwin\r | |
17 | \r | |
18 | \r | |
19 | @REM ##############################################################\r | |
20 | @REM # You should not have to modify anything below this line\r | |
21 | @REM #\r | |
22 | \r | |
23 | @echo off\r | |
24 | \r | |
25 | @REM\r | |
26 | @REM Check the required system environment variables\r | |
27 | @REM\r | |
28 | \r | |
29 | :check_vc\r | |
30 | if defined VCINSTALLDIR goto check_cygwin\r | |
31 | if defined VS71COMNTOOLS (\r | |
32 | call "%VS71COMNTOOLS%vsvars32.bat"\r | |
33 | ) else (\r | |
34 | echo.\r | |
35 | echo !!! WARNING !!!! Cannot find Visual Studio !!!\r | |
36 | echo.\r | |
37 | )\r | |
38 | \r | |
39 | :check_cygwin\r | |
40 | if defined CYGWIN_HOME goto check_java\r | |
41 | if exist c:\cygwin (\r | |
42 | set CYGWIN_HOME=c:\cygwin\r | |
43 | ) else (\r | |
44 | echo.\r | |
45 | echo !!! WARNING !!!! Not set CYGWIN_HOME, gcc build may not be used !!!\r | |
46 | echo.\r | |
47 | )\r | |
48 | \r | |
49 | :check_java\r | |
50 | if "%JAVA_HOME%"=="" goto no_jdk\r | |
51 | \r | |
52 | :check_ant\r | |
53 | if "%ANT_HOME%"=="" goto no_ant\r | |
54 | if not exist %ANT_HOME%\lib\ant-contrib.jar goto no_antcontrib\r | |
55 | \r | |
56 | :check_xmlbeans\r | |
57 | if "%XMLBEANS_HOME%"=="" goto no_xmlbeans\r | |
58 | if not exist %XMLBEANS_HOME%\lib\saxon8.jar goto no_saxon8\r | |
59 | \r | |
60 | @REM\r | |
61 | @REM Set the WORKSPACE to the current working directory\r | |
62 | @REM\r | |
63 | set WORKSPACE=%CD%\r | |
64 | \r | |
65 | set Framework_Tools_Path=%WORKSPACE%\Tools\bin\r | |
66 | set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%XMLBEANS_HOME%\bin;%Framework_Tools_Path%;%PATH%\r | |
67 | \r | |
68 | echo.\r | |
69 | echo JAVA_HOME: %JAVA_HOME%\r | |
70 | echo ANT_HOME: %ANT_HOME%\r | |
71 | echo XMLBEANS_HOME: %XMLBEANS_HOME%\r | |
72 | echo CYGWIN_HOME: %CYGWIN_HOME%\r | |
73 | echo WORKSPACE: %WORKSPACE%\r | |
74 | echo PATH: %PATH%\r | |
75 | echo.\r | |
76 | \r | |
77 | @REM\r | |
78 | @REM Start to build the Framework Tools\r | |
79 | @REM\r | |
80 | \r | |
81 | echo.\r | |
82 | echo Building the Framework Tools\r | |
83 | echo.\r | |
84 | \r | |
85 | @REM\r | |
86 | @REM We are going to create the SurfaceArea.jar file first so that the other\r | |
87 | @REM Java Programs can use it.\r | |
88 | @REM It needs the XMLBEANS libraries in order to compile.\r | |
89 | @REM\r | |
90 | set CLASSPATH=%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar;%XMLBEANS_HOME%\lib\xbean.jar\r | |
91 | set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean_xpath.jar;%XMLBEANS_HOME%\lib\xmlpublic.jar\r | |
92 | set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\saxon8.jar;%XMLBEANS_HOME%\lib\resolver.jar\r | |
93 | \r | |
94 | call ant -f %WORKSPACE%\Tools\build.xml SurfaceArea\r | |
95 | \r | |
96 | @REM\r | |
97 | @REM Now we can make the other Java Programs\r | |
98 | @REM All of the remaining Java Programs require the SurfaceArea library to compile\r | |
99 | @REM\r | |
100 | set CLASSPATH=%CLASSPATH%;%WORKSPACE\%Tools\Jars\SurfaceArea.jar\r | |
101 | \r | |
102 | call ant -f %WORKSPACE%\Tools\build.xml JavaCode\r | |
103 | \r | |
104 | @REM\r | |
105 | @REM We have all of the Java Programs and add-in classes created, so we can start\r | |
106 | @REM using the cpp-tasks to create our tools\r | |
107 | @REM\r | |
108 | set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\SurfaceArea.jar;%WORKSPACE%\Tools\Jars\GenBuild.jar\r | |
109 | set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\cpptasks.jar;%WORKSPACE%\Tools\Jars\frameworktasks.jar\r | |
110 | \r | |
111 | call ant -f %WORKSPACE%\Tools\build.xml C_Code\r | |
112 | \r | |
113 | @REM\r | |
114 | @REM Done!!!\r | |
115 | @REM\r | |
116 | goto end\r | |
117 | \r | |
118 | :no_jdk\r | |
119 | echo.\r | |
120 | echo !!! Please install Java, and set JAVA_HOME !!!\r | |
121 | echo.\r | |
122 | goto end\r | |
123 | \r | |
124 | :no_ant\r | |
125 | echo.\r | |
126 | echo !!! Please install Apache Ant, and set ANT_HOME !!!\r | |
127 | echo.\r | |
128 | goto end\r | |
129 | \r | |
130 | :no_antcontrib\r | |
131 | echo.\r | |
132 | echo !!! Please install Ant-contrib to ANT_HOME !!!\r | |
133 | echo.\r | |
134 | goto end\r | |
135 | \r | |
136 | :no_xmlbeans\r | |
137 | echo.\r | |
138 | echo !!! Please install XML Beans, and set XMLBEANS_HOME !!!\r | |
139 | echo.\r | |
140 | goto end\r | |
141 | \r | |
142 | :no_saxon8\r | |
143 | echo.\r | |
144 | echo !!! Please copy saxon8.jar file to XMLBEANS_HOME\lib !!!\r | |
145 | echo.\r | |
146 | goto end\r | |
147 | \r | |
148 | :end\r | |
149 | @echo on\r | |
150 | \r |