878ddf1f |
1 | <?xml version="1.0" ?>\r |
2 | <!--\r |
3 | Copyright (c) 2006, Intel Corporation\r |
4 | All rights reserved. This program and the accompanying materials\r |
5 | are licensed and made available under the terms and conditions of the BSD License\r |
6 | which accompanies this distribution. The full text of the license may be found at\r |
7 | http://opensource.org/licenses/bsd-license.php\r |
8 | \r |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r |
11 | -->\r |
12 | <project name="Logo" default="main" basedir="." >\r |
13 | <!-- Apply external ANT task -->\r |
14 | <taskdef resource="frameworktasks.tasks" /> \r |
15 | <taskdef resource="cpptasks.tasks" /> \r |
16 | <typedef resource="cpptasks.types" /> \r |
17 | <taskdef resource="net/sf/antcontrib/antlib.xml" />\r |
18 | <property environment="env" />\r |
19 | <!-- All Properties --> \r |
20 | <property name="BASE_NAME" value="Logo" /> \r |
21 | \r |
22 | <!-- Default target --> \r |
23 | <target name="main" depends="libraries, sourcefiles, sections, output" /> \r |
24 | <!-- Compile all dependency Library instances. --> \r |
25 | <target name="libraries" />\r |
26 | \r |
27 | <target name="sourcefiles">\r |
28 | <copy file="${MODULE_DIR}\Logo.bmp" \r |
29 | tofile="${DEST_DIR_OUTPUT}\Logo.bmp" />\r |
30 | <!--\r |
31 | <Build_Graphics FILENAME="logo" FILEPATH="." FILEEXT="bmp"></Build_Graphics>\r |
32 | -->\r |
33 | </target>\r |
34 | \r |
35 | <target name="sections">\r |
36 | <OnDependency>\r |
37 | <sourcefiles>\r |
38 | <file name="${DEST_DIR_OUTPUT}\logo.bmp"/>\r |
39 | </sourcefiles>\r |
40 | <targetfiles>\r |
41 | <file name="${DEST_DIR_OUTPUT}\Logo.bin"/>\r |
42 | </targetfiles>\r |
43 | \r |
44 | <sequential>\r |
45 | <gensection inputfile="${DEST_DIR_OUTPUT}\logo.bmp" \r |
46 | outputfile="${DEST_DIR_OUTPUT}\Logo.bin" \r |
47 | sectiontype="EFI_SECTION_RAW" />\r |
48 | </sequential>\r |
49 | </OnDependency>\r |
50 | </target>\r |
51 | \r |
52 | <target name="output">\r |
53 | <OnDependency>\r |
54 | <sourcefiles>\r |
55 | <file name="${DEST_DIR_OUTPUT}\Logo.bin"/>\r |
56 | </sourcefiles>\r |
57 | <targetfiles>\r |
2d527200 |
58 | <file name="${BIN_DIR}\${FILE_GUID}-Logo.FFS"/>\r |
878ddf1f |
59 | </targetfiles>\r |
60 | \r |
61 | <sequential>\r |
62 | <genffsfile BaseName="Logo" ffsATTRIBCHECKSUM="TRUE"\r |
2d527200 |
63 | ffsFILETYPE="EFI_FV_FILETYPE_FREEFORM" fileGuid="${FILE_GUID}"\r |
878ddf1f |
64 | outputDir="${BIN_DIR}">\r |
65 | <compress compressName="dummy">\r |
66 | <tool outputPath="${DEST_DIR_OUTPUT}" toolName="${WORKSPACE_DIR}\Tools\Bin\GenCRC32Section">\r |
67 | <input file="${DEST_DIR_OUTPUT}\Logo.bin" />\r |
68 | </tool>\r |
69 | </compress>\r |
70 | </genffsfile>\r |
71 | </sequential>\r |
72 | </OnDependency>\r |
73 | </target>\r |
74 | \r |
75 | </project>\r |