This is a patch from Yizhong to fix the XMLBEANS location.
[mirror_edk2.git] / Tools / Source / TianoTools / build.xml
CommitLineData
878ddf1f 1<?xml version="1.0" encoding="utf-8" ?> \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="all" basedir=".">\r
13<!-- Copyright (c) 2006, Intel Corporation -->\r
14<!-- Filename: Tools/Source/build.xml -->\r
15\r
16 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
17 <property environment="env" />\r
18 <property name="WORKSPACE" value="${env.WORKSPACE}" />\r
19 <property name="WORKSPACE_DIR" value="${WORKSPACE}" />\r
20 <property name="PACKAGE" value="Tools" />\r
21 <property name="PACKAGE_DIR" value="${WORKSPACE}/Tools/Source/TianoTools" />\r
22 <property name="LIB_DIR" value="${PACKAGE_DIR}/Library" />\r
23 <property name="BIN_DIR" value="${WORKSPACE}/Tools/bin" />\r
24 <property name="BUILD_MODE" value="PACKAGE" />\r
25\r
26 <import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml" />\r
27\r
28 <path id="classpath">\r
29 <fileset dir="${WORKSPACE}/Tools/Jars" includes="*.jar"/>\r
19924945 30 <fileset dir="${env.XMLBEANS_HOME}/lib" includes="*.jar"/>\r
878ddf1f 31 </path>\r
32\r
33 <target name="all" depends="init, Tools" />\r
34 \r
35 <target name="init">\r
36 <taskdef classpathref="classpath" resource="GenBuild.tasks" />\r
37 <taskdef classpathref="classpath" resource="net/sf/antcontrib/antlib.xml" />\r
38\r
39 <taskdef classpathref="classpath" resource="cpptasks.tasks"/>\r
40 <typedef classpathref="classpath" resource="cpptasks.types"/>\r
41\r
42 <mkdir dir="${BIN_DIR}" />\r
43 <mkdir dir="${LIB_DIR}" />\r
44 <if>\r
45 <os family="unix" />\r
46 <then>\r
47 <echo message="OS Family UNIX" />\r
48 </then>\r
49 <elseif>\r
50 <os family="dos" />\r
51 <then>\r
52 <echo message="OS Family DOS" />\r
53 </then>\r
54 </elseif>\r
55 <elseif>\r
56 <os family="mac" />\r
57 <then>\r
58 <echo message="OS Family OS X" />\r
59 </then>\r
60 </elseif>\r
61 <else>\r
62 <echo message="OS Family Unsupported" />\r
63 </else>\r
64 </if>\r
65\r
66 <property name="HOST_ARCH" value="IA32"/>\r
67 <ToolChainSetup confPath="${WORKSPACE_DIR}/Tools/Conf" />\r
68 </target>\r
69 \r
70 <target name="Libraries">\r
71 <subant target="" inheritall="true">\r
72 <fileset dir="${PACKAGE_DIR}" \r
73 includes="Common/build.xml CustomizedCompress/build.xml"/>\r
74 </subant>\r
75 </target>\r
76\r
77 <target name="Tools" depends="Libraries">\r
78 <subant target="" inheritall="true">\r
79 <fileset dir="${PACKAGE_DIR}" includes="*/build.xml"\r
80 excludes="Common/build.xml CustomizedCompress/build.xml"/>\r
81 </subant>\r
82 </target>\r
83\r
84 <target name="clean">\r
85 <subant target="clean" inheritall="true">\r
86 <fileset dir="${PACKAGE_DIR}" includes="*/build.xml"/>\r
87 </subant>\r
88 </target>\r
89\r
90 <target name="cleanall">\r
91 <subant target="cleanall" inheritall="true">\r
92 <fileset dir="${PACKAGE_DIR}" includes="*/build.xml"/>\r
93 </subant>\r
94 <delete dir="${LIB_DIR}"/>\r
95 </target>\r
96</project>\r