]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/TianoTools/MakeDeps/build.xml
Updated to handle cygwin/gcc and moved msvc,gcc property settings to the TianoTools...
[mirror_edk2.git] / Tools / Source / TianoTools / MakeDeps / build.xml
CommitLineData
b09da165 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 MakeDeps Tool\r
15 Copyright (c) 2006, Intel Corporation\r
16-->\r
17 <property name="ToolName" value="MakeDeps"/>\r
18 <property name="FileSet" value="*.c *.h"/>\r
19\r
20 <taskdef resource="cpptasks.tasks"/>\r
21 <typedef resource="cpptasks.types"/>\r
22 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
23\r
b09da165 24 <property name="LINK_OUTPUT_TYPE" value="static"/>\r
25 <property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>\r
26\r
27 <target name="GenTool" depends="init, Tool">\r
af1dd46d 28 <echo message="The EDK Tool: ${ToolName} build has completed!"/>\r
b09da165 29 </target>\r
30\r
31 <target name="init">\r
af1dd46d 32 <echo message="Building the EDK Tool: ${ToolName}"/>\r
b09da165 33 <mkdir dir="${BUILD_DIR}"/>\r
b09da165 34 </target>\r
35\r
36 <target name="Tool" depends="init">\r
37 <cc name="${ToolChain}" objdir="${BUILD_DIR}" \r
38 outfile="${BIN_DIR}/${ToolName}"\r
39 outtype="executable"\r
b09da165 40 optimize="speed">\r
41\r
42 <fileset dir="${basedir}/${ToolName}" \r
43 includes="${FileSet}" \r
44 defaultexcludes="TRUE" \r
45 excludes="*.xml *.inf"/>\r
46\r
21b50a27 47 <includepath path="${PACKAGE_DIR}/Include"/>\r
c7c42e40 48 <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
b09da165 49 <includepath path="${PACKAGE_DIR}/Common"/>\r
ce53a8c3 50 <libset dir="${LIB_DIR}" libs="CommonTools"/>\r
b09da165 51 </cc>\r
52 </target>\r
53\r
af1dd46d 54 <target name="clean">\r
b09da165 55 <echo message="Removing Intermediate Files Only"/> \r
56 <delete>\r
57 <fileset dir="${BUILD_DIR}" includes="*.obj"/>\r
58 </delete>\r
59 </target>\r
60\r
af1dd46d 61 <target name="cleanall">\r
b09da165 62 <echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/> \r
af1dd46d 63 <delete failonerror="false" quiet="true" includeEmptyDirs="true">\r
64 <fileset dir="${BUILD_DIR}"/>\r
65 <fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>\r
b09da165 66 </delete>\r
67 </target>\r
68\r
69</project>\r