]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/TianoTools/CustomizedCompress/build.xml
1. Removed the unnecessary #include statements and include files
[mirror_edk2.git] / Tools / Source / TianoTools / CustomizedCompress / build.xml
CommitLineData
878ddf1f 1<?xml version="1.0" ?>\r
2<!--\r
3Copyright (c) 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11-->\r
12<project default="CustomizedCompress.lib" basedir=".">\r
13<!--\r
14 EDK Customized Compress Library\r
15 Copyright (c) 2006, Intel Corporation\r
16-->\r
17\r
18 <taskdef resource="cpptasks.tasks"/>\r
19 <typedef resource="cpptasks.types"/>\r
20 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
21\r
22 <property environment="env"/>\r
23\r
24 <property name="LINK_OUTPUT_TYPE" value="static"/>\r
25 <property name="BUILD_DIR" value="${PACKAGE_DIR}/CustomizedCompress/tmp"/>\r
26\r
27 <target name="CustomizedCompress.lib" depends="ToolsLibrary">\r
28 <echo message="Building the EDK CustomizedCompress Library"/>\r
29 </target>\r
30\r
31 <target name="init">\r
32 <echo message="The EDK CustomizedCompress Library"/>\r
33 <mkdir dir="${BUILD_DIR}"/>\r
34 <if>\r
35 <equals arg1="${GCC}" arg2="cygwin"/>\r
36 <then>\r
37 <echo message="Cygwin Family"/>\r
38 <property name="ToolChain" value="gcc"/>\r
39 </then>\r
40 <elseif>\r
41 <os family="dos"/>\r
42 <then>\r
43 <echo message="Windows Family"/>\r
44 <property name="ToolChain" value="msvc"/>\r
45 </then>\r
46 </elseif>\r
47 <elseif>\r
48 <os family="unix"/>\r
49 <then>\r
50 <echo message="UNIX Family"/>\r
51 <property name="ToolChain" value="gcc"/>\r
52 </then>\r
53 </elseif>\r
54\r
55 <else>\r
56 <echo>\r
57 Unsupported Operating System\r
58 Please Contact Intel Corporation\r
59 </echo>\r
60 </else>\r
61 </if>\r
ce53a8c3 62\r
63 <echo message="ToolChain: ${ToolChain}"/>\r
64 <if>\r
65 <equals arg1="${ToolChain}" arg2="msvc"/>\r
66 <then>\r
878ddf1f 67 <property name="ext_static" value=".lib"/>\r
68 <property name="ext_dynamic" value=".dll"/>\r
ce53a8c3 69 </then>\r
70 <elseif>\r
71 <equals arg1="${ToolChain}" arg2="gcc"/>\r
72 <then>\r
878ddf1f 73 <property name="ext_static" value=".a"/>\r
74 <property name="ext_dynamic" value=".so"/>\r
ce53a8c3 75 </then>\r
76 </elseif>\r
77 </if>\r
878ddf1f 78 </target>\r
79\r
80 <target name="ToolsLibrary" depends="init">\r
81 <cc name="${ToolChain}" objdir="${BUILD_DIR}" \r
82 outfile="${LIB_DIR}/CustomizedCompress"\r
83 outtype="static"\r
84 libtool="${haveLibtool}"\r
85 optimize="speed">\r
86\r
87 <fileset dir="${basedir}/CustomizedCompress" \r
88 includes="*.h *.c" \r
89 defaultexcludes="TRUE" \r
90 excludes="*.xml *.inf"/>\r
91\r
21b50a27 92 <includepath path="${PACKAGE_DIR}/Include"/>\r
21b50a27 93 <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
878ddf1f 94 </cc>\r
95 <if>\r
96 <os family="dos"/>\r
97 <then>\r
98 <exec dir="${BUILD_DIR}" executable="lib" failonerror="false">\r
99 <arg line="/NOLOGO *.lib /OUT:${LIB_DIR}/CustomizedCompress${ext_static}"/>\r
100 </exec>\r
101 </then>\r
102 </if>\r
103 </target>\r
104\r
105 <target name="clean">\r
106 <echo message="Removing Intermediate Files Only"/> \r
107 <delete>\r
108 <fileset dir="${BUILD_DIR}" includes="*.obj"/>\r
109 </delete>\r
110 </target>\r
111\r
112 <target name="cleanall">\r
113 <echo message="Removing Object Files and the Library: CustomizedCompress${ext_static}"/> \r
9e792382 114 <delete dir="${BUILD_DIR}" failonerror="false">\r
878ddf1f 115 <fileset dir="${LIB_DIR}" includes="CustomizedCompress${ext_static}"/>\r
116 </delete>\r
117 </target>\r
118\r
119</project>\r