]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/build.xml
Abstract the logic of Platform pcd preprocess according to FPD file to a class. And...
[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
19 <target name="C_Code" depends="JavaCode">
20 <subant target="" inheritall="false">
21 <filelist dir="."
22 files="
23 Source/TianoTools/build.xml
24 "/>
25 </subant>
26 </target>
27
28 <target name="JavaCode" depends="SurfaceArea">
29 <subant target="" verbose="true" inheritall="false">
30 <!-- Note: this is an ordered list. The projects have dependencies between them. -->
31 <filelist dir="."
32 files="
33 Source/Common/build.xml
34 Source/PcdTools/build.xml
35 Source/GenBuild/build.xml
36 Source/FrameworkTasks/build.xml
37 Source/Cpptasks/build.xml
38 Source/FrameworkWizard/build.xml
39 "/>
40 </subant>
41 </target>
42
43 <target name="SurfaceArea" depends="makeCatalog">
44 <subant target="" verbose="true" inheritall="false">
45 <filelist dir="."
46 files="
47 Source/SurfaceArea/build.xml
48 "/>
49 </subant>
50 </target>
51
52 <target name="makeCatalog">
53 <echo file="XMLSchema/catalog.xml">
54 <![CDATA[<?xml version="1.0"?>
55 <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.xsd">
56 <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
57 <rewriteSystem systemIdStartString="http://www.TianoCore.org/2006/Edk2.0/"
58 rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>
59 <rewriteURI uriStartString="http://www.TianoCore.org/2006/Edk2.0/"
60 rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>
61 </catalog>]]>
62 </echo>
63 <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt" overwrite="false"/>
64 <copy file="Conf/target.template" tofile="Conf/target.txt" overwrite="false"/>
65 <if>
66 <not>
67 <available file="Conf/FrameworkDatabase.db"/>
68 </not>
69 <then>
70 <copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db"/>
71 </then>
72 </if>
73 </target>
74
75 <target name="clean">
76 <subant target="clean" inheritall="false">
77 <filelist dir="."
78 files="
79 Source/TianoTools/build.xml
80 Source/FrameworkWizard/build.xml
81 Source/Cpptasks/build.xml
82 Source/FrameworkTasks/build.xml
83 Source/GenBuild/build.xml
84 Source/PcdTools/build.xml
85 Source/Common/build.xml
86 Source/SurfaceArea/build.xml
87 "/>
88 </subant>
89 </target>
90
91 <target name="cleanall">
92 <subant target="cleanall" inheritall="false">
93 <filelist dir="."
94 files="
95 Source/TianoTools/build.xml
96 Source/FrameworkWizard/build.xml
97 Source/Cpptasks/build.xml
98 Source/FrameworkTasks/build.xml
99 Source/GenBuild/build.xml
100 Source/PcdTools/build.xml
101 Source/Common/build.xml
102 Source/SurfaceArea/build.xml
103 "/>
104 </subant>
105 </target>
106 </project>