]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/String/build.xml
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
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.
12 <project default=
"GenTool" basedir=
".">
15 Copyright (c) 2006, Intel Corporation
17 <taskdef resource=
"cpptasks.tasks"/>
18 <typedef resource=
"cpptasks.types"/>
19 <taskdef resource=
"net/sf/antcontrib/antlib.xml"/>
21 <property name=
"LibName" value=
"String"/>
22 <property name=
"LINK_OUTPUT_TYPE" value=
"static"/>
23 <property name=
"BUILD_DIR" value=
"${PACKAGE_DIR}/${LibName}/tmp"/>
25 <target name=
"GenTool" depends=
"init, String">
26 <echo message=
"The EDK Library: ${LibName} build has completed!"/>
30 <echo message=
"Building the EDK Library: ${LibName}"/>
31 <mkdir dir=
"${BUILD_DIR}"/>
33 <condition property=
"syslibdirs" value=
"">
37 <condition property=
"syslibs" value=
"">
41 <condition property=
"syslibdirs" value=
"${env.CYGWIN_HOME}/lib/e2fsprogs">
42 <os family=
"windows"/>
45 <condition property=
"syslibs" value=
"uuid">
46 <os family=
"windows"/>
49 <condition property=
"syslibdirs" value=
"/usr/lib">
53 <condition property=
"syslibs" value=
"uuid">
59 <target name=
"String" depends=
"init">
60 <cc name=
"${ToolChain}" objdir=
"${BUILD_DIR}"
61 outfile=
"${LIB_DIR}/${LibName}"
65 <compilerarg value=
"${ExtraArgus}" if=
"ExtraArgus" />
66 <compilerarg value=
"-fshort-wchar" if=
"gcc"/>
68 <fileset dir=
"${basedir}/${LibName}"
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"/>
80 <echo message=
"Removing Intermediate Files Only"/>
82 <fileset dir=
"${BUILD_DIR}" includes=
"*.obj"/>
86 <target name=
"cleanall">
87 <echo message=
"Removing Object Files and the Library: ${LibName}${ext_static}"/>
88 <delete dir=
"${PACKAGE_DIR}/${LibName}/tmp">
90 <delete failonerror=
"false" quiet=
"true" includeEmptyDirs=
"true">
91 <fileset dir=
"${BUILD_DIR}"/>
92 <fileset file=
"${LIB_DIR}/${LibName}${ext_static}"/>