diff options
author | wuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-06-30 17:53:27 +0000 |
---|---|---|
committer | wuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-06-30 17:53:27 +0000 |
commit | 5d863867e9ce698c420d66ab210f454d07810c66 (patch) | |
tree | a1542b0a2e6231cf373b0cd871cf75b652598b85 /build.xml | |
parent | 2d52720093851dcc3f0ffd30ac9854cc775300a9 (diff) | |
download | edk2-5d863867e9ce698c420d66ab210f454d07810c66.zip edk2-5d863867e9ce698c420d66ab210f454d07810c66.tar.gz edk2-5d863867e9ce698c420d66ab210f454d07810c66.tar.bz2 |
Change to new XML Schema.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@679 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 68 |
1 files changed, 37 insertions, 31 deletions
@@ -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.
-->
<project name="mdk" default="all" basedir=".">
- <description>
-This is the highest-level build file.
-It can build all packages or clean up the build products.
- </description>
- <property environment="env"/>
- <!-- Note: this is an ordered list. The projects have dependencies between them. -->
- <filelist
- id="Pkg.Dirs"
- dir="."
- files="Tools,MdePkg,EdkModulePkg,EdkNt32Pkg"/>
-
- <target name="all" description="Issue a warning.">
- <echo>
-Top-level builds may not be functional.
-Please build each package individually from its own directory.
-If you would like to try anyway, type
-ant All
- </echo>
+ <!-- Apply external ANT tasks -->
+ <taskdef resource="net/sf/antcontrib/antlib.xml" />
+ <taskdef resource="GenBuild.tasks" />
+
+ <property environment="env" />
+
+ <property name="WORKSPACE_DIR" value="${env.WORKSPACE}" />
+
+ <!--property name="COMMON_FILE" value="${WORKSPACE_DIR}/Tools/Conf/Common.xml" /-->
+
+ <import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml" />
+
+ <target name="all" depends="init, build" />
+
+ <target name="init">
+ <if>
+ <not>
+ <isset property="env.WORKSPACE" />
+ </not>
+ <then>
+ <fail message="WORKSPACE environmental variable not set." />
+ </then>
+ </if>
+ <!--
+ <ToolChainSetup confPath="${WORKSPACE_DIR}/Tools/Conf" />
+ -->
</target>
- <target name="All" description="Build all packages.">
- <subant target="" inheritall="false">
- <filelist refid="Pkg.Dirs"/>
- </subant>
+
+ <target name="build">
+ <FrameworkBuild />
</target>
- <target name="clean" description="Remove compile and assembly artifacts.">
- <subant target="clean" inheritall="false">
- <filelist refid="Pkg.Dirs"/>
- </subant>
+ <target name="clean" depends="init">
+ <echo message="Clean all intermidiate files. " />
+ <FrameworkBuild type="clean" />
</target>
-
- <target name="cleanall" description="Remove everything not in the distribution.">
- <subant target="cleanall" inheritall="false">
- <filelist refid="Pkg.Dirs"/>
- </subant>
+
+ <target name="cleanall" depends="init">
+ <echo message="Clean all generated files. " />
+ <FrameworkBuild type="cleanall" />
</target>
+
</project>
|