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=".">
|
|
|
|
<!--
|
2006-08-02 01:58:18 +02:00
|
|
|
EDK Pccts Tool: dlg
|
2006-04-22 00:54:32 +02:00
|
|
|
Copyright (c) 2006, Intel Corporation
|
|
|
|
-->
|
|
|
|
<property name="ToolName" value="dlg"/>
|
|
|
|
|
|
|
|
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
|
|
|
|
|
|
|
<property name="PACKAGE_DIR" value="${WORKSPACE}/Tools"/>
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<condition property="CheckDepends">
|
|
|
|
<uptodate targetfile="${WORKSPACE}/Tools/bin/dlg.exe">
|
|
|
|
<srcfiles dir="." includes="*.c *.h *.g"/>
|
|
|
|
</uptodate>
|
|
|
|
</condition>
|
|
|
|
<if>
|
|
|
|
<equals arg1="${CheckDepends}" arg2="true"/>
|
|
|
|
<then>
|
|
|
|
<echo message="Executable, dlg.exe, is up to date."/>
|
|
|
|
</then>
|
2006-08-02 01:58:18 +02:00
|
|
|
<else>
|
|
|
|
<echo message="Building the EDK Pccts Tool: ${ToolName}"/>
|
|
|
|
</else>
|
2006-04-22 00:54:32 +02:00
|
|
|
</if>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="GenTool" depends="init" unless="CheckDepends">
|
|
|
|
<if>
|
|
|
|
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
|
|
<then>
|
2006-08-02 01:58:18 +02:00
|
|
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="TRUE">
|
2006-10-11 18:40:33 +02:00
|
|
|
<arg line="/NOLOGO"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
<arg line="-f DlgMS.mak"/>
|
|
|
|
</exec>
|
|
|
|
</then>
|
|
|
|
<elseif>
|
2006-08-02 01:58:18 +02:00
|
|
|
<istrue value="${cygwin}"/>
|
|
|
|
<then>
|
|
|
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">
|
|
|
|
<arg line="-f makefile.cygwin"/>
|
|
|
|
</exec>
|
|
|
|
</then>
|
|
|
|
</elseif>
|
|
|
|
<elseif>
|
2006-04-22 00:54:32 +02:00
|
|
|
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
|
|
<then>
|
2006-08-02 01:58:18 +02:00
|
|
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">
|
2006-10-11 18:40:33 +02:00
|
|
|
<arg line="-s"/>
|
2006-08-03 10:53:53 +02:00
|
|
|
<arg line="-f makefile BIN_DIR=${BIN_DIR}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
</exec>
|
|
|
|
</then>
|
|
|
|
</elseif>
|
|
|
|
</if>
|
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>
|
|
|
|
|
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"/>
|
|
|
|
<if>
|
|
|
|
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
|
|
<then>
|
2006-08-02 01:58:18 +02:00
|
|
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="TRUE">
|
2006-10-11 18:40:33 +02:00
|
|
|
<arg line="/C"/>
|
|
|
|
<arg line="/NOLOGO"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
<arg line="-f DlgMS.mak clean"/>
|
|
|
|
</exec>
|
|
|
|
</then>
|
2006-08-02 01:58:18 +02:00
|
|
|
<elseif>
|
|
|
|
<istrue value="${cygwin}"/>
|
|
|
|
<then>
|
|
|
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">
|
|
|
|
<arg line="-f makefile.cygwin clean"/>
|
|
|
|
</exec>
|
|
|
|
</then>
|
|
|
|
</elseif>
|
2006-04-22 00:54:32 +02:00
|
|
|
<elseif>
|
|
|
|
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
|
|
<then>
|
2006-08-02 01:58:18 +02:00
|
|
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">
|
2006-10-11 18:40:33 +02:00
|
|
|
<arg line="-s"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
<arg line="-f makefile clean"/>
|
|
|
|
</exec>
|
|
|
|
</then>
|
|
|
|
</elseif>
|
|
|
|
</if>
|
|
|
|
</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}"/>
|
|
|
|
<if>
|
|
|
|
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
|
|
<then>
|
2006-08-02 01:58:18 +02:00
|
|
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="FALSE">
|
2006-10-11 18:40:33 +02:00
|
|
|
<arg line="/C"/>
|
|
|
|
<arg line="/NOLOGO"/>
|
2006-05-27 00:53:39 +02:00
|
|
|
<arg line="-f DlgMS.mak clean"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
</exec>
|
|
|
|
</then>
|
|
|
|
<elseif>
|
|
|
|
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
|
|
<then>
|
2006-08-02 01:58:18 +02:00
|
|
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="FALSE">
|
2006-10-11 18:40:33 +02:00
|
|
|
<arg line="-s"/>
|
2006-05-27 00:53:39 +02:00
|
|
|
<arg line="-f makefile clean"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
</exec>
|
|
|
|
</then>
|
|
|
|
</elseif>
|
|
|
|
</if>
|
2006-08-02 01:58:18 +02:00
|
|
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
|
|
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
|
|
|
</delete>
|
2006-04-22 00:54:32 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|