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