Change to new XML Schema.
authorwuyizhong <wuyizhong@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 30 Jun 2006 17:53:27 +0000 (17:53 +0000)
committerwuyizhong <wuyizhong@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 30 Jun 2006 17:53:27 +0000 (17:53 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@679 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/build.xml
edk2/edksetup.bat

index f4724fe..4b7e954 100644 (file)
@@ -10,40 +10,46 @@ 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
+    <!--\r
+    <ToolChainSetup confPath="${WORKSPACE_DIR}/Tools/Conf" />\r
+    -->\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
index 10d5325..722df88 100644 (file)
@@ -106,7 +106,7 @@ echo.
 @REM Java Programs can use it.\r
 @REM It needs the XMLBEANS libraries in order to compile.\r
 @REM\r
-set CLASSPATH=%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar;%XMLBEANS_HOME%\lib\xbean.jar\r
+set CLASSPATH=.;%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar;%XMLBEANS_HOME%\lib\xbean.jar\r
 set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean_xpath.jar;%XMLBEANS_HOME%\lib\xmlpublic.jar\r
 set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\saxon8.jar;%XMLBEANS_HOME%\lib\resolver.jar\r
 \r