2006-05-24 00:00:58 +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.
|
|
|
|
-->
|
|
|
|
<project default="GenTool" basedir=".">
|
|
|
|
<!--
|
|
|
|
EDK PeiRebase Tool
|
|
|
|
Copyright (c) 2006, Intel Corporation
|
|
|
|
-->
|
|
|
|
<property name="ToolName" value="PeiRebase"/>
|
|
|
|
<property name="FileSet" value="*.c"/>
|
|
|
|
|
|
|
|
<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, Tool">
|
2006-08-02 01:58:18 +02:00
|
|
|
<echo message="The EDK Tool: ${ToolName} build has completed"/>
|
2006-05-24 00:00:58 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="Tool" depends="init, PeiRebase_Ia32, PeiRebase_Ipf, PeiRebase_X64"/>
|
|
|
|
|
|
|
|
<target name="init">
|
2006-08-02 01:58:18 +02:00
|
|
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
2006-05-24 00:00:58 +02:00
|
|
|
<mkdir dir="${BUILD_DIR}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="PeiRebase_Ia32" depends="init">
|
|
|
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
|
|
|
outfile="${BIN_DIR}/${ToolName}_Ia32"
|
|
|
|
outtype="executable"
|
2006-09-19 20:48:21 +02:00
|
|
|
debug="true"
|
2006-05-24 00:00:58 +02:00
|
|
|
optimize="speed">
|
2006-08-09 05:14:51 +02:00
|
|
|
<compilerarg value="${ExtraArgus}" if="ExtraArgus" />
|
|
|
|
|
2006-05-24 00:00:58 +02:00
|
|
|
<fileset dir="${basedir}/${ToolName}"
|
|
|
|
includes="${FileSet}"/>
|
|
|
|
|
2006-06-14 10:07:19 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Include"/>
|
|
|
|
<includepath path="${PACKAGE_DIR}/Include/Ia32"/>
|
2006-05-24 00:00:58 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Common"/>
|
2006-06-16 13:42:42 +02:00
|
|
|
<libset dir="${LIB_DIR}" libs="CommonTools PeCoffLoader_Ia32"/>
|
2006-05-24 00:00:58 +02:00
|
|
|
</cc>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="PeiRebase_Ipf" depends="init">
|
|
|
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
|
|
|
outfile="${BIN_DIR}/${ToolName}_Ipf"
|
|
|
|
outtype="executable"
|
2006-09-19 20:48:21 +02:00
|
|
|
debug="true"
|
2006-05-24 00:00:58 +02:00
|
|
|
optimize="speed">
|
2006-08-09 05:14:51 +02:00
|
|
|
<compilerarg value="${ExtraArgus}" if="ExtraArgus" />
|
2006-05-24 00:00:58 +02:00
|
|
|
<fileset dir="${basedir}/${ToolName}"
|
|
|
|
includes="${FileSet}"/>
|
|
|
|
|
2006-06-14 10:07:19 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Include"/>
|
|
|
|
<includepath path="${PACKAGE_DIR}/Include/Ia32"/>
|
2006-05-24 00:00:58 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Common"/>
|
2006-06-16 13:42:42 +02:00
|
|
|
<libset dir="${LIB_DIR}" libs="CommonTools PeCoffLoader_Ipf"/>
|
2006-05-24 00:00:58 +02:00
|
|
|
</cc>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="PeiRebase_X64" depends="init">
|
|
|
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
|
|
|
outfile="${BIN_DIR}/${ToolName}_X64"
|
|
|
|
outtype="executable"
|
2006-09-19 20:48:21 +02:00
|
|
|
debug="true"
|
2006-05-24 00:00:58 +02:00
|
|
|
optimize="speed">
|
2006-08-09 05:14:51 +02:00
|
|
|
<compilerarg value="${ExtraArgus}" if="ExtraArgus" />
|
2006-05-24 00:00:58 +02:00
|
|
|
<fileset dir="${basedir}/${ToolName}"
|
|
|
|
includes="${FileSet}" />
|
|
|
|
|
2006-06-14 10:07:19 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Include"/>
|
|
|
|
<includepath path="${PACKAGE_DIR}/Include/Ia32"/>
|
2006-05-24 00:00:58 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Common"/>
|
2006-06-16 13:42:42 +02:00
|
|
|
<libset dir="${LIB_DIR}" libs="CommonTools PeCoffLoader_X64"/>
|
2006-05-24 00:00:58 +02:00
|
|
|
</cc>
|
|
|
|
</target>
|
|
|
|
|
2006-08-02 01:58:18 +02:00
|
|
|
<target name="clean">
|
2006-05-24 00:00:58 +02:00
|
|
|
<echo message="Removing Intermediate Files Only"/>
|
|
|
|
<delete>
|
|
|
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
|
2006-08-02 01:58:18 +02:00
|
|
|
<target name="cleanall">
|
|
|
|
<echo message="Removing Object Files and the Executable: ${ToolName}_*${ext_exe}"/>
|
|
|
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
|
|
|
<fileset dir="${BUILD_DIR}"/>
|
|
|
|
<fileset file="${BIN_DIR}/${ToolName}_Ia32${ext_exe}"/>
|
|
|
|
<fileset file="${BIN_DIR}/${ToolName}_Ipf${ext_exe}"/>
|
|
|
|
<fileset file="${BIN_DIR}/${ToolName}_X64${ext_exe}"/>
|
2006-10-11 00:59:11 +02:00
|
|
|
<fileset file="${BIN_DIR}/${ToolName}_Ia32.pdb"/>
|
|
|
|
<fileset file="${BIN_DIR}/${ToolName}_Ipf.pdb"/>
|
|
|
|
<fileset file="${BIN_DIR}/${ToolName}_X64.pdb"/>
|
2006-05-24 00:00:58 +02:00
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|