]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/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=
"all" basedir=
"." name=
"C_Code">
13 <!-- Copyright (c) 2006, Intel Corporation -->
14 <!-- Filename: Tools/Source/build.xml -->
16 <taskdef resource=
"net/sf/antcontrib/antlib.xml"/>
18 <property name=
"ReallyVerbose" value=
"false"/>
19 <property environment=
"env" />
21 <property name=
"WORKSPACE" value=
"${env.WORKSPACE}" />
22 <property name=
"WORKSPACE_DIR" value=
"${WORKSPACE}" />
23 <property name=
"PACKAGE" value=
"Tools" />
24 <property name=
"PACKAGE_DIR" value=
"${WORKSPACE}/Tools/Source/TianoTools" />
25 <property name=
"LIB_DIR" value=
"${PACKAGE_DIR}/Library" />
26 <property name=
"BIN_DIR" value=
"${WORKSPACE}/Tools/bin" />
27 <property name=
"BUILD_MODE" value=
"PACKAGE" />
29 value=
"Common/build.xml CustomizedCompress/build.xml PeCoffLoader/build.xml String/build.xml"/>
31 <import file=
"${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml" />
34 <fileset dir=
"${WORKSPACE}/Tools/Jars" includes=
"*.jar"/>
35 <fileset dir=
"${env.XMLBEANS_HOME}/lib" includes=
"*.jar"/>
38 <taskdef classpathref=
"classpath" resource=
"GenBuild.tasks" />
39 <taskdef classpathref=
"classpath" resource=
"net/sf/antcontrib/antlib.xml" />
41 <taskdef classpathref=
"classpath" resource=
"cpptasks.tasks"/>
42 <typedef classpathref=
"classpath" resource=
"cpptasks.types"/>
44 <target name=
"all" depends=
"init, Tools">
45 <echo message=
"The EDK II C Tools build complete!"/>
49 <echo message=
"EDK C Code Tools, build initialization"/>
50 <mkdir dir=
"${BIN_DIR}" />
51 <mkdir dir=
"${LIB_DIR}" />
53 <condition property=
"HostArch" value=
"X64">
56 <condition property=
"HostArch" value=
"Ia32">
62 <condition property=
"HostArch" value=
"Ia32">
69 <echo message=
"OS Family UNIX, ${HostArch}" />
74 <echo message=
"OS Family DOS, ${HostArch}" />
80 <echo message=
"OS Family OS X, ${HostArch}" />
84 <fail message=
"OS Family Unsupported, ${HostArch}" />
90 <isset property=
"ToolChain" />
94 <isset property=
"env.TOOL_CHAIN" />
96 <property name=
"ToolChain" value=
"${env.TOOL_CHAIN}"/>
97 <property name=
"ExtraArgus" value=
"-Wno-pointer-sign" />
100 <!-- Default Tool Chain is Microsoft Visual Studio -->
101 <property name=
"ToolChain" value=
"msvc"/>
102 <property name=
"ExtraArgus" value=
"" />
108 <condition property=
"linux" value=
"true">
112 <condition property=
"intel_win">
115 <equals arg1=
"${ToolChain}" arg2=
"intel"/>
119 <condition property=
"intel_linux">
122 <equals arg1=
"${ToolChain}" arg2=
"intel"/>
126 <condition property=
"intel_mac">
129 <equals arg1=
"${ToolChain}" arg2=
"intel"/>
133 <condition property=
"gcc">
135 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
139 <condition property=
"cygwin">
142 <equals arg1=
"${ToolChain}" arg2=
"gcc"/>
146 <condition property=
"x86_64_linux">
149 <equals arg1=
"${HostArch}" arg2=
"x64"/>
153 <condition property=
"windows" value=
"true">
154 <os family=
"Windows"/>
157 <condition property=
"OSX" value=
"true">
161 <condition property=
"cyglinux">
163 <istrue value=
"${linux}"/>
164 <istrue value=
"${cygwin}"/>
168 <!-- msft is a family, used by both Microsoft and Intel Windows compiler tool chains -->
169 <condition property=
"msft">
170 <isfalse value=
"${gcc}"/>
174 <istrue value=
"${ReallyVerbose}"/>
176 <echo message=
"Test property msvc: ${msvc}"/>
177 <echo message=
"Test property gcc: ${gcc}"/>
178 <echo message=
"Test property intel_win: ${intel_win}"/>
179 <echo message=
"Test property intel_linux: ${intel_linux}"/>
180 <echo message=
"Test property intel_mac: ${intel_mac}"/>
181 <echo message=
"Test property msft: ${msft}"/>
182 <echo message=
"Test property cygwin: ${cygwin}"/>
183 <echo message=
"Test property cyglinux: ${cyglinux}"/>
184 <echo message=
"Test property windows: ${windows}"/>
185 <echo message=
"Test property linux: ${linux}"/>
186 <echo message=
"Test property OSX: ${OSX}"/>
187 <echo message=
"Test property x86_64_linux: ${x86_64_linux}"/>
191 <property name=
"haveLibtool" value=
"false"/>
195 <isset property=
"env.CYGWIN_HOME"/>
197 <isset property=
"cygwin"/>
200 <fail message=
"You must set the environment variable: CYGWIN_HOME"/>
205 <istrue value=
"${gcc}"/>
207 <property name=
"ext_static" value=
".a"/>
208 <property name=
"ext_dynamic" value=
".so"/>
210 <istrue value=
"${cygwin}"/>
212 <property name=
"ext_exe" value=
".exe"/>
215 <property name=
"ext_exe" value=
""/>
220 <property name=
"ext_static" value=
".lib"/>
221 <property name=
"ext_dynamic" value=
".dll"/>
222 <property name=
"ext_exe" value=
".exe"/>
227 <target name=
"Libraries" depends=
"init">
228 <subant target=
"" inheritall=
"true">
229 <fileset dir=
"${PACKAGE_DIR}"
234 <target name=
"Tools" depends=
"Libraries">
235 <subant target=
"" inheritall=
"true">
236 <fileset dir=
"${PACKAGE_DIR}" includes=
"*/build.xml"
241 <target name=
"clean" depends=
"init">
242 <subant target=
"clean" inheritall=
"true">
243 <fileset dir=
"${PACKAGE_DIR}" includes=
"*/build.xml"/>
247 <target name=
"cleanall" depends=
"init">
248 <subant target=
"cleanall" inheritall=
"true">
249 <fileset dir=
"${PACKAGE_DIR}" includes=
"*/build.xml"/>
251 <delete dir=
"${LIB_DIR}"/>