Subversion Repositories DevTools

Rev

Rev 1724 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1724 Rev 1726
Line 16... Line 16...
16
 
16
 
17
	<!-- Include the Borland C++ Builder Compiler/Linker environment from its COTS package -->
17
	<!-- Include the Borland C++ Builder Compiler/Linker environment from its COTS package -->
18
	<using name="borland_bcb" version="REPLACE_BORLAND_BCB"/>
18
	<using name="borland_bcb" version="REPLACE_BORLAND_BCB"/>
19
 
19
 
20
	<!-- Set up the environment's Binary path, Include and Library paths -->
20
	<!-- Set up the environment's Binary path, Include and Library paths -->
21
	<property name="bcpp_bin" value="${using.borland_bcb.basedir}/bin"/>
21
	<property name="bcpp_bin" value="${using.borland_bcb.basedir}\bin"/>
22
	<property name="bcpp_compilername" value="bcc"/>
22
	<property name="bcpp_compilername" value="bcc"/>
23
	<property name="bcpp_include" value="${using.borland_bcb.basedir}/include"/>
23
	<property name="bcpp_include" value="${using.borland_bcb.basedir}\include"/>
24
	<property name="bcpp_vcl_include" value="${bcpp_include}/vcl"/>
24
	<property name="bcpp_vcl_include" value="${bcpp_include}\vcl"/>
25
 
25
 
26
	<property name="bcpp_include_debug"   value="${bcpp_include}"/>
26
	<property name="bcpp_include_debug"   value="${bcpp_include}"/>
27
	<property name="bcpp_include_release" value="${bcpp_include}"/>
27
	<property name="bcpp_include_release" value="${bcpp_include}"/>
28
	
-
 
29
	<property name="bcpp_common_libs" value="sysinit.obj,Memmgr.lib"/>
28
	<property name="bcpp_common_libs" value="sysinit.obj,Memmgr.lib"/>
30
	<property name="bcpp_dblibs" value="adortl.lib,dbexpress.lib,vcldb.lib,dbrtl.lib,bdertl.lib"/>
-
 
31
	<property name="bcpp_rtl" value="rtl.lib,import32.lib"/>
-
 
32
 
-
 
33
	<property name="bcpp_gui_libs" value="cp32mt.lib,vcl.lib,vclx.lib"/>
-
 
34
	
29
	
35
	<!-- The console library cw32.lib MUST ALWAYS follow the cp32mt library if used -->
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"/>
36
	<property name="bcpp_console_libs" value="cw32.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}"/>
37
 
36
 
38
	<property name="bcpp_libraries_debug"	value="${bcpp_common_libs},${bcpp_rtl},${bcpp_dblibs}"/>
37
	<property name="bcpp_lib_obj" value="${using.borland_bcb.basedir}\lib\obj"/>
39
	<property name="bcpp_libraries_release"	value="${bcpp_common_libs},${bcpp_rtl},${bcpp_dblibs}"/>
-
 
40
 
38
 
41
	<property name="bcpp_lib_debug" value="${using.borland_bcb.basedir}\lib\debug"/>
39
	<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"/>
40
	<property name="bcpp_lib_release" value="${using.borland_bcb.basedir}\lib\release"/>
-
 
41
	
43
 
42
	
44
	<!-- The particular library paths are dependent upon the Release/Debug status -->
43
	<!-- The particular library paths are dependent upon the Release/Debug status -->
45
	<if>
44
	<if>
46
		<equals arg1="${debug}" arg2="true"/>
45
		<equals arg1="${debug}" arg2="true"/>
47
		<then>
46
		<then>
48
			<property name="bcpp_lib" value="${bcpp_lib_debug}"/>
47
			<property name="bcpp_lib" value="${bcpp_lib_debug}"/>
Line 57... Line 56...
57
	<!-- These files are use by the compiler/linker when a dependent file cannot be found in the defined paths -->
56
	<!-- 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>
57
	<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>
58
	<echo file="${bcpp_bin}/bcc32.cfg">-I"${bcpp_include}";"${bcpp_vcl_include}" -L"${bcpp_lib}"</echo>
60
 
59
 
61
	<compiler id="bcpp_compiler_debug_console" name="${bcpp_compilername}">
60
	<compiler id="bcpp_compiler_debug_console" name="${bcpp_compilername}">
-
 
61
		<compilerarg value="-H=${objdir}\cache_debug_console.csm"/>
-
 
62
		<compilerarg value="-Hc"/>
-
 
63
		
62
		<!--  zero length empty class member functions -->
64
		<!--  zero length empty class member functions -->
63
		<compilerarg value="-Vx"/>
65
		<compilerarg value="-Vx"/>
64
		<compilerarg value="-Ve"/>
66
		<compilerarg value="-Ve"/>
65
 
67
 
66
		<!--  Pentium Pro Instructions -->
-
 
67
		<compilerarg value="-6"/>
-
 
68
 
-
 
69
		<!--  Don't suppress compiler banner -->
68
		<!--  Don't suppress compiler banner -->
70
		<compilerarg value="-q-"/>
69
		<compilerarg value="-q-"/>
71
 
70
 
72
		<!-- 8 byte data alignment -->
71
		<!-- 8 byte data alignment -->
73
		<compilerarg value="-a8"/>
72
		<compilerarg value="-a8"/>
Line 76... Line 75...
76
		<compilerarg value="-b"/>
75
		<compilerarg value="-b"/>
77
 
76
 
78
		<!-- Standard Stack Frames -->
77
		<!-- Standard Stack Frames -->
79
		<compilerarg value="-k"/>
78
		<compilerarg value="-k"/>
80
 
79
 
-
 
80
		<!-- **** NOTE: Don't predefine the Calling Convention, let each build define its own **** -->
81
		<!-- Standard Calling Convention -->
81
		<!-- Standard Calling Convention -->
82
		<!--compilerarg value="-ps"/-->
82
		<!--compilerarg value="-ps"/-->
83
 
83
 
84
		<!-- Don't use register variables -->
-
 
85
		<compilerarg value="-r-"/>
-
 
86
 
-
 
87
		<!-- Target is Console application -->
84
		<!-- Target is Console application -->
88
		<compilerarg value="-tWC"/>
85
		<compilerarg value="-tWC"/>
89
 
86
 
90
		<!-- Disable all optimizations -->
87
		<!-- Disable all optimizations -->
91
		<compilerarg value="-Od"/>
88
		<compilerarg value="-Od"/>
Line 123... Line 120...
123
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
120
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
124
		<compilerarg value="-w-aus"/>
121
		<compilerarg value="-w-aus"/>
125
	</compiler>
122
	</compiler>
126
 
123
 
127
	<compiler id="bcpp_compiler_debug_gui" name="${bcpp_compilername}">
124
	<compiler id="bcpp_compiler_debug_gui" name="${bcpp_compilername}">
-
 
125
		<compilerarg value="-H=${objdir}\cache_debug_gui.csm"/>
-
 
126
		<compilerarg value="-Hc"/>
-
 
127
		
128
		<!--  zero length empty class member functions -->
128
		<!--  zero length empty class member functions -->
129
		<compilerarg value="-Vx"/>
129
		<compilerarg value="-Vx"/>
130
		<compilerarg value="-Ve"/>
130
		<compilerarg value="-Ve"/>
131
 
131
 
132
		<!--  Pentium Pro Instructions -->
-
 
133
		<compilerarg value="-6"/>
-
 
134
 
-
 
135
		<!--  Don't suppress compiler banner -->
132
		<!--  Don't suppress compiler banner -->
136
		<compilerarg value="-q-"/>
133
		<compilerarg value="-q-"/>
137
 
134
 
138
		<!-- 8 byte data alignment -->
135
		<!-- 8 byte data alignment -->
139
		<compilerarg value="-a8"/>
136
		<compilerarg value="-a8"/>
Line 142... Line 139...
142
		<compilerarg value="-b"/>
139
		<compilerarg value="-b"/>
143
 
140
 
144
		<!-- Standard Stack Frames -->
141
		<!-- Standard Stack Frames -->
145
		<compilerarg value="-k"/>
142
		<compilerarg value="-k"/>
146
 
143
 
-
 
144
		<!-- **** NOTE: Don't predefine the Calling Convention, let each build define its own **** -->
147
		<!-- Standard Calling Convention -->
145
		<!-- Standard Calling Convention -->
148
		<!--compilerarg value="-ps"/-->
146
		<!--compilerarg value="-ps"/-->
149
 
147
 
150
		<!-- Don't use register variables -->
-
 
151
		<compilerarg value="-r-"/>
-
 
152
 
-
 
153
 
-
 
154
		<!-- Target is Windows application -->
148
		<!-- Target is Windows application -->
155
		<compilerarg value="-tW"/>
149
		<compilerarg value="-tW"/>
156
 
150
 
157
		<!-- Disable all optimizations -->
151
		<!-- Disable all optimizations -->
158
		<compilerarg value="-Od"/>
152
		<compilerarg value="-Od"/>
Line 188... Line 182...
188
		<compilerarg value="-w-aus"/>
182
		<compilerarg value="-w-aus"/>
189
	</compiler>
183
	</compiler>
190
 
184
 
191
 
185
 
192
	<compiler id="bcpp_compiler_release_console" name="${bcpp_compilername}">
186
	<compiler id="bcpp_compiler_release_console" name="${bcpp_compilername}">
-
 
187
		<compilerarg value="-H=${objdir}\cache_release_console.csm"/>
-
 
188
		<compilerarg value="-Hc"/>
-
 
189
		
193
		<!--  zero length empty class member functions -->
190
		<!--  zero length empty class member functions -->
194
		<compilerarg value="-Vx"/>
191
		<compilerarg value="-Vx"/>
195
		<compilerarg value="-Ve"/>
192
		<compilerarg value="-Ve"/>
196
 
193
 
197
		<!--  Pentium Pro Instructions -->
-
 
198
		<compilerarg value="-6"/>
-
 
199
 
-
 
200
		<compilerarg value="-Q-"/>
194
		<compilerarg value="-Q"/>
201
 
195
 
202
		<compilerarg value="-a8"/>
196
		<compilerarg value="-a8"/>
203
 
197
 
204
		<compilerarg value="-tWM"/>
198
		<compilerarg value="-tWM"/>
205
 
199
 
Line 207... Line 201...
207
		<compilerarg value="-b"/>
201
		<compilerarg value="-b"/>
208
 
202
 
209
		<!-- Standard Stack Frames -->
203
		<!-- Standard Stack Frames -->
210
		<compilerarg value="-k"/>
204
		<compilerarg value="-k"/>
211
 
205
 
212
		<!-- Don't override Calling Convention, allow project to specify -->
206
		<!-- **** NOTE: Don't predefine the Calling Convention, let each build define its own **** -->
-
 
207
		<!-- Standard Calling Convention -->
213
		<!--compilerarg value="-ps"/-->
208
		<!--compilerarg value="-ps"/-->
214
 
209
 
215
		<!-- Use register variables -->
-
 
216
		<compilerarg value="-r"/>
-
 
217
 
-
 
218
		<compilerarg value="-DNO_STRICT"/>
210
		<compilerarg value="-DNO_STRICT"/>
219
 
211
 
220
		<!-- Target is Console application -->
212
		<!-- Target is Console application -->
221
		<compilerarg value="-tWC"/>
213
		<compilerarg value="-tWC"/>
222
 
214
 
Line 244... Line 236...
244
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
236
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
245
		<compilerarg value="-w-aus"/>
237
		<compilerarg value="-w-aus"/>
246
	</compiler>
238
	</compiler>
247
 
239
 
248
	<compiler id="bcpp_compiler_release_gui" name="${bcpp_compilername}">
240
	<compiler id="bcpp_compiler_release_gui" name="${bcpp_compilername}">
-
 
241
		<compilerarg value="-H=${objdir}\cache_release_gui.csm"/>
-
 
242
		<compilerarg value="-Hc"/>
-
 
243
		
249
		<!--  zero length empty class member functions -->
244
		<!--  zero length empty class member functions -->
250
		<compilerarg value="-Vx"/>
245
		<compilerarg value="-Vx"/>
251
		<compilerarg value="-Ve"/>
246
		<compilerarg value="-Ve"/>
252
 
247
 
253
		<!--  Pentium Pro Instructions -->
-
 
254
		<compilerarg value="-6"/>
-
 
255
 
-
 
256
		<compilerarg value="-Q-"/>
248
		<compilerarg value="-Q"/>
257
 
249
 
258
		<compilerarg value="-a8"/>
250
		<compilerarg value="-a8"/>
259
 
251
 
260
		<compilerarg value="-tWM"/>
252
		<compilerarg value="-tWM"/>
261
 
253
 
Line 263... Line 255...
263
		<compilerarg value="-b"/>
255
		<compilerarg value="-b"/>
264
 
256
 
265
		<!-- Standard Stack Frames -->
257
		<!-- Standard Stack Frames -->
266
		<compilerarg value="-k"/>
258
		<compilerarg value="-k"/>
267
 
259
 
268
		<!-- Don't override Calling Convention, allow project to specify -->
260
		<!-- **** NOTE: Don't predefine the Calling Convention, let each build define its own **** -->
-
 
261
		<!-- Standard Calling Convention -->
269
		<!--compilerarg value="-ps"/-->
262
		<!--compilerarg value="-ps"/-->
270
 
263
 
271
		<!-- Use register variables -->
-
 
272
		<compilerarg value="-r"/>
-
 
273
 
-
 
274
		<compilerarg value="-DNO_STRICT"/>
264
		<compilerarg value="-DNO_STRICT"/>
275
 
265
 
276
		<!-- Target is Windows application -->
266
		<!-- Target is Windows application -->
277
		<compilerarg value="-tW"/>
267
		<compilerarg value="-tW"/>
278
 
268
 
Line 304... Line 294...
304
	<!-- Linker rules -->
294
	<!-- Linker rules -->
305
	
295
	
306
	<linker id="bcpp_linker_none" name="${bcpp_compilername}" path="${bcpp_bin}">
296
	<linker id="bcpp_linker_none" name="${bcpp_compilername}" path="${bcpp_bin}">
307
	</linker>
297
	</linker>
308
	
298
	
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"/>
-
 
313
		
-
 
314
		<!--  Win32 Console application  -->
-
 
315
		<linkerarg value="-ap"/>
-
 
316
 
-
 
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"/>
-
 
328
		
-
 
329
		<!--  Win32 Console application  -->
-
 
330
		<linkerarg value="-ap"/>
-
 
331
 
-
 
332
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
-
 
333
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_gui_libs}" casesensitive="no"/>
-
 
334
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
-
 
335
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_console_libs}" casesensitive="no"/>
-
 
336
		
-
 
337
	
-
 
338
	</linker>
-
 
339
 
-
 
340
	<linker id="bcpp_linker_debug_console" name="${bcpp_compilername}" path="${bcpp_bin}">
299
	<linker id="bcpp_linker_debug_console" name="${bcpp_compilername}" path="${bcpp_bin}">
341
		<!--  Disable incremental linking  -->
300
		<!--  Disable incremental linking  -->
342
		<linkerarg value="-Gn"/>
301
		<linkerarg value="-Gn"/>
343
		<linkerarg value="-x"/>
302
		<linkerarg value="-x"/>
344
		
303
		
345
		<!--  Win32 Console application  -->
304
		<!--  Win32 Console application  -->
346
		<linkerarg value="-ap"/>
305
		<linkerarg value="-ap"/>
347
 
306
 
348
 
307
 
349
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
308
		<linkerarg value="-L${bcpp_lib_debug};${bcpp_lib_obj}"/>
350
 
309
 
351
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
310
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
352
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_console_libs}" casesensitive="no"/>
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"/>
353
	</linker>
313
	</linker>
354
 
314
 
355
	<linker id="bcpp_linker_debug_gui" name="${bcpp_compilername}" path="${bcpp_bin}">
315
	<linker id="bcpp_linker_debug_gui" name="${bcpp_compilername}" path="${bcpp_bin}">
356
		<!--  Disable incremental linking  -->
316
		<!--  Disable incremental linking  -->
357
		<linkerarg value="-Gn"/>
317
		<linkerarg value="-Gn"/>
358
		<linkerarg value="-x"/>
318
		<linkerarg value="-x"/>
359
		
319
		
360
		<!--  Win32 Windows application  -->
320
		<!--  Win32 Windows application  -->
361
		<linkerarg value="-aa"/>
321
		<linkerarg value="-aa"/>
362
 
322
 
363
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
323
		<linkerarg value="-L${bcpp_lib_debug};${bcpp_lib_obj}"/>
364
 
324
 
365
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_gui_libs}" casesensitive="no"/>
-
 
366
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
325
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
-
 
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"/>
367
	</linker>
328
	</linker>
368
 
329
 
369
 
330
 
370
 
331
 
371
	<linker id="bcpp_linker_release_console" name="${bcpp_compilername}" path="${bcpp_bin}">
332
	<linker id="bcpp_linker_release_console" name="${bcpp_compilername}" path="${bcpp_bin}">
Line 374... Line 335...
374
		
335
		
375
		<!--  Win32 Console application  -->
336
		<!--  Win32 Console application  -->
376
		<linkerarg value="-ap"/>
337
		<linkerarg value="-ap"/>
377
 
338
 
378
 
339
 
379
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
340
		<linkerarg value="-L${bcpp_lib_release};${bcpp_lib_obj}"/>
380
 
341
 
381
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
342
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
382
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_console_libs}" casesensitive="no"/>
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"/>
383
	</linker>
345
	</linker>
384
 
346
 
385
	<linker id="bcpp_linker_release_gui" name="${bcpp_compilername}" path="${bcpp_bin}">
347
	<linker id="bcpp_linker_release_gui" name="${bcpp_compilername}" path="${bcpp_bin}">
-
 
348
	
386
		<!--  Disable incremental linking  -->
349
		<!--  Disable incremental linking  -->
387
		<linkerarg value="-Gn"/>
350
		<linkerarg value="-Gn"/>
388
		
351
		
389
		<!--  Win32 Windows application  -->
-
 
390
		<linkerarg value="-aa"/>
-
 
391
 
352
	
392
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
353
		<linkerarg value="-L${bcpp_lib_release};${bcpp_lib_obj}"/>
393
 
354
 
394
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_gui_libs}" casesensitive="no"/>
-
 
395
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
355
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
-
 
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"/>
396
	</linker>
358
	</linker>
397
 
359
 
398
</project>
360
</project>