Fixed EDKT142; Removed FrameworkDatabase.db and added FrameworkDatabase.template
[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
14 <property environment="env"/>\r
15\r
a7828769 16 <target name="all" depends="C_Code"/>\r
17\r
18 <target name="C_Code" depends="JavaCode">\r
19 <subant target="" inheritall="false">\r
20 <filelist dir="."\r
21 files="\r
22 Source/TianoTools/build.xml\r
23 "/>\r
24 </subant>\r
25 </target>\r
26\r
878ddf1f 27 <target name="JavaCode" depends="SurfaceArea">\r
28 <subant target="" verbose="true" inheritall="false">\r
29 <!-- Note: this is an ordered list. The projects have dependencies between them. -->\r
30 <filelist dir="."\r
31 files="\r
b9546cc8 32 Source/Common/build.xml\r
878ddf1f 33 Source/GenBuild/build.xml\r
34 Source/FrameworkTasks/build.xml\r
35 Source/Cpptasks/build.xml\r
2a8198da 36 Source/FrameworkWizard/build.xml\r
ee80c4d0 37 "/>\r
878ddf1f 38 </subant>\r
39 </target>\r
40\r
878ddf1f 41 <target name="SurfaceArea" depends="makeCatalog">\r
42 <subant target="" verbose="true" inheritall="false">\r
43 <filelist dir="."\r
44 files="\r
45 Source/SurfaceArea/build.xml\r
46 "/>\r
47 </subant>\r
48 </target>\r
49\r
878ddf1f 50 <target name="makeCatalog">\r
51 <echo file="XMLSchema/catalog.xml">\r
52 <![CDATA[<?xml version="1.0"?>\r
53<!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
54<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">\r
55 <rewriteSystem systemIdStartString="http://www.TianoCore.org/2006/Edk2.0/"\r
56 rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>\r
57 <rewriteURI uriStartString="http://www.TianoCore.org/2006/Edk2.0/"\r
58 rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>\r
59</catalog>]]>\r
60 </echo>\r
113ecc36 61 <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt" overwrite="false"/>\r
9ae9341a 62 <copy file="Conf/target.template" tofile="Conf/target.txt" overwrite="false"/>\r
d94d73c2 63 <copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db" overwrite="false"/>\r
878ddf1f 64 </target>\r
2a8198da 65\r
878ddf1f 66 <target name="clean">\r
67 <subant target="clean" inheritall="false">\r
68 <filelist dir="."\r
69 files="\r
70 Source/TianoTools/build.xml\r
2a8198da 71 Source/FrameworkWizard/build.xml\r
72 Source/Cpptasks/build.xml\r
878ddf1f 73 Source/FrameworkTasks/build.xml\r
74 Source/GenBuild/build.xml\r
2a8198da 75 Source/Common/build.xml\r
878ddf1f 76 Source/SurfaceArea/build.xml\r
878ddf1f 77 "/>\r
78 </subant>\r
79 </target>\r
2a8198da 80\r
878ddf1f 81 <target name="cleanall">\r
2a8198da 82 <subant target="cleanall" inheritall="false">\r
878ddf1f 83 <filelist dir="."\r
84 files="\r
85 Source/TianoTools/build.xml\r
2a8198da 86 Source/FrameworkWizard/build.xml\r
87 Source/Cpptasks/build.xml\r
878ddf1f 88 Source/FrameworkTasks/build.xml\r
89 Source/GenBuild/build.xml\r
2a8198da 90 Source/Common/build.xml\r
878ddf1f 91 Source/SurfaceArea/build.xml\r
878ddf1f 92 "/>\r
93 </subant>\r
94 </target>\r
95</project>\r