2006-04-22 00:54:32 +02:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
Copyright (c) 2006, Intel Corporation
|
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
-->
|
|
|
|
<project name="Tools" default="all" basedir=".">
|
|
|
|
|
2006-07-31 10:17:22 +02:00
|
|
|
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
<property environment="env"/>
|
|
|
|
|
2006-08-02 01:54:00 +02:00
|
|
|
<target name="all" depends="C_Code">
|
|
|
|
<echo message="The EDK II Tools build has completed!"/>
|
|
|
|
</target>
|
2006-07-09 16:14:00 +02:00
|
|
|
|
|
|
|
<target name="C_Code" depends="JavaCode">
|
|
|
|
<subant target="" inheritall="false">
|
|
|
|
<filelist dir="."
|
|
|
|
files="
|
2006-10-06 02:04:20 +02:00
|
|
|
CCode/Source/build.xml
|
2006-07-09 16:14:00 +02:00
|
|
|
"/>
|
|
|
|
</subant>
|
|
|
|
</target>
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
<target name="JavaCode" depends="SurfaceArea">
|
|
|
|
<subant target="" verbose="true" inheritall="false">
|
|
|
|
<!-- Note: this is an ordered list. The projects have dependencies between them. -->
|
|
|
|
<filelist dir="."
|
|
|
|
files="
|
2006-10-06 01:12:07 +02:00
|
|
|
Java/Source/Common/build.xml
|
|
|
|
Java/Source/PcdTools/build.xml
|
|
|
|
Java/Source/GenBuild/build.xml
|
|
|
|
Java/Source/FrameworkTasks/build.xml
|
|
|
|
Java/Source/Cpptasks/build.xml
|
|
|
|
Java/Source/FrameworkWizard/build.xml
|
|
|
|
Java/Source/MigrationTools/build.xml
|
|
|
|
Java/Source/ContextTool/build.xml
|
|
|
|
Java/Source/Merge/build.xml
|
2006-10-18 01:09:48 +02:00
|
|
|
Java/Source/CheckTools/build.xml
|
2006-10-25 18:17:28 +02:00
|
|
|
Java/Source/DbTools/build.xml
|
2006-06-27 16:34:16 +02:00
|
|
|
"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
</subant>
|
2006-08-02 01:54:00 +02:00
|
|
|
<echo message="The EDK II Java Tools build has completed!"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="Wizard" depends="SurfaceArea">
|
|
|
|
<subant target="" verbose="true" inheritall="false">
|
|
|
|
<!-- Note: this is an ordered list. The projects have dependencies between them. -->
|
|
|
|
<filelist dir="."
|
|
|
|
files="
|
2006-10-06 01:12:07 +02:00
|
|
|
Java/Source/FrameworkWizard/build.xml
|
2006-08-02 01:54:00 +02:00
|
|
|
"/>
|
|
|
|
</subant>
|
2006-04-22 00:54:32 +02:00
|
|
|
</target>
|
|
|
|
|
2006-09-26 01:31:31 +02:00
|
|
|
<target name="Merge" depends="SurfaceArea">
|
|
|
|
<subant target="" verbose="true" inheritall="false">
|
|
|
|
<filelist dir="."
|
|
|
|
files="
|
2006-10-06 01:12:07 +02:00
|
|
|
Java/Source/Merge/build.xml
|
2006-09-26 01:31:31 +02:00
|
|
|
"/>
|
|
|
|
</subant>
|
|
|
|
</target>
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
<target name="SurfaceArea" depends="makeCatalog">
|
|
|
|
<subant target="" verbose="true" inheritall="false">
|
|
|
|
<filelist dir="."
|
|
|
|
files="
|
2006-10-06 01:12:07 +02:00
|
|
|
Java/Source/SurfaceArea/build.xml
|
2006-04-22 00:54:32 +02:00
|
|
|
"/>
|
|
|
|
</subant>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="makeCatalog">
|
2006-10-10 20:40:50 +02:00
|
|
|
<if>
|
|
|
|
<not>
|
|
|
|
<available file="XMLSchema/catalog.xml"/>
|
|
|
|
</not>
|
|
|
|
<then>
|
|
|
|
<echo file="XMLSchema/catalog.xml"><![CDATA[<?xml version="1.0"?>
|
2006-04-22 00:54:32 +02:00
|
|
|
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.xsd">
|
|
|
|
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
|
|
|
|
<rewriteSystem systemIdStartString="http://www.TianoCore.org/2006/Edk2.0/"
|
|
|
|
rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>
|
|
|
|
<rewriteURI uriStartString="http://www.TianoCore.org/2006/Edk2.0/"
|
|
|
|
rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>
|
|
|
|
</catalog>]]>
|
2006-10-10 20:40:50 +02:00
|
|
|
</echo>
|
|
|
|
</then>
|
|
|
|
</if>
|
2006-09-18 12:36:58 +02:00
|
|
|
<if>
|
|
|
|
<not>
|
|
|
|
<available file="Conf/tools_def.txt"/>
|
|
|
|
</not>
|
|
|
|
<then>
|
|
|
|
<copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt"/>
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if>
|
|
|
|
<not>
|
|
|
|
<available file="Conf/target.txt"/>
|
|
|
|
</not>
|
|
|
|
<then>
|
|
|
|
<copy file="Conf/target.template" tofile="Conf/target.txt"/>
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
|
2006-07-31 10:17:22 +02:00
|
|
|
<if>
|
|
|
|
<not>
|
|
|
|
<available file="Conf/FrameworkDatabase.db"/>
|
|
|
|
</not>
|
|
|
|
<then>
|
|
|
|
<copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db"/>
|
|
|
|
</then>
|
|
|
|
</if>
|
2006-04-22 00:54:32 +02:00
|
|
|
</target>
|
2006-07-05 11:20:45 +02:00
|
|
|
|
2006-10-17 09:07:24 +02:00
|
|
|
<target name="reconfig">
|
|
|
|
<!-- backup all config files -->
|
|
|
|
<if>
|
|
|
|
<available file="Conf/target.txt"/>
|
|
|
|
<then>
|
|
|
|
<echo message="Backup Conf/target.txt to Conf/target.txt.bak" />
|
|
|
|
<copy file="Conf/target.txt" tofile="Conf/target.txt.bak" overwrite="true" />
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
<if>
|
|
|
|
<available file="Conf/tools_def.txt"/>
|
|
|
|
<then>
|
|
|
|
<echo message="Backup Conf/tools_def.txt to Conf/tools_def.txt.bak" />
|
|
|
|
<copy file="Conf/tools_def.txt" tofile="Conf/tools_def.txt.bak" overwrite="true" />
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
<if>
|
|
|
|
<available file="Conf/FrameworkDatabase.db"/>
|
|
|
|
<then>
|
|
|
|
<echo message="Backup Conf/FrameworkDatabase.db to Conf/FrameworkDatabase.db.bak" />
|
|
|
|
<copy file="Conf/FrameworkDatabase.db" tofile="Conf/FrameworkDatabase.db.bak" overwrite="true" />
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if>
|
|
|
|
<available file="Conf/tools_def.template"/>
|
|
|
|
<then>
|
|
|
|
<echo message="Copy file from Conf/tools_def.template to Conf/tools_def.txt" />
|
|
|
|
<copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt" overwrite="true" />
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if>
|
|
|
|
<available file="Conf/target.template"/>
|
|
|
|
<then>
|
|
|
|
<echo message="Copy file from Conf/target.template to Conf/target.txt" />
|
|
|
|
<copy file="Conf/target.template" tofile="Conf/target.txt" overwrite="true" />
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if>
|
|
|
|
<available file="Conf/FrameworkDatabase.template"/>
|
|
|
|
<then>
|
|
|
|
<echo message="Copy file from Conf/FrameworkDatabase.template to Conf/FrameworkDatabase.db" />
|
|
|
|
<copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db" overwrite="true" />
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
</target>
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
<target name="clean">
|
|
|
|
<subant target="clean" inheritall="false">
|
|
|
|
<filelist dir="."
|
|
|
|
files="
|
2006-10-06 01:12:07 +02:00
|
|
|
Java/Source/FrameworkWizard/build.xml
|
|
|
|
Java/Source/Cpptasks/build.xml
|
|
|
|
Java/Source/FrameworkTasks/build.xml
|
|
|
|
Java/Source/GenBuild/build.xml
|
|
|
|
Java/Source/PcdTools/build.xml
|
|
|
|
Java/Source/Common/build.xml
|
|
|
|
Java/Source/SurfaceArea/build.xml
|
|
|
|
Java/Source/MigrationTools/build.xml
|
|
|
|
Java/Source/ContextTool/build.xml
|
|
|
|
Java/Source/Merge/build.xml
|
2006-10-18 01:09:48 +02:00
|
|
|
Java/Source/CheckTools/build.xml
|
2006-10-25 18:17:28 +02:00
|
|
|
Java/Source/DbTools/build.xml
|
2006-10-11 18:40:33 +02:00
|
|
|
CCode/Source/build.xml
|
2006-08-07 22:01:52 +02:00
|
|
|
"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
</subant>
|
|
|
|
</target>
|
2006-07-05 11:20:45 +02:00
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
<target name="cleanall">
|
2006-10-11 18:40:33 +02:00
|
|
|
<echo message="Removing extra ${env.WORKSPACE} history.xml files!"/>
|
|
|
|
<if>
|
|
|
|
<available file="${env.WORKSPACE}/Tools/bin/history.xml"/>
|
|
|
|
<then>
|
|
|
|
<delete failonerror="false" quiet="true">
|
|
|
|
<fileset file="${env.WORKSPACE}/Tools/bin/history.xml"/>
|
|
|
|
</delete>
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
<if>
|
|
|
|
<available file="${env.WORKSPACE}/Tools/CCode/Source/Library/history.xml"/>
|
|
|
|
<then>
|
|
|
|
<delete failonerror="false" quiet="true">
|
|
|
|
<fileset file="${env.WORKSPACE}/Tools/CCode/Source/Library/history.xml"/>
|
|
|
|
</delete>
|
|
|
|
</then>
|
|
|
|
</if>
|
2006-08-07 22:55:28 +02:00
|
|
|
<available classname="org.tianocore.frameworkwizard.FrameworkWizardUI" property="FrameworkWizardUI.available"/>
|
|
|
|
<available classname="org.tianocore.build.GenBuildTask" property="GenBuildTask.available"/>
|
|
|
|
<available classname="org.tianocore.framework.tasks.Tool" property="Tool.available"/>
|
|
|
|
<available classname="org.tianocore.pcd.action.BuildAction" property="PcdClass.available"/>
|
|
|
|
<if>
|
|
|
|
<or>
|
|
|
|
<isset property="FrameworkWizardUI.available"/>
|
|
|
|
<isset property="GenBuildTask.available"/>
|
|
|
|
<isset property="Tool.available"/>
|
|
|
|
<isset property="PcdClass.available"/>
|
|
|
|
</or>
|
|
|
|
<then>
|
|
|
|
<fail message="Use ant -noclasspath cleanall, to remove all jar files!"/>
|
|
|
|
</then>
|
|
|
|
</if>
|
2006-08-07 22:01:52 +02:00
|
|
|
<subant target="cleanall" inheritall="true">
|
2006-04-22 00:54:32 +02:00
|
|
|
<filelist dir="."
|
|
|
|
files="
|
2006-10-06 01:12:07 +02:00
|
|
|
Java/Source/FrameworkWizard/build.xml
|
|
|
|
Java/Source/Cpptasks/build.xml
|
|
|
|
Java/Source/FrameworkTasks/build.xml
|
|
|
|
Java/Source/GenBuild/build.xml
|
|
|
|
Java/Source/PcdTools/build.xml
|
|
|
|
Java/Source/Common/build.xml
|
|
|
|
Java/Source/SurfaceArea/build.xml
|
|
|
|
Java/Source/MigrationTools/build.xml
|
|
|
|
Java/Source/ContextTool/build.xml
|
|
|
|
Java/Source/Merge/build.xml
|
2006-10-18 01:09:48 +02:00
|
|
|
Java/Source/CheckTools/build.xml
|
2006-10-25 18:17:28 +02:00
|
|
|
Java/Source/DbTools/build.xml
|
2006-10-11 18:40:33 +02:00
|
|
|
CCode/Source/build.xml
|
2006-08-07 22:01:52 +02:00
|
|
|
"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
</subant>
|
|
|
|
</target>
|
|
|
|
</project>
|