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