1. Add EBC architecture support
[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
a959dace 41 Source/MigrationTools/build.xml\r
ee80c4d0 42 "/>\r
878ddf1f 43 </subant>\r
c80da0c4 44 <echo message="The EDK II Java Tools build has completed!"/>\r
45 </target>\r
46\r
47 <target name="Wizard" depends="SurfaceArea">\r
48 <subant target="" verbose="true" inheritall="false">\r
49 <!-- Note: this is an ordered list. The projects have dependencies between them. -->\r
50 <filelist dir="."\r
51 files="\r
52 Source/FrameworkWizard/build.xml\r
53 "/>\r
54 </subant>\r
878ddf1f 55 </target>\r
56\r
878ddf1f 57 <target name="SurfaceArea" depends="makeCatalog">\r
58 <subant target="" verbose="true" inheritall="false">\r
59 <filelist dir="."\r
60 files="\r
61 Source/SurfaceArea/build.xml\r
62 "/>\r
63 </subant>\r
64 </target>\r
65\r
878ddf1f 66 <target name="makeCatalog">\r
67 <echo file="XMLSchema/catalog.xml">\r
68 <![CDATA[<?xml version="1.0"?>\r
69<!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
70<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">\r
71 <rewriteSystem systemIdStartString="http://www.TianoCore.org/2006/Edk2.0/"\r
72 rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>\r
73 <rewriteURI uriStartString="http://www.TianoCore.org/2006/Edk2.0/"\r
74 rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>\r
75</catalog>]]>\r
76 </echo>\r
113ecc36 77 <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt" overwrite="false"/>\r
9ae9341a 78 <copy file="Conf/target.template" tofile="Conf/target.txt" overwrite="false"/>\r
3c8842bc 79 <if>\r
80 <not>\r
81 <available file="Conf/FrameworkDatabase.db"/>\r
82 </not>\r
83 <then>\r
84 <copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db"/>\r
85 </then>\r
86 </if>\r
878ddf1f 87 </target>\r
2a8198da 88\r
878ddf1f 89 <target name="clean">\r
90 <subant target="clean" inheritall="false">\r
91 <filelist dir="."\r
92 files="\r
7f762c2d 93 Source/FrameworkWizard/build.xml \r
94 Source/Cpptasks/build.xml \r
95 Source/FrameworkTasks/build.xml \r
96 Source/GenBuild/build.xml \r
97 Source/PcdTools/build.xml \r
98 Source/Common/build.xml \r
99 Source/SurfaceArea/build.xml \r
878ddf1f 100 Source/TianoTools/build.xml\r
a959dace 101 Source/MigrationTools/build.xml\r
7f762c2d 102 "/>\r
878ddf1f 103 </subant>\r
104 </target>\r
2a8198da 105\r
878ddf1f 106 <target name="cleanall">\r
8a07290e 107 <available classname="org.tianocore.frameworkwizard.FrameworkWizardUI" property="FrameworkWizardUI.available"/>\r
108 <available classname="org.tianocore.build.GenBuildTask" property="GenBuildTask.available"/>\r
109 <available classname="org.tianocore.framework.tasks.Tool" property="Tool.available"/>\r
110 <available classname="org.tianocore.pcd.action.BuildAction" property="PcdClass.available"/>\r
111 <if>\r
112 <or>\r
113 <isset property="FrameworkWizardUI.available"/>\r
114 <isset property="GenBuildTask.available"/>\r
115 <isset property="Tool.available"/>\r
116 <isset property="PcdClass.available"/>\r
117 </or>\r
118 <then>\r
119 <fail message="Use ant -noclasspath cleanall, to remove all jar files!"/>\r
120 </then>\r
121 </if>\r
7f762c2d 122 <subant target="cleanall" inheritall="true">\r
878ddf1f 123 <filelist dir="."\r
124 files="\r
7f762c2d 125 Source/FrameworkWizard/build.xml \r
126 Source/Cpptasks/build.xml \r
127 Source/FrameworkTasks/build.xml \r
128 Source/GenBuild/build.xml \r
129 Source/PcdTools/build.xml \r
130 Source/Common/build.xml \r
131 Source/SurfaceArea/build.xml \r
878ddf1f 132 Source/TianoTools/build.xml\r
a959dace 133 Source/MigrationTools/build.xml\r
7f762c2d 134 "/>\r
878ddf1f 135 </subant>\r
136 </target>\r
137</project>\r