Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2253 bivey 1
<project name="TxnTestManager" default="build" basedir=".">
2243 bivey 2
 
2253 bivey 3
	<property name="env" environment="env" value="not used" />
4
	<property name="release.dir" value="${basedir}/build/release"/>
2243 bivey 5
 
2253 bivey 6
	<import file="auto.xml" optional="true"/>
7
	<import file="${ant.project.name}depends.xml"/>
8
	<import file="${env.GBE_DPKG}/ant-using/${ant-using}/ant-using.xml" />
9
 
10
	<usingall/>
11
 
12
	<property name="build"					value="${basedir}/build"/>
13
	<property name="src"					value="${basedir}/src"/>
14
	<property name="objdir"					value="${build}/obj"/>
15
	<property name="objbindir"				value="${build}/obj/bin.win32"/>
16
	<property name="pkgbindir"				value="${build}/pkg/bin.win32"/>
17
 
18
	<patternset id="txntestmanager_fileset">
19
  		<include name="*.cpp" if="windows"/>
20
		<include name="auto.res" if="windows"/>
21
	</patternset>
22
 
23
	<defineset id="txntestmanager_defineset">
24
		<define name="DEBUG"/>
25
		<define name="WIN32"/>
26
	</defineset>
27
 
28
	<target name="TxnTestManager">
29
 
30
		<copy todir="${objbindir}" preservelastmodified="true" >
31
			<fileset dir="${src}" includes="*.res,*.dfm" casesensitive="no"/>
32
		</copy>
33
		<copy todir="${objbindir}" preservelastmodified="true" >
34
			<fileset dir="${tmssoftware_lib}" includes="*.res,*.dcr,*.dfm" casesensitive="no"/>
35
		</copy>
36
		<copy todir="${objbindir}" preservelastmodified="true" >
37
			<fileset dir="${topgrid_lib}" includes="*.res,*.dcr,*.dfm" casesensitive="no"/>
38
		</copy>
39
 
40
		<echo
41
			file="${basedir}/src/auto.rc" append="false">
42
			MAINICON ICON IMPURE DISCARDABLE "erg.ico"${line.separator}
43
			1 VERSIONINFO${line.separator}
44
			FILEVERSION 2,2,3,98${line.separator}
45
			PRODUCTVERSION 2,2,3,98${line.separator}
46
			BEGIN${line.separator}
47
			BLOCK "StringFileInfo"${line.separator}
48
			BEGIN${line.separator}
49
			BLOCK "0C0904E4"${line.separator}
50
			BEGIN${line.separator}
51
			VALUE "CompanyName", "ERG Group\0"${line.separator}
52
			VALUE "FileDescription", "Transaction Test Manager\0"${line.separator}
53
			VALUE "FileVersion", "2.2.4000.cr\0"${line.separator}
54
			VALUE "InternalName", "TxnTestManager\0"${line.separator}
55
			VALUE "LegalCopyright", "This material is confidential to ERG and may not be disclosed in whole or in part to any third party nor used in any manner whatsoever other than for the purposes expressly consented to by ERG in writing.  This material is copyright and may not be reproduced, stored in a retrieval system or transmitted in any form or by any means in whole or in part without the express written consent of ERG.\0"${line.separator}
56
			VALUE "LegalTrademarks", "Copyright © ERG 2001-2005\0"${line.separator}
57
			VALUE "OriginalFilename", "TxnTestManager\0"${line.separator}
58
			VALUE "ProductName", "Transaction Test Manager\0"${line.separator}
59
			VALUE "ProductVersion", "2.2.4000.cr\0"${line.separator}
60
			END${line.separator}
61
			END${line.separator}
62
			BLOCK "VarFileInfo"${line.separator}
63
			BEGIN${line.separator}
64
			VALUE "Translation", 0xc09, 1252${line.separator}
65
			END${line.separator}
66
			END${line.separator}
67
		</echo>
68
 
69
		<exec executable="brc32" dir="${bcpp_bin}" vmlauncher="false">
70
			<arg line="-r -fo${basedir}/src/auto.res ${basedir}/src/auto.rc"/>
71
		</exec>
72
 
73
		<cppcompile name="${ant.project.name}" targetname="txntestmanager" version="${packageversion}"
74
					compiler="bcpp" buildtype="debug" outtype="executable" subsystem="gui" pkgdir="${objdir}">
75
			<defineset refid="txntestmanager_defineset"/>
76
 
77
			<compilerarg value="-w-bei"/>
78
			<compilerarg value="-pc"/>
79
			<compilerarg value="-tW"/>
80
			<compilerarg value="-g0"/> <!-- Switch off default "stop after 100 warnings" -->
81
 
82
			<includepath path="${tmssoftware_include}"/>
83
			<includepath path="${topgrid_include}"/>
84
			<includepath path="${using.InfraBase.basedir}/include"/>
85
			<includepath path="${using.XMLSchema_Interfaces.basedir}/include"/>
86
			<includepath path="${using.XmlSchemaWrapperInterface.basedir}/include"/>
87
 
88
			<fileset dir="src" casesensitive="no">
89
				<patternset refid="txntestmanager_fileset"/>
90
			</fileset>
91
 
92
			<libset dir="${tmssoftware_lib}" libs="${tmssoftware_libraries}"/>
93
			<libset dir="${topgrid_lib}"	 libs="${topgrid_libraries}"/>
94
 
95
			<fileset dir="${objbindir}" casesensitive="no">
96
				<include name="dataviewer.res" if="windows"/>
97
			</fileset>
98
 
99
		</cppcompile>
100
 
101
		<delete>
102
			<fileset dir="${objbindir}" includes="*.dfm,*.dcr,*.res" casesensitive="no"/>
103
		</delete>
104
	</target>
105
 
106
	<target name="run_tests"/>
107
 
108
	<target name="build" depends="TxnTestManager"/>
109
 
110
</project>