Change GenBuildLogger format.
[mirror_edk2.git] / EdkNt32Pkg / Logo / Logo_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="Logo" default="main" basedir="." >
13 <!-- Apply external ANT task -->
14 <taskdef resource="frameworktasks.tasks" />
15 <taskdef resource="cpptasks.tasks" />
16 <typedef resource="cpptasks.types" />
17 <taskdef resource="net/sf/antcontrib/antlib.xml" />
18 <property environment="env" />
19 <!-- All Properties -->
20 <property name="BASE_NAME" value="Logo" />
21
22 <!-- Default target -->
23 <target name="main" depends="sourcefiles, sections, output" />
24
25 <target name="sourcefiles">
26 <copy file="${MODULE_DIR}/Logo.bmp"
27 tofile="${DEST_DIR_OUTPUT}/Logo.bmp" />
28 </target>
29
30 <target name="sections">
31 <OnDependency>
32 <sourcefiles>
33 <file name="${DEST_DIR_OUTPUT}/logo.bmp"/>
34 </sourcefiles>
35 <targetfiles>
36 <file name="${DEST_DIR_OUTPUT}/Logo.sec"/>
37 </targetfiles>
38
39 <sequential>
40 <gensection inputfile="${DEST_DIR_OUTPUT}/logo.bmp"
41 outputfile="${DEST_DIR_OUTPUT}/Logo.sec"
42 sectiontype="EFI_SECTION_RAW" />
43 </sequential>
44 </OnDependency>
45 </target>
46
47 <target name="output">
48 <OnDependency>
49 <sourcefiles>
50 <file name="${DEST_DIR_OUTPUT}/Logo.sec"/>
51 </sourcefiles>
52 <targetfiles>
53 <file name="${BIN_DIR}/${FILE_GUID}-Logo.FFS"/>
54 </targetfiles>
55
56 <sequential>
57 <genffsfile BaseName="Logo"
58 ffsATTRIBCHECKSUM="TRUE"
59 ffsFILETYPE="EFI_FV_FILETYPE_FREEFORM"
60 fileGuid="${FILE_GUID}"
61 outputDir="${BIN_DIR}">
62 <sectFile fileName="${DEST_DIR_OUTPUT}/Logo.sec"/>
63 </genffsfile>
64 </sequential>
65 </OnDependency>
66 </target>
67
68 <target name="clean">
69 <delete includeemptydirs="true">
70 <fileset dir="${DEST_DIR_OUTPUT}" excludes="*.xml" includes="**/*"/>
71 </delete>
72 </target>
73
74 <target name="cleanall">
75 <delete includeemptydirs="true">
76 <fileset dir="${DEST_DIR_OUTPUT}" excludes="*.xml" includes="**/*"/>
77 </delete>
78 <delete includeemptydirs="true">
79 <fileset dir="${DEST_DIR_DEBUG}" includes="**/*"/>
80 </delete>
81 </target>
82
83 </project>