If "SupArchList" is defined for a PCD in MSA, should check current arch is in the...
[mirror_edk2.git] / Tools / Java / Source / GenBuild / build.xml
1 <?xml version="1.0"?>
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 name="GenBuild" default="GenBuild" basedir=".">
13
14 <taskdef resource="net/sf/antcontrib/antlib.xml"/>
15 <property environment="env"/>
16 <property name="WORKSPACE" value="${env.WORKSPACE}"/>
17 <path id="classpath">
18 <fileset dir="${WORKSPACE}/Tools/Jars" includes="SurfaceArea.jar"/>
19 <fileset dir="${WORKSPACE}/Tools/Jars" includes="Common.jar"/>
20 <fileset dir="${WORKSPACE}/Tools/Jars" includes="PcdTools.jar"/>
21 <fileset dir="${env.XMLBEANS_HOME}/lib" includes="*.jar"/>
22 </path>
23 <property name="buildDir" value="build"/>
24 <property name="installLocation" value="${WORKSPACE}/Tools/Jars"/>
25 <target name="GenBuild" depends="install"/>
26 <target name="source">
27 <mkdir dir="${buildDir}"/>
28 <javac srcdir="." destdir="${buildDir}">
29 <classpath refid="classpath"/>
30 <compilerarg value="-Xlint"/>
31 </javac>
32 </target>
33 <target name="clean">
34 <delete includeemptydirs="true" failonerror="false" quiet="true">
35 <fileset dir="${WORKSPACE}/Tools/Java/Source/GenBuild" includes="${buildDir}"/>
36 </delete>
37 </target>
38 <target name="cleanall" depends="clean">
39 <echo message="Removing Class Files and the Java Archive: GenBuild.jar"/>
40 <delete file="${installLocation}/GenBuild.jar"/>
41 <if>
42 <available file="${installLocation}/GenBuild.jar"/>
43 <then>
44 <echo message="You must manually remove the file: ${installLocation}/GenBuild.jar"/>
45 <echo message="Java has already loaded the file, and cannot remove it within ANT!"/>
46 </then>
47 </if>
48 </target>
49 <target name="install" depends="source">
50 <copy file="GenBuild.tasks" toDir="${buildDir}"/>
51 <jar destfile="${installLocation}/GenBuild.jar"
52 basedir="${buildDir}"
53 includes="**"
54 />
55 </target>
56 </project>