2006-04-22 00:54:32 +02:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
<!--
|
|
|
|
Copyright (c) 2006, Intel Corporation
|
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
-->
|
2006-08-02 01:58:18 +02:00
|
|
|
<project default="GenTool" basedir="." name="VfrCompile">
|
2006-04-22 00:54:32 +02:00
|
|
|
<!--
|
|
|
|
EDK VfrCompile Tool
|
|
|
|
Copyright (c) 2006, Intel Corporation
|
|
|
|
-->
|
|
|
|
<property name="ToolName" value="VfrCompile"/>
|
|
|
|
<property name="FileSet" value="*.cpp"/>
|
|
|
|
<property name="FileSetPccts" value="ATokenBuffer.cpp DLexerBase.cpp AParser.cpp"/>
|
|
|
|
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
|
|
|
|
|
|
|
<property name="LINK_OUTPUT_TYPE" value="static"/>
|
|
|
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
|
|
|
|
|
|
|
<target name="GenTool" depends="init, Antlr, Dlg, Tool">
|
2006-08-02 01:58:18 +02:00
|
|
|
<echo message="The EDK Tool: ${ToolName} build has completed"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="init">
|
2006-08-02 01:58:18 +02:00
|
|
|
|
|
|
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
<mkdir dir="${BUILD_DIR}"/>
|
2006-08-02 01:58:18 +02:00
|
|
|
|
|
|
|
<condition property="AntlrDepends">
|
|
|
|
<uptodate targetfile="${PACKAGE_DIR}/VfrCompile/parser.dlg" srcfile="${PACKAGE_DIR}/VfrCompile/VfrCompile.g" value="true"/>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<condition property="DlgDepends">
|
|
|
|
<uptodate targetfile="${PACKAGE_DIR}/VfrCompile/DLGLexer.cpp" srcfile="${PACKAGE_DIR}/VfrCompile/parser.dlg" value="true"/>
|
|
|
|
</condition>
|
|
|
|
|
2006-06-16 13:42:42 +02:00
|
|
|
<condition property="CheckDepends">
|
2006-08-02 01:58:18 +02:00
|
|
|
<or>
|
|
|
|
<isset property="AntlrDepends"/>
|
|
|
|
<isset property="DlgDepends"/>
|
|
|
|
</or>
|
2006-06-16 13:42:42 +02:00
|
|
|
</condition>
|
2006-05-16 01:34:57 +02:00
|
|
|
|
|
|
|
<condition property="gxx_extra_libs" value="stdc++ System gcc_s.10.4 gcc">
|
|
|
|
<os family="mac"/>
|
2006-08-02 01:58:18 +02:00
|
|
|
</condition>
|
2006-06-16 13:42:42 +02:00
|
|
|
|
2006-05-16 01:34:57 +02:00
|
|
|
<condition property="gxx_extra_libs" value="stdc++">
|
|
|
|
<os name="linux"/>
|
2006-08-02 01:58:18 +02:00
|
|
|
</condition>
|
2006-06-16 13:42:42 +02:00
|
|
|
|
2006-05-16 01:34:57 +02:00
|
|
|
<condition property="gxx_extra_libs" value="stdc++">
|
|
|
|
<os family="windows"/>
|
2006-08-02 01:58:18 +02:00
|
|
|
</condition>
|
2006-06-16 13:42:42 +02:00
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
</target>
|
|
|
|
|
2006-08-02 01:58:18 +02:00
|
|
|
<target name="Antlr" depends="init" unless="AntlrDepends">
|
|
|
|
<echo message="Executing ANTLR"/>
|
2006-06-16 19:48:34 +02:00
|
|
|
<exec dir="${basedir}/${ToolName}" executable="${env.FRAMEWORK_TOOLS_PATH}/antlr" failonerror="TRUE">
|
2006-04-22 00:54:32 +02:00
|
|
|
<arg line="-CC -e3 -ck 3 -o . VfrCompile.g"/>
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2006-08-02 01:58:18 +02:00
|
|
|
<target name="Dlg" depends="Antlr" unless="DlgDepends">
|
|
|
|
<echo message="Executing DLG"/>
|
2006-06-16 19:48:34 +02:00
|
|
|
<exec dir="${basedir}/${ToolName}" executable="${env.FRAMEWORK_TOOLS_PATH}/dlg" failonerror="TRUE">
|
2006-05-05 01:32:15 +02:00
|
|
|
<arg line="-C2 -i -CC -o . parser.dlg"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2006-08-02 01:58:18 +02:00
|
|
|
<target name="Tool" depends="init">
|
2006-05-16 13:12:51 +02:00
|
|
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
2006-04-22 00:54:32 +02:00
|
|
|
outfile="${BIN_DIR}/${ToolName}"
|
|
|
|
outtype="executable"
|
2006-09-19 20:48:21 +02:00
|
|
|
debug="true"
|
2006-04-22 00:54:32 +02:00
|
|
|
optimize="speed">
|
|
|
|
|
2006-12-30 07:18:21 +01:00
|
|
|
<compilerarg value="-fpermissive" if="gcc"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
<fileset dir="${basedir}/${ToolName}"
|
2006-05-04 00:14:18 +02:00
|
|
|
includes="${FileSet}" />
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
<fileset dir="${basedir}/Pccts/h"
|
2006-05-04 00:14:18 +02:00
|
|
|
includes="${FileSetPccts}" />
|
2006-04-22 00:54:32 +02:00
|
|
|
|
2006-06-16 13:42:42 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Pccts/h"/>
|
2006-06-14 10:07:19 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Include"/>
|
2006-07-25 23:08:04 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Common"/>
|
2006-05-04 00:14:18 +02:00
|
|
|
<libset dir="${LIB_DIR}" libs="CommonTools"/>
|
2006-05-16 16:52:41 +02:00
|
|
|
<syslibset libs="${gxx_extra_libs}" if="gcc"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
</cc>
|
|
|
|
</target>
|
|
|
|
|
2006-08-02 01:58:18 +02:00
|
|
|
<target name="clean">
|
2006-05-04 00:14:18 +02:00
|
|
|
<echo message="Removing Intermediate Files Only"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
<delete>
|
|
|
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
|
2006-08-02 01:58:18 +02:00
|
|
|
<target name="cleanall">
|
2006-05-04 00:14:18 +02:00
|
|
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
2006-08-02 01:58:18 +02:00
|
|
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
|
|
|
<fileset dir="${BUILD_DIR}"/>
|
|
|
|
<fileset file="${basedir}/${ToolName}/DLGLexer.cpp"/>
|
|
|
|
<fileset file="${basedir}/${ToolName}/DLGLexer.h"/>
|
|
|
|
<fileset file="${basedir}/${ToolName}/EfiVfrParser.cpp"/>
|
|
|
|
<fileset file="${basedir}/${ToolName}/EfiVfrParser.h"/>
|
|
|
|
<fileset file="${basedir}/${ToolName}/parser.dlg"/>
|
|
|
|
<fileset file="${basedir}/${ToolName}/tokens.h"/>
|
|
|
|
<fileset file="${basedir}/${ToolName}/VfrCompile.cpp"/>
|
|
|
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
2006-10-11 00:59:11 +02:00
|
|
|
<fileset file="${BIN_DIR}/${ToolName}.pdb"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|