]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/Pccts/dlg/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 <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 name=
"PACKAGE_DIR" value=
"${WORKSPACE}/Tools"/>
26 <condition property=
"CheckDepends">
27 <uptodate targetfile=
"${WORKSPACE}/Tools/bin/dlg.exe">
28 <srcfiles dir=
"." includes=
"*.c *.h *.g"/>
32 <equals arg1=
"${CheckDepends}" arg2=
"true"/>
34 <echo message=
"Executable, dlg.exe, is up to date."/>
37 <echo message=
"Building the EDK Pccts Tool: ${ToolName}"/>
42 <target name=
"GenTool" depends=
"init" unless=
"CheckDepends">
44 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
46 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"nmake" failonerror=
"TRUE">
47 <arg line=
"-f DlgMS.mak"/>
51 <istrue value=
"${cygwin}"/>
53 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"make" failonerror=
"TRUE">
54 <arg line=
"-f makefile.cygwin"/>
59 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
61 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"make" failonerror=
"TRUE">
62 <arg line=
"-f makefile BIN_DIR=${BIN_DIR}"/>
67 <echo message=
"The EDK Tool: ${ToolName} build has completed!"/>
71 <echo message=
"Removing Intermediate Files Only"/>
73 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
75 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"nmake" failonerror=
"TRUE">
76 <arg line=
"-f DlgMS.mak clean"/>
80 <istrue value=
"${cygwin}"/>
82 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"make" failonerror=
"TRUE">
83 <arg line=
"-f makefile.cygwin clean"/>
88 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
90 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"make" failonerror=
"TRUE">
91 <arg line=
"-f makefile clean"/>
98 <target name=
"cleanall">
99 <echo message=
"Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
101 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
103 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"nmake" failonerror=
"FALSE">
104 <arg line=
"-f DlgMS.mak clean"/>
108 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
110 <exec dir=
"${PACKAGE_DIR}/Pccts/dlg" executable=
"make" failonerror=
"FALSE">
111 <arg line=
"-f makefile clean"/>
116 <delete failonerror=
"false" quiet=
"true" includeEmptyDirs=
"true">
117 <fileset file=
"${BIN_DIR}/${ToolName}${ext_exe}"/>