Architecture rename
[mirror_edk2.git] / edksetup.bat
CommitLineData
878ddf1f 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 WORKSPACE=C:\mdk\r
15\r
16\r
17@REM ##############################################################\r
18@REM # You should not have to modify anything below this line\r
19@REM #\r
20\r
21@echo off\r
22\r
23:check_vc\r
24if defined VCINSTALLDIR goto check_java\r
25if defined VS71COMNTOOLS (\r
26 call "%VS71COMNTOOLS%vsvars32.bat"\r
27) else (\r
28 echo.\r
29 echo !!! WARNING !!!! Cannot find Visual Studio !!!\r
30 echo.\r
31)\r
32\r
33:check_java\r
34if "%JAVA_HOME%"=="" goto no_jdk\r
35\r
36@REM Set the WORKSPACE to the Current Working Directory\r
37set WORKSPACE=%~dp0\r
38\r
39:set_cygwin\r
40if not defined CYGWIN_HOME (\r
41 if exist c:\cygwin (set CYGWIN_HOME=c:\cygwin) else (\r
42 echo.\r
43 echo !!! Not set CYGWIN_HOME, gcc build may not be used !!!\r
44 echo.\r
45 )\r
46)\r
47\r
02996846 48if "%ANT_HOME%"=="" goto no_ant\r
49if "%XMLBEANS_HOME%"=="" goto no_xmlbeans\r
878ddf1f 50set Framework_Tools_Path=%WORKSPACE%\Tools\bin\r
51\r
52echo.\r
53echo WORKSPACE: %WORKSPACE%\r
54echo ANT_HOME: %ANT_HOME%\r
55echo JAVA_HOME: %JAVA_HOME%\r
56\r
57if "%PATHBACKUP%"=="" set PATHBACKUP=%PATH%\r
58set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATHBACKUP%;%CYGWIN_HOME%\bin\r
59\r
60echo PATH: %PATH%\r
61echo.\r
62\r
63@REM We are going to create the SurfaceArea.jar file first so that other Java Program can use it\r
19924945 64set 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\r
878ddf1f 65\r
66call ant -f %WORKSPACE%Tools\build.xml SurfaceArea\r
67\r
68@REM Now we can make the other Java Programs\r
19924945 69set 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\r
878ddf1f 70\r
71call ant -f %WORKSPACE%Tools\build.xml JavaCode\r
72\r
73@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\r
19924945 74set 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\r
878ddf1f 75\r
76call ant -f %WORKSPACE%Tools\build.xml C_Code\r
77\r
78goto end\r
79\r
80:no_jdk\r
81echo.\r
02996846 82echo !!! Please install Java, and set JAVA_HOME !!!\r
83echo.\r
84goto end \r
85\r
86:no_ant\r
87echo.\r
88echo !!! Please install Apache Ant, and set ANT_HOME !!!\r
89echo.\r
90goto end \r
91\r
92:no_xmlbeans\r
93echo.\r
94echo !!! Please install XML Beans, and set XMLBEANS_HOME !!!\r
878ddf1f 95echo.\r
96goto end \r
97\r
98:end\r
99@echo on\r
100\r