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