Subversion Repositories DevTools

Rev

Rev 1710 | Rev 1716 | 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}"/>
28
 
29
	<property name="bcpp_common_libs" value="sysinit.obj,Memmgr.lib"/>
30
	<property name="bcpp_dblibs" value="vcldb.lib,dbrtl.lib,bdertl.lib"/>
31
	<property name="bcpp_rtl" value="rtl.lib,import32.lib"/>
32
 
33
	<property name="bcpp_console_libs" value="cw32.lib"/>
34
	<property name="bcpp_gui_libs" value="cp32mt.lib,vcl.lib,vclx.lib"/>
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 -->
279
 
280
	<linker id="bcpp_linker_debug_console" name="${bcpp_compilername}">
281
		<!--  Disable incremental linking  -->
282
		<linkerarg value="-Gn"/>
283
		<linkerarg value="-x"/>
284
		<linkerarg value="-aa"/>
285
 
286
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
287
 
288
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
289
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_console_libs}" casesensitive="no"/>
290
	</linker>
291
 
292
	<linker id="bcpp_linker_debug_gui" name="${bcpp_compilername}">
293
		<!--  Disable incremental linking  -->
294
		<linkerarg value="-Gn"/>
295
		<linkerarg value="-x"/>
296
		<linkerarg value="-aa"/>
297
 
298
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
299
 
300
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
301
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_gui_libs}" casesensitive="no"/>
302
	</linker>
303
 
304
 
305
 
306
	<linker id="bcpp_linker_release_console" name="${bcpp_compilername}">
307
		<!--  Disable incremental linking  -->
308
		<linkerarg value="-Gn"/>
309
 
310
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
311
 
312
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
313
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_console_libs}" casesensitive="no"/>
314
	</linker>
315
 
316
	<linker id="bcpp_linker_release_gui" name="${bcpp_compilername}">
317
		<!--  Disable incremental linking  -->
318
		<linkerarg value="-Gn"/>
319
 
320
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
321
 
322
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
323
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_gui_libs}" casesensitive="no"/>
324
	</linker>
325
 
326
</project>