]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - Tools/CCode/Source/SplitFile/build.xml
removed extra taskdef and taskref definitions that caused some warning messages when...
[mirror_edk2.git] / Tools / CCode / Source / SplitFile / build.xml
... / ...
CommitLineData
1<?xml version="1.0" ?>\r
2<!--\r
3Copyright (c) 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11-->\r
12<project default="GenTool" basedir=".">\r
13<!--\r
14 EDK SplitFile Tool\r
15 Copyright (c) 2006, Intel Corporation\r
16-->\r
17 <property name="ToolName" value="SplitFile"/>\r
18 <property name="FileSet" value="*.c"/>\r
19\r
20 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
21\r
22 <property name="LINK_OUTPUT_TYPE" value="static"/>\r
23 <property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>\r
24\r
25 <target name="GenTool" depends="init, Tool">\r
26 <echo message="The EDK Tool: ${ToolName} build has completed!"/>\r
27 </target>\r
28\r
29 <target name="init">\r
30 <echo message="Building the EDK Tool: ${ToolName}"/>\r
31 <mkdir dir="${BUILD_DIR}"/>\r
32 </target>\r
33\r
34 <target name="Tool" depends="init">\r
35 <cc name="${ToolChain}" objdir="${BUILD_DIR}" \r
36 outfile="${BIN_DIR}/${ToolName}"\r
37 outtype="executable"\r
38 optimize="speed" \r
39 debug="true">\r
40\r
41 <fileset dir="${basedir}/${ToolName}" \r
42 includes="${FileSet}" \r
43 defaultexcludes="TRUE" \r
44 excludes="*.xml *.inf"/>\r
45\r
46 <includepath path="${PACKAGE_DIR}/Include"/>\r
47 <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
48 <includepath path="${PACKAGE_DIR}/Common"/>\r
49 </cc>\r
50 </target>\r
51\r
52 <target name="clean">\r
53 <echo message="Removing Intermediate Files Only"/> \r
54 <delete>\r
55 <fileset dir="${BUILD_DIR}" includes="*.obj"/>\r
56 </delete>\r
57 </target>\r
58\r
59 <target name="cleanall">\r
60 <echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/> \r
61 <delete failonerror="false" quiet="true" includeEmptyDirs="true">\r
62 <fileset dir="${BUILD_DIR}"/>\r
63 <fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>\r
64 </delete>\r
65 </target>\r
66\r
67</project>\r