]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/String/build.xml
removed extra taskdef and taskref definitions that caused some warning messages when...
[mirror_edk2.git] / Tools / CCode / Source / String / 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 default="GenTool" basedir=".">
13 <!--
14 EDK String
15 Copyright (c) 2006, Intel Corporation
16 -->
17 <taskdef resource="net/sf/antcontrib/antlib.xml"/>
18
19 <property name="LibName" value="String"/>
20 <property name="LINK_OUTPUT_TYPE" value="static"/>
21 <property name="BUILD_DIR" value="${PACKAGE_DIR}/${LibName}/tmp"/>
22
23 <target name="GenTool" depends="init, String">
24 <echo message="The EDK Library: ${LibName} build has completed!"/>
25 </target>
26
27 <target name="init">
28 <echo message="Building the EDK Library: ${LibName}"/>
29 <mkdir dir="${BUILD_DIR}"/>
30
31 <condition property="syslibdirs" value="">
32 <os family="mac"/>
33 </condition>
34
35 <condition property="syslibs" value="">
36 <os family="mac"/>
37 </condition>
38
39 <condition property="syslibdirs" value="${env.CYGWIN_HOME}/lib/e2fsprogs">
40 <os family="windows"/>
41 </condition>
42
43 <condition property="syslibs" value="uuid">
44 <os family="windows"/>
45 </condition>
46
47 <condition property="syslibdirs" value="/usr/lib">
48 <os name="Linux"/>
49 </condition>
50
51 <condition property="syslibs" value="uuid">
52 <os name="Linux"/>
53 </condition>
54
55 </target>
56
57 <target name="String" depends="init">
58 <cc name="${ToolChain}" objdir="${BUILD_DIR}"
59 outfile="${LIB_DIR}/${LibName}"
60 outtype="static"
61 debug="true"
62 optimize="speed">
63 <compilerarg value="${ExtraArgus}" if="ExtraArgus" />
64 <compilerarg value="-fshort-wchar" if="gcc"/>
65
66 <fileset dir="${basedir}/${LibName}"
67 includes="*.c" />
68
69 <includepath path="${PACKAGE_DIR}/${LibName}"/>
70 <includepath path="${PACKAGE_DIR}/Include"/>
71 <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>
72 <includepath path="${PACKAGE_DIR}/Common"/>
73 </cc>
74 </target>
75
76
77 <target name="clean">
78 <echo message="Removing Intermediate Files Only"/>
79 <delete>
80 <fileset dir="${BUILD_DIR}" includes="*.obj"/>
81 </delete>
82 </target>
83
84 <target name="cleanall">
85 <echo message="Removing Object Files and the Library: ${LibName}${ext_static}"/>
86 <delete dir="${PACKAGE_DIR}/${LibName}/tmp">
87 </delete>
88 <delete failonerror="false" quiet="true" includeEmptyDirs="true">
89 <fileset dir="${BUILD_DIR}"/>
90 <fileset file="${LIB_DIR}/${LibName}${ext_static}"/>
91 </delete>
92 </target>
93
94 </project>