Fixed a couple of typos in the ToolTipText fields.
[mirror_edk2.git] / build.xml
index 421fa96..cf10675 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -10,27 +10,43 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 -->\r
 <project name="mdk" default="all" basedir=".">\r
-  <property environment="env"/>\r
-  <target name="all">\r
-    <subant target="" inheritall="false">\r
-      <!-- Note: this is an ordered list. The projects have dependencies between them. -->\r
-      <filelist dir="."\r
-        files="\r
-          Tools/build.xml\r
-          MdePkg/build.xml\r
-          EdkModulePkg/build.xml\r
-          EdkNt32Pkg/build.xml\r
-          "/>\r
-    </subant>\r
+  <!-- Apply external ANT tasks -->\r
+  <taskdef resource="net/sf/antcontrib/antlib.xml" />\r
+  <taskdef resource="GenBuild.tasks" />\r
+  \r
+  <property environment="env" />\r
+  \r
+  <property name="WORKSPACE_DIR" value="${env.WORKSPACE}" />\r
+  \r
+  <!--property name="COMMON_FILE" value="${WORKSPACE_DIR}/Tools/Conf/Common.xml" /-->\r
+  \r
+  <import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml" />\r
+  \r
+  <target name="all" depends="init, build" />\r
+  \r
+  <target name="init">\r
+    <if>\r
+      <not>\r
+        <isset property="env.WORKSPACE" />\r
+      </not>\r
+      <then>\r
+        <fail message="WORKSPACE environmental variable not set." />\r
+      </then>\r
+    </if>\r
   </target>\r
-  <target name="clean">\r
-    <subant target="clean" inheritall="false">\r
-      <fileset dir="." includes="*/build.xml"/>\r
-    </subant>\r
+  \r
+  <target name="build">\r
+    <FrameworkBuild />\r
   </target>\r
-  <target name="distclean">\r
-    <subant target="distclean" inheritall="false">\r
-      <fileset dir="." includes="*/build.xml"/>\r
-    </subant>\r
+\r
+  <target name="clean" depends="init">\r
+    <echo message="Clean all intermidiate files. " />\r
+    <FrameworkBuild type="clean" />\r
+  </target>\r
+  \r
+  <target name="cleanall" depends="init">\r
+    <echo message="Clean all generated files. " />\r
+    <FrameworkBuild type="cleanall" />\r
   </target>\r
+  \r
 </project>\r