]> git.proxmox.com Git - mirror_edk2.git/blob - EdkNt32Pkg/Logo/Logo_build.xml
Change default setting in template to only build DEBUG targets instead of both DEBUG...
[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="sections, output" />
24
25 <target name="sections">
26 <OnDependency>
27 <sourcefiles>
28 <file name="${MODULE_DIR}/logo.bmp"/>
29 </sourcefiles>
30 <targetfiles>
31 <file name="${DEST_DIR_OUTPUT}/Logo.sec"/>
32 </targetfiles>
33
34 <sequential>
35 <gensection inputfile="${MODULE_DIR}/logo.bmp"
36 outputfile="${DEST_DIR_OUTPUT}/Logo.sec"
37 sectiontype="EFI_SECTION_RAW" />
38 </sequential>
39 </OnDependency>
40 </target>
41
42 <target name="output" depends="sections">
43 <OnDependency>
44 <sourcefiles>
45 <file name="${DEST_DIR_OUTPUT}/Logo.sec"/>
46 </sourcefiles>
47 <targetfiles>
48 <file name="${BIN_DIR}/${FILE_GUID}-Logo.FFS"/>
49 </targetfiles>
50
51 <sequential>
52 <genffsfile BaseName="Logo"
53 ffsATTRIBCHECKSUM="TRUE"
54 ffsFILETYPE="EFI_FV_FILETYPE_FREEFORM"
55 fileGuid="${FILE_GUID}"
56 outputDir="${BIN_DIR}">
57 <sectFile fileName="${DEST_DIR_OUTPUT}/Logo.sec"/>
58 </genffsfile>
59 </sequential>
60 </OnDependency>
61 </target>
62
63 <target name="clean">
64 <delete includeemptydirs="true">
65 <fileset dir="${DEST_DIR_OUTPUT}" excludes="*.xml" includes="**/*"/>
66 </delete>
67 </target>
68
69 <target name="cleanall">
70 <delete includeemptydirs="true">
71 <fileset dir="${DEST_DIR_OUTPUT}" excludes="*.xml" includes="**/*"/>
72 </delete>
73 <delete includeemptydirs="true">
74 <fileset dir="${DEST_DIR_DEBUG}" includes="**/*"/>
75 </delete>
76 </target>
77
78 </project>