Subversion Repositories DevTools

Rev

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