Fixed a couple of typos in the ToolTipText fields.
[mirror_edk2.git] / build.xml
index f4724fe..cf10675 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -10,40 +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
-  <description>\r
-This is the highest-level build file.\r
-It can build all packages or clean up the build products.\r
-  </description>\r
-  <property environment="env"/>\r
-  <!-- Note: this is an ordered list. The projects have dependencies between them. -->\r
-  <filelist\r
-      id="Pkg.Dirs"\r
-      dir="."\r
-      files="Tools,MdePkg,EdkModulePkg,EdkNt32Pkg"/>\r
-\r
-  <target name="all" description="Issue a warning.">\r
-    <echo>\r
-Top-level builds may not be functional.\r
-Please build each package individually from its own directory.\r
-If you would like to try anyway, type\r
-ant All\r
-    </echo>\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="All" description="Build all packages.">\r
-    <subant target="" inheritall="false">\r
-      <filelist refid="Pkg.Dirs"/>\r
-    </subant>\r
+  \r
+  <target name="build">\r
+    <FrameworkBuild />\r
   </target>\r
 \r
-  <target name="clean" description="Remove compile and assembly artifacts.">\r
-    <subant target="clean" inheritall="false">\r
-      <filelist refid="Pkg.Dirs"/>\r
-    </subant>\r
+  <target name="clean" depends="init">\r
+    <echo message="Clean all intermidiate files. " />\r
+    <FrameworkBuild type="clean" />\r
   </target>\r
-\r
-  <target name="cleanall" description="Remove everything not in the distribution.">\r
-    <subant target="cleanall" inheritall="false">\r
-      <filelist refid="Pkg.Dirs"/>\r
-    </subant>\r
+  \r
+  <target name="cleanall" depends="init">\r
+    <echo message="Clean all generated files. " />\r
+    <FrameworkBuild type="cleanall" />\r
   </target>\r
+  \r
 </project>\r