]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/CCode/Source/GenFvMap/build.xml
Fix building issue for VC compiler. And enable GenFvMap in building CCode package.
[mirror_edk2.git] / Tools / CCode / Source / GenFvMap / build.xml
CommitLineData
8733430b 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="GenTool" basedir=".">\r
13<!--\r
14 EDK GenTEImage Tool\r
15 Copyright (c) 2006, Intel Corporation\r
16-->\r
17 <property name="ToolName" value="GenFvMap"/>\r
18 <property name="FileSet" value="*.cpp"/>\r
19\r
20 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
21\r
22\r
23 <property name="LINK_OUTPUT_TYPE" value="static"/>\r
24 <property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>\r
25\r
26 <target name="GenTool" depends="init, Tool">\r
27 <echo message="The EDK Tool: ${ToolName} build has completed!"/>\r
28 </target>\r
29\r
30 <target name="init">\r
31 <echo message="Building the EDK Tool: ${ToolName}"/>\r
32 <mkdir dir="${BUILD_DIR}"/>\r
33 </target>\r
34\r
35 <target name="Tool" depends="init">\r
327bd141 36 <condition property="gxx_extra_libs" value="stdc++ System gcc_s.10.4 gcc">\r
37 <os family="mac"/>\r
38 </condition>\r
39 \r
40 <condition property="gxx_extra_libs" value="stdc++">\r
41 <os name="linux"/>\r
42 </condition>\r
43 \r
44 <condition property="gxx_extra_libs" value="stdc++">\r
45 <os family="windows"/>\r
46 </condition>\r
47 \r
8733430b 48 <cc name="${ToolChain}" objdir="${BUILD_DIR}"\r
49 outfile="${BIN_DIR}/${ToolName}"\r
50 outtype="executable"\r
51 debug="true"\r
52 optimize="speed">\r
53 <compilerarg value="${ExtraArgus}" if="ExtraArgus" />\r
1b266b0c 54 <compilerarg value="-x" if="gcc"/>\r
55 <compilerarg value="c++" if="gcc"/>\r
327bd141 56 <compilerarg value="/EHsc" unless="gcc"/>\r
1b266b0c 57 \r
327bd141 58 \r
8733430b 59 <fileset dir="${basedir}/${ToolName}"\r
60 includes="${FileSet}"\r
61 defaultexcludes="TRUE"\r
62 excludes="*.xml *.inf"/>\r
63\r
64 <includepath path="${PACKAGE_DIR}/Include"/>\r
65 <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
66 <includepath path="${PACKAGE_DIR}/Common"/>\r
67 <libset dir="${LIB_DIR}" libs="CommonTools"/>\r
327bd141 68 <syslibset libs="${gxx_extra_libs}" if="gcc"/>\r
8733430b 69 </cc>\r
70 </target>\r
71\r
72 <target name="clean">\r
73 <echo message="Removing Intermediate Files Only"/>\r
74 <delete>\r
75 <fileset dir="${BUILD_DIR}" includes="*.obj"/>\r
76 </delete>\r
77 </target>\r
78\r
79 <target name="cleanall">\r
80 <echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>\r
81 <delete failonerror="false" quiet="true" includeEmptyDirs="true">\r
82 <fileset dir="${BUILD_DIR}"/>\r
83 <fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>\r
84 <fileset file="${BIN_DIR}/${ToolName}.pdb"/>\r
85 </delete>\r
86 </target>\r
87\r
88</project>\r