1 <?xml version=
"1.0" encoding=
"utf-8" ?>
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
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.
13 <project default=
"buildfpd" basedir=
".">
14 <!-- Apply external ANT tasks -->
15 <taskdef resource=
"net/sf/antcontrib/antlib.xml" />
16 <taskdef resource=
"GenBuild.tasks" />
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" />
25 <import file=
"${WORKSPACE_DIR}\Tools\Conf\BuildMacro.xml" />
27 <target name=
"buildfpd" depends=
"init, fpdparser, builds, fds" />
32 <isset property=
"env.WORKSPACE" />
35 <fail message=
"WORKSPACE environmental variable not set." />
38 <ToolChainSetup confPath=
"${WORKSPACE_DIR}\Tools\Conf" />
42 <ant antfile=
"${WORKSPACE_DIR}\Tools\Source\TianoTools\build.xml" />
45 <target name=
"fpdparser" unless=
"FPD_File">
46 <FPDParser fpdfilename=
"Nt32.fpd" />
49 <target name=
"builds" depends=
"fpdparser">
50 <ant antfile=
"${PLATFORM_DIR}\build.out.xml" />
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" />
59 <!-- this is only needed for Nt32 target exe generation -->
62 <available file=
"${WORKSPACE_DIR}\EdkNt32Pkg\Build\DEBUG\IA32\SecMain.exe" />
64 <shellscript shell=
"cmd.exe" tmpsuffix=
".bat">
67 cd ${WORKSPACE_DIR}\EdkNt32Pkg\Build\DEBUG\IA32
72 <echo message=
"#################################################################"/>
73 <echo message=
"#################################################################"/>
75 <echo message=
"# You must build the executable first, just type ant"/>
77 <echo message=
"#################################################################"/>
78 <echo message=
"#################################################################"/>
84 <target name=
"clean" depends=
"init">
86 <available file=
"${PLATFORM_DIR}\build.out.xml" />
88 <ant antfile=
"${PLATFORM_DIR}\build.out.xml" target=
"clean" />
94 <target name=
"cleanall" depends=
"init">
96 <available file=
"${PLATFORM_DIR}\build.out.xml" />
98 <ant antfile=
"${PLATFORM_DIR}\build.out.xml" target=
"cleanall" />
99 <delete file=
"${PLATFORM_DIR}\build.out.xml" />
102 <delete dir=
"${PLATFORM_DIR}\Build\FV" />