2006-05-23 20:03: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 GenTEImage Tool
|
|
|
|
Copyright (c) 2006, Intel Corporation
|
|
|
|
-->
|
|
|
|
<property name="ToolName" value="GenTEImage"/>
|
|
|
|
<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-23 20:03:58 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="init">
|
2006-08-02 01:58:18 +02:00
|
|
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
2006-05-23 20:03:58 +02:00
|
|
|
<mkdir dir="${BUILD_DIR}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="Tool" depends="init">
|
|
|
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
|
|
|
outfile="${BIN_DIR}/${ToolName}"
|
|
|
|
outtype="executable"
|
2006-09-19 20:48:21 +02:00
|
|
|
debug="true"
|
2006-05-23 20:03:58 +02:00
|
|
|
optimize="speed">
|
2006-08-09 05:14:51 +02:00
|
|
|
<compilerarg value="${ExtraArgus}" if="ExtraArgus" />
|
2006-05-23 20:03:58 +02:00
|
|
|
|
|
|
|
<fileset dir="${basedir}/${ToolName}"
|
|
|
|
includes="${FileSet}"
|
|
|
|
defaultexcludes="TRUE"
|
|
|
|
excludes="*.xml *.inf"/>
|
|
|
|
|
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-05-23 20:03:58 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Common"/>
|
2006-06-16 13:42:42 +02:00
|
|
|
<libset dir="${LIB_DIR}" libs="CommonTools"/>
|
2006-05-23 20:03:58 +02:00
|
|
|
</cc>
|
|
|
|
</target>
|
|
|
|
|
2006-08-02 01:58:18 +02:00
|
|
|
<target name="clean">
|
2006-05-23 20:03: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">
|
2006-05-23 20:03:58 +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="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
2006-10-11 00:59:11 +02:00
|
|
|
<fileset file="${BIN_DIR}/${ToolName}.pdb"/>
|
2006-05-23 20:03:58 +02:00
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|