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