Subversion Repositories DevTools

Rev

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
 
1724 crichaud 26
	<property name="bcpp_include_debug"   value="${bcpp_include}"/>
27
	<property name="bcpp_include_release" value="${bcpp_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
 
1724 crichaud 33
	<property name="bcpp_gui_libs" value="cp32mt.lib,vcl.lib,vclx.lib"/>
34
 
35
	<!-- The console library cw32.lib MUST ALWAYS follow the cp32mt library if used -->
1710 mkiran 36
	<property name="bcpp_console_libs" value="cw32.lib"/>
37
 
38
	<property name="bcpp_libraries_debug"	value="${bcpp_common_libs},${bcpp_rtl},${bcpp_dblibs}"/>
39
	<property name="bcpp_libraries_release"	value="${bcpp_common_libs},${bcpp_rtl},${bcpp_dblibs}"/>
40
 
41
	<property name="bcpp_lib_debug" value="${using.borland_bcb.basedir}\lib\debug"/>
42
	<property name="bcpp_lib_release" value="${using.borland_bcb.basedir}\lib\release"/>
43
 
44
	<!-- The particular library paths are dependent upon the Release/Debug status -->
45
	<if>
46
		<equals arg1="${debug}" arg2="true"/>
47
		<then>
48
			<property name="bcpp_lib" value="${bcpp_lib_debug}"/>
49
		</then>
50
		<else>
51
			<property name="bcpp_lib" value="${bcpp_lib_release}"/>
52
		</else>
53
	</if>
54
 
55
 
56
	<!-- Create the Borland Compiler/Linker default configuration location files for Includes & Libraries -->
57
	<!-- These files are use by the compiler/linker when a dependent file cannot be found in the defined paths -->
58
	<echo file="${bcpp_bin}/ilink32.cfg">-L"${bcpp_lib}"</echo>
59
	<echo file="${bcpp_bin}/bcc32.cfg">-I"${bcpp_include}";"${bcpp_vcl_include}" -L"${bcpp_lib}"</echo>
60
 
61
	<compiler id="bcpp_compiler_debug_console" name="${bcpp_compilername}">
62
		<!--  zero length empty class member functions -->
63
		<compilerarg value="-Vx"/>
64
		<compilerarg value="-Ve"/>
65
 
66
		<!--  Pentium Pro Instructions -->
67
		<compilerarg value="-6"/>
68
 
69
		<!--  Don't suppress compiler banner -->
70
		<compilerarg value="-q-"/>
71
 
72
		<!-- 8 byte data alignment -->
73
		<compilerarg value="-a8"/>
74
 
75
		<!-- Integer Enums -->
76
		<compilerarg value="-b"/>
77
 
78
		<!-- Standard Stack Frames -->
79
		<compilerarg value="-k"/>
80
 
81
		<!-- Standard Calling Convention -->
82
		<!--compilerarg value="-ps"/-->
83
 
84
		<!-- Don't use register variables -->
85
		<compilerarg value="-r-"/>
86
 
1724 crichaud 87
		<!-- Target is Console application -->
88
		<compilerarg value="-tWC"/>
1714 mtanner 89
 
1710 mkiran 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
 
1724 crichaud 105
		<!-- Switch off default "stop after 100 warnings" -->
106
		<compilerarg value="-g0"/> 
107
 
108
		<!--  Initializing 'identifier' with 'identifier'  -->
109
		<compilerarg value="-w-bei"/>
110
 
1710 mkiran 111
		<!--  ignore warnings - Parameter 'parameter' is never used.  -->
112
		<compilerarg value="-w-par"/>
113
 
114
		<!--  ignore warnings - Conversion may lose significant digits  -->
115
		<compilerarg value="-w-sig"/>
116
 
117
		<!--  ignore warnings -  'identifier' declared but never used.  -->
118
		<compilerarg value="-w-use"/>
119
 
120
		<!--  ignore warnings - Unreachable code  -->
121
		<compilerarg value="-w-rch"/>
122
 
123
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
124
		<compilerarg value="-w-aus"/>
125
	</compiler>
126
 
127
	<compiler id="bcpp_compiler_debug_gui" name="${bcpp_compilername}">
128
		<!--  zero length empty class member functions -->
129
		<compilerarg value="-Vx"/>
130
		<compilerarg value="-Ve"/>
131
 
132
		<!--  Pentium Pro Instructions -->
133
		<compilerarg value="-6"/>
134
 
135
		<!--  Don't suppress compiler banner -->
136
		<compilerarg value="-q-"/>
137
 
138
		<!-- 8 byte data alignment -->
139
		<compilerarg value="-a8"/>
140
 
141
		<!-- Integer Enums -->
142
		<compilerarg value="-b"/>
143
 
144
		<!-- Standard Stack Frames -->
145
		<compilerarg value="-k"/>
146
 
147
		<!-- Standard Calling Convention -->
148
		<!--compilerarg value="-ps"/-->
149
 
150
		<!-- Don't use register variables -->
151
		<compilerarg value="-r-"/>
152
 
1714 mtanner 153
 
1724 crichaud 154
		<!-- Target is Windows application -->
155
		<compilerarg value="-tW"/>
156
 
1710 mkiran 157
		<!-- Disable all optimizations -->
158
		<compilerarg value="-Od"/>
159
 
160
		<compilerarg value="-DNO_STRICT"/>
161
		<compilerarg value="-D_DEBUG"/>
162
 
163
		<!-- Debug - Line numbers on -->
164
		<compilerarg value="-y"/>
165
 
166
		<!-- Turn on source debugging -->
167
		<compilerarg value="-v"/>
168
 
169
		<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
170
		<compilerarg value="-vi-"/>
171
 
1724 crichaud 172
		<!-- Switch off default "stop after 100 warnings" -->
173
		<compilerarg value="-g0"/> 
174
 
1710 mkiran 175
		<!--  ignore warnings - Parameter 'parameter' is never used.  -->
176
		<compilerarg value="-w-par"/>
177
 
178
		<!--  ignore warnings - Conversion may lose significant digits  -->
179
		<compilerarg value="-w-sig"/>
180
 
181
		<!--  ignore warnings -  'identifier' declared but never used.  -->
182
		<compilerarg value="-w-use"/>
183
 
184
		<!--  ignore warnings - Unreachable code  -->
185
		<compilerarg value="-w-rch"/>
186
 
187
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
188
		<compilerarg value="-w-aus"/>
189
	</compiler>
190
 
191
 
192
	<compiler id="bcpp_compiler_release_console" name="${bcpp_compilername}">
193
		<!--  zero length empty class member functions -->
194
		<compilerarg value="-Vx"/>
195
		<compilerarg value="-Ve"/>
196
 
197
		<!--  Pentium Pro Instructions -->
198
		<compilerarg value="-6"/>
199
 
200
		<compilerarg value="-Q-"/>
201
 
202
		<compilerarg value="-a8"/>
203
 
204
		<compilerarg value="-tWM"/>
1714 mtanner 205
 
1710 mkiran 206
		<!-- Integer Enums -->
207
		<compilerarg value="-b"/>
208
 
209
		<!-- Standard Stack Frames -->
210
		<compilerarg value="-k"/>
211
 
212
		<!-- Don't override Calling Convention, allow project to specify -->
213
		<!--compilerarg value="-ps"/-->
214
 
215
		<!-- Use register variables -->
216
		<compilerarg value="-r"/>
217
 
218
		<compilerarg value="-DNO_STRICT"/>
1714 mtanner 219
 
1724 crichaud 220
		<!-- Target is Console application -->
221
		<compilerarg value="-tWC"/>
222
 
223
		<compilerarg value="-Od"/>
1710 mkiran 224
		<compilerarg value="-v-"/>
225
 
226
		<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
227
		<compilerarg value="-vi-"/>
228
 
1724 crichaud 229
		<!-- Switch off default "stop after 100 warnings" -->
230
		<compilerarg value="-g0"/> 
231
 
1710 mkiran 232
		<!--  ignore warnings - Parameter 'parameter' is never used.  -->
233
		<compilerarg value="-w-par"/>
234
 
235
		<!--  ignore warnings - Conversion may lose significant digits  -->
236
		<compilerarg value="-w-sig"/>
237
 
238
		<!--  ignore warnings -  'identifier' declared but never used.  -->
239
		<compilerarg value="-w-use"/>
240
 
241
		<!--  ignore warnings - Unreachable code  -->
242
		<compilerarg value="-w-rch"/>
243
 
244
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
245
		<compilerarg value="-w-aus"/>
246
	</compiler>
247
 
248
	<compiler id="bcpp_compiler_release_gui" name="${bcpp_compilername}">
249
		<!--  zero length empty class member functions -->
250
		<compilerarg value="-Vx"/>
251
		<compilerarg value="-Ve"/>
252
 
253
		<!--  Pentium Pro Instructions -->
254
		<compilerarg value="-6"/>
255
 
256
		<compilerarg value="-Q-"/>
257
 
258
		<compilerarg value="-a8"/>
259
 
260
		<compilerarg value="-tWM"/>
1714 mtanner 261
 
1710 mkiran 262
		<!-- Integer Enums -->
263
		<compilerarg value="-b"/>
264
 
265
		<!-- Standard Stack Frames -->
266
		<compilerarg value="-k"/>
267
 
268
		<!-- Don't override Calling Convention, allow project to specify -->
269
		<!--compilerarg value="-ps"/-->
270
 
271
		<!-- Use register variables -->
272
		<compilerarg value="-r"/>
273
 
274
		<compilerarg value="-DNO_STRICT"/>
1714 mtanner 275
 
1724 crichaud 276
		<!-- Target is Windows application -->
277
		<compilerarg value="-tW"/>
278
 
279
		<compilerarg value="-Od"/>
1710 mkiran 280
		<compilerarg value="-v-"/>
281
 
282
		<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
283
		<compilerarg value="-vi-"/>
284
 
1724 crichaud 285
		<!-- Switch off default "stop after 100 warnings" -->
286
		<compilerarg value="-g0"/> 
287
 
1710 mkiran 288
		<!--  ignore warnings - Parameter 'parameter' is never used.  -->
289
		<compilerarg value="-w-par"/>
290
 
291
		<!--  ignore warnings - Conversion may lose significant digits  -->
292
		<compilerarg value="-w-sig"/>
293
 
294
		<!--  ignore warnings -  'identifier' declared but never used.  -->
295
		<compilerarg value="-w-use"/>
296
 
297
		<!--  ignore warnings - Unreachable code  -->
298
		<compilerarg value="-w-rch"/>
299
 
300
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
301
		<compilerarg value="-w-aus"/>
302
	</compiler>
303
 
304
	<!-- Linker rules -->
1720 crichaud 305
 
306
	<linker id="bcpp_linker_none" name="${bcpp_compilername}" path="${bcpp_bin}">
307
	</linker>
308
 
309
	<linker id="bcpp_linker_debug_console_vcl" name="${bcpp_compilername}" path="${bcpp_bin}">
310
		<!--  Disable incremental linking  -->
311
		<linkerarg value="-Gn"/>
312
		<linkerarg value="-x"/>
1724 crichaud 313
 
314
		<!--  Win32 Console application  -->
315
		<linkerarg value="-ap"/>
1710 mkiran 316
 
1720 crichaud 317
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
318
 
319
 
320
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_gui_libs}" casesensitive="no"/>
321
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
322
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_console_libs}" casesensitive="no"/>
323
	</linker>
324
 
325
	<linker id="bcpp_linker_release_console_vcl" name="${bcpp_compilername}" path="${bcpp_bin}">
326
		<!--  Disable incremental linking  -->
327
		<linkerarg value="-Gn"/>
1724 crichaud 328
 
329
		<!--  Win32 Console application  -->
330
		<linkerarg value="-ap"/>
1720 crichaud 331
 
332
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
1724 crichaud 333
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_gui_libs}" casesensitive="no"/>
1720 crichaud 334
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
335
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_console_libs}" casesensitive="no"/>
1724 crichaud 336
 
1720 crichaud 337
 
338
	</linker>
339
 
1716 crichaud 340
	<linker id="bcpp_linker_debug_console" name="${bcpp_compilername}" path="${bcpp_bin}">
1710 mkiran 341
		<!--  Disable incremental linking  -->
342
		<linkerarg value="-Gn"/>
343
		<linkerarg value="-x"/>
1724 crichaud 344
 
345
		<!--  Win32 Console application  -->
346
		<linkerarg value="-ap"/>
1710 mkiran 347
 
1724 crichaud 348
 
1710 mkiran 349
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
350
 
351
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
352
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_console_libs}" casesensitive="no"/>
353
	</linker>
354
 
1716 crichaud 355
	<linker id="bcpp_linker_debug_gui" name="${bcpp_compilername}" path="${bcpp_bin}">
1710 mkiran 356
		<!--  Disable incremental linking  -->
357
		<linkerarg value="-Gn"/>
358
		<linkerarg value="-x"/>
1724 crichaud 359
 
360
		<!--  Win32 Windows application  -->
1710 mkiran 361
		<linkerarg value="-aa"/>
362
 
363
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
364
 
1724 crichaud 365
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_gui_libs}" casesensitive="no"/>
1710 mkiran 366
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
367
	</linker>
368
 
369
 
370
 
1716 crichaud 371
	<linker id="bcpp_linker_release_console" name="${bcpp_compilername}" path="${bcpp_bin}">
1710 mkiran 372
		<!--  Disable incremental linking  -->
373
		<linkerarg value="-Gn"/>
1724 crichaud 374
 
375
		<!--  Win32 Console application  -->
376
		<linkerarg value="-ap"/>
1710 mkiran 377
 
1724 crichaud 378
 
1710 mkiran 379
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
380
 
381
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
382
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_console_libs}" casesensitive="no"/>
383
	</linker>
384
 
1716 crichaud 385
	<linker id="bcpp_linker_release_gui" name="${bcpp_compilername}" path="${bcpp_bin}">
1710 mkiran 386
		<!--  Disable incremental linking  -->
387
		<linkerarg value="-Gn"/>
1724 crichaud 388
 
389
		<!--  Win32 Windows application  -->
390
		<linkerarg value="-aa"/>
1710 mkiran 391
 
392
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
393
 
1724 crichaud 394
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_gui_libs}" casesensitive="no"/>
1710 mkiran 395
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
396
	</linker>
397
 
398
</project>