[EDKT156][Closed] Re-ordered the build.xml files in the clean and cleanall targets...
[mirror_edk2.git] / Tools / 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="Tools" default="all" basedir=".">\r
13\r
3c8842bc 14 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
878ddf1f 15 <property environment="env"/>\r
16\r
c80da0c4 17 <target name="all" depends="C_Code">\r
18 <echo message="The EDK II Tools build has completed!"/>\r
19 </target>\r
a7828769 20\r
21 <target name="C_Code" depends="JavaCode">\r
22 <subant target="" inheritall="false">\r
23 <filelist dir="."\r
24 files="\r
25 Source/TianoTools/build.xml\r
26 "/>\r
27 </subant>\r
28 </target>\r
29\r
878ddf1f 30 <target name="JavaCode" depends="SurfaceArea">\r
31 <subant target="" verbose="true" inheritall="false">\r
32 <!-- Note: this is an ordered list. The projects have dependencies between them. -->\r
33 <filelist dir="."\r
34 files="\r
b9546cc8 35 Source/Common/build.xml\r
d14ebb43 36 Source/PcdTools/build.xml\r
878ddf1f 37 Source/GenBuild/build.xml\r
38 Source/FrameworkTasks/build.xml\r
39 Source/Cpptasks/build.xml\r
2a8198da 40 Source/FrameworkWizard/build.xml\r
ee80c4d0 41 "/>\r
878ddf1f 42 </subant>\r
c80da0c4 43 <echo message="The EDK II Java Tools build has completed!"/>\r
44 </target>\r
45\r
46 <target name="Wizard" depends="SurfaceArea">\r
47 <subant target="" verbose="true" inheritall="false">\r
48 <!-- Note: this is an ordered list. The projects have dependencies between them. -->\r
49 <filelist dir="."\r
50 files="\r
51 Source/FrameworkWizard/build.xml\r
52 "/>\r
53 </subant>\r
878ddf1f 54 </target>\r
55\r
878ddf1f 56 <target name="SurfaceArea" depends="makeCatalog">\r
57 <subant target="" verbose="true" inheritall="false">\r
58 <filelist dir="."\r
59 files="\r
60 Source/SurfaceArea/build.xml\r
61 "/>\r
62 </subant>\r
63 </target>\r
64\r
878ddf1f 65 <target name="makeCatalog">\r
66 <echo file="XMLSchema/catalog.xml">\r
67 <![CDATA[<?xml version="1.0"?>\r
68<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.xsd">\r
69<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">\r
70 <rewriteSystem systemIdStartString="http://www.TianoCore.org/2006/Edk2.0/"\r
71 rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>\r
72 <rewriteURI uriStartString="http://www.TianoCore.org/2006/Edk2.0/"\r
73 rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>\r
74</catalog>]]>\r
75 </echo>\r
113ecc36 76 <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt" overwrite="false"/>\r
9ae9341a 77 <copy file="Conf/target.template" tofile="Conf/target.txt" overwrite="false"/>\r
3c8842bc 78 <if>\r
79 <not>\r
80 <available file="Conf/FrameworkDatabase.db"/>\r
81 </not>\r
82 <then>\r
83 <copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db"/>\r
84 </then>\r
85 </if>\r
878ddf1f 86 </target>\r
2a8198da 87\r
878ddf1f 88 <target name="clean">\r
89 <subant target="clean" inheritall="false">\r
90 <filelist dir="."\r
91 files="\r
7f762c2d 92 Source/FrameworkWizard/build.xml \r
93 Source/Cpptasks/build.xml \r
94 Source/FrameworkTasks/build.xml \r
95 Source/GenBuild/build.xml \r
96 Source/PcdTools/build.xml \r
97 Source/Common/build.xml \r
98 Source/SurfaceArea/build.xml \r
878ddf1f 99 Source/TianoTools/build.xml\r
7f762c2d 100 "/>\r
878ddf1f 101 </subant>\r
102 </target>\r
2a8198da 103\r
878ddf1f 104 <target name="cleanall">\r
7f762c2d 105 <subant target="cleanall" inheritall="true">\r
878ddf1f 106 <filelist dir="."\r
107 files="\r
7f762c2d 108 Source/FrameworkWizard/build.xml \r
109 Source/Cpptasks/build.xml \r
110 Source/FrameworkTasks/build.xml \r
111 Source/GenBuild/build.xml \r
112 Source/PcdTools/build.xml \r
113 Source/Common/build.xml \r
114 Source/SurfaceArea/build.xml \r
878ddf1f 115 Source/TianoTools/build.xml\r
7f762c2d 116 "/>\r
878ddf1f 117 </subant>\r
118 </target>\r
119</project>\r