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
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.
12 <project name=
"Setup" default=
"all" basedir=
".">
13 <taskdef resource=
"net/sf/antcontrib/antlib.xml"/>
14 <property environment=
"env"/>
15 <property name=
"WORKSPACE" value=
"${env.WORKSPACE}"/>
17 <fileset dir=
"${WORKSPACE}/Tools/Jars" includes=
"*.jar"/>
18 <fileset dir=
"${WORKSPACE}/Tools/bin/xmlbeans/lib" includes=
"*.jar"/>
20 <property name=
"buildDir" value=
"build"/>
21 <property name=
"installLocation" value=
"${WORKSPACE}/Tools/bin"/>
22 <target name=
"all" depends=
"deleteTemp"/>
23 <target name=
"source">
24 <mkdir dir=
"${buildDir}"/>
25 <javac srcdir=
"src" destdir=
"${buildDir}">
26 <classpath refid=
"classpath"/>
27 <compilerarg value=
"-Xlint"/>
31 <delete dir=
"${buildDir}"/>
33 <target name=
"cleanall">
34 <delete dir=
"${buildDir}"/>
35 <delete file=
"${installLocation}/CreateMdkPkg.jar"/>
37 <target name=
"relocate" depends=
"source">
38 <delete file=
"${installLocation}/CreateMdkPkg.jar"/>
39 <copy todir=
"${buildDir}/Tools">
40 <fileset dir=
"${WORKSPACE}/Tools"/>
42 <copy todir=
"${buildDir}/MdePkg">
43 <fileset dir=
"${WORKSPACE}/MdePkg"/>
45 <copy file=
"${WORKSPACE}/build.xml"
47 <copy file=
"${WORKSPACE}/DeveloperManual.doc"
49 <copy file=
"${WORKSPACE}/edksetup.bat"
51 <copy file=
"${WORKSPACE}/edksetup.sh"
54 <target name=
"install" depends=
"relocate">
55 <jar destfile=
"${installLocation}/CreateMdkPkg.jar"
58 manifest=
"MANIFEST.MF"
61 <target name=
"deleteTemp" depends=
"install">
62 <delete dir=
"${buildDir}"/>