]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/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=
"net/sf/antcontrib/antlib.xml"/>
19 <property name=
"LibName" value=
"String"/>
20 <property name=
"LINK_OUTPUT_TYPE" value=
"static"/>
21 <property name=
"BUILD_DIR" value=
"${PACKAGE_DIR}/${LibName}/tmp"/>
23 <target name=
"GenTool" depends=
"init, String">
24 <echo message=
"The EDK Library: ${LibName} build has completed!"/>
28 <echo message=
"Building the EDK Library: ${LibName}"/>
29 <mkdir dir=
"${BUILD_DIR}"/>
31 <condition property=
"syslibdirs" value=
"">
35 <condition property=
"syslibs" value=
"">
39 <condition property=
"syslibdirs" value=
"${env.CYGWIN_HOME}/lib/e2fsprogs">
40 <os family=
"windows"/>
43 <condition property=
"syslibs" value=
"uuid">
44 <os family=
"windows"/>
47 <condition property=
"syslibdirs" value=
"/usr/lib">
51 <condition property=
"syslibs" value=
"uuid">
57 <target name=
"String" depends=
"init">
58 <cc name=
"${ToolChain}" objdir=
"${BUILD_DIR}"
59 outfile=
"${LIB_DIR}/${LibName}"
63 <compilerarg value=
"${ExtraArgus}" if=
"ExtraArgus" />
64 <compilerarg value=
"-fshort-wchar" if=
"gcc"/>
66 <fileset dir=
"${basedir}/${LibName}"
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"/>
78 <echo message=
"Removing Intermediate Files Only"/>
80 <fileset dir=
"${BUILD_DIR}" includes=
"*.obj"/>
84 <target name=
"cleanall">
85 <echo message=
"Removing Object Files and the Library: ${LibName}${ext_static}"/>
86 <delete dir=
"${PACKAGE_DIR}/${LibName}/tmp">
88 <delete failonerror=
"false" quiet=
"true" includeEmptyDirs=
"true">
89 <fileset dir=
"${BUILD_DIR}"/>
90 <fileset file=
"${LIB_DIR}/${LibName}${ext_static}"/>