]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/Pccts/dlg/build.xml
3a8a9eec2b0f24f8ecef861e7382c41200a940d3
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=
"net/sf/antcontrib/antlib.xml"/>
21 <property name=
"PACKAGE_DIR" value=
"${WORKSPACE}/Tools"/>
24 <condition property=
"CheckDepends">
25 <uptodate targetfile=
"${WORKSPACE}/Tools/bin/dlg.exe">
26 <srcfiles dir=
"." includes=
"*.c *.h *.g"/>
30 <equals arg1=
"${CheckDepends}" arg2=
"true"/>
32 <echo message=
"Executable, dlg.exe, is up to date."/>
35 <echo message=
"Building the EDK Pccts Tool: ${ToolName}"/>
40 <target name=
"GenTool" depends=
"init" unless=
"CheckDepends">
42 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
44 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"nmake" failonerror=
"TRUE">
45 <arg line=
"-f DlgMS.mak"/>
49 <istrue value=
"${cygwin}"/>
51 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"make" failonerror=
"TRUE">
52 <arg line=
"-f makefile.cygwin"/>
57 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
59 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"make" failonerror=
"TRUE">
60 <arg line=
"-f makefile BIN_DIR=${BIN_DIR}"/>
65 <echo message=
"The EDK Tool: ${ToolName} build has completed!"/>
69 <echo message=
"Removing Intermediate Files Only"/>
71 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
73 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"nmake" failonerror=
"TRUE">
74 <arg line=
"-f DlgMS.mak clean"/>
78 <istrue value=
"${cygwin}"/>
80 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"make" failonerror=
"TRUE">
81 <arg line=
"-f makefile.cygwin clean"/>
86 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
88 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"make" failonerror=
"TRUE">
89 <arg line=
"-f makefile clean"/>
96 <target name=
"cleanall">
97 <echo message=
"Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
99 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
101 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"nmake" failonerror=
"FALSE">
102 <arg line=
"-f DlgMS.mak clean"/>
106 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
108 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"make" failonerror=
"FALSE">
109 <arg line=
"-f makefile clean"/>
114 <delete failonerror=
"false" quiet=
"true" includeEmptyDirs=
"true">
115 <fileset file=
"${BIN_DIR}/${ToolName}${ext_exe}"/>