Fix capitalization issues.
[mirror_edk2.git] / EdkModulePkg / build.xml
CommitLineData
878ddf1f 1<?xml version="1.0" encoding="utf-8" ?>\r
2<!--\r
3Copyright (c) 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11-->\r
12 \r
13<project default="buildfpd" basedir=".">\r
14 <!-- Apply external ANT tasks -->\r
15 <taskdef resource="net/sf/antcontrib/antlib.xml" />\r
16 <taskdef resource="GenBuild.tasks" />\r
17 \r
18 <property environment="env" /> \r
19 <property name="WORKSPACE_DIR" value="${env.WORKSPACE}" />\r
20 <property name="PACKAGE" value="EdkModulePkg" />\r
22e0585c 21 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}/EdkModulePkg" />\r
878ddf1f 22 <property name="BUILD_MODE" value="PACKAGE" />\r
23 \r
22e0585c 24 <import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml" />\r
878ddf1f 25 \r
26 <target name="buildfpd" depends="init, fpdparser, builds" />\r
27 \r
28 <target name="init">\r
29 <if>\r
30 <not>\r
31 <isset property="env.WORKSPACE" />\r
32 </not>\r
33 <then>\r
34 <fail message="WORKSPACE environmental variable not set." />\r
35 </then>\r
36 </if>\r
22e0585c 37 <ToolChainSetup confPath="${WORKSPACE_DIR}/Tools/Conf" />\r
878ddf1f 38 </target>\r
39\r
40 <target name="tools">\r
22e0585c 41 <ant antfile="${WORKSPACE_DIR}/Tools/Source/TianoTools/build.xml" />\r
878ddf1f 42 </target>\r
43 \r
44 <target name="fpdparser" unless="FPD_File">\r
45 <FPDParser fpdfilename="EdkModulePkg.fpd" />\r
46 </target>\r
47 \r
48 <target name="builds" depends="fpdparser">\r
22e0585c 49 <ant antfile="${PACKAGE_DIR}/build.out.xml" />\r
878ddf1f 50 </target>\r
51 \r
52 <!-- clean. -->\r
53 <target name="clean" depends="init">\r
54 <if>\r
22e0585c 55 <available file="${PACKAGE_DIR}/build.out.xml" />\r
878ddf1f 56 <then>\r
22e0585c 57 <ant antfile="${PACKAGE_DIR}/build.out.xml" target="clean" />\r
878ddf1f 58 </then>\r
59 </if>\r
60 </target>\r
61 \r
62 <!-- clean All. -->\r
63 <target name="cleanall" depends="init">\r
64 <if>\r
22e0585c 65 <available file="${PACKAGE_DIR}/build.out.xml" />\r
878ddf1f 66 <then>\r
22e0585c 67 <ant antfile="${PACKAGE_DIR}/build.out.xml" target="cleanall" />\r
68 <delete file="${PACKAGE_DIR}/build.out.xml" />\r
878ddf1f 69 </then>\r
70 </if>\r
22e0585c 71 <delete dir="${PACKAGE_DIR}/Build/FV" />\r
878ddf1f 72 </target>\r
73 \r
74</project>\r