]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/CompressDll/build.xml
1
<?xml version=
"1.0" encoding=
"UTF-8"?>
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
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.
12 <project default=
"GenTool" basedir=
".">
14 EDK CompressDll Tool Library
15 Copyright (c) 2006, Intel Corporation
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"/>
23 <taskdef resource=
"cpptasks.tasks"/>
24 <typedef resource=
"cpptasks.types"/>
25 <taskdef resource=
"net/sf/antcontrib/antlib.xml"/>
27 <property name=
"LINK_OUTPUT_TYPE" value=
"static"/>
28 <property name=
"BUILD_DIR" value=
"${WORKSPACE}/Tools/CCode/Source/${LibName}/tmp"/>
30 <target name=
"GenTool" depends=
"init,Lib" >
31 <echo message=
"The EDK Tool Library: ${LibName} build has completed!"/>
35 <echo message=
"Building the EDK Tool Library: ${LibName}"/>
36 <mkdir dir=
"${BUILD_DIR}"/>
39 <target name=
"Lib" depends=
"init">
40 <cc name=
"${ToolChain}"
45 outfile=
"${BIN_DIR}/${LibName}"
46 outputfileproperty=
"result"
48 <compilerarg value=
"${ExtraArgus}" if=
"ExtraArgus" />
49 <fileset dir=
"${LibName}" includes=
"${LibFileSet}" defaultexcludes=
"TRUE" excludes=
"*.xml *.inf"/>
50 <includepath path=
"${PACKAGE_DIR}/Include"/>
51 <includepath path=
"${PACKAGE_DIR}/Include/${HostArch}"/>
52 <includepath path=
"${PACKAGE_DIR}/Common"/>
53 <includepath path=
"${env.JAVA_HOME}/include"/>
54 <includepath path=
"${env.JAVA_HOME}/include/linux" if=
"gcc"/>
55 <includepath path=
"${env.JAVA_HOME}/include/win32" if=
"cygwin"/>
56 <includepath path=
"${env.JAVA_HOME}/include/win32" if=
"msft"/>
57 <libset dir=
"${LIB_DIR}" libs=
"CommonTools"/>
58 <syslibset libs=
"kernel32" if=
"msft"/>
59 <linkerarg value=
"-mno-cygwin" if=
"cygwin"/>
60 <linkerarg value=
"--add-stdcall-alias" if=
"cygwin"/>
62 <copy file=
"${result}" tofile=
"${BIN_DIR}/CompressDll.dll"/>
63 <chmod file=
"${BIN_DIR}/CompressDll.dll" perm=
"ugo+x"/>
67 <echo message=
"Removing Intermediate Files Only"/>
69 <fileset dir=
"${BUILD_DIR}" includes=
"*.obj"/>
73 <target name=
"cleanall">
74 <echo message=
"Removing Object Files and the Executable: ${LibName}${ext_shared}"/>
75 <delete failonerror=
"false" quiet=
"true" includeEmptyDirs=
"true">
76 <fileset dir=
"${BUILD_DIR}"/>
77 <fileset file=
"${BIN_DIR}/${LibName}.*"/>