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