]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - Tools/CCode/Source/GenFvMap/build.xml
Fix building error in Linux
[mirror_edk2.git] / Tools / CCode / Source / GenFvMap / build.xml
... / ...
CommitLineData
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
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
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
54 <compilerarg value="/EHsc" unless="gcc"/>\r
55 <compilerarg value="/Za" unless="gcc"/>\r
56 <compilerarg value="-x c++" if="gcc"/>\r
57 \r
58 <fileset dir="${basedir}/${ToolName}"\r
59 includes="${FileSet}"\r
60 defaultexcludes="TRUE"\r
61 excludes="*.xml *.inf"/>\r
62\r
63 <includepath path="${PACKAGE_DIR}/Include"/>\r
64 <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
65 <includepath path="${PACKAGE_DIR}/Common"/>\r
66 <libset dir="${LIB_DIR}" libs="CommonTools"/>\r
67 <syslibset libs="${gxx_extra_libs}" if="gcc"/>\r
68 </cc>\r
69 </target>\r
70\r
71 <target name="clean">\r
72 <echo message="Removing Intermediate Files Only"/>\r
73 <delete>\r
74 <fileset dir="${BUILD_DIR}" includes="*.obj"/>\r
75 </delete>\r
76 </target>\r
77\r
78 <target name="cleanall">\r
79 <echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>\r
80 <delete failonerror="false" quiet="true" includeEmptyDirs="true">\r
81 <fileset dir="${BUILD_DIR}"/>\r
82 <fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>\r
83 <fileset file="${BIN_DIR}/${ToolName}.pdb"/>\r
84 </delete>\r
85 </target>\r
86\r
87</project>\r