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.
|
|
|
|
-->
|
|
|
|
<project default="GenTool" basedir=".">
|
|
|
|
<!--
|
|
|
|
EDK GuidChk Tool
|
|
|
|
Copyright (c) 2006, Intel Corporation
|
|
|
|
-->
|
|
|
|
<property name="ToolName" value="GuidChk"/>
|
|
|
|
<property name="FileSet" value="*.c *.h"/>
|
|
|
|
|
|
|
|
<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">
|
|
|
|
<if>
|
2006-08-02 01:58:18 +02:00
|
|
|
<isfalse value="${gcc}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
<then>
|
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
|
|
|
</then>
|
|
|
|
</if>
|
2006-08-02 01:58:18 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="init">
|
2006-06-16 13:42:42 +02:00
|
|
|
<if>
|
2006-08-02 01:58:18 +02:00
|
|
|
<istrue value="${gcc}"/>
|
2006-06-16 13:42:42 +02:00
|
|
|
<then>
|
2006-08-02 01:58:18 +02:00
|
|
|
<echo message="The EDK Tool: ${ToolName} is not built for GCC!"/>
|
2006-06-16 13:42:42 +02:00
|
|
|
</then>
|
2006-08-02 01:58:18 +02:00
|
|
|
<else>
|
|
|
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
|
|
|
<mkdir dir="${BUILD_DIR}"/>
|
|
|
|
</else>
|
2006-06-16 13:42:42 +02:00
|
|
|
</if>
|
2006-04-22 00:54:32 +02:00
|
|
|
</target>
|
|
|
|
|
2006-05-04 00:14:18 +02:00
|
|
|
<target name="Tool" depends="init" unless="gcc">
|
2006-04-22 00:54:32 +02:00
|
|
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
|
|
|
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">
|
|
|
|
|
|
|
|
<fileset dir="${basedir}/${ToolName}"
|
|
|
|
includes="${FileSet}"
|
|
|
|
defaultexcludes="TRUE"
|
|
|
|
excludes="*.xml *.inf"/>
|
|
|
|
|
2006-06-14 10:07:19 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Include"/>
|
|
|
|
<includepath path="${PACKAGE_DIR}/Include/Ia32"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
<includepath path="${PACKAGE_DIR}/Common"/>
|
2006-06-16 13:42:42 +02:00
|
|
|
<libset dir="${LIB_DIR}" libs="CommonTools"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
</cc>
|
|
|
|
</target>
|
|
|
|
|
2006-08-02 01:58:18 +02:00
|
|
|
<target name="clean">
|
2006-04-22 00:54:32 +02:00
|
|
|
<echo message="Removing Intermediate Files Only"/>
|
2006-08-02 01:58:18 +02:00
|
|
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
|
|
|
<fileset dir="${BUILD_DIR}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
|
2006-08-02 01:58:18 +02:00
|
|
|
<target name="cleanall">
|
2006-04-22 00:54:32 +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-04-22 00:54:32 +02:00
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|