]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/TianoTools/build.xml
Added target Wizard which just relies on the SurfaceArea. Also fixed the echo messages.
[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
c7c42e40 18 <condition property="HostArch" value="x64">\r
19 <os arch="amd64"/>\r
20 </condition>\r
21 <condition property="HostArch" value="Ia32">\r
22 <os arch="x86"/>\r
23 </condition>\r
24 <condition property="HostArch" value="Ia32">\r
25 <os arch="i386"/>\r
26 </condition>\r
878ddf1f 27 <property name="WORKSPACE" value="${env.WORKSPACE}" />\r
28 <property name="WORKSPACE_DIR" value="${WORKSPACE}" />\r
29 <property name="PACKAGE" value="Tools" />\r
30 <property name="PACKAGE_DIR" value="${WORKSPACE}/Tools/Source/TianoTools" />\r
31 <property name="LIB_DIR" value="${PACKAGE_DIR}/Library" />\r
32 <property name="BIN_DIR" value="${WORKSPACE}/Tools/bin" />\r
33 <property name="BUILD_MODE" value="PACKAGE" />\r
4df60ea5 34 <property name="Libs" \r
d2ec0d9e 35 value="String/build.xml Common/build.xml CustomizedCompress/build.xml PeCoffLoader/build.xml"/>\r
878ddf1f 36\r
37 <import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml" />\r
38\r
39 <path id="classpath">\r
40 <fileset dir="${WORKSPACE}/Tools/Jars" includes="*.jar"/>\r
19924945 41 <fileset dir="${env.XMLBEANS_HOME}/lib" includes="*.jar"/>\r
878ddf1f 42 </path>\r
43\r
44 <target name="all" depends="init, Tools" />\r
45 \r
46 <target name="init">\r
47 <taskdef classpathref="classpath" resource="GenBuild.tasks" />\r
48 <taskdef classpathref="classpath" resource="net/sf/antcontrib/antlib.xml" />\r
49\r
50 <taskdef classpathref="classpath" resource="cpptasks.tasks"/>\r
51 <typedef classpathref="classpath" resource="cpptasks.types"/>\r
52\r
53 <mkdir dir="${BIN_DIR}" />\r
54 <mkdir dir="${LIB_DIR}" />\r
55 <if>\r
56 <os family="unix" />\r
57 <then>\r
58 <echo message="OS Family UNIX" />\r
59 </then>\r
60 <elseif>\r
61 <os family="dos" />\r
62 <then>\r
63 <echo message="OS Family DOS" />\r
64 </then>\r
65 </elseif>\r
66 <elseif>\r
67 <os family="mac" />\r
68 <then>\r
69 <echo message="OS Family OS X" />\r
70 </then>\r
71 </elseif>\r
72 <else>\r
73 <echo message="OS Family Unsupported" />\r
74 </else>\r
75 </if>\r
76\r
dce914c0 77 <if>\r
78 <isset property="env.TOOL_CHAIN" />\r
79 <then>\r
80 <property name="ToolChain" value="${env.TOOL_CHAIN}"/>\r
81 <condition property="gcc">\r
82 <equals arg1="${ToolChain}" arg2="gcc"/>\r
83 </condition>\r
84 </then>\r
85 </if>\r
86\r
5225ad33 87 <condition property="linux" value="true">\r
88 <os name="Linux"/>\r
89 </condition>\r
90 \r
460fa4a2 91 <condition property="cygwin">\r
92 <and>\r
93 <os family="dos"/>\r
94 <istrue value="${gcc}"/>\r
95 </and>\r
96 </condition>\r
97 \r
c7c42e40 98 <condition property="x86_64_linux">\r
99 <and>\r
100 <os name="Linux"/>\r
101 <equals arg1="${HostArch}" arg2="x64"/>\r
102 </and>\r
103 </condition>\r
104 \r
5225ad33 105 <condition property="windows" value="true">\r
106 <os family="Windows"/>\r
107 </condition>\r
108 \r
109 <condition property="OSX" value="true">\r
110 <os family="Mac"/>\r
111 </condition>\r
112 \r
878ddf1f 113 </target>\r
114 \r
115 <target name="Libraries">\r
116 <subant target="" inheritall="true">\r
117 <fileset dir="${PACKAGE_DIR}" \r
4df60ea5 118 includes="${Libs}"/>\r
878ddf1f 119 </subant>\r
120 </target>\r
121\r
122 <target name="Tools" depends="Libraries">\r
123 <subant target="" inheritall="true">\r
124 <fileset dir="${PACKAGE_DIR}" includes="*/build.xml"\r
4df60ea5 125 excludes="${Libs}"/>\r
878ddf1f 126 </subant>\r
127 </target>\r
128\r
129 <target name="clean">\r
130 <subant target="clean" inheritall="true">\r
131 <fileset dir="${PACKAGE_DIR}" includes="*/build.xml"/>\r
132 </subant>\r
133 </target>\r
134\r
135 <target name="cleanall">\r
136 <subant target="cleanall" inheritall="true">\r
137 <fileset dir="${PACKAGE_DIR}" includes="*/build.xml"/>\r
138 </subant>\r
139 <delete dir="${LIB_DIR}"/>\r
140 </target>\r
141</project>\r