Subversion Repositories DevTools

Rev

Rev 1718 | Rev 1722 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
 
29
	<property name="bcpp_include_dimkumware_true" value=""/>
30
	<property name="bcpp_include_dimkumware_false" value=""/>
31
 
1720 crichaud 32
	<property name="bcpp_common_libs" value="sysinit.obj,Memmgr.lib"/>
1716 crichaud 33
	<property name="bcpp_dblibs" value="adortl.lib,dbexpress.lib,vcldb.lib,dbrtl.lib,bdertl.lib"/>
1710 mkiran 34
	<property name="bcpp_rtl" value="rtl.lib,import32.lib"/>
35
 
36
	<property name="bcpp_console_libs" value="cw32.lib"/>
1720 crichaud 37
	<property name="bcpp_gui_libs" value="cp32mt.lib,vcl.lib,vclx.lib"/>
1710 mkiran 38
 
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
 
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
 
62
	<compiler id="bcpp_compiler_debug_console" name="${bcpp_compilername}">
63
		<!--  zero length empty class member functions -->
64
		<compilerarg value="-Vx"/>
65
		<compilerarg value="-Ve"/>
66
 
67
		<!--  Pentium Pro Instructions -->
68
		<compilerarg value="-6"/>
69
 
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 -->
83
		<!--compilerarg value="-ps"/-->
84
 
85
		<!-- Don't use register variables -->
86
		<compilerarg value="-r-"/>
87
 
1714 mtanner 88
 
1710 mkiran 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
 
120
	<compiler id="bcpp_compiler_debug_gui" name="${bcpp_compilername}">
121
		<!--  zero length empty class member functions -->
122
		<compilerarg value="-Vx"/>
123
		<compilerarg value="-Ve"/>
124
 
125
		<!--  Pentium Pro Instructions -->
126
		<compilerarg value="-6"/>
127
 
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
 
1714 mtanner 146
 
1710 mkiran 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
 
187
		<compilerarg value="-Q-"/>
188
 
189
		<compilerarg value="-a8"/>
190
 
191
		<compilerarg value="-tWM"/>
1714 mtanner 192
 
1710 mkiran 193
		<!-- Integer Enums -->
194
		<compilerarg value="-b"/>
195
 
196
		<!-- Standard Stack Frames -->
197
		<compilerarg value="-k"/>
198
 
199
		<!-- Don't override Calling Convention, allow project to specify -->
200
		<!--compilerarg value="-ps"/-->
201
 
202
		<!-- Use register variables -->
203
		<compilerarg value="-r"/>
204
 
205
		<compilerarg value="-DNO_STRICT"/>
1714 mtanner 206
 
1710 mkiran 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
 
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"/>
1714 mtanner 243
 
1710 mkiran 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"/>
1714 mtanner 257
 
1710 mkiran 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 -->
1720 crichaud 282
 
283
	<linker id="bcpp_linker_none" name="${bcpp_compilername}" path="${bcpp_bin}">
284
	</linker>
285
 
286
	<linker id="bcpp_linker_debug_console_vcl" name="${bcpp_compilername}" path="${bcpp_bin}">
287
		<!--  Disable incremental linking  -->
288
		<linkerarg value="-Gn"/>
289
		<linkerarg value="-x"/>
290
		<linkerarg value="-aa"/>
1710 mkiran 291
 
1720 crichaud 292
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
293
 
294
 
295
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_gui_libs}" casesensitive="no"/>
296
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
297
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_console_libs}" casesensitive="no"/>
298
	</linker>
299
 
300
	<linker id="bcpp_linker_release_console_vcl" name="${bcpp_compilername}" path="${bcpp_bin}">
301
		<!--  Disable incremental linking  -->
302
		<linkerarg value="-Gn"/>
303
 
304
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
305
 
306
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
307
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_console_libs}" casesensitive="no"/>
308
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_gui_libs}" casesensitive="no"/>
309
 
310
	</linker>
311
 
1716 crichaud 312
	<linker id="bcpp_linker_debug_console" name="${bcpp_compilername}" path="${bcpp_bin}">
1710 mkiran 313
		<!--  Disable incremental linking  -->
314
		<linkerarg value="-Gn"/>
315
		<linkerarg value="-x"/>
316
		<linkerarg value="-aa"/>
317
 
318
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
319
 
320
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
321
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_console_libs}" casesensitive="no"/>
322
	</linker>
323
 
1716 crichaud 324
	<linker id="bcpp_linker_debug_gui" name="${bcpp_compilername}" path="${bcpp_bin}">
1710 mkiran 325
		<!--  Disable incremental linking  -->
326
		<linkerarg value="-Gn"/>
327
		<linkerarg value="-x"/>
328
		<linkerarg value="-aa"/>
329
 
330
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
331
 
332
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
333
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_gui_libs}" casesensitive="no"/>
334
	</linker>
335
 
336
 
337
 
1716 crichaud 338
	<linker id="bcpp_linker_release_console" name="${bcpp_compilername}" path="${bcpp_bin}">
1710 mkiran 339
		<!--  Disable incremental linking  -->
340
		<linkerarg value="-Gn"/>
341
 
342
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
343
 
344
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
345
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_console_libs}" casesensitive="no"/>
346
	</linker>
347
 
1716 crichaud 348
	<linker id="bcpp_linker_release_gui" name="${bcpp_compilername}" path="${bcpp_bin}">
1710 mkiran 349
		<!--  Disable incremental linking  -->
350
		<linkerarg value="-Gn"/>
351
 
352
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
353
 
354
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
355
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_gui_libs}" casesensitive="no"/>
356
	</linker>
357
 
358
</project>