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