| 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 | Source/Merge/build.xml\r |
| 44 | "/>\r |
| 45 | </subant>\r |
| 46 | <echo message="The EDK II Java Tools build has completed!"/>\r |
| 47 | </target>\r |
| 48 | \r |
| 49 | <target name="Wizard" depends="SurfaceArea">\r |
| 50 | <subant target="" verbose="true" inheritall="false">\r |
| 51 | <!-- Note: this is an ordered list. The projects have dependencies between them. -->\r |
| 52 | <filelist dir="."\r |
| 53 | files="\r |
| 54 | Source/FrameworkWizard/build.xml\r |
| 55 | "/>\r |
| 56 | </subant>\r |
| 57 | </target>\r |
| 58 | \r |
| 59 | <target name="Merge" depends="SurfaceArea">\r |
| 60 | <subant target="" verbose="true" inheritall="false">\r |
| 61 | <filelist dir="."\r |
| 62 | files="\r |
| 63 | Source/Merge/build.xml\r |
| 64 | "/>\r |
| 65 | </subant>\r |
| 66 | </target>\r |
| 67 | \r |
| 68 | <target name="SurfaceArea" depends="makeCatalog">\r |
| 69 | <subant target="" verbose="true" inheritall="false">\r |
| 70 | <filelist dir="."\r |
| 71 | files="\r |
| 72 | Source/SurfaceArea/build.xml\r |
| 73 | "/>\r |
| 74 | </subant>\r |
| 75 | </target>\r |
| 76 | \r |
| 77 | <target name="makeCatalog">\r |
| 78 | <echo file="XMLSchema/catalog.xml">\r |
| 79 | <![CDATA[<?xml version="1.0"?>\r |
| 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">\r |
| 81 | <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">\r |
| 82 | <rewriteSystem systemIdStartString="http://www.TianoCore.org/2006/Edk2.0/"\r |
| 83 | rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>\r |
| 84 | <rewriteURI uriStartString="http://www.TianoCore.org/2006/Edk2.0/"\r |
| 85 | rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>\r |
| 86 | </catalog>]]>\r |
| 87 | </echo>\r |
| 88 | <if>\r |
| 89 | <not>\r |
| 90 | <available file="Conf/tools_def.txt"/>\r |
| 91 | </not>\r |
| 92 | <then>\r |
| 93 | <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt"/>\r |
| 94 | </then>\r |
| 95 | </if>\r |
| 96 | \r |
| 97 | <if>\r |
| 98 | <not>\r |
| 99 | <available file="Conf/target.txt"/>\r |
| 100 | </not>\r |
| 101 | <then>\r |
| 102 | <copy file="Conf/target.template" tofile="Conf/target.txt"/>\r |
| 103 | </then>\r |
| 104 | </if>\r |
| 105 | \r |
| 106 | <if>\r |
| 107 | <not>\r |
| 108 | <available file="Conf/FrameworkDatabase.db"/>\r |
| 109 | </not>\r |
| 110 | <then>\r |
| 111 | <copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db"/>\r |
| 112 | </then>\r |
| 113 | </if>\r |
| 114 | </target>\r |
| 115 | \r |
| 116 | <target name="clean">\r |
| 117 | <subant target="clean" inheritall="false">\r |
| 118 | <filelist dir="."\r |
| 119 | files="\r |
| 120 | Source/FrameworkWizard/build.xml \r |
| 121 | Source/Cpptasks/build.xml \r |
| 122 | Source/FrameworkTasks/build.xml \r |
| 123 | Source/GenBuild/build.xml \r |
| 124 | Source/PcdTools/build.xml \r |
| 125 | Source/Common/build.xml \r |
| 126 | Source/SurfaceArea/build.xml \r |
| 127 | Source/TianoTools/build.xml\r |
| 128 | Source/MigrationTools/build.xml\r |
| 129 | Source/ContextTool/build.xml\r |
| 130 | Source/Merge/build.xml\r |
| 131 | "/>\r |
| 132 | </subant>\r |
| 133 | </target>\r |
| 134 | \r |
| 135 | <target name="cleanall">\r |
| 136 | <available classname="org.tianocore.frameworkwizard.FrameworkWizardUI" property="FrameworkWizardUI.available"/>\r |
| 137 | <available classname="org.tianocore.build.GenBuildTask" property="GenBuildTask.available"/>\r |
| 138 | <available classname="org.tianocore.framework.tasks.Tool" property="Tool.available"/>\r |
| 139 | <available classname="org.tianocore.pcd.action.BuildAction" property="PcdClass.available"/>\r |
| 140 | <if>\r |
| 141 | <or>\r |
| 142 | <isset property="FrameworkWizardUI.available"/>\r |
| 143 | <isset property="GenBuildTask.available"/>\r |
| 144 | <isset property="Tool.available"/>\r |
| 145 | <isset property="PcdClass.available"/>\r |
| 146 | </or>\r |
| 147 | <then>\r |
| 148 | <fail message="Use ant -noclasspath cleanall, to remove all jar files!"/>\r |
| 149 | </then>\r |
| 150 | </if>\r |
| 151 | <subant target="cleanall" inheritall="true">\r |
| 152 | <filelist dir="."\r |
| 153 | files="\r |
| 154 | Source/FrameworkWizard/build.xml \r |
| 155 | Source/Cpptasks/build.xml \r |
| 156 | Source/FrameworkTasks/build.xml \r |
| 157 | Source/GenBuild/build.xml \r |
| 158 | Source/PcdTools/build.xml \r |
| 159 | Source/Common/build.xml \r |
| 160 | Source/SurfaceArea/build.xml \r |
| 161 | Source/TianoTools/build.xml\r |
| 162 | Source/MigrationTools/build.xml\r |
| 163 | Source/ContextTool/build.xml\r |
| 164 | Source/Merge/build.xml\r |
| 165 | "/>\r |
| 166 | </subant>\r |
| 167 | </target>\r |
| 168 | </project>\r |