]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/TianoTools/CustomizedCompress/build.xml
Added target Wizard which just relies on the SurfaceArea. Also fixed the echo messages.
[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
878ddf1f 22 <property name="LINK_OUTPUT_TYPE" value="static"/>\r
23 <property name="BUILD_DIR" value="${PACKAGE_DIR}/CustomizedCompress/tmp"/>\r
24\r
25 <target name="CustomizedCompress.lib" depends="ToolsLibrary">\r
26 <echo message="Building the EDK CustomizedCompress Library"/>\r
27 </target>\r
28\r
29 <target name="init">\r
30 <echo message="The EDK CustomizedCompress Library"/>\r
31 <mkdir dir="${BUILD_DIR}"/>\r
32 <if>\r
33 <equals arg1="${GCC}" arg2="cygwin"/>\r
34 <then>\r
35 <echo message="Cygwin Family"/>\r
36 <property name="ToolChain" value="gcc"/>\r
37 </then>\r
38 <elseif>\r
39 <os family="dos"/>\r
40 <then>\r
41 <echo message="Windows Family"/>\r
42 <property name="ToolChain" value="msvc"/>\r
43 </then>\r
44 </elseif>\r
45 <elseif>\r
46 <os family="unix"/>\r
47 <then>\r
48 <echo message="UNIX Family"/>\r
49 <property name="ToolChain" value="gcc"/>\r
50 </then>\r
51 </elseif>\r
52\r
53 <else>\r
54 <echo>\r
55 Unsupported Operating System\r
56 Please Contact Intel Corporation\r
57 </echo>\r
58 </else>\r
59 </if>\r
ce53a8c3 60\r
61 <echo message="ToolChain: ${ToolChain}"/>\r
62 <if>\r
63 <equals arg1="${ToolChain}" arg2="msvc"/>\r
64 <then>\r
878ddf1f 65 <property name="ext_static" value=".lib"/>\r
66 <property name="ext_dynamic" value=".dll"/>\r
ce53a8c3 67 </then>\r
68 <elseif>\r
69 <equals arg1="${ToolChain}" arg2="gcc"/>\r
70 <then>\r
878ddf1f 71 <property name="ext_static" value=".a"/>\r
72 <property name="ext_dynamic" value=".so"/>\r
ce53a8c3 73 </then>\r
74 </elseif>\r
75 </if>\r
878ddf1f 76 </target>\r
77\r
78 <target name="ToolsLibrary" depends="init">\r
79 <cc name="${ToolChain}" objdir="${BUILD_DIR}" \r
80 outfile="${LIB_DIR}/CustomizedCompress"\r
81 outtype="static"\r
82 libtool="${haveLibtool}"\r
83 optimize="speed">\r
84\r
85 <fileset dir="${basedir}/CustomizedCompress" \r
86 includes="*.h *.c" \r
87 defaultexcludes="TRUE" \r
88 excludes="*.xml *.inf"/>\r
89\r
21b50a27 90 <includepath path="${PACKAGE_DIR}/Include"/>\r
21b50a27 91 <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
878ddf1f 92 </cc>\r
93 <if>\r
94 <os family="dos"/>\r
95 <then>\r
96 <exec dir="${BUILD_DIR}" executable="lib" failonerror="false">\r
97 <arg line="/NOLOGO *.lib /OUT:${LIB_DIR}/CustomizedCompress${ext_static}"/>\r
98 </exec>\r
99 </then>\r
100 </if>\r
101 </target>\r
102\r
103 <target name="clean">\r
104 <echo message="Removing Intermediate Files Only"/> \r
105 <delete>\r
106 <fileset dir="${BUILD_DIR}" includes="*.obj"/>\r
107 </delete>\r
108 </target>\r
109\r
110 <target name="cleanall">\r
111 <echo message="Removing Object Files and the Library: CustomizedCompress${ext_static}"/> \r
9e792382 112 <delete dir="${BUILD_DIR}" failonerror="false">\r
878ddf1f 113 <fileset dir="${LIB_DIR}" includes="CustomizedCompress${ext_static}"/>\r
114 </delete>\r
115 </target>\r
116\r
117</project>\r