]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/TianoTools/build.xml
Removed cross references from PciCf8Lib and PciExpressLib class to PciLib class.
[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
c7c42e40 91 <condition property="x86_64_linux">\r
92 <and>\r
93 <os name="Linux"/>\r
94 <equals arg1="${HostArch}" arg2="x64"/>\r
95 </and>\r
96 </condition>\r
97 \r
5225ad33 98 <condition property="windows" value="true">\r
99 <os family="Windows"/>\r
100 </condition>\r
101 \r
102 <condition property="OSX" value="true">\r
103 <os family="Mac"/>\r
104 </condition>\r
105 \r
878ddf1f 106 </target>\r
107 \r
108 <target name="Libraries">\r
109 <subant target="" inheritall="true">\r
110 <fileset dir="${PACKAGE_DIR}" \r
4df60ea5 111 includes="${Libs}"/>\r
878ddf1f 112 </subant>\r
113 </target>\r
114\r
115 <target name="Tools" depends="Libraries">\r
116 <subant target="" inheritall="true">\r
117 <fileset dir="${PACKAGE_DIR}" includes="*/build.xml"\r
4df60ea5 118 excludes="${Libs}"/>\r
878ddf1f 119 </subant>\r
120 </target>\r
121\r
122 <target name="clean">\r
123 <subant target="clean" inheritall="true">\r
124 <fileset dir="${PACKAGE_DIR}" includes="*/build.xml"/>\r
125 </subant>\r
126 </target>\r
127\r
128 <target name="cleanall">\r
129 <subant target="cleanall" inheritall="true">\r
130 <fileset dir="${PACKAGE_DIR}" includes="*/build.xml"/>\r
131 </subant>\r
132 <delete dir="${LIB_DIR}"/>\r
133 </target>\r
134</project>\r