Updated PeiRebase to produce a map file of the relocations done by this tool. This...
[mirror_edk2.git] / build.xml
1 <?xml version="1.0"?>
2 <!--
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 -->
12 <project name="mdk" default="all" basedir=".">
13 <!-- Apply external ANT tasks -->
14 <taskdef resource="net/sf/antcontrib/antlib.xml" />
15 <taskdef resource="GenBuild.tasks" />
16
17 <property environment="env" />
18
19 <property name="WORKSPACE_DIR" value="${env.WORKSPACE}" />
20
21 <!--property name="COMMON_FILE" value="${WORKSPACE_DIR}/Tools/Conf/Common.xml" /-->
22
23 <import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml" />
24
25 <target name="all" depends="init, build" />
26
27 <target name="init">
28 <if>
29 <not>
30 <isset property="env.WORKSPACE" />
31 </not>
32 <then>
33 <fail message="WORKSPACE environmental variable not set." />
34 </then>
35 </if>
36 <!--
37 <ToolChainSetup confPath="${WORKSPACE_DIR}/Tools/Conf" />
38 -->
39 </target>
40
41 <target name="build">
42 <FrameworkBuild />
43 </target>
44
45 <target name="clean" depends="init">
46 <echo message="Clean all intermidiate files. " />
47 <FrameworkBuild type="clean" />
48 </target>
49
50 <target name="cleanall" depends="init">
51 <echo message="Clean all generated files. " />
52 <FrameworkBuild type="cleanall" />
53 </target>
54
55 </project>