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 <property name=
"ToolName" value=
"GenDepex"/>
18 <property name=
"LibName" value=
"DepexParser"/>
19 <property name=
"FileSet" value=
"GenDepex.c GenDepex.h"/>
20 <property name=
"LibFileSet" value=
"DepexParser.c DepexParser.h" />
22 <taskdef resource=
"cpptasks.tasks"/>
23 <typedef resource=
"cpptasks.types"/>
24 <taskdef resource=
"net/sf/antcontrib/antlib.xml"/>
26 <property environment=
"env"/>
28 <property name=
"LINK_OUTPUT_TYPE" value=
"static"/>
29 <property name=
"BUILD_DIR" value=
"${PACKAGE_DIR}/${ToolName}/tmp"/>
31 <target name=
"GenTool" depends=
"init, Lib, Tool">
32 <echo message=
"Building the EDK Tool: ${ToolName}"/>
36 <echo message=
"The EDK Tool: ${ToolName}"/>
37 <mkdir dir=
"${BUILD_DIR}"/>
39 <equals arg1=
"${GCC}" arg2=
"cygwin"/>
41 <echo message=
"Cygwin Family"/>
42 <property name=
"ToolChain" value=
"gcc"/>
47 <echo message=
"Windows Family"/>
48 <property name=
"ToolChain" value=
"msvc"/>
54 <echo message=
"UNIX Family"/>
55 <property name=
"ToolChain" value=
"gcc"/>
61 Unsupported Operating System
62 Please Contact Intel Corporation
67 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
69 <property name=
"ext_static" value=
".lib"/>
70 <property name=
"ext_dynamic" value=
".dll"/>
71 <property name=
"ext_exe" value=
".exe"/>
74 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
76 <property name=
"ext_static" value=
".a"/>
77 <property name=
"ext_dynamic" value=
".so"/>
78 <property name=
"ext_exe" value=
""/>
84 <target name=
"Tool" depends=
"init, Lib">
85 <cc name=
"${ToolChain}" objdir=
"${BUILD_DIR}"
86 outfile=
"${BIN_DIR}/${ToolName}"
88 libtool=
"${haveLibtool}"
91 <fileset dir=
"${basedir}/${ToolName}"
93 defaultexcludes=
"TRUE"
94 excludes=
"*.xml *.inf"/>
96 <includepath path=
"${env.WORKSPACE}/MdePkg/Include"/>
97 <includepath path=
"${env.WORKSPACE}/MdePkg/Include/Common"/>
98 <includepath path=
"${env.WORKSPACE}/MdePkg/Include/Ia32"/>
99 <includepath path=
"${PACKAGE_DIR}/Common"/>
100 <linkerarg value=
"${LIB_DIR}/CommonTools${ext_static}"/>
101 <linkerarg value=
"${LIB_DIR}/${LibName}${ext_static}"/>
105 <target name=
"Lib" depends=
"init">
106 <cc name=
"${ToolChain}" objdir=
"${BUILD_DIR}"
107 outfile=
"${LIB_DIR}/${LibName}"
109 libtool=
"${haveLibtool}"
112 <fileset dir=
"${basedir}/${ToolName}"
113 includes=
"${LibFileSet}"
114 defaultexcludes=
"TRUE"
115 excludes=
"*.xml *.inf"/>
117 <includepath path=
"${env.WORKSPACE}/MdePkg/Include"/>
118 <includepath path=
"${env.WORKSPACE}/MdePkg/Include/Ia32"/>
119 <includepath path=
"${env.WORKSPACE}/MdePkg/Include/Common"/>
120 <includepath path=
"${PACKAGE_DIR}/Common"/>
125 <exec dir=
"${BUILD_DIR}" executable=
"lib" failonerror=
"false">
126 <arg line=
"/NOLOGO *.lib /OUT:${LIB_DIR}/${LibName}${ext_static}"/>
132 <target name=
"clean" depends=
"init">
133 <echo message=
"Removing Intermediate Files Only"/>
135 <fileset dir=
"${BUILD_DIR}" includes=
"*.obj"/>
139 <target name=
"cleanall" depends=
"init">
140 <echo message=
"Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
141 <delete dir=
"${BUILD_DIR}">
142 <fileset dir=
"${BIN_DIR}" includes=
"${ToolName}${ext_exe}"/>