]>
Commit | Line | Data |
---|---|---|
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 | |
14 | EDK Pccts Tool: dlg\r | |
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 | |
23 | <property name="PACKAGE_DIR" value="${WORKSPACE}/Tools"/>\r | |
24 | \r | |
25 | <target name="init">\r | |
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 | |
36 | <else>\r | |
37 | <echo message="Building the EDK Pccts Tool: ${ToolName}"/>\r | |
38 | </else>\r | |
39 | </if>\r | |
40 | </target>\r | |
41 | \r | |
42 | <target name="GenTool" depends="init" unless="CheckDepends">\r | |
43 | <if>\r | |
44 | <equals arg1="${ToolChain}" arg2="msvc"/>\r | |
45 | <then>\r | |
46 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="TRUE">\r | |
47 | <arg line="-f DlgMS.mak"/>\r | |
48 | </exec>\r | |
49 | </then>\r | |
50 | <elseif>\r | |
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 | |
59 | <equals arg1="${ToolChain}" arg2="gcc"/>\r | |
60 | <then>\r | |
61 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">\r | |
62 | <arg line="-f makefile BIN_DIR=${BIN_DIR}"/>\r | |
63 | </exec>\r | |
64 | </then>\r | |
65 | </elseif>\r | |
66 | </if>\r | |
67 | <echo message="The EDK Tool: ${ToolName} build has completed!"/>\r | |
68 | </target>\r | |
69 | \r | |
70 | <target name="clean">\r | |
71 | <echo message="Removing Intermediate Files Only"/> \r | |
72 | <if>\r | |
73 | <equals arg1="${ToolChain}" arg2="msvc"/>\r | |
74 | <then>\r | |
75 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="TRUE">\r | |
76 | <arg line="-f DlgMS.mak clean"/>\r | |
77 | </exec>\r | |
78 | </then>\r | |
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 | |
87 | <elseif>\r | |
88 | <equals arg1="${ToolChain}" arg2="gcc"/>\r | |
89 | <then>\r | |
90 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">\r | |
91 | <arg line="-f makefile clean"/>\r | |
92 | </exec>\r | |
93 | </then>\r | |
94 | </elseif>\r | |
95 | </if>\r | |
96 | </target>\r | |
97 | \r | |
98 | <target name="cleanall">\r | |
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 | |
103 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="FALSE">\r | |
104 | <arg line="-f DlgMS.mak clean"/>\r | |
105 | </exec>\r | |
106 | </then>\r | |
107 | <elseif>\r | |
108 | <equals arg1="${ToolChain}" arg2="gcc"/>\r | |
109 | <then>\r | |
110 | <exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="FALSE">\r | |
111 | <arg line="-f makefile clean"/>\r | |
112 | </exec>\r | |
113 | </then>\r | |
114 | </elseif>\r | |
115 | </if>\r | |
116 | <delete failonerror="false" quiet="true" includeEmptyDirs="true">\r | |
117 | <fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>\r | |
118 | </delete>\r | |
119 | </target>\r | |
120 | \r | |
121 | </project>\r |