]>
Commit | Line | Data |
---|---|---|
1 | <?xml version="1.0"?>\r | |
2 | <!--\r | |
3 | Copyright (c) 2006, Intel Corporation\r | |
4 | All rights reserved. This program and the accompanying materials\r | |
5 | are licensed and made available under the terms and conditions of the BSD License\r | |
6 | which accompanies this distribution. The full text of the license may be found at\r | |
7 | http://opensource.org/licenses/bsd-license.php\r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | -->\r | |
12 | <project name="Tools" default="all" basedir=".">\r | |
13 | \r | |
14 | <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r | |
15 | <property environment="env"/>\r | |
16 | \r | |
17 | <target name="all" depends="C_Code">\r | |
18 | <echo message="The EDK II Tools build has completed!"/>\r | |
19 | </target>\r | |
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 | |
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 | |
35 | Source/Common/build.xml\r | |
36 | Source/PcdTools/build.xml\r | |
37 | Source/GenBuild/build.xml\r | |
38 | Source/FrameworkTasks/build.xml\r | |
39 | Source/Cpptasks/build.xml\r | |
40 | Source/FrameworkWizard/build.xml\r | |
41 | Source/MigrationTools/build.xml\r | |
42 | Source/ContextTool/build.xml\r | |
43 | "/>\r | |
44 | </subant>\r | |
45 | <echo message="The EDK II Java Tools build has completed!"/>\r | |
46 | </target>\r | |
47 | \r | |
48 | <target name="Wizard" depends="SurfaceArea">\r | |
49 | <subant target="" verbose="true" inheritall="false">\r | |
50 | <!-- Note: this is an ordered list. The projects have dependencies between them. -->\r | |
51 | <filelist dir="."\r | |
52 | files="\r | |
53 | Source/FrameworkWizard/build.xml\r | |
54 | "/>\r | |
55 | </subant>\r | |
56 | </target>\r | |
57 | \r | |
58 | <target name="SurfaceArea" depends="makeCatalog">\r | |
59 | <subant target="" verbose="true" inheritall="false">\r | |
60 | <filelist dir="."\r | |
61 | files="\r | |
62 | Source/SurfaceArea/build.xml\r | |
63 | "/>\r | |
64 | </subant>\r | |
65 | </target>\r | |
66 | \r | |
67 | <target name="makeCatalog">\r | |
68 | <echo file="XMLSchema/catalog.xml">\r | |
69 | <![CDATA[<?xml version="1.0"?>\r | |
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">\r | |
71 | <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">\r | |
72 | <rewriteSystem systemIdStartString="http://www.TianoCore.org/2006/Edk2.0/"\r | |
73 | rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>\r | |
74 | <rewriteURI uriStartString="http://www.TianoCore.org/2006/Edk2.0/"\r | |
75 | rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>\r | |
76 | </catalog>]]>\r | |
77 | </echo>\r | |
78 | <if>\r | |
79 | <not>\r | |
80 | <available file="Conf/tools_def.txt"/>\r | |
81 | </not>\r | |
82 | <then>\r | |
83 | <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt"/>\r | |
84 | </then>\r | |
85 | </if>\r | |
86 | \r | |
87 | <if>\r | |
88 | <not>\r | |
89 | <available file="Conf/target.txt"/>\r | |
90 | </not>\r | |
91 | <then>\r | |
92 | <copy file="Conf/target.template" tofile="Conf/target.txt"/>\r | |
93 | </then>\r | |
94 | </if>\r | |
95 | \r | |
96 | <if>\r | |
97 | <not>\r | |
98 | <available file="Conf/FrameworkDatabase.db"/>\r | |
99 | </not>\r | |
100 | <then>\r | |
101 | <copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db"/>\r | |
102 | </then>\r | |
103 | </if>\r | |
104 | </target>\r | |
105 | \r | |
106 | <target name="clean">\r | |
107 | <subant target="clean" inheritall="false">\r | |
108 | <filelist dir="."\r | |
109 | files="\r | |
110 | Source/FrameworkWizard/build.xml \r | |
111 | Source/Cpptasks/build.xml \r | |
112 | Source/FrameworkTasks/build.xml \r | |
113 | Source/GenBuild/build.xml \r | |
114 | Source/PcdTools/build.xml \r | |
115 | Source/Common/build.xml \r | |
116 | Source/SurfaceArea/build.xml \r | |
117 | Source/TianoTools/build.xml\r | |
118 | Source/MigrationTools/build.xml\r | |
119 | Source/ContextTool/build.xml\r | |
120 | "/>\r | |
121 | </subant>\r | |
122 | </target>\r | |
123 | \r | |
124 | <target name="cleanall">\r | |
125 | <available classname="org.tianocore.frameworkwizard.FrameworkWizardUI" property="FrameworkWizardUI.available"/>\r | |
126 | <available classname="org.tianocore.build.GenBuildTask" property="GenBuildTask.available"/>\r | |
127 | <available classname="org.tianocore.framework.tasks.Tool" property="Tool.available"/>\r | |
128 | <available classname="org.tianocore.pcd.action.BuildAction" property="PcdClass.available"/>\r | |
129 | <if>\r | |
130 | <or>\r | |
131 | <isset property="FrameworkWizardUI.available"/>\r | |
132 | <isset property="GenBuildTask.available"/>\r | |
133 | <isset property="Tool.available"/>\r | |
134 | <isset property="PcdClass.available"/>\r | |
135 | </or>\r | |
136 | <then>\r | |
137 | <fail message="Use ant -noclasspath cleanall, to remove all jar files!"/>\r | |
138 | </then>\r | |
139 | </if>\r | |
140 | <subant target="cleanall" inheritall="true">\r | |
141 | <filelist dir="."\r | |
142 | files="\r | |
143 | Source/FrameworkWizard/build.xml \r | |
144 | Source/Cpptasks/build.xml \r | |
145 | Source/FrameworkTasks/build.xml \r | |
146 | Source/GenBuild/build.xml \r | |
147 | Source/PcdTools/build.xml \r | |
148 | Source/Common/build.xml \r | |
149 | Source/SurfaceArea/build.xml \r | |
150 | Source/TianoTools/build.xml\r | |
151 | Source/MigrationTools/build.xml\r | |
152 | Source/ContextTool/build.xml\r | |
153 | "/>\r | |
154 | </subant>\r | |
155 | </target>\r | |
156 | </project>\r |