]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/CompressDll/build.xml
ff80a6c4ed692699774e2faa7ffffb54eb56fd08
[mirror_edk2.git] / Tools / Source / TianoTools / CompressDll / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
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="GenTool" basedir=".">
13 <!--
14 EDK CompressDll Tool Library
15 Copyright (c) 2006, Intel Corporation
16 -->
17
18 <property name="WORKSPACE" value="${env.WORKSPACE}"/>
19 <property name="LibName" value="CompressDll"/>
20 <property name="FileSet" value="CompressDll.c CompressDll.h"/>
21 <property name="LibFileSet" value="CompressDll.c DepexParser.h"/>
22
23 <taskdef resource="cpptasks.tasks"/>
24 <typedef resource="cpptasks.types"/>
25 <taskdef resource="net/sf/antcontrib/antlib.xml"/>
26
27 <property name="LINK_OUTPUT_TYPE" value="static"/>
28 <property name="BUILD_DIR" value="${WORKSPACE}/Tools/Source/TianoTools/${LibName}/tmp"/>
29
30 <target name="GenTool" depends="init,Lib" >
31 <echo message="The EDK Tool Library: ${LibName} build has completed!"/>
32 </target>
33
34 <target name="init">
35 <echo message="Building the EDK Tool Library: ${LibName}"/>
36 <mkdir dir="${BUILD_DIR}"/>
37 </target>
38
39 <target name="Lib" depends="init">
40 <cc name="${ToolChain}"
41 objdir="${BUILD_DIR}"
42 outtype="shared"
43 optimize="speed"
44 outfile="${BIN_DIR}/${LibName}"
45 outputfileproperty="result"
46 >
47 <fileset dir="${LibName}" includes="${LibFileSet}" defaultexcludes="TRUE" excludes="*.xml *.inf"/>
48 <includepath path="${PACKAGE_DIR}/Include"/>
49 <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>
50 <includepath path="${PACKAGE_DIR}/Common"/>
51 <includepath path="${env.JAVA_HOME}/include"/>
52 <includepath path="${env.JAVA_HOME}/include/linux" if="cyglinux"/>
53 <includepath path="${env.JAVA_HOME}/include/win32" if="msft"/>
54 <libset dir="${LIB_DIR}" libs="CommonTools"/>
55 <syslibset libs="kernel32" if="msft"/>
56 </cc>
57 <copy file="${result}" tofile="${BIN_DIR}/CompressDll.dll"/>
58 <chmod file="${BIN_DIR}/CompressDll.dll" perm="ugo+x"/>
59 </target>
60
61 <target name="clean">
62 <echo message="Removing Intermediate Files Only"/>
63 <delete>
64 <fileset dir="${BUILD_DIR}" includes="*.obj"/>
65 </delete>
66 </target>
67
68 <target name="cleanall">
69 <echo message="Removing Object Files and the Executable: ${LibName}${ext_shared}"/>
70 <delete failonerror="false" quiet="true" includeEmptyDirs="true">
71 <fileset dir="${BUILD_DIR}"/>
72 <fileset file="${BIN_DIR}/${LibName}.*"/>
73 </delete>
74 </target>
75 </project>