Initial import.
[mirror_edk2.git] / EdkShellBinPkg / bin / build.xml
CommitLineData
878ddf1f 1<?xml version="1.0" encoding="UTF-8"?><!-- Copyright (c) 2006, Intel Corporation \r
2All rights reserved. This program and the accompanying materials \r
3are licensed and made available under the terms and conditions of the BSD License \r
4which accompanies this distribution. The full text of the license may be found at \r
5http://opensource.org/licenses/bsd-license.php \r
6\r
7THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
8WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->\r
9<project basedir="." default="Shell"><!--Apply external ANT tasks-->\r
10 <taskdef resource="GenBuild.tasks"/>\r
11 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
12 <property environment="env"/>\r
13 <property name="WORKSPACE_DIR" value="${env.WORKSPACE}"/>\r
14 <import file="${WORKSPACE_DIR}\Tools\Conf\BuildMacro.xml"/><!--MODULE_RELATIVE PATH is relative to PACKAGE_DIR-->\r
15 <property name="MODULE_RELATIVE_PATH" value="bin"/>\r
16 <property name="MODULE_DIR" value="${PACKAGE_DIR}\${MODULE_RELATIVE_PATH}"/>\r
17 <property name="COMMON_FILE" value="${WORKSPACE_DIR}\Tools\Conf\Common.xml"/>\r
18 <target name="Shell">\r
19 <GenBuild baseName="Shell" mbdFilename="${MODULE_DIR}\Shell.mbd" msaFilename="${MODULE_DIR}\Shell.msa"/>\r
20 </target>\r
21 <target depends="Shell_clean" name="clean"/>\r
22 <target depends="Shell_cleanall" name="cleanall"/>\r
23 <target name="Shell_clean">\r
24 <OutputDirSetup baseName="Shell" mbdFilename="${MODULE_DIR}\Shell.mbd" msaFilename="${MODULE_DIR}\Shell.msa"/>\r
25 <if>\r
26 <available file="${DEST_DIR_OUTPUT}\Shell_build.xml"/>\r
27 <then>\r
28 <ant antfile="${DEST_DIR_OUTPUT}\Shell_build.xml" target="clean"/>\r
29 </then>\r
30 </if>\r
31 <delete dir="${DEST_DIR_OUTPUT}" excludes="*.xml"/>\r
32 </target>\r
33 <target name="Shell_cleanall">\r
34 <OutputDirSetup baseName="Shell" mbdFilename="${MODULE_DIR}\Shell.mbd" msaFilename="${MODULE_DIR}\Shell.msa"/>\r
35 <if>\r
36 <available file="${DEST_DIR_OUTPUT}\Shell_build.xml"/>\r
37 <then>\r
38 <ant antfile="${DEST_DIR_OUTPUT}\Shell_build.xml" target="cleanall"/>\r
39 </then>\r
40 </if>\r
41 <delete dir="${DEST_DIR_OUTPUT}"/>\r
42 <delete dir="${DEST_DIR_DEBUG}"/>\r
43 <delete>\r
44 <fileset dir="${BIN_DIR}" includes="**Shell*"/>\r
45 </delete>\r
46 </target>\r
47</project>