2006-08-04 05:17:05 +02:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<!--
|
|
|
|
|
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-06-16 13:42:42 +02:00
|
|
|
|
<!--
|
2006-08-02 01:58:18 +02:00
|
|
|
|
EDK CompressDll Tool Library
|
2006-06-16 13:42:42 +02:00
|
|
|
|
Copyright (c) 2006, Intel Corporation
|
|
|
|
|
-->
|
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<property name="WORKSPACE" value="${env.WORKSPACE}"/>
|
|
|
|
|
<property name="LibName" value="CompressDll"/>
|
|
|
|
|
<property name="FileSet" value="CompressDll.c CompressDll.h"/>
|
|
|
|
|
<property name="LibFileSet" value="CompressDll.c DepexParser.h"/>
|
2006-06-16 13:42:42 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
2006-06-16 13:42:42 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<property name="LINK_OUTPUT_TYPE" value="static"/>
|
2006-10-08 09:02:24 +02:00
|
|
|
|
<property name="BUILD_DIR" value="${WORKSPACE}/Tools/CCode/Source/${LibName}/tmp"/>
|
2006-06-16 13:42:42 +02:00
|
|
|
|
|
2006-05-04 00:14:18 +02:00
|
|
|
|
<target name="GenTool" depends="init,Lib" >
|
2006-08-02 01:58:18 +02:00
|
|
|
|
<echo message="The EDK Tool Library: ${LibName} build has completed!"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</target>
|
2006-06-16 13:42:42 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<target name="init">
|
2006-08-02 01:58:18 +02:00
|
|
|
|
<echo message="Building the EDK Tool Library: ${LibName}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<mkdir dir="${BUILD_DIR}"/>
|
|
|
|
|
</target>
|
|
|
|
|
|
2006-05-18 00:09:07 +02:00
|
|
|
|
<target name="Lib" depends="init">
|
2006-05-04 00:14:18 +02:00
|
|
|
|
<cc name="${ToolChain}"
|
|
|
|
|
objdir="${BUILD_DIR}"
|
|
|
|
|
outtype="shared"
|
2006-09-19 20:46:40 +02:00
|
|
|
|
debug="true"
|
2006-05-04 00:14:18 +02:00
|
|
|
|
optimize="speed"
|
|
|
|
|
outfile="${BIN_DIR}/${LibName}"
|
2006-05-18 00:39:41 +02:00
|
|
|
|
outputfileproperty="result"
|
2006-05-04 00:14:18 +02:00
|
|
|
|
>
|
2006-08-09 05:14:51 +02:00
|
|
|
|
<compilerarg value="${ExtraArgus}" if="ExtraArgus" />
|
2006-08-02 01:58:18 +02:00
|
|
|
|
<fileset dir="${LibName}" includes="${LibFileSet}" 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-04-22 00:54:32 +02:00
|
|
|
|
<includepath path="${PACKAGE_DIR}/Common"/>
|
|
|
|
|
<includepath path="${env.JAVA_HOME}/include"/>
|
2006-08-04 05:17:05 +02:00
|
|
|
|
<includepath path="${env.JAVA_HOME}/include/linux" if="gcc"/>
|
|
|
|
|
<includepath path="${env.JAVA_HOME}/include/win32" if="cygwin"/>
|
2006-08-02 01:58:18 +02:00
|
|
|
|
<includepath path="${env.JAVA_HOME}/include/win32" if="msft"/>
|
2006-05-04 00:14:18 +02:00
|
|
|
|
<libset dir="${LIB_DIR}" libs="CommonTools"/>
|
2006-08-02 01:58:18 +02:00
|
|
|
|
<syslibset libs="kernel32" if="msft"/>
|
2006-08-04 05:17:05 +02:00
|
|
|
|
<linkerarg value="-mno-cygwin" if="cygwin"/>
|
|
|
|
|
<linkerarg value="--add-stdcall-alias" if="cygwin"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</cc>
|
2006-05-18 00:39:41 +02:00
|
|
|
|
<copy file="${result}" tofile="${BIN_DIR}/CompressDll.dll"/>
|
2006-05-20 00:25:12 +02:00
|
|
|
|
<chmod file="${BIN_DIR}/CompressDll.dll" perm="ugo+x"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</target>
|
2006-06-16 13:42:42 +02:00
|
|
|
|
|
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"/>
|
|
|
|
|
<delete>
|
|
|
|
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
|
|
|
|
</delete>
|
|
|
|
|
</target>
|
2006-06-16 13:42:42 +02:00
|
|
|
|
|
2006-08-02 01:58:18 +02:00
|
|
|
|
<target name="cleanall">
|
2006-10-10 00:03:52 +02:00
|
|
|
|
<echo message="Removing Object Files and the Executable: ${LibName}${ext_dynamic}"/>
|
2006-08-02 01:58:18 +02:00
|
|
|
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
|
|
|
|
<fileset dir="${BUILD_DIR}"/>
|
|
|
|
|
<fileset file="${BIN_DIR}/${LibName}.*"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</delete>
|
|
|
|
|
</target>
|
|
|
|
|
</project>
|