]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/GenBuild/build.xml
1. Add feature of ModuleSA PcdBuildDefinition editor.
[mirror_edk2.git] / Tools / Source / GenBuild / build.xml
CommitLineData
878ddf1f 1<?xml version="1.0"?>\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 name="GenBuild" default="all" basedir=".">\r
13\r
14 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
15 <property environment="env"/>\r
16 <property name="WORKSPACE" value="${env.WORKSPACE}"/>\r
17 <path id="classpath">\r
18 <fileset dir="${WORKSPACE}/Tools/Jars" includes="SurfaceArea.jar"/>\r
b9546cc8 19 <fileset dir="${WORKSPACE}/Tools/Jars" includes="Common.jar"/>\r
19924945 20 <fileset dir="${env.XMLBEANS_HOME}/lib" includes="*.jar"/>\r
878ddf1f 21 </path>\r
22 <property name="buildDir" value="build"/>\r
23 <property name="installLocation" value="${WORKSPACE}/Tools/Jars"/>\r
24 <target name="all" depends="install"/>\r
25 <target name="source">\r
26 <mkdir dir="${buildDir}"/>\r
27 <javac srcdir="." destdir="${buildDir}">\r
28 <classpath refid="classpath"/>\r
29 <compilerarg value="-Xlint"/>\r
30 </javac>\r
31 </target>\r
32 <target name="clean">\r
33 <delete dir="${buildDir}"/>\r
34 </target>\r
35 <target name="cleanall">\r
36 <delete dir="${buildDir}"/>\r
617cc72b 37 <delete file="${installLocation}/GenBuild.jar"/>\r
878ddf1f 38 <if>\r
39 <available file="${installLocation}/GenBuild.jar"/>\r
40 <then>\r
41 <echo message="You must manually remove the file: ${installLocation}/GenBuild.jar"/>\r
42 <echo message="Java has already loaded the file, and cannot remove it within ANT!"/>\r
43 </then>\r
44 </if>\r
45 </target>\r
46 <target name="install" depends="source">\r
47 <copy file="GenBuild.tasks" toDir="${buildDir}"/>\r
48 <jar destfile="${installLocation}/GenBuild.jar"\r
49 basedir="${buildDir}"\r
50 includes="**"\r
51 />\r
52 </target>\r
53</project>\r