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=
"Building the EDK Tool: ${LibName}"/>
30 <echo message=
"The EDK Library: ${LibName}"/>
31 <mkdir dir=
"${BUILD_DIR}"/>
33 <equals arg1=
"${GCC}" arg2=
"cygwin"/>
35 <echo message=
"Cygwin Family"/>
36 <property name=
"ToolChain" value=
"gcc"/>
41 <echo message=
"Windows Family"/>
42 <property name=
"ToolChain" value=
"msvc"/>
48 <echo message=
"UNIX Family"/>
49 <property name=
"ToolChain" value=
"gcc"/>
55 Unsupported Operating System
56 Please Contact Intel Corporation
60 <property name=
"ToolChain" value=
"gcc"/>
62 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
64 <property name=
"ext_static" value=
".lib"/>
65 <property name=
"ext_dynamic" value=
".dll"/>
66 <property name=
"ext_exe" value=
".exe"/>
69 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
71 <property name=
"ext_static" value=
".a"/>
72 <property name=
"ext_dynamic" value=
".so"/>
73 <property name=
"ext_exe" value=
""/>
78 <condition property=
"syslibdirs" value=
"">
82 <condition property=
"syslibs" value=
"">
86 <condition property=
"syslibdirs" value=
"${env.CYGWIN_HOME}/lib/e2fsprogs">
87 <os family=
"windows"/>
90 <condition property=
"syslibs" value=
"uuid">
91 <os family=
"windows"/>
94 <condition property=
"syslibdirs" value=
"/usr/lib">
98 <condition property=
"syslibs" value=
"uuid">
104 <target name=
"String" depends=
"init">
105 <cc name=
"${ToolChain}" objdir=
"${BUILD_DIR}"
106 outfile=
"${LIB_DIR}/${LibName}"
111 <compilerarg value=
"-fshort-wchar" if=
"gcc"/>
113 <fileset dir=
"${basedir}/${LibName}"
116 <includepath path=
"${PACKAGE_DIR}/${LibName}"/>
117 <includepath path=
"${PACKAGE_DIR}/Include"/>
118 <includepath path=
"${PACKAGE_DIR}/Include/${HostArch}"/>
119 <includepath path=
"${PACKAGE_DIR}/Common"/>
124 <target name=
"clean" depends=
"init">
125 <echo message=
"Removing Intermediate Files Only"/>
127 <fileset dir=
"${BUILD_DIR}" includes=
"*.obj"/>
131 <target name=
"cleanall" depends=
"init">
132 <echo message=
"Removing Object Files and the Executable: ${LibName}${ext_exe}"/>
133 <delete dir=
"${PACKAGE_DIR}/${LibName}/tmp">