Updated Header information, added Guid, Version Specification, removed createdBy
[mirror_edk2.git] / EdkNt32Pkg / build.xml
1 <?xml version="1.0" encoding="utf-8" ?>
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
13 <project default="buildfpd" basedir=".">
14 <!-- Apply external ANT tasks -->
15 <taskdef resource="net/sf/antcontrib/antlib.xml" />
16 <taskdef resource="GenBuild.tasks" />
17
18 <property environment="env" />
19 <property name="WORKSPACE_DIR" value="${env.WORKSPACE}" />
20 <property name="PLATFORM" value="NT32" />
21 <property name="PLATFORM_DIR" value="${WORKSPACE_DIR}\EdkNt32Pkg" />
22 <property name="BUILD_MODE" value="PLATFORM" />
23 <property name="COMMON_FILE" value="${PLATFORM_DIR}\Build\Nt32Common.xml" />
24
25 <import file="${WORKSPACE_DIR}\Tools\Conf\BuildMacro.xml" />
26
27 <target name="buildfpd" depends="init, fpdparser, builds, fds" />
28
29 <target name="init">
30 <if>
31 <not>
32 <isset property="env.WORKSPACE" />
33 </not>
34 <then>
35 <fail message="WORKSPACE environmental variable not set." />
36 </then>
37 </if>
38 <ToolChainSetup confPath="${WORKSPACE_DIR}\Tools\Conf" />
39 </target>
40
41 <target name="tools">
42 <ant antfile="${WORKSPACE_DIR}\Tools\Source\TianoTools\build.xml" />
43 </target>
44
45 <target name="fpdparser" unless="FPD_File">
46 <FPDParser fpdfilename="Nt32.fpd" />
47 </target>
48
49 <target name="builds" depends="fpdparser">
50 <ant antfile="${PLATFORM_DIR}\build.out.xml" />
51 </target>
52
53 <target name="fds" depends="builds">
54 <concat destfile="${PLATFORM_DIR}\Build\FV\FV_RECOVERY.fd" binary="true" >
55 <fileset dir="${PLATFORM_DIR}\Build\FV" includes="*.fv" />
56 </concat>
57 </target>
58
59 <!-- this is only needed for Nt32 target exe generation -->
60 <target name="run">
61 <if>
62 <available file="${WORKSPACE_DIR}\EdkNt32Pkg\Build\DEBUG\IA32\SecMain.exe" />
63 <then>
64 <shellscript shell="cmd.exe" tmpsuffix=".bat">
65 <arg value="/c"/>
66 <arg value="call"/>
67 cd ${WORKSPACE_DIR}\EdkNt32Pkg\Build\DEBUG\IA32
68 SecMain.exe
69 </shellscript>
70 </then>
71 <else>
72 <echo message="#################################################################"/>
73 <echo message="#################################################################"/>
74 <echo message="#"/>
75 <echo message="# You must build the executable first, just type ant"/>
76 <echo message="#"/>
77 <echo message="#################################################################"/>
78 <echo message="#################################################################"/>
79 </else>
80 </if>
81 </target>
82
83 <!-- clean. -->
84 <target name="clean" depends="init">
85 <if>
86 <available file="${PLATFORM_DIR}\build.out.xml" />
87 <then>
88 <ant antfile="${PLATFORM_DIR}\build.out.xml" target="clean" />
89 </then>
90 </if>
91 </target>
92
93 <!-- clean All. -->
94 <target name="cleanall" depends="init">
95 <if>
96 <available file="${PLATFORM_DIR}\build.out.xml" />
97 <then>
98 <ant antfile="${PLATFORM_DIR}\build.out.xml" target="cleanall" />
99 <delete file="${PLATFORM_DIR}\build.out.xml" />
100 </then>
101 </if>
102 <delete dir="${PLATFORM_DIR}\Build\FV" />
103 </target>
104
105 </project>