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=
"dlg"/>
19 <taskdef resource=
"cpptasks.tasks"/>
20 <typedef resource=
"cpptasks.types"/>
21 <taskdef resource=
"net/sf/antcontrib/antlib.xml"/>
23 <property environment=
"env"/>
24 <property name=
"PACKAGE_DIR" value=
"${WORKSPACE}/Tools"/>
27 <echo message=
"The EDK Tool: ${ToolName}"/>
29 <equals arg1=
"${GCC}" arg2=
"cygwin"/>
31 <echo message=
"Cygwin Family"/>
32 <property name=
"ToolChain" value=
"gcc"/>
37 <echo message=
"Windows Family"/>
38 <property name=
"ToolChain" value=
"msvc"/>
44 <echo message=
"UNIX Family"/>
45 <property name=
"ToolChain" value=
"gcc"/>
51 Unsupported Operating System
52 Please Contact Intel Corporation
57 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
59 <property name=
"ext_static" value=
".lib"/>
60 <property name=
"ext_dynamic" value=
".dll"/>
61 <property name=
"ext_exe" value=
".exe"/>
64 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
66 <property name=
"ext_static" value=
".a"/>
67 <property name=
"ext_dynamic" value=
".so"/>
68 <property name=
"ext_exe" value=
""/>
72 <condition property=
"CheckDepends">
73 <uptodate targetfile=
"${WORKSPACE}/Tools/bin/dlg.exe">
74 <srcfiles dir=
"." includes=
"*.c *.h *.g"/>
78 <equals arg1=
"${CheckDepends}" arg2=
"true"/>
80 <echo message=
"Executable, dlg.exe, is up to date."/>
85 <target name=
"GenTool" depends=
"init" unless=
"CheckDepends">
86 <echo message=
"Building the EDK Tool: ${ToolName}"/>
88 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
90 <exec dir=
"${basedir}" executable=
"nmake" failonerror=
"TRUE">
91 <arg line=
"-f DlgMS.mak"/>
95 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
97 <exec dir=
"${basedir}" executable=
"make" failonerror=
"TRUE">
98 <arg line=
"-f makefile"/>
105 <target name=
"clean" depends=
"init">
106 <echo message=
"Removing Intermediate Files Only"/>
108 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
110 <exec dir=
"${basedir}" executable=
"nmake" failonerror=
"TRUE">
111 <arg line=
"-f DlgMS.mak clean"/>
115 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
117 <exec dir=
"${basedir}" executable=
"make" failonerror=
"TRUE">
118 <arg line=
"-f makefile clean"/>
125 <target name=
"cleanall" depends=
"init">
126 <echo message=
"Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
128 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
130 <exec dir=
"${basedir}" executable=
"nmake" failonerror=
"FALSE">
131 <arg line=
"-f DlgMS.mak clean"/>
135 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
137 <exec dir=
"${basedir}" executable=
"make" failonerror=
"FALSE">
138 <arg line=
"-f makefile clean"/>