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