| 1704 |
mtynas |
1 |
<project name="bcpp-task">
|
|
|
2 |
|
|
|
3 |
<!-- C O P Y R I G H T N O T I C E
|
|
|
4 |
This material is confidential to ERG and may not be disclosed in whole
|
|
|
5 |
or in part to any third party nor used in any manner whatsoever other
|
|
|
6 |
than for the purposes expressly consented to by ERG in writing.
|
|
|
7 |
|
|
|
8 |
This material is also copyright and may not be reproduced, stored in a
|
|
|
9 |
retrieval system or transmitted in any form or by any means in whole or
|
|
|
10 |
in part without the express written consent of ERG.
|
|
|
11 |
-->
|
|
|
12 |
|
|
|
13 |
<!-- This is a Windows based compiler package, so include its standard environment -->
|
| 1706 |
mtynas |
14 |
<using name="ant-cpptasks" version="1.4.0"/>
|
| 1704 |
mtynas |
15 |
<using name="ant-windows" version="1.0.0"/>
|
|
|
16 |
|
|
|
17 |
<!-- Include the Borland C++ Builder Compiler/Linker environment from its COTS package -->
|
| 1706 |
mtynas |
18 |
<using name="borland_bcb" version="6.0.11.cots">
|
| 1704 |
mtynas |
19 |
<exclude name="**/debug/*" if="windows-release"/>
|
|
|
20 |
<exclude name="**/release/*" if="windows-debug"/>
|
|
|
21 |
</using>
|
|
|
22 |
|
|
|
23 |
<!-- Set up the environment's Binary path, Include and Library paths -->
|
|
|
24 |
<property name="bcpp_bin" value="${using.borland_bcb.basedir}/bin"/>
|
|
|
25 |
<property name="bcpp_compilername" value="bcc"/>
|
|
|
26 |
<property name="bcpp_include" value="${using.borland_bcb.basedir}/include"/>
|
|
|
27 |
<property name="bcpp_vcl_include" value="${bcpp_include}/vcl"/>
|
|
|
28 |
|
|
|
29 |
<property name="bcpp_include_debug" value="${bcpp_include},${bcpp_vcl_include}"/>
|
|
|
30 |
<property name="bcpp_include_release" value="${bcpp_include},${bcpp_vcl_include}"/>
|
|
|
31 |
|
| 1706 |
mtynas |
32 |
<property name="bcpp_common_libs" value="sysinit.obj,Memmgr.lib"/>
|
|
|
33 |
<property name="bcpp_dblibs" value="vcldb.lib,dbrtl.lib,bdertl.lib"/>
|
| 1708 |
mtynas |
34 |
<property name="bcpp_rtl" value="rtl.lib,import32.lib"/>
|
| 1704 |
mtynas |
35 |
|
| 1708 |
mtynas |
36 |
<property name="bcpp_console_libs" value="cw32.lib"/>
|
|
|
37 |
<property name="bcpp_gui_libs" value="cp32mt.lib,vcl.lib,vclx.lib"/>
|
| 1704 |
mtynas |
38 |
|
| 1708 |
mtynas |
39 |
<property name="bcpp_libraries_debug" value="${bcpp_common_libs},${bcpp_rtl},${bcpp_dblibs}"/>
|
|
|
40 |
<property name="bcpp_libraries_release" value="${bcpp_common_libs},${bcpp_rtl},${bcpp_dblibs}"/>
|
|
|
41 |
|
| 1704 |
mtynas |
42 |
<property name="bcpp_lib_debug" value="${using.borland_bcb.basedir}\lib\debug"/>
|
|
|
43 |
<property name="bcpp_lib_release" value="${using.borland_bcb.basedir}\lib\release"/>
|
|
|
44 |
|
|
|
45 |
<!-- The particular library paths are dependent upon the Release/Debug status -->
|
|
|
46 |
<if>
|
|
|
47 |
<equals arg1="${debug}" arg2="true"/>
|
|
|
48 |
<then>
|
|
|
49 |
<property name="bcpp_lib" value="${bcpp_lib_debug}"/>
|
|
|
50 |
</then>
|
|
|
51 |
<else>
|
|
|
52 |
<property name="bcpp_lib" value="${bcpp_lib_release}"/>
|
|
|
53 |
</else>
|
|
|
54 |
</if>
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
<!-- Create the Borland Compiler/Linker default configuration location files for Includes & Libraries -->
|
|
|
58 |
<!-- These files are use by the compiler/linker when a dependent file cannot be found in the defined paths -->
|
|
|
59 |
<echo file="${bcpp_bin}/ilink32.cfg">-L"${bcpp_lib}"</echo>
|
|
|
60 |
<echo file="${bcpp_bin}/bcc32.cfg">-I"${bcpp_include}";"${bcpp_vcl_include}" -L"${bcpp_lib}"</echo>
|
|
|
61 |
|
| 1708 |
mtynas |
62 |
<compiler id="bcpp_compiler_debug_console" name="${bcpp_compilername}">
|
| 1704 |
mtynas |
63 |
<!-- zero length empty class member functions -->
|
|
|
64 |
<compilerarg value="-Vx"/>
|
|
|
65 |
<compilerarg value="-Ve"/>
|
|
|
66 |
|
| 1706 |
mtynas |
67 |
<!-- Pentium Pro Instructions -->
|
|
|
68 |
<compilerarg value="-6"/>
|
|
|
69 |
|
| 1704 |
mtynas |
70 |
<!-- Don't suppress compiler banner -->
|
|
|
71 |
<compilerarg value="-q-"/>
|
|
|
72 |
|
|
|
73 |
<!-- 8 byte data alignment -->
|
|
|
74 |
<compilerarg value="-a8"/>
|
|
|
75 |
|
|
|
76 |
<!-- Integer Enums -->
|
|
|
77 |
<compilerarg value="-b"/>
|
|
|
78 |
|
|
|
79 |
<!-- Standard Stack Frames -->
|
|
|
80 |
<compilerarg value="-k"/>
|
|
|
81 |
|
|
|
82 |
<!-- Standard Calling Convention -->
|
| 1706 |
mtynas |
83 |
<!--compilerarg value="-ps"/-->
|
| 1704 |
mtynas |
84 |
|
|
|
85 |
<!-- Don't use register variables -->
|
|
|
86 |
<compilerarg value="-r-"/>
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
<!-- Disable all optimizations -->
|
|
|
90 |
<compilerarg value="-Od"/>
|
|
|
91 |
|
|
|
92 |
<compilerarg value="-DNO_STRICT"/>
|
|
|
93 |
<compilerarg value="-D_DEBUG"/>
|
|
|
94 |
|
|
|
95 |
<!-- Debug - Line numbers on -->
|
|
|
96 |
<compilerarg value="-y"/>
|
|
|
97 |
|
|
|
98 |
<!-- Turn on source debugging -->
|
|
|
99 |
<compilerarg value="-v"/>
|
|
|
100 |
|
|
|
101 |
<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
|
|
|
102 |
<compilerarg value="-vi-"/>
|
|
|
103 |
|
|
|
104 |
<!-- ignore warnings - Parameter 'parameter' is never used. -->
|
|
|
105 |
<compilerarg value="-w-par"/>
|
|
|
106 |
|
|
|
107 |
<!-- ignore warnings - Conversion may lose significant digits -->
|
|
|
108 |
<compilerarg value="-w-sig"/>
|
|
|
109 |
|
|
|
110 |
<!-- ignore warnings - 'identifier' declared but never used. -->
|
|
|
111 |
<compilerarg value="-w-use"/>
|
|
|
112 |
|
|
|
113 |
<!-- ignore warnings - Unreachable code -->
|
|
|
114 |
<compilerarg value="-w-rch"/>
|
|
|
115 |
|
|
|
116 |
<!-- ignore warnings - 'identifier' is assigned a value that is never used -->
|
|
|
117 |
<compilerarg value="-w-aus"/>
|
|
|
118 |
</compiler>
|
|
|
119 |
|
| 1708 |
mtynas |
120 |
<compiler id="bcpp_compiler_debug_gui" name="${bcpp_compilername}">
|
| 1704 |
mtynas |
121 |
<!-- zero length empty class member functions -->
|
|
|
122 |
<compilerarg value="-Vx"/>
|
|
|
123 |
<compilerarg value="-Ve"/>
|
|
|
124 |
|
| 1706 |
mtynas |
125 |
<!-- Pentium Pro Instructions -->
|
|
|
126 |
<compilerarg value="-6"/>
|
|
|
127 |
|
| 1708 |
mtynas |
128 |
<!-- Don't suppress compiler banner -->
|
|
|
129 |
<compilerarg value="-q-"/>
|
|
|
130 |
|
|
|
131 |
<!-- 8 byte data alignment -->
|
|
|
132 |
<compilerarg value="-a8"/>
|
|
|
133 |
|
|
|
134 |
<!-- Integer Enums -->
|
|
|
135 |
<compilerarg value="-b"/>
|
|
|
136 |
|
|
|
137 |
<!-- Standard Stack Frames -->
|
|
|
138 |
<compilerarg value="-k"/>
|
|
|
139 |
|
|
|
140 |
<!-- Standard Calling Convention -->
|
|
|
141 |
<!--compilerarg value="-ps"/-->
|
|
|
142 |
|
|
|
143 |
<!-- Don't use register variables -->
|
|
|
144 |
<compilerarg value="-r-"/>
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
<!-- Disable all optimizations -->
|
|
|
148 |
<compilerarg value="-Od"/>
|
|
|
149 |
|
|
|
150 |
<compilerarg value="-DNO_STRICT"/>
|
|
|
151 |
<compilerarg value="-D_DEBUG"/>
|
|
|
152 |
|
|
|
153 |
<!-- Debug - Line numbers on -->
|
|
|
154 |
<compilerarg value="-y"/>
|
|
|
155 |
|
|
|
156 |
<!-- Turn on source debugging -->
|
|
|
157 |
<compilerarg value="-v"/>
|
|
|
158 |
|
|
|
159 |
<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
|
|
|
160 |
<compilerarg value="-vi-"/>
|
|
|
161 |
|
|
|
162 |
<!-- ignore warnings - Parameter 'parameter' is never used. -->
|
|
|
163 |
<compilerarg value="-w-par"/>
|
|
|
164 |
|
|
|
165 |
<!-- ignore warnings - Conversion may lose significant digits -->
|
|
|
166 |
<compilerarg value="-w-sig"/>
|
|
|
167 |
|
|
|
168 |
<!-- ignore warnings - 'identifier' declared but never used. -->
|
|
|
169 |
<compilerarg value="-w-use"/>
|
|
|
170 |
|
|
|
171 |
<!-- ignore warnings - Unreachable code -->
|
|
|
172 |
<compilerarg value="-w-rch"/>
|
|
|
173 |
|
|
|
174 |
<!-- ignore warnings - 'identifier' is assigned a value that is never used -->
|
|
|
175 |
<compilerarg value="-w-aus"/>
|
|
|
176 |
</compiler>
|
|
|
177 |
|
|
|
178 |
|
|
|
179 |
<compiler id="bcpp_compiler_release_console" name="${bcpp_compilername}">
|
|
|
180 |
<!-- zero length empty class member functions -->
|
|
|
181 |
<compilerarg value="-Vx"/>
|
|
|
182 |
<compilerarg value="-Ve"/>
|
|
|
183 |
|
|
|
184 |
<!-- Pentium Pro Instructions -->
|
|
|
185 |
<compilerarg value="-6"/>
|
|
|
186 |
|
| 1704 |
mtynas |
187 |
<compilerarg value="-Q-"/>
|
|
|
188 |
|
|
|
189 |
<compilerarg value="-a8"/>
|
|
|
190 |
|
|
|
191 |
<compilerarg value="-tWM"/>
|
|
|
192 |
|
|
|
193 |
<!-- Integer Enums -->
|
|
|
194 |
<compilerarg value="-b"/>
|
|
|
195 |
|
|
|
196 |
<!-- Standard Stack Frames -->
|
|
|
197 |
<compilerarg value="-k"/>
|
|
|
198 |
|
| 1706 |
mtynas |
199 |
<!-- Don't override Calling Convention, allow project to specify -->
|
|
|
200 |
<!--compilerarg value="-ps"/-->
|
| 1704 |
mtynas |
201 |
|
|
|
202 |
<!-- Use register variables -->
|
|
|
203 |
<compilerarg value="-r"/>
|
|
|
204 |
|
|
|
205 |
<compilerarg value="-DNO_STRICT"/>
|
|
|
206 |
|
|
|
207 |
<compilerarg value="-O2"/>
|
|
|
208 |
<compilerarg value="-v-"/>
|
|
|
209 |
|
|
|
210 |
<!-- ignore warnings - eg. Unused Parameters -->
|
|
|
211 |
<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
|
|
|
212 |
<compilerarg value="-vi-"/>
|
|
|
213 |
|
|
|
214 |
<!-- ignore warnings - Parameter 'parameter' is never used. -->
|
|
|
215 |
<compilerarg value="-w-par"/>
|
|
|
216 |
|
|
|
217 |
<!-- ignore warnings - Conversion may lose significant digits -->
|
|
|
218 |
<compilerarg value="-w-sig"/>
|
|
|
219 |
|
|
|
220 |
<!-- ignore warnings - 'identifier' declared but never used. -->
|
|
|
221 |
<compilerarg value="-w-use"/>
|
|
|
222 |
|
|
|
223 |
<!-- ignore warnings - Unreachable code -->
|
|
|
224 |
<compilerarg value="-w-rch"/>
|
|
|
225 |
|
|
|
226 |
<!-- ignore warnings - 'identifier' is assigned a value that is never used -->
|
|
|
227 |
<compilerarg value="-w-aus"/>
|
|
|
228 |
</compiler>
|
|
|
229 |
|
| 1708 |
mtynas |
230 |
<compiler id="bcpp_compiler_release_gui" name="${bcpp_compilername}">
|
|
|
231 |
<!-- zero length empty class member functions -->
|
|
|
232 |
<compilerarg value="-Vx"/>
|
|
|
233 |
<compilerarg value="-Ve"/>
|
|
|
234 |
|
|
|
235 |
<!-- Pentium Pro Instructions -->
|
|
|
236 |
<compilerarg value="-6"/>
|
|
|
237 |
|
|
|
238 |
<compilerarg value="-Q-"/>
|
|
|
239 |
|
|
|
240 |
<compilerarg value="-a8"/>
|
|
|
241 |
|
|
|
242 |
<compilerarg value="-tWM"/>
|
|
|
243 |
|
|
|
244 |
<!-- Integer Enums -->
|
|
|
245 |
<compilerarg value="-b"/>
|
|
|
246 |
|
|
|
247 |
<!-- Standard Stack Frames -->
|
|
|
248 |
<compilerarg value="-k"/>
|
|
|
249 |
|
|
|
250 |
<!-- Don't override Calling Convention, allow project to specify -->
|
|
|
251 |
<!--compilerarg value="-ps"/-->
|
|
|
252 |
|
|
|
253 |
<!-- Use register variables -->
|
|
|
254 |
<compilerarg value="-r"/>
|
|
|
255 |
|
|
|
256 |
<compilerarg value="-DNO_STRICT"/>
|
|
|
257 |
|
|
|
258 |
<compilerarg value="-O2"/>
|
|
|
259 |
<compilerarg value="-v-"/>
|
|
|
260 |
|
|
|
261 |
<!-- ignore warnings - eg. Unused Parameters -->
|
|
|
262 |
<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
|
|
|
263 |
<compilerarg value="-vi-"/>
|
|
|
264 |
|
|
|
265 |
<!-- ignore warnings - Parameter 'parameter' is never used. -->
|
|
|
266 |
<compilerarg value="-w-par"/>
|
|
|
267 |
|
|
|
268 |
<!-- ignore warnings - Conversion may lose significant digits -->
|
|
|
269 |
<compilerarg value="-w-sig"/>
|
|
|
270 |
|
|
|
271 |
<!-- ignore warnings - 'identifier' declared but never used. -->
|
|
|
272 |
<compilerarg value="-w-use"/>
|
|
|
273 |
|
|
|
274 |
<!-- ignore warnings - Unreachable code -->
|
|
|
275 |
<compilerarg value="-w-rch"/>
|
|
|
276 |
|
|
|
277 |
<!-- ignore warnings - 'identifier' is assigned a value that is never used -->
|
|
|
278 |
<compilerarg value="-w-aus"/>
|
|
|
279 |
</compiler>
|
|
|
280 |
|
|
|
281 |
<!-- Linker rules -->
|
|
|
282 |
|
|
|
283 |
<linker id="bcpp_linker_debug_console" name="${bcpp_compilername}">
|
| 1704 |
mtynas |
284 |
<!-- Disable incremental linking -->
|
|
|
285 |
<linkerarg value="-Gn"/>
|
| 1706 |
mtynas |
286 |
<linkerarg value="-x"/>
|
|
|
287 |
<linkerarg value="-aa"/>
|
| 1704 |
mtynas |
288 |
|
|
|
289 |
<linkerarg value="-L"${bcpp_lib_debug}""/>
|
|
|
290 |
|
| 1706 |
mtynas |
291 |
<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
|
| 1708 |
mtynas |
292 |
<fileset dir="${bcpp_lib_debug}" includes="${bcpp_console_libs}" casesensitive="no"/>
|
| 1704 |
mtynas |
293 |
</linker>
|
|
|
294 |
|
| 1708 |
mtynas |
295 |
<linker id="bcpp_linker_debug_gui" name="${bcpp_compilername}">
|
| 1704 |
mtynas |
296 |
<!-- Disable incremental linking -->
|
|
|
297 |
<linkerarg value="-Gn"/>
|
| 1708 |
mtynas |
298 |
<linkerarg value="-x"/>
|
|
|
299 |
<linkerarg value="-aa"/>
|
| 1704 |
mtynas |
300 |
|
| 1708 |
mtynas |
301 |
<linkerarg value="-L"${bcpp_lib_debug}""/>
|
|
|
302 |
|
|
|
303 |
<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
|
|
|
304 |
<fileset dir="${bcpp_lib_debug}" includes="${bcpp_gui_libs}" casesensitive="no"/>
|
|
|
305 |
</linker>
|
|
|
306 |
|
|
|
307 |
|
|
|
308 |
|
|
|
309 |
<linker id="bcpp_linker_release_console" name="${bcpp_compilername}">
|
|
|
310 |
<!-- Disable incremental linking -->
|
|
|
311 |
<linkerarg value="-Gn"/>
|
|
|
312 |
|
| 1704 |
mtynas |
313 |
<linkerarg value="-L"${bcpp_lib_release}""/>
|
|
|
314 |
|
| 1706 |
mtynas |
315 |
<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
|
| 1708 |
mtynas |
316 |
<fileset dir="${bcpp_lib_release}" includes="${bcpp_console_libs}" casesensitive="no"/>
|
| 1704 |
mtynas |
317 |
</linker>
|
|
|
318 |
|
| 1708 |
mtynas |
319 |
<linker id="bcpp_linker_release_gui" name="${bcpp_compilername}">
|
|
|
320 |
<!-- Disable incremental linking -->
|
|
|
321 |
<linkerarg value="-Gn"/>
|
|
|
322 |
|
|
|
323 |
<linkerarg value="-L"${bcpp_lib_release}""/>
|
|
|
324 |
|
|
|
325 |
<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
|
|
|
326 |
<fileset dir="${bcpp_lib_release}" includes="${bcpp_gui_libs}" casesensitive="no"/>
|
|
|
327 |
</linker>
|
|
|
328 |
|
| 1704 |
mtynas |
329 |
</project>
|