Add Mde String and PrintLibs. Port StrGather to the Mde Unicode implementation. Compi...
[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 <property name="Libs"
26 value="String/build.xml Common/build.xml CustomizedCompress/build.xml PeCoffLoader/build.xml"/>
27
28 <import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml" />
29
30 <path id="classpath">
31 <fileset dir="${WORKSPACE}/Tools/Jars" includes="*.jar"/>
32 <fileset dir="${env.XMLBEANS_HOME}/lib" includes="*.jar"/>
33 </path>
34
35 <target name="all" depends="init, Tools" />
36
37 <target name="init">
38 <taskdef classpathref="classpath" resource="GenBuild.tasks" />
39 <taskdef classpathref="classpath" resource="net/sf/antcontrib/antlib.xml" />
40
41 <taskdef classpathref="classpath" resource="cpptasks.tasks"/>
42 <typedef classpathref="classpath" resource="cpptasks.types"/>
43
44 <mkdir dir="${BIN_DIR}" />
45 <mkdir dir="${LIB_DIR}" />
46 <if>
47 <os family="unix" />
48 <then>
49 <echo message="OS Family UNIX" />
50 </then>
51 <elseif>
52 <os family="dos" />
53 <then>
54 <echo message="OS Family DOS" />
55 </then>
56 </elseif>
57 <elseif>
58 <os family="mac" />
59 <then>
60 <echo message="OS Family OS X" />
61 </then>
62 </elseif>
63 <else>
64 <echo message="OS Family Unsupported" />
65 </else>
66 </if>
67
68 <ToolChainSetup confPath="${WORKSPACE_DIR}/Tools/Conf" />
69
70 <if>
71 <isset property="env.TOOL_CHAIN" />
72 <then>
73 <property name="ToolChain" value="${env.TOOL_CHAIN}"/>
74 <condition property="gcc">
75 <equals arg1="${ToolChain}" arg2="gcc"/>
76 </condition>
77 </then>
78 </if>
79
80 <condition property="linux" value="true">
81 <os name="Linux"/>
82 </condition>
83
84 <condition property="windows" value="true">
85 <os family="Windows"/>
86 </condition>
87
88 <condition property="OSX" value="true">
89 <os family="Mac"/>
90 </condition>
91
92 </target>
93
94 <target name="Libraries">
95 <subant target="" inheritall="true">
96 <fileset dir="${PACKAGE_DIR}"
97 includes="${Libs}"/>
98 </subant>
99 </target>
100
101 <target name="Tools" depends="Libraries">
102 <subant target="" inheritall="true">
103 <fileset dir="${PACKAGE_DIR}" includes="*/build.xml"
104 excludes="${Libs}"/>
105 </subant>
106 </target>
107
108 <target name="clean">
109 <subant target="clean" inheritall="true">
110 <fileset dir="${PACKAGE_DIR}" includes="*/build.xml"/>
111 </subant>
112 </target>
113
114 <target name="cleanall">
115 <subant target="cleanall" inheritall="true">
116 <fileset dir="${PACKAGE_DIR}" includes="*/build.xml"/>
117 </subant>
118 <delete dir="${LIB_DIR}"/>
119 </target>
120 </project>