]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/build.xml
Introduce a new property INCLUDE_PATHS. This property can used by customized build...
[mirror_edk2.git] / Tools / build.xml
index d68fd6fa76ac23f4cbf2d243931b1d0f4b9dc285..9e07a3d5e38d4b313b91b8895912d44bbc73d8df 100644 (file)
@@ -11,9 +11,12 @@ 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
+  <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
@@ -30,9 +33,22 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
       <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/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="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/FrameworkWizard/build.xml\r
           "/>\r
     </subant>\r
@@ -60,36 +76,62 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     </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
-    <copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db" 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/FrameworkWizard/build.xml\r
-          Source/Cpptasks/build.xml\r
-          Source/FrameworkTasks/build.xml\r
-          Source/GenBuild/build.xml\r
-          Source/Common/build.xml\r
-          Source/SurfaceArea/build.xml\r
-          "/>\r
+          Source/MigrationTools/build.xml\r
+        "/>\r
     </subant>\r
   </target>\r
 \r
   <target name="cleanall">\r
-    <subant target="cleanall" 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/FrameworkWizard/build.xml\r
-          Source/Cpptasks/build.xml\r
-          Source/FrameworkTasks/build.xml\r
-          Source/GenBuild/build.xml\r
-          Source/Common/build.xml\r
-          Source/SurfaceArea/build.xml\r
-          "/>\r
+          Source/MigrationTools/build.xml\r
+        "/>\r
     </subant>\r
   </target>\r
 </project>\r