Subversion Repositories DevTools

Rev

Rev 1706 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1704 mtynas 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="1.3.0"/>
15
	<using name="ant-windows" version="1.0.0"/>
16
 
17
	<!-- Include the Borland C++ Builder Compiler/Linker environment from its COTS package -->
18
	<using name="borland_bcb" version="6.0.10.cots">
19
		<exclude name="**/debug/*"   if="windows-release"/>
20
		<exclude name="**/release/*" if="windows-debug"/>
21
	</using>
22
 
23
	<!-- Set up the environment's Binary path, Include and Library paths -->
24
	<property name="bcpp_bin" value="${using.borland_bcb.basedir}/bin"/>
25
	<property name="bcpp_compilername" value="bcc"/>
26
	<property name="bcpp_include" value="${using.borland_bcb.basedir}/include"/>
27
	<property name="bcpp_vcl_include" value="${bcpp_include}/vcl"/>
28
 
29
	<property name="bcpp_include_debug"   value="${bcpp_include},${bcpp_vcl_include}"/>
30
	<property name="bcpp_include_release" value="${bcpp_include},${bcpp_vcl_include}"/>
31
 
32
	<property name="bcpp_common_libs" value="sysinit.obj,Memmgr"/>
33
	<property name="bcpp_dblibs" value="vcldb,dbrtl"/>
34
	<property name="bcpp_rtl" value="rtl,cp32mt"/>
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" name="${bcpp_compilername}">
60
		<!--  zero length empty class member functions -->
61
		<compilerarg value="-Vx"/>
62
		<compilerarg value="-Ve"/>
63
 
64
		<!--  Don't suppress compiler banner -->
65
		<compilerarg value="-q-"/>
66
 
67
		<!-- 8 byte data alignment -->
68
		<compilerarg value="-a8"/>
69
 
70
		<!-- Integer Enums -->
71
		<compilerarg value="-b"/>
72
 
73
		<!-- Standard Stack Frames -->
74
		<compilerarg value="-k"/>
75
 
76
		<!-- Standard Calling Convention -->
77
		<compilerarg value="-ps"/>
78
 
79
		<!-- Don't use register variables -->
80
		<compilerarg value="-r-"/>
81
 
82
 
83
		<!-- Disable all optimizations -->
84
		<compilerarg value="-Od"/>
85
 
86
		<compilerarg value="-DNO_STRICT"/>
87
		<compilerarg value="-D_DEBUG"/>
88
 
89
		<!-- Debug - Line numbers on -->
90
		<compilerarg value="-y"/>
91
 
92
		<!-- Turn on source debugging -->
93
		<compilerarg value="-v"/>
94
 
95
		<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
96
		<compilerarg value="-vi-"/>
97
 
98
		<!--  ignore warnings - Parameter 'parameter' is never used.  -->
99
		<compilerarg value="-w-par"/>
100
 
101
		<!--  ignore warnings - Conversion may lose significant digits  -->
102
		<compilerarg value="-w-sig"/>
103
 
104
		<!--  ignore warnings -  'identifier' declared but never used.  -->
105
		<compilerarg value="-w-use"/>
106
 
107
		<!--  ignore warnings - Unreachable code  -->
108
		<compilerarg value="-w-rch"/>
109
 
110
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
111
		<compilerarg value="-w-aus"/>
112
	</compiler>
113
 
114
	<compiler id="bcpp_compiler_release" name="bcc">
115
		<!--  zero length empty class member functions -->
116
		<compilerarg value="-Vx"/>
117
		<compilerarg value="-Ve"/>
118
 
119
		<compilerarg value="-Q-"/>
120
 
121
		<compilerarg value="-a8"/>
122
 
123
		<compilerarg value="-tWM"/>
124
 
125
		<compilerarg value="-tWM"/>
126
 
127
		<!-- Integer Enums -->
128
		<compilerarg value="-b"/>
129
 
130
		<!-- Standard Stack Frames -->
131
		<compilerarg value="-k"/>
132
 
133
		<!-- Standard Calling Convention -->
134
		<compilerarg value="-ps"/>
135
 
136
		<!-- Use register variables -->
137
		<compilerarg value="-r"/>
138
 
139
		<compilerarg value="-DNO_STRICT"/>
140
 
141
		<compilerarg value="-O2"/>
142
		<compilerarg value="-v-"/>
143
 
144
		<!--  ignore warnings - eg. Unused Parameters  -->
145
		<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
146
		<compilerarg value="-vi-"/>
147
 
148
		<!--  ignore warnings - Parameter 'parameter' is never used.  -->
149
		<compilerarg value="-w-par"/>
150
 
151
		<!--  ignore warnings - Conversion may lose significant digits  -->
152
		<compilerarg value="-w-sig"/>
153
 
154
		<!--  ignore warnings -  'identifier' declared but never used.  -->
155
		<compilerarg value="-w-use"/>
156
 
157
		<!--  ignore warnings - Unreachable code  -->
158
		<compilerarg value="-w-rch"/>
159
 
160
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
161
		<compilerarg value="-w-aus"/>
162
	</compiler>
163
 
164
	<linker id="bcpp_linker_debug" name="${bcpp_compilername}">
165
		<!--  Disable incremental linking  -->
166
		<linkerarg value="-Gn"/>
167
 
168
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
169
 
170
		<fileset dir="${bcpp_lib_debug}" includes="sysinit.obj,Memmgr.lib,rtl.lib" casesensitive="no"/>
171
	</linker>
172
 
173
	<linker id="bcpp_linker_release" name="${bcpp_compilername}">
174
		<!--  Disable incremental linking  -->
175
		<linkerarg value="-Gn"/>
176
 
177
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
178
 
179
		<fileset dir="${bcpp_lib_release}" includes="sysinit.obj,Memmgr.lib,rtl.lib" casesensitive="no"/>
180
	</linker>
181
 
182
</project>