Fixed a couple of typos in the ToolTipText fields.
[mirror_edk2.git] / Tools / 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="Tools" default="all" basedir=".">
13
14 <taskdef resource="net/sf/antcontrib/antlib.xml"/>
15 <property environment="env"/>
16
17 <target name="all" depends="C_Code">
18 <echo message="The EDK II Tools build has completed!"/>
19 </target>
20
21 <target name="C_Code" depends="JavaCode">
22 <subant target="" inheritall="false">
23 <filelist dir="."
24 files="
25 Source/TianoTools/build.xml
26 "/>
27 </subant>
28 </target>
29
30 <target name="JavaCode" depends="SurfaceArea">
31 <subant target="" verbose="true" inheritall="false">
32 <!-- Note: this is an ordered list. The projects have dependencies between them. -->
33 <filelist dir="."
34 files="
35 Source/Common/build.xml
36 Source/PcdTools/build.xml
37 Source/GenBuild/build.xml
38 Source/FrameworkTasks/build.xml
39 Source/Cpptasks/build.xml
40 Source/FrameworkWizard/build.xml
41 Source/MigrationTools/build.xml
42 Source/ContextTool/build.xml
43 "/>
44 </subant>
45 <echo message="The EDK II Java Tools build has completed!"/>
46 </target>
47
48 <target name="Wizard" depends="SurfaceArea">
49 <subant target="" verbose="true" inheritall="false">
50 <!-- Note: this is an ordered list. The projects have dependencies between them. -->
51 <filelist dir="."
52 files="
53 Source/FrameworkWizard/build.xml
54 "/>
55 </subant>
56 </target>
57
58 <target name="SurfaceArea" depends="makeCatalog">
59 <subant target="" verbose="true" inheritall="false">
60 <filelist dir="."
61 files="
62 Source/SurfaceArea/build.xml
63 "/>
64 </subant>
65 </target>
66
67 <target name="makeCatalog">
68 <echo file="XMLSchema/catalog.xml">
69 <![CDATA[<?xml version="1.0"?>
70 <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.xsd">
71 <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
72 <rewriteSystem systemIdStartString="http://www.TianoCore.org/2006/Edk2.0/"
73 rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>
74 <rewriteURI uriStartString="http://www.TianoCore.org/2006/Edk2.0/"
75 rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>
76 </catalog>]]>
77 </echo>
78 <if>
79 <not>
80 <available file="Conf/tools_def.txt"/>
81 </not>
82 <then>
83 <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt"/>
84 </then>
85 </if>
86
87 <if>
88 <not>
89 <available file="Conf/target.txt"/>
90 </not>
91 <then>
92 <copy file="Conf/target.template" tofile="Conf/target.txt"/>
93 </then>
94 </if>
95
96 <if>
97 <not>
98 <available file="Conf/FrameworkDatabase.db"/>
99 </not>
100 <then>
101 <copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db"/>
102 </then>
103 </if>
104 </target>
105
106 <target name="clean">
107 <subant target="clean" inheritall="false">
108 <filelist dir="."
109 files="
110 Source/FrameworkWizard/build.xml
111 Source/Cpptasks/build.xml
112 Source/FrameworkTasks/build.xml
113 Source/GenBuild/build.xml
114 Source/PcdTools/build.xml
115 Source/Common/build.xml
116 Source/SurfaceArea/build.xml
117 Source/TianoTools/build.xml
118 Source/MigrationTools/build.xml
119 Source/ContextTool/build.xml
120 "/>
121 </subant>
122 </target>
123
124 <target name="cleanall">
125 <available classname="org.tianocore.frameworkwizard.FrameworkWizardUI" property="FrameworkWizardUI.available"/>
126 <available classname="org.tianocore.build.GenBuildTask" property="GenBuildTask.available"/>
127 <available classname="org.tianocore.framework.tasks.Tool" property="Tool.available"/>
128 <available classname="org.tianocore.pcd.action.BuildAction" property="PcdClass.available"/>
129 <if>
130 <or>
131 <isset property="FrameworkWizardUI.available"/>
132 <isset property="GenBuildTask.available"/>
133 <isset property="Tool.available"/>
134 <isset property="PcdClass.available"/>
135 </or>
136 <then>
137 <fail message="Use ant -noclasspath cleanall, to remove all jar files!"/>
138 </then>
139 </if>
140 <subant target="cleanall" inheritall="true">
141 <filelist dir="."
142 files="
143 Source/FrameworkWizard/build.xml
144 Source/Cpptasks/build.xml
145 Source/FrameworkTasks/build.xml
146 Source/GenBuild/build.xml
147 Source/PcdTools/build.xml
148 Source/Common/build.xml
149 Source/SurfaceArea/build.xml
150 Source/TianoTools/build.xml
151 Source/MigrationTools/build.xml
152 Source/ContextTool/build.xml
153 "/>
154 </subant>
155 </target>
156 </project>