]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/CustomizedCompress/build.xml
removed extra taskdef and taskref definitions that caused some warning messages when...
[mirror_edk2.git] / Tools / CCode / Source / CustomizedCompress / build.xml
1 <?xml version="1.0" ?>
2 <!--
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 -->
12 <project default="GenLib" basedir="." name="CustomizedCompressLibrary">
13 <!--
14 EDK Customized Compress Library
15 Copyright (c) 2006, Intel Corporation
16 -->
17
18 <taskdef resource="net/sf/antcontrib/antlib.xml"/>
19
20 <property name="LibName" value="CustomizedCompress"/>
21 <property name="LINK_OUTPUT_TYPE" value="static"/>
22 <property name="BUILD_DIR" value="${PACKAGE_DIR}/CustomizedCompress/tmp"/>
23
24 <target name="GenLib" depends="init, CustomizedCompress">
25 <echo message="The EDK Tool Library ${LibName} build has completed!"/>
26 </target>
27
28 <target name="init">
29 <echo message="Building the EDK Tool Library: ${LibName}"/>
30 <mkdir dir="${BUILD_DIR}"/>
31 </target>
32
33 <target name="CustomizedCompress" depends="init">
34 <cc name="${ToolChain}" objdir="${BUILD_DIR}"
35 outfile="${LIB_DIR}/${LibName}"
36 outtype="static"
37 debug="true"
38 optimize="speed">
39
40 <fileset dir="${basedir}/CustomizedCompress"
41 includes="*.c"
42 defaultexcludes="TRUE"
43 excludes="*.xml *.inf"/>
44
45 <includepath path="${PACKAGE_DIR}/Include"/>
46 <includepath path="${PACKAGE_DIR}/Include/Ia32"/>
47 </cc>
48 <if>
49 <istrue value="msft"/>
50 <then>
51 <exec dir="${BUILD_DIR}" executable="lib" failonerror="false">
52 <arg line="/NOLOGO *.lib /OUT:${LIB_DIR}/CustomizedCompress${ext_static}"/>
53 </exec>
54 </then>
55 </if>
56 </target>
57
58 <target name="clean">
59 <echo message="Removing Intermediate Files Only"/>
60 <delete>
61 <fileset dir="${BUILD_DIR}" includes="*.obj"/>
62 </delete>
63 </target>
64
65 <target name="cleanall">
66 <echo message="Removing Object Files and the Library: ${LibName}${ext_static}"/>
67 <delete failonerror="false" quiet="true" includeEmptyDirs="true">
68 <fileset dir="${BUILD_DIR}"/>
69 <fileset file="${LIB_DIR}/${LibName}${ext_static}"/>
70 </delete>
71 </target>
72
73 </project>