| 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 -->
|
| 1706 |
mtynas |
14 |
<using name="ant-cpptasks" version="1.4.0"/>
|
| 1704 |
mtynas |
15 |
<using name="ant-windows" version="1.0.0"/>
|
|
|
16 |
|
|
|
17 |
<!-- Include the Borland C++ Builder Compiler/Linker environment from its COTS package -->
|
| 1706 |
mtynas |
18 |
<using name="borland_bcb" version="6.0.11.cots">
|
| 1704 |
mtynas |
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 |
|
| 1706 |
mtynas |
32 |
<property name="bcpp_common_libs" value="sysinit.obj,Memmgr.lib"/>
|
|
|
33 |
<property name="bcpp_dblibs" value="vcldb.lib,dbrtl.lib,bdertl.lib"/>
|
|
|
34 |
<property name="bcpp_rtl" value="rtl.lib,cp32mt.lib,import32.lib"/>
|
|
|
35 |
<property name="bcpp_visual_libs" value="vcl.lib,vclx.lib"/>
|
| 1704 |
mtynas |
36 |
|
| 1706 |
mtynas |
37 |
<property name="bcpp_libraries_debug" value="${bcpp_common_libs},${bcpp_rtl},${bcpp_visual_libs},${bcpp_dblibs}"/>
|
|
|
38 |
<property name="bcpp_libraries_release" value="${bcpp_common_libs},${bcpp_rtl},${bcpp_visual_libs},${bcpp_dblibs}"/>
|
| 1704 |
mtynas |
39 |
|
|
|
40 |
<property name="bcpp_lib_debug" value="${using.borland_bcb.basedir}\lib\debug"/>
|
|
|
41 |
<property name="bcpp_lib_release" value="${using.borland_bcb.basedir}\lib\release"/>
|
|
|
42 |
|
|
|
43 |
<!-- The particular library paths are dependent upon the Release/Debug status -->
|
|
|
44 |
<if>
|
|
|
45 |
<equals arg1="${debug}" arg2="true"/>
|
|
|
46 |
<then>
|
|
|
47 |
<property name="bcpp_lib" value="${bcpp_lib_debug}"/>
|
|
|
48 |
</then>
|
|
|
49 |
<else>
|
|
|
50 |
<property name="bcpp_lib" value="${bcpp_lib_release}"/>
|
|
|
51 |
</else>
|
|
|
52 |
</if>
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
<!-- Create the Borland Compiler/Linker default configuration location files for Includes & Libraries -->
|
|
|
56 |
<!-- These files are use by the compiler/linker when a dependent file cannot be found in the defined paths -->
|
|
|
57 |
<echo file="${bcpp_bin}/ilink32.cfg">-L"${bcpp_lib}"</echo>
|
|
|
58 |
<echo file="${bcpp_bin}/bcc32.cfg">-I"${bcpp_include}";"${bcpp_vcl_include}" -L"${bcpp_lib}"</echo>
|
|
|
59 |
|
|
|
60 |
<compiler id="bcpp_compiler_debug" name="${bcpp_compilername}">
|
|
|
61 |
<!-- zero length empty class member functions -->
|
|
|
62 |
<compilerarg value="-Vx"/>
|
|
|
63 |
<compilerarg value="-Ve"/>
|
|
|
64 |
|
| 1706 |
mtynas |
65 |
<!-- Pentium Pro Instructions -->
|
|
|
66 |
<compilerarg value="-6"/>
|
|
|
67 |
|
| 1704 |
mtynas |
68 |
<!-- Don't suppress compiler banner -->
|
|
|
69 |
<compilerarg value="-q-"/>
|
|
|
70 |
|
|
|
71 |
<!-- 8 byte data alignment -->
|
|
|
72 |
<compilerarg value="-a8"/>
|
|
|
73 |
|
|
|
74 |
<!-- Integer Enums -->
|
|
|
75 |
<compilerarg value="-b"/>
|
|
|
76 |
|
|
|
77 |
<!-- Standard Stack Frames -->
|
|
|
78 |
<compilerarg value="-k"/>
|
|
|
79 |
|
|
|
80 |
<!-- Standard Calling Convention -->
|
| 1706 |
mtynas |
81 |
<!--compilerarg value="-ps"/-->
|
| 1704 |
mtynas |
82 |
|
|
|
83 |
<!-- Don't use register variables -->
|
|
|
84 |
<compilerarg value="-r-"/>
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
<!-- Disable all optimizations -->
|
|
|
88 |
<compilerarg value="-Od"/>
|
|
|
89 |
|
|
|
90 |
<compilerarg value="-DNO_STRICT"/>
|
|
|
91 |
<compilerarg value="-D_DEBUG"/>
|
|
|
92 |
|
|
|
93 |
<!-- Debug - Line numbers on -->
|
|
|
94 |
<compilerarg value="-y"/>
|
|
|
95 |
|
|
|
96 |
<!-- Turn on source debugging -->
|
|
|
97 |
<compilerarg value="-v"/>
|
|
|
98 |
|
|
|
99 |
<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
|
|
|
100 |
<compilerarg value="-vi-"/>
|
|
|
101 |
|
|
|
102 |
<!-- ignore warnings - Parameter 'parameter' is never used. -->
|
|
|
103 |
<compilerarg value="-w-par"/>
|
|
|
104 |
|
|
|
105 |
<!-- ignore warnings - Conversion may lose significant digits -->
|
|
|
106 |
<compilerarg value="-w-sig"/>
|
|
|
107 |
|
|
|
108 |
<!-- ignore warnings - 'identifier' declared but never used. -->
|
|
|
109 |
<compilerarg value="-w-use"/>
|
|
|
110 |
|
|
|
111 |
<!-- ignore warnings - Unreachable code -->
|
|
|
112 |
<compilerarg value="-w-rch"/>
|
|
|
113 |
|
|
|
114 |
<!-- ignore warnings - 'identifier' is assigned a value that is never used -->
|
|
|
115 |
<compilerarg value="-w-aus"/>
|
|
|
116 |
</compiler>
|
|
|
117 |
|
|
|
118 |
<compiler id="bcpp_compiler_release" name="bcc">
|
|
|
119 |
<!-- zero length empty class member functions -->
|
|
|
120 |
<compilerarg value="-Vx"/>
|
|
|
121 |
<compilerarg value="-Ve"/>
|
|
|
122 |
|
| 1706 |
mtynas |
123 |
<!-- Pentium Pro Instructions -->
|
|
|
124 |
<compilerarg value="-6"/>
|
|
|
125 |
|
| 1704 |
mtynas |
126 |
<compilerarg value="-Q-"/>
|
|
|
127 |
|
|
|
128 |
<compilerarg value="-a8"/>
|
|
|
129 |
|
|
|
130 |
<compilerarg value="-tWM"/>
|
|
|
131 |
|
|
|
132 |
<!-- Integer Enums -->
|
|
|
133 |
<compilerarg value="-b"/>
|
|
|
134 |
|
|
|
135 |
<!-- Standard Stack Frames -->
|
|
|
136 |
<compilerarg value="-k"/>
|
|
|
137 |
|
| 1706 |
mtynas |
138 |
<!-- Don't override Calling Convention, allow project to specify -->
|
|
|
139 |
<!--compilerarg value="-ps"/-->
|
| 1704 |
mtynas |
140 |
|
|
|
141 |
<!-- Use register variables -->
|
|
|
142 |
<compilerarg value="-r"/>
|
|
|
143 |
|
|
|
144 |
<compilerarg value="-DNO_STRICT"/>
|
|
|
145 |
|
|
|
146 |
<compilerarg value="-O2"/>
|
|
|
147 |
<compilerarg value="-v-"/>
|
|
|
148 |
|
|
|
149 |
<!-- ignore warnings - eg. Unused Parameters -->
|
|
|
150 |
<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
|
|
|
151 |
<compilerarg value="-vi-"/>
|
|
|
152 |
|
|
|
153 |
<!-- ignore warnings - Parameter 'parameter' is never used. -->
|
|
|
154 |
<compilerarg value="-w-par"/>
|
|
|
155 |
|
|
|
156 |
<!-- ignore warnings - Conversion may lose significant digits -->
|
|
|
157 |
<compilerarg value="-w-sig"/>
|
|
|
158 |
|
|
|
159 |
<!-- ignore warnings - 'identifier' declared but never used. -->
|
|
|
160 |
<compilerarg value="-w-use"/>
|
|
|
161 |
|
|
|
162 |
<!-- ignore warnings - Unreachable code -->
|
|
|
163 |
<compilerarg value="-w-rch"/>
|
|
|
164 |
|
|
|
165 |
<!-- ignore warnings - 'identifier' is assigned a value that is never used -->
|
|
|
166 |
<compilerarg value="-w-aus"/>
|
|
|
167 |
</compiler>
|
|
|
168 |
|
|
|
169 |
<linker id="bcpp_linker_debug" name="${bcpp_compilername}">
|
|
|
170 |
<!-- Disable incremental linking -->
|
|
|
171 |
<linkerarg value="-Gn"/>
|
| 1706 |
mtynas |
172 |
<linkerarg value="-x"/>
|
|
|
173 |
<linkerarg value="-aa"/>
|
| 1704 |
mtynas |
174 |
|
|
|
175 |
<linkerarg value="-L"${bcpp_lib_debug}""/>
|
|
|
176 |
|
| 1706 |
mtynas |
177 |
<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
|
| 1704 |
mtynas |
178 |
</linker>
|
|
|
179 |
|
|
|
180 |
<linker id="bcpp_linker_release" name="${bcpp_compilername}">
|
|
|
181 |
<!-- Disable incremental linking -->
|
|
|
182 |
<linkerarg value="-Gn"/>
|
|
|
183 |
|
|
|
184 |
<linkerarg value="-L"${bcpp_lib_release}""/>
|
|
|
185 |
|
| 1706 |
mtynas |
186 |
<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
|
| 1704 |
mtynas |
187 |
</linker>
|
|
|
188 |
|
|
|
189 |
</project>
|