Do not build with debug.
[mirror_edk2.git] / Tools / Source / TianoTools / StrGather / 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="GenTool" basedir=".">\r
13<!--\r
14 EDK StrGather Tool\r
15 Copyright (c) 2006, Intel Corporation\r
16-->\r
17 <property name="ToolName" value="StrGather"/>\r
18 <property name="FileSet" value="*.c *.h"/>\r
19\r
20 <taskdef resource="cpptasks.tasks"/>\r
21 <typedef resource="cpptasks.types"/>\r
22 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
23\r
24 <property environment="env"/>\r
25\r
26 <property name="LINK_OUTPUT_TYPE" value="static"/>\r
27 <property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>\r
28\r
29 <target name="GenTool" depends="init, Tool">\r
30 <echo message="Building the EDK Tool: ${ToolName}"/>\r
31 </target>\r
32\r
33 <target name="init">\r
34 <echo message="The EDK Tool: ${ToolName}"/>\r
35 <mkdir dir="${BUILD_DIR}"/>\r
36 <if>\r
37 <equals arg1="${GCC}" arg2="cygwin"/>\r
38 <then>\r
39 <echo message="Cygwin Family"/>\r
40 <property name="ToolChain" value="gcc"/>\r
41 </then>\r
42 <elseif>\r
43 <os family="dos"/>\r
44 <then>\r
45 <echo message="Windows Family"/>\r
46 <property name="ToolChain" value="msvc"/>\r
47 </then>\r
48 </elseif>\r
49 <elseif>\r
50 <os family="unix"/>\r
51 <then>\r
52 <echo message="UNIX Family"/>\r
53 <property name="ToolChain" value="gcc"/>\r
54 </then>\r
55 </elseif>\r
56\r
57 <else>\r
58 <echo>\r
59 Unsupported Operating System\r
60 Please Contact Intel Corporation\r
61 </echo>\r
62 </else>\r
63 </if>\r
0f254cac 64 <if>\r
65 <equals arg1="${ToolChain}" arg2="msvc"/>\r
66 <then>\r
878ddf1f 67 <property name="ext_static" value=".lib"/>\r
68 <property name="ext_dynamic" value=".dll"/>\r
69 <property name="ext_exe" value=".exe"/>\r
0f254cac 70 </then>\r
71 <elseif>\r
72 <equals arg1="${ToolChain}" arg2="gcc"/>\r
73 <then>\r
878ddf1f 74 <property name="ext_static" value=".a"/>\r
75 <property name="ext_dynamic" value=".so"/>\r
76 <property name="ext_exe" value=""/>\r
0f254cac 77 </then>\r
78 </elseif>\r
79 </if>\r
878ddf1f 80 </target>\r
81\r
0f254cac 82 <target name="Tool" depends="init">\r
878ddf1f 83 <cc name="${ToolChain}" objdir="${BUILD_DIR}" \r
84 outfile="${BIN_DIR}/${ToolName}"\r
85 outtype="executable"\r
86 libtool="${haveLibtool}"\r
e4c48f4c 87 debug="false">\r
878ddf1f 88\r
89 <fileset dir="${basedir}/${ToolName}" \r
90 includes="${FileSet}" \r
91 defaultexcludes="TRUE" \r
92 excludes="*.xml *.inf"/>\r
93\r
94 <includepath path="${env.WORKSPACE}/MdePkg/Include"/>\r
95 <includepath path="${env.WORKSPACE}/MdePkg/Include/Ia32"/>\r
96 <includepath path="${env.WORKSPACE}/MdePkg/Include/Common"/>\r
97 <includepath path="${env.WORKSPACE}/MdePkg/Include/Protocol"/>\r
98 <includepath path="${PACKAGE_DIR}/Common"/>\r
0f254cac 99 <libset dir="${LIB_DIR}" libs="CommonTools CustomizedCompress"/>\r
878ddf1f 100 </cc>\r
101 </target>\r
102\r
103 <target name="clean" depends="init">\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" depends="init">\r
111 <echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/> \r
112 <delete dir="${BUILD_DIR}">\r
113 <fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>\r
114 </delete>\r
115 </target>\r
116\r
117</project>\r