]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/Pccts/antlr/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=
"antlr"/>
19 <taskdef resource=
"net/sf/antcontrib/antlib.xml"/>
22 <condition property=
"CheckDepends">
23 <uptodate targetfile=
"${WORKSPACE}/Tools/bin/antlr.exe">
24 <srcfiles dir=
"." includes=
"*.c *.h *.g"/>
28 <equals arg1=
"${CheckDepends}" arg2=
"true"/>
30 <echo message=
"Executable, antlr.exe, is up to date."/>
33 <echo message=
"Building the EDK Pccts Tool: ${ToolName}"/>
38 <target name=
"GenTool" depends=
"init" unless=
"CheckDepends">
40 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
42 <exec dir=
"${PACKAGE_DIR}/Pccts/antlr" executable=
"nmake" failonerror=
"TRUE">
44 <arg line=
"-f AntlrMS.mak"/>
48 <istrue value=
"${cygwin}"/>
50 <exec dir=
"${PACKAGE_DIR}/Pccts/antlr" executable=
"make" failonerror=
"TRUE">
51 <arg line=
"-f makefile.cygwin"/>
56 <istrue value=
"${gcc}"/>
58 <exec dir=
"${PACKAGE_DIR}/Pccts/antlr" 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/antlr" executable=
"nmake" failonerror=
"TRUE">
76 <arg line=
"-f AntlrMS.mak clean"/>
80 <istrue value=
"${cygwin}"/>
82 <exec dir=
"${PACKAGE_DIR}/Pccts/antlr" executable=
"make" failonerror=
"TRUE">
83 <arg line=
"-f makefile.cygwin clean"/>
88 <istrue value=
"${gcc}"/>
90 <exec dir=
"${PACKAGE_DIR}/Pccts/antlr" executable=
"make" failonerror=
"TRUE">
92 <arg line=
"-f makefile clean"/>
99 <target name=
"cleanall">
100 <echo message=
"Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
102 <equals arg1=
"${ToolChain}" arg2=
"msvc"/>
104 <exec dir=
"${PACKAGE_DIR}/Pccts/antlr" executable=
"nmake" failonerror=
"FALSE">
106 <arg line=
"/NOLOGO"/>
107 <arg line=
"/f AntlrMS.mak clean"/>
111 <istrue value=
"${cygwin}"/>
113 <echo message=
"Building antlr with cygwin gcc"/>
114 <exec dir=
"${PACKAGE_DIR}/Pccts/antlr" executable=
"make" failonerror=
"FALSE">
116 <arg line=
"-f makefile.cygwin clean"/>
121 <istrue value=
"${gcc}"/>
123 <echo message=
"Building antlr with gcc"/>
124 <exec dir=
"${PACKAGE_DIR}/Pccts/antlr" executable=
"make" failonerror=
"FALSE">
126 <arg line=
"-f makefile clean"/>
131 <delete failonerror=
"false" quiet=
"true" includeEmptyDirs=
"true">
132 <fileset file=
"${BIN_DIR}/${ToolName}${ext_exe}"/>