]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/Cpptasks/build.xml
33300f89cf986d4745b6ff156175308591c54592
[mirror_edk2.git] / Tools / Source / Cpptasks / 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="CppTasks" default="CppTasks" basedir=".">
13 <taskdef resource="net/sf/antcontrib/antlib.xml"/>
14 <property environment="env"/>
15 <property name="workspace" value="${env.WORKSPACE}"/>
16 <property name="buildDir" value="build"/>
17 <property name="installLocation" value="${workspace}/Tools/Jars"/>
18 <target name="CppTasks" depends="install"/>
19 <target name="init">
20 <uptodate property="jar.newer" targetfile="${installLocation}/cpptasks.jar">
21 <srcfiles dir="net" includes="**"/>
22 </uptodate>
23 </target>
24 <target name="source" depends="init" unless="jar.newer">
25 <mkdir dir="${buildDir}"/>
26 <javac srcdir="net" destdir="${buildDir}">
27 <classpath>
28 <fileset dir="${workspace}/Tools/Jars">
29 <include name="*.jar"/>
30 </fileset>
31 </classpath>
32 </javac>
33 </target>
34 <target name="clean">
35 <delete dir="${buildDir}"/>
36 </target>
37 <target name="cleanall">
38 <delete dir="${buildDir}"/>
39 <delete file="${installLocation}/cpptasks.jar"/>
40 <if>
41 <available file="${installLocation}/cpptasks.jar"/>
42 <then>
43 <echo message="You must manually remove the file: ${installLocation}/cpptasks.jar"/>
44 <echo message="Java has already loaded the file, and cannot remove it within ANT!"/>
45 </then>
46 </if>
47 </target>
48 <target name="install" depends="source" unless="jar.newer">
49 <copy file="cpptasks.tasks" toDir="${buildDir}"/>
50 <copy file="cpptasks.types" toDir="${buildDir}"/>
51 <jar destfile="${installLocation}/cpptasks.jar"
52 basedir="${buildDir}"
53 includes="**"
54 />
55 </target>
56 </project>