]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/build.xml
change table column positions in tables of FrameworkModules and horizontal scrollbar...
[mirror_edk2.git] / Tools / build.xml
index 38149c38e741fe0ed3d52121df40ed2897c2c977..9e07a3d5e38d4b313b91b8895912d44bbc73d8df 100644 (file)
@@ -11,38 +11,54 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 -->\r
 <project name="Tools" default="all" basedir=".">\r
 \r
+  <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
   <property environment="env"/>\r
 \r
+  <target name="all" depends="C_Code">\r
+    <echo message="The EDK II Tools build has completed!"/>\r
+  </target>\r
+\r
+  <target name="C_Code" depends="JavaCode">\r
+    <subant target="" inheritall="false">\r
+      <filelist dir="."\r
+        files="\r
+          Source/TianoTools/build.xml\r
+          "/>\r
+    </subant>\r
+  </target>\r
+\r
   <target name="JavaCode" depends="SurfaceArea">\r
     <subant target="" verbose="true" inheritall="false">\r
       <!-- Note: this is an ordered list. The projects have dependencies between them. -->\r
       <filelist dir="."\r
         files="\r
+          Source/Common/build.xml\r
+          Source/PcdTools/build.xml\r
           Source/GenBuild/build.xml\r
           Source/FrameworkTasks/build.xml\r
           Source/Cpptasks/build.xml\r
-          Source/ModuleEditor/build.xml\r
-          Source/PackageEditor/build.xml\r
+          Source/FrameworkWizard/build.xml\r
+          Source/MigrationTools/build.xml\r
           "/>\r
     </subant>\r
+    <echo message="The EDK II Java Tools build has completed!"/>\r
   </target>\r
 \r
-  <target name="all" depends="C_Code"/>\r
-\r
-  <target name="SurfaceArea" depends="makeCatalog">\r
+  <target name="Wizard" depends="SurfaceArea">\r
     <subant target="" verbose="true" inheritall="false">\r
+      <!-- Note: this is an ordered list. The projects have dependencies between them. -->\r
       <filelist dir="."\r
         files="\r
-          Source/SurfaceArea/build.xml\r
+          Source/FrameworkWizard/build.xml\r
           "/>\r
     </subant>\r
   </target>\r
 \r
-  <target name="C_Code" depends="JavaCode">\r
+  <target name="SurfaceArea" depends="makeCatalog">\r
     <subant target="" verbose="true" inheritall="false">\r
       <filelist dir="."\r
         files="\r
-          Source/TianoTools/build.xml\r
+          Source/SurfaceArea/build.xml\r
           "/>\r
     </subant>\r
   </target>\r
@@ -58,33 +74,64 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>\r
 </catalog>]]>\r
     </echo>\r
+    <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt" overwrite="false"/>\r
+    <copy file="Conf/target.template" tofile="Conf/target.txt" overwrite="false"/>\r
+    <if>\r
+      <not>\r
+        <available file="Conf/FrameworkDatabase.db"/>\r
+      </not>\r
+      <then>\r
+        <copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db"/>\r
+      </then>\r
+    </if>\r
   </target>\r
+\r
   <target name="clean">\r
     <subant target="clean" inheritall="false">\r
       <filelist dir="."\r
         files="\r
+          Source/FrameworkWizard/build.xml \r
+          Source/Cpptasks/build.xml \r
+          Source/FrameworkTasks/build.xml \r
+          Source/GenBuild/build.xml \r
+          Source/PcdTools/build.xml \r
+          Source/Common/build.xml \r
+          Source/SurfaceArea/build.xml \r
           Source/TianoTools/build.xml\r
-          Source/ModuleEditor/build.xml\r
-          Source/PackageEditor/build.xml\r
-          Source/FrameworkTasks/build.xml\r
-          Source/GenBuild/build.xml\r
-          Source/SurfaceArea/build.xml\r
-          Source/Cpptasks/build.xml\r
-          "/>\r
+          Source/MigrationTools/build.xml\r
+        "/>\r
     </subant>\r
   </target>\r
+\r
   <target name="cleanall">\r
-    <subant target="cleanall" verbose="true" inheritall="false">\r
+    <available classname="org.tianocore.frameworkwizard.FrameworkWizardUI" property="FrameworkWizardUI.available"/>\r
+    <available classname="org.tianocore.build.GenBuildTask" property="GenBuildTask.available"/>\r
+    <available classname="org.tianocore.framework.tasks.Tool" property="Tool.available"/>\r
+    <available classname="org.tianocore.pcd.action.BuildAction" property="PcdClass.available"/>\r
+    <if>\r
+      <or>\r
+        <isset property="FrameworkWizardUI.available"/>\r
+        <isset property="GenBuildTask.available"/>\r
+        <isset property="Tool.available"/>\r
+        <isset property="PcdClass.available"/>\r
+      </or>\r
+      <then>\r
+        <fail message="Use ant -noclasspath cleanall, to remove all jar files!"/>\r
+      </then>\r
+    </if>\r
+    <subant target="cleanall" inheritall="true">\r
       <filelist dir="."\r
         files="\r
+          Source/FrameworkWizard/build.xml \r
+          Source/Cpptasks/build.xml \r
+          Source/FrameworkTasks/build.xml \r
+          Source/GenBuild/build.xml \r
+          Source/PcdTools/build.xml \r
+          Source/Common/build.xml \r
+          Source/SurfaceArea/build.xml \r
           Source/TianoTools/build.xml\r
-          Source/ModuleEditor/build.xml\r
-          Source/PackageEditor/build.xml\r
-          Source/FrameworkTasks/build.xml\r
-          Source/GenBuild/build.xml\r
-          Source/SurfaceArea/build.xml\r
-          Source/Cpptasks/build.xml\r
-          "/>\r
+          Source/MigrationTools/build.xml\r
+        "/>\r
     </subant>\r
   </target>\r
 </project>\r