]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | <?xml version="1.0" ?>\r |
2 | <!--\r | |
3 | Copyright (c) 2006, Intel Corporation\r | |
4 | All rights reserved. This program and the accompanying materials\r | |
5 | are licensed and made available under the terms and conditions of the BSD License\r | |
6 | which accompanies this distribution. The full text of the license may be found at\r | |
7 | http://opensource.org/licenses/bsd-license.php\r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | -->\r | |
12 | <project default="GenTool" basedir=".">\r | |
13 | <!--\r | |
af1dd46d | 14 | EDK Pccts Tool: dlg\r |
878ddf1f | 15 | Copyright (c) 2006, Intel Corporation\r |
16 | -->\r | |
17 | <property name="ToolName" value="dlg"/>\r | |
18 | \r | |
19 | <taskdef resource="cpptasks.tasks"/>\r | |
20 | <typedef resource="cpptasks.types"/>\r | |
21 | <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r | |
22 | \r | |
878ddf1f | 23 | <property name="PACKAGE_DIR" value="${WORKSPACE}/Tools"/>\r |
24 | \r | |
25 | <target name="init">\r | |
878ddf1f | 26 | <condition property="CheckDepends">\r |
27 | <uptodate targetfile="${WORKSPACE}/Tools/bin/dlg.exe">\r | |
28 | <srcfiles dir="." includes="*.c *.h *.g"/>\r | |
29 | </uptodate>\r | |
30 | </condition>\r | |
31 | <if>\r | |
32 | <equals arg1="${CheckDepends}" arg2="true"/>\r | |
33 | <then>\r | |
34 | <echo message="Executable, dlg.exe, is up to date."/>\r | |
35 | </then>\r | |
af1dd46d | 36 | <else>\r |
37 | <echo message="Building the EDK Pccts Tool: ${ToolName}"/>\r | |
38 | </else>\r | |
878ddf1f | 39 | </if>\r |
40 | </target>\r | |
41 | \r | |
42 | <target name="GenTool" depends="init" unless="CheckDepends">\r | |
878ddf1f | 43 | <if>\r |
44 | <equals arg1="${ToolChain}" arg2="msvc"/>\r | |
45 | <then>\r | |
af1dd46d | 46 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="TRUE">\r |
878ddf1f | 47 | <arg line="-f DlgMS.mak"/>\r |
48 | </exec>\r | |
49 | </then>\r | |
50 | <elseif>\r | |
af1dd46d | 51 | <istrue value="${cygwin}"/>\r |
52 | <then>\r | |
53 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">\r | |
54 | <arg line="-f makefile.cygwin"/>\r | |
55 | </exec>\r | |
56 | </then>\r | |
57 | </elseif>\r | |
58 | <elseif>\r | |
878ddf1f | 59 | <equals arg1="${ToolChain}" arg2="gcc"/>\r |
60 | <then>\r | |
af1dd46d | 61 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">\r |
5afd4992 | 62 | <arg line="-f makefile BIN_DIR=${BIN_DIR}"/>\r |
878ddf1f | 63 | </exec>\r |
64 | </then>\r | |
65 | </elseif>\r | |
66 | </if>\r | |
af1dd46d | 67 | <echo message="The EDK Tool: ${ToolName} build has completed!"/>\r |
878ddf1f | 68 | </target>\r |
69 | \r | |
af1dd46d | 70 | <target name="clean">\r |
878ddf1f | 71 | <echo message="Removing Intermediate Files Only"/> \r |
72 | <if>\r | |
73 | <equals arg1="${ToolChain}" arg2="msvc"/>\r | |
74 | <then>\r | |
af1dd46d | 75 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="TRUE">\r |
878ddf1f | 76 | <arg line="-f DlgMS.mak clean"/>\r |
77 | </exec>\r | |
78 | </then>\r | |
af1dd46d | 79 | <elseif>\r |
80 | <istrue value="${cygwin}"/>\r | |
81 | <then>\r | |
82 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">\r | |
83 | <arg line="-f makefile.cygwin clean"/>\r | |
84 | </exec>\r | |
85 | </then>\r | |
86 | </elseif>\r | |
878ddf1f | 87 | <elseif>\r |
88 | <equals arg1="${ToolChain}" arg2="gcc"/>\r | |
89 | <then>\r | |
af1dd46d | 90 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">\r |
878ddf1f | 91 | <arg line="-f makefile clean"/>\r |
92 | </exec>\r | |
93 | </then>\r | |
94 | </elseif>\r | |
95 | </if>\r | |
96 | </target>\r | |
97 | \r | |
af1dd46d | 98 | <target name="cleanall">\r |
878ddf1f | 99 | <echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/> \r |
100 | <if>\r | |
101 | <equals arg1="${ToolChain}" arg2="msvc"/>\r | |
102 | <then>\r | |
af1dd46d | 103 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="FALSE">\r |
466d2347 | 104 | <arg line="-f DlgMS.mak clean"/>\r |
878ddf1f | 105 | </exec>\r |
106 | </then>\r | |
107 | <elseif>\r | |
108 | <equals arg1="${ToolChain}" arg2="gcc"/>\r | |
109 | <then>\r | |
af1dd46d | 110 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="FALSE">\r |
466d2347 | 111 | <arg line="-f makefile clean"/>\r |
878ddf1f | 112 | </exec>\r |
113 | </then>\r | |
114 | </elseif>\r | |
115 | </if>\r | |
af1dd46d | 116 | <delete failonerror="false" quiet="true" includeEmptyDirs="true">\r |
117 | <fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>\r | |
118 | </delete>\r | |
878ddf1f | 119 | </target>\r |
120 | \r | |
121 | </project>\r |