Subversion Repositories DevTools

Rev

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

Rev 1708 Rev 1710
Line 1... Line 1...
1
<project name="bcpp-task">
1
<project name="ant-bcpp">
2
 
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 
3
	<description>ANT Compile and link task</description>
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
 
4
 
8
			This material is also copyright and may not be reproduced, stored in a
5
	<property name="env" environment="env" value="not used" />
9
			retrieval system or transmitted in any form or by any means in whole or
6
	<property name="release.dir" value="${basedir}/build/release"/>
10
			in part without the express written consent of ERG.
-
 
11
	-->
-
 
12
 
7
 
-
 
8
	<import file="auto.xml" optional="true"/>
-
 
9
	<import file="${ant.project.name}depends.xml"/>
13
	<!-- This is a Windows based compiler package, so include its standard environment -->
10
	<import file="${env.GBE_DPKG}/ant-using/${ant-using}/ant-using.xml" />
-
 
11
 
-
 
12
<!--	<taskdef resource="jats.properties" />
14
	<using name="ant-cpptasks" version="1.4.0"/>
13
	<taskdef resource="antshield.properties"/>-->
-
 
14
 
-
 
15
        <property name="base.dir"	       value="${basedir}"/>	 	 		 
-
 
16
   	<property name="src.dir"               value="${basedir}/src"/>
-
 
17
   	<property name="build.dir"             value="${basedir}/build"/>
-
 
18
   	<property name="vApporigin.dir"	       value="${basedir}/vApp_files"/>
-
 
19
	<property name="package.dir"           value="${build.dir}/pkg"/>
-
 
20
	<property name="vAppdest.dir"	       value="${package.dir}/vApp_files"/>
-
 
21
 
-
 
22
	<usingall/>
-
 
23
 
-
 
24
	<target name="run_tests"/>
-
 
25
 
-
 
26
   	<target name="compile"/>
-
 
27
 
-
 
28
	<!--
-
 
29
	  P A C K A G E
-
 
30
	  -->
-
 
31
	<target name="build"
-
 
32
	        depends     = ""
-
 
33
			description="Creates the jar archives.">
-
 
34
 
-
 
35
			<mkdir dir="${package.dir}"/>
-
 
36
			
-
 
37
			
-
 
38
			<copy todir="${package.dir}">
-
 
39
				<fileset dir="${src.dir}" includes="ant-bcpp.xml"/>
-
 
40
			</copy>
-
 
41
			
-
 
42
			<copy todir="${package.dir}">
15
	<using name="ant-windows" version="1.0.0"/>
43
				<fileset dir="${base.dir}" includes="vApp.htm"/>
-
 
44
			</copy>
-
 
45
			
-
 
46
			<copy todir="${vAppdest.dir}">
-
 
47
				<fileset dir="${vApporigin.dir}" includes="vide.jpeg"/>
-
 
48
			</copy>
-
 
49
			
-
 
50
			<copy todir="${vAppdest.dir}">
-
 
51
				<fileset dir="${vApporigin.dir}" includes="vstyle.css"/>
-
 
52
			</copy>
-
 
53
 
-
 
54
			<replace file="${package.dir}/ant-bcpp.xml" token="REPLACE_ANT_CPPTASKS" value="${using.ant-cpptasks.version}"/>
-
 
55
			<replace file="${package.dir}/ant-bcpp.xml" token="REPLACE_ANT_WINDOWS" value="${using.ant-windows.version}"/>
-
 
56
			<replace file="${package.dir}/ant-bcpp.xml" token="REPLACE_BORLAND_BCB" value="${using.borland_bcb.version}"/>
-
 
57
	</target>
-
 
58
 
-
 
59
	<target name        = "make_package"
-
 
60
	        depends     = ""
-
 
61
	        description = "Called during build using the automated build tool">
16
 
62
 
17
	<!-- Include the Borland C++ Builder Compiler/Linker environment from its COTS package -->
-
 
18
	<using name="borland_bcb" version="6.0.11.cots">
-
 
19
		<exclude name="**/debug/*"   if="windows-release"/>
-
 
20
		<exclude name="**/release/*" if="windows-debug"/>
63
		<echo message="AUTO BUILD"/>
21
	</using>
-
 
22
 
64
 
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"/>
65
		<summarise-manifest package="${packagename}" version="${packageversion}"/>
28
 
66
 
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.lib"/>
-
 
33
	<property name="bcpp_dblibs" value="vcldb.lib,dbrtl.lib,bdertl.lib"/>
-
 
34
	<property name="bcpp_rtl" value="rtl.lib,import32.lib"/>
-
 
35
 
-
 
36
	<property name="bcpp_console_libs" value="cw32.lib"/>
-
 
37
	<property name="bcpp_gui_libs" value="cp32mt.lib,vcl.lib,vclx.lib"/>
-
 
38
 
-
 
39
	<property name="bcpp_libraries_debug"	value="${bcpp_common_libs},${bcpp_rtl},${bcpp_dblibs}"/>
-
 
40
	<property name="bcpp_libraries_release"	value="${bcpp_common_libs},${bcpp_rtl},${bcpp_dblibs}"/>
-
 
41
 
-
 
42
	<property name="bcpp_lib_debug" value="${using.borland_bcb.basedir}\lib\debug"/>
-
 
43
	<property name="bcpp_lib_release" value="${using.borland_bcb.basedir}\lib\release"/>
-
 
44
 
-
 
45
	<!-- The particular library paths are dependent upon the Release/Debug status -->
-
 
46
	<if>
-
 
47
		<equals arg1="${debug}" arg2="true"/>
-
 
48
		<then>
-
 
49
			<property name="bcpp_lib" value="${bcpp_lib_debug}"/>
-
 
50
		</then>
-
 
51
		<else>
-
 
52
			<property name="bcpp_lib" value="${bcpp_lib_release}"/>
-
 
53
		</else>
-
 
54
	</if>
-
 
55
 
-
 
56
 
-
 
57
	<!-- Create the Borland Compiler/Linker default configuration location files for Includes & Libraries -->
-
 
58
	<!-- These files are use by the compiler/linker when a dependent file cannot be found in the defined paths -->
-
 
59
	<echo file="${bcpp_bin}/ilink32.cfg">-L"${bcpp_lib}"</echo>
-
 
60
	<echo file="${bcpp_bin}/bcc32.cfg">-I"${bcpp_include}";"${bcpp_vcl_include}" -L"${bcpp_lib}"</echo>
-
 
61
 
-
 
62
	<compiler id="bcpp_compiler_debug_console" name="${bcpp_compilername}">
-
 
63
		<!--  zero length empty class member functions -->
-
 
64
		<compilerarg value="-Vx"/>
-
 
65
		<compilerarg value="-Ve"/>
-
 
66
 
-
 
67
		<!--  Pentium Pro Instructions -->
-
 
68
		<compilerarg value="-6"/>
-
 
69
 
-
 
70
		<!--  Don't suppress compiler banner -->
-
 
71
		<compilerarg value="-q-"/>
-
 
72
 
-
 
73
		<!-- 8 byte data alignment -->
-
 
74
		<compilerarg value="-a8"/>
-
 
75
 
-
 
76
		<!-- Integer Enums -->
-
 
77
		<compilerarg value="-b"/>
-
 
78
 
-
 
79
		<!-- Standard Stack Frames -->
-
 
80
		<compilerarg value="-k"/>
-
 
81
 
-
 
82
		<!-- Standard Calling Convention -->
-
 
83
		<!--compilerarg value="-ps"/-->
-
 
84
 
-
 
85
		<!-- Don't use register variables -->
-
 
86
		<compilerarg value="-r-"/>
-
 
87
 
-
 
88
		
-
 
89
		<!-- Disable all optimizations -->
-
 
90
		<compilerarg value="-Od"/>
-
 
91
 
-
 
92
		<compilerarg value="-DNO_STRICT"/>
-
 
93
		<compilerarg value="-D_DEBUG"/>
-
 
94
 
-
 
95
		<!-- Debug - Line numbers on -->
-
 
96
		<compilerarg value="-y"/>
-
 
97
 
-
 
98
		<!-- Turn on source debugging -->
-
 
99
		<compilerarg value="-v"/>
-
 
100
 
-
 
101
		<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
-
 
102
		<compilerarg value="-vi-"/>
-
 
103
 
-
 
104
		<!--  ignore warnings - Parameter 'parameter' is never used.  -->
-
 
105
		<compilerarg value="-w-par"/>
-
 
106
 
-
 
107
		<!--  ignore warnings - Conversion may lose significant digits  -->
-
 
108
		<compilerarg value="-w-sig"/>
-
 
109
 
-
 
110
		<!--  ignore warnings -  'identifier' declared but never used.  -->
-
 
111
		<compilerarg value="-w-use"/>
-
 
112
 
-
 
113
		<!--  ignore warnings - Unreachable code  -->
-
 
114
		<compilerarg value="-w-rch"/>
-
 
115
 
-
 
116
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
-
 
117
		<compilerarg value="-w-aus"/>
-
 
118
	</compiler>
-
 
119
 
-
 
120
	<compiler id="bcpp_compiler_debug_gui" name="${bcpp_compilername}">
-
 
121
		<!--  zero length empty class member functions -->
-
 
122
		<compilerarg value="-Vx"/>
-
 
123
		<compilerarg value="-Ve"/>
-
 
124
 
-
 
125
		<!--  Pentium Pro Instructions -->
-
 
126
		<compilerarg value="-6"/>
-
 
127
 
-
 
128
		<!--  Don't suppress compiler banner -->
-
 
129
		<compilerarg value="-q-"/>
-
 
130
 
-
 
131
		<!-- 8 byte data alignment -->
-
 
132
		<compilerarg value="-a8"/>
-
 
133
 
-
 
134
		<!-- Integer Enums -->
-
 
135
		<compilerarg value="-b"/>
-
 
136
 
-
 
137
		<!-- Standard Stack Frames -->
-
 
138
		<compilerarg value="-k"/>
-
 
139
 
-
 
140
		<!-- Standard Calling Convention -->
-
 
141
		<!--compilerarg value="-ps"/-->
-
 
142
 
-
 
143
		<!-- Don't use register variables -->
-
 
144
		<compilerarg value="-r-"/>
-
 
145
 
-
 
146
		
-
 
147
		<!-- Disable all optimizations -->
-
 
148
		<compilerarg value="-Od"/>
-
 
149
 
-
 
150
		<compilerarg value="-DNO_STRICT"/>
-
 
151
		<compilerarg value="-D_DEBUG"/>
-
 
152
 
-
 
153
		<!-- Debug - Line numbers on -->
-
 
154
		<compilerarg value="-y"/>
-
 
155
 
-
 
156
		<!-- Turn on source debugging -->
-
 
157
		<compilerarg value="-v"/>
-
 
158
 
-
 
159
		<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
-
 
160
		<compilerarg value="-vi-"/>
-
 
161
 
-
 
162
		<!--  ignore warnings - Parameter 'parameter' is never used.  -->
-
 
163
		<compilerarg value="-w-par"/>
-
 
164
 
-
 
165
		<!--  ignore warnings - Conversion may lose significant digits  -->
-
 
166
		<compilerarg value="-w-sig"/>
-
 
167
 
-
 
168
		<!--  ignore warnings -  'identifier' declared but never used.  -->
-
 
169
		<compilerarg value="-w-use"/>
-
 
170
 
-
 
171
		<!--  ignore warnings - Unreachable code  -->
-
 
172
		<compilerarg value="-w-rch"/>
-
 
173
 
-
 
174
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
-
 
175
		<compilerarg value="-w-aus"/>
-
 
176
	</compiler>
-
 
177
 
-
 
178
 
-
 
179
	<compiler id="bcpp_compiler_release_console" name="${bcpp_compilername}">
-
 
180
		<!--  zero length empty class member functions -->
-
 
181
		<compilerarg value="-Vx"/>
-
 
182
		<compilerarg value="-Ve"/>
-
 
183
 
-
 
184
		<!--  Pentium Pro Instructions -->
-
 
185
		<compilerarg value="-6"/>
-
 
186
 
-
 
187
		<compilerarg value="-Q-"/>
-
 
188
 
-
 
189
		<compilerarg value="-a8"/>
-
 
190
 
-
 
191
		<compilerarg value="-tWM"/>
-
 
192
		
-
 
193
		<!-- Integer Enums -->
-
 
194
		<compilerarg value="-b"/>
-
 
195
 
-
 
196
		<!-- Standard Stack Frames -->
-
 
197
		<compilerarg value="-k"/>
-
 
198
 
-
 
199
		<!-- Don't override Calling Convention, allow project to specify -->
-
 
200
		<!--compilerarg value="-ps"/-->
-
 
201
 
-
 
202
		<!-- Use register variables -->
-
 
203
		<compilerarg value="-r"/>
-
 
204
 
-
 
205
		<compilerarg value="-DNO_STRICT"/>
-
 
206
		
-
 
207
		<compilerarg value="-O2"/>
-
 
208
		<compilerarg value="-v-"/>
-
 
209
 
-
 
210
		<!--  ignore warnings - eg. Unused Parameters  -->
-
 
211
		<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
-
 
212
		<compilerarg value="-vi-"/>
-
 
213
 
-
 
214
		<!--  ignore warnings - Parameter 'parameter' is never used.  -->
-
 
215
		<compilerarg value="-w-par"/>
-
 
216
 
-
 
217
		<!--  ignore warnings - Conversion may lose significant digits  -->
-
 
218
		<compilerarg value="-w-sig"/>
-
 
219
 
-
 
220
		<!--  ignore warnings -  'identifier' declared but never used.  -->
-
 
221
		<compilerarg value="-w-use"/>
-
 
222
 
-
 
223
		<!--  ignore warnings - Unreachable code  -->
-
 
224
		<compilerarg value="-w-rch"/>
-
 
225
 
-
 
226
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
-
 
227
		<compilerarg value="-w-aus"/>
-
 
228
	</compiler>
-
 
229
 
-
 
230
	<compiler id="bcpp_compiler_release_gui" name="${bcpp_compilername}">
-
 
231
		<!--  zero length empty class member functions -->
-
 
232
		<compilerarg value="-Vx"/>
-
 
233
		<compilerarg value="-Ve"/>
-
 
234
 
-
 
235
		<!--  Pentium Pro Instructions -->
-
 
236
		<compilerarg value="-6"/>
-
 
237
 
-
 
238
		<compilerarg value="-Q-"/>
-
 
239
 
-
 
240
		<compilerarg value="-a8"/>
-
 
241
 
-
 
242
		<compilerarg value="-tWM"/>
-
 
243
		
-
 
244
		<!-- Integer Enums -->
-
 
245
		<compilerarg value="-b"/>
-
 
246
 
-
 
247
		<!-- Standard Stack Frames -->
-
 
248
		<compilerarg value="-k"/>
-
 
249
 
-
 
250
		<!-- Don't override Calling Convention, allow project to specify -->
-
 
251
		<!--compilerarg value="-ps"/-->
-
 
252
 
-
 
253
		<!-- Use register variables -->
-
 
254
		<compilerarg value="-r"/>
-
 
255
 
-
 
256
		<compilerarg value="-DNO_STRICT"/>
-
 
257
		
-
 
258
		<compilerarg value="-O2"/>
-
 
259
		<compilerarg value="-v-"/>
-
 
260
 
-
 
261
		<!--  ignore warnings - eg. Unused Parameters  -->
-
 
262
		<!-- Turn on inline expansion (-vi- turns off inline expansion). -->
-
 
263
		<compilerarg value="-vi-"/>
-
 
264
 
-
 
265
		<!--  ignore warnings - Parameter 'parameter' is never used.  -->
-
 
266
		<compilerarg value="-w-par"/>
-
 
267
 
-
 
268
		<!--  ignore warnings - Conversion may lose significant digits  -->
-
 
269
		<compilerarg value="-w-sig"/>
-
 
270
 
-
 
271
		<!--  ignore warnings -  'identifier' declared but never used.  -->
-
 
272
		<compilerarg value="-w-use"/>
-
 
273
 
-
 
274
		<!--  ignore warnings - Unreachable code  -->
-
 
275
		<compilerarg value="-w-rch"/>
-
 
276
 
-
 
277
		<!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
-
 
278
		<compilerarg value="-w-aus"/>
-
 
279
	</compiler>
-
 
280
 
-
 
281
	<!-- Linker rules -->
-
 
282
 
-
 
283
	<linker id="bcpp_linker_debug_console" name="${bcpp_compilername}">
-
 
284
		<!--  Disable incremental linking  -->
-
 
285
		<linkerarg value="-Gn"/>
-
 
286
		<linkerarg value="-x"/>
-
 
287
		<linkerarg value="-aa"/>
-
 
288
 
-
 
289
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
-
 
290
 
-
 
291
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
-
 
292
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_console_libs}" casesensitive="no"/>
-
 
293
	</linker>
67
	</target>
294
 
-
 
295
	<linker id="bcpp_linker_debug_gui" name="${bcpp_compilername}">
-
 
296
		<!--  Disable incremental linking  -->
-
 
297
		<linkerarg value="-Gn"/>
-
 
298
		<linkerarg value="-x"/>
-
 
299
		<linkerarg value="-aa"/>
-
 
300
 
-
 
301
		<linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>
-
 
302
 
-
 
303
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
-
 
304
		<fileset dir="${bcpp_lib_debug}" includes="${bcpp_gui_libs}" casesensitive="no"/>
-
 
305
	</linker>
-
 
306
 
-
 
307
 
-
 
308
 
-
 
309
	<linker id="bcpp_linker_release_console" name="${bcpp_compilername}">
-
 
310
		<!--  Disable incremental linking  -->
-
 
311
		<linkerarg value="-Gn"/>
-
 
312
 
-
 
313
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
-
 
314
 
-
 
315
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
-
 
316
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_console_libs}" casesensitive="no"/>
-
 
317
	</linker>
-
 
318
 
-
 
319
	<linker id="bcpp_linker_release_gui" name="${bcpp_compilername}">
-
 
320
		<!--  Disable incremental linking  -->
-
 
321
		<linkerarg value="-Gn"/>
-
 
322
 
-
 
323
		<linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>
-
 
324
 
-
 
325
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
-
 
326
		<fileset dir="${bcpp_lib_release}" includes="${bcpp_gui_libs}" casesensitive="no"/>
-
 
327
	</linker>
-
 
328
 
68
 
329
</project>
69
</project>