Enable source level debug of all tools
[mirror_edk2.git] / Tools / Source / TianoTools / Common / build.xml
CommitLineData
878ddf1f 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="CommonTools.lib" basedir=".">\r
13<!--\r
14 EDK Common Tools Library\r
15 Copyright (c) 2006, Intel Corporation\r
16-->\r
17\r
18 <taskdef resource="cpptasks.tasks"/>\r
19 <typedef resource="cpptasks.types"/>\r
20 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
21\r
878ddf1f 22 <property name="tmp" value="tmp"/>\r
af1dd46d 23 <property name="LibName" value="CommonTool"/>\r
878ddf1f 24\r
25 <property name="LINK_OUTPUT_TYPE" value="static"/>\r
26 <property name="BUILD_DIR" value="${PACKAGE_DIR}/Common/tmp"/>\r
27\r
28 <target name="CommonTools.lib" depends="init, ToolsLibrary">\r
af1dd46d 29 <echo message="The EDK Tool Library: ${LibName} build has completed."/>\r
878ddf1f 30 </target>\r
31\r
32 <target name="init">\r
af1dd46d 33 <echo message="Building the EDK Tool Library: ${LibName}"/>\r
878ddf1f 34 <mkdir dir="${BUILD_DIR}"/>\r
878ddf1f 35 </target>\r
36\r
37 <target name="ToolsLibrary" depends="init">\r
38 <cc name="${ToolChain}" objdir="${BUILD_DIR}" \r
39 outfile="${LIB_DIR}/CommonTools"\r
40 outtype="static"\r
a6b6b67a 41 debug="true"\r
878ddf1f 42 optimize="speed">\r
20543777 43 <compilerarg value="${ExtraArgus}" if="ExtraArgus" />\r
c7c42e40 44 <compilerarg value="-fPIC" if="x86_64_linux"/>\r
45\r
21b50a27 46 <includepath path="${PACKAGE_DIR}/Include"/>\r
c7c42e40 47 <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
878ddf1f 48\r
49 <fileset dir="${basedir}/Common" \r
dce914c0 50 includes="*.c" />\r
878ddf1f 51 </cc>\r
878ddf1f 52 </target>\r
53\r
af1dd46d 54 <target name="clean">\r
878ddf1f 55 <echo message="Removing Intermediate Files Only from ${BUILD_DIR}"/> \r
af1dd46d 56 <delete dir="${BUILD_DIR}"/>\r
878ddf1f 57 </target>\r
58\r
af1dd46d 59 <target name="cleanall">\r
60 <echo message="Removing Object Files and the Library: ${LibName}${ext_static}"/> \r
61 <delete failonerror="false" quiet="true" includeEmptyDirs="true">\r
62 <fileset dir="${BUILD_DIR}"/>\r
63 <fileset file="${LIB_DIR}/${LibName}${ext_static}"/>\r
878ddf1f 64 </delete>\r
65 </target>\r
66\r
67</project>\r