Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2245 bivey 1
<project name="TxnTestManager" default="build" basedir=".">
2243 bivey 2
 
2245 bivey 3
    <property name="env" environment="env" value="not used"/>
4
 
5
    <import file="depends.xml"/>
6
    <import file="${env.JATS_HOME}/ant-using/${ant-using}/ant-using.xml"/>
2243 bivey 7
 
2245 bivey 8
    <!--
9
        Important note: This build fails if the default dpkg_archive cache of
10
                        C:\Documents and Settings\<username>\build-repository is
11
                        used (it doesn't like the spaces). You _must_ have the
12
                        environment variable GBE_DPKG set to a path with no spaces.
13
    -->
2243 bivey 14
 
2245 bivey 15
    <using name="ant-bcpp" version="${ant-bcpp}"/>    
16
    <using name="dce" version="${dce}"/>
17
    <using name="InfraBase" version="${InfraBase}"/>
18
    <using name="SecurityWrapper" version="${SecurityWrapper}"/>
19
    <using name="TMSSoftware" version="${TMSSoftware}"/>
20
    <using name="TopGrid" version="${TopGrid}"/>
21
    <using name="XmlSchemaWrapperInterface" version="${XmlSchemaWrapperInterface}"/>
22
    <using name="XMLSchema_Interfaces" version="${XMLSchema_Interfaces}"/>
2243 bivey 23
 
2245 bivey 24
    <target name="build">
2243 bivey 25
 
2245 bivey 26
        <!-- Copy required files to source directory -->
27
        <copy todir="${basedir}/src">
28
            <fileset dir="${using.TopGrid.basedir}/lib.win32">
29
                <include name="TSGrid.res" />
30
                <include name="TSGrid.dcr" />
31
                <include name="TSImageList.dcr" />
32
                <include name="TSMask.dcr" />
33
                <include name="TSDBGrid.dcr" />
34
            </fileset>
35
            <fileset dir="${using.TMSSoftware.basedir}/lib.win32">
36
                <include name="AsgFindDialog.dfm" />
37
                <include name="ADVSPIN.RES" />
38
                <include name="advgrid.res" />
39
                <include name="asgres.RES" />
40
                <include name="AdvDirectoryEdit.res" />
41
                <include name="dbadvnav.RES" />
42
                <include name="AdvMemo.res" />
43
                <include name="asgspin.res" />
44
            </fileset>
45
        </copy>
2243 bivey 46
 
2245 bivey 47
        <!-- Create the release resource file -->
48
        <echo
49
            file="${basedir}/src/auto.rc"
50
            append="false">MAINICON                ICON    IMPURE DISCARDABLE "erg.ico"${line.separator}
2243 bivey 51
1 VERSIONINFO${line.separator}
2245 bivey 52
FILEVERSION 1,0,0,0${line.separator}
53
PRODUCTVERSION 1,0,0,0${line.separator}
2243 bivey 54
BEGIN${line.separator}
55
BLOCK "StringFileInfo"${line.separator}
56
BEGIN${line.separator}
57
BLOCK "0C0904E4"${line.separator}
58
BEGIN${line.separator}
59
VALUE "CompanyName", "ERG Group\0"${line.separator}
60
VALUE "FileDescription", "Transaction Test Manager\0"${line.separator}
2245 bivey 61
VALUE "FileVersion", "${packageversion}\0"${line.separator}
2243 bivey 62
VALUE "InternalName", "TxnTestManager\0"${line.separator}
63
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}
64
VALUE "LegalTrademarks", "Copyright © ERG 2001-2005\0"${line.separator}
65
VALUE "OriginalFilename", "TxnTestManager\0"${line.separator}
66
VALUE "ProductName", "Transaction Test Manager\0"${line.separator}
2245 bivey 67
VALUE "ProductVersion", "${packageversion}\0"${line.separator}
2243 bivey 68
END${line.separator}
69
END${line.separator}
70
BLOCK "VarFileInfo"${line.separator}
71
BEGIN${line.separator}
72
VALUE "Translation", 0xc09, 1252${line.separator}
73
END${line.separator}
74
END${line.separator}
75
</echo>
76
 
2245 bivey 77
        <exec executable="brc32" dir="${bcpp_bin}" vmlauncher="false">
78
            <arg line="-r -fo${basedir}/src/auto.res ${basedir}/src/auto.rc"/>
79
        </exec>
2243 bivey 80
 
2245 bivey 81
        <!-- Start the compile then linker -->
82
        <cc exceptions    = "true"
83
            incremental   = "false"
84
            name          = "bcc"
85
            objdir        = "${basedir}/src"
86
            outfile       = "${basedir}/src/TxnTestManager"
87
            outtype       = "executable"
88
            subsystem     = "gui"
89
            rebuild       = "true">
2243 bivey 90
 
2245 bivey 91
            <!-- To see the command line, run ant with the args -logger org.apache.tools.ant.DefaultLogger -verbose -->
92
            <compilerarg value="-O2"/>
93
            <compilerarg value="-Vx"/>
94
            <compilerarg value="-Ve"/>
95
            <compilerarg value="-X-"/>
96
            <compilerarg value="-a8"/>
97
            <compilerarg value="-6"/>
98
            <compilerarg value="-b-"/>
99
            <compilerarg value="-k-"/>
100
            <compilerarg value="-vi"/>
101
            <compilerarg value="-c"/>
102
            <compilerarg value="-tW"/>
103
            <compilerarg value="-tWM"/>
104
            <compilerarg value="-g255"/>
105
            <compilerarg value="-w-par"/>
106
            <compilerarg value="-DNO_STRICT"/>
2243 bivey 107
 
2245 bivey 108
            <fileset dir="${basedir}/src">
109
                <include name="**/*.cpp"/>
110
                <include name="auto.res"/>
111
            </fileset>
2243 bivey 112
 
2245 bivey 113
            <!-- The following includes are versioned and released in dpkg_archive -->
114
            <includepath path="${using.TMSSoftware.basedir}/include"/>
115
            <includepath path="${using.TopGrid.basedir}/include"/>
116
            <includepath path="${bcpp_include}"/>
117
            <includepath path="${bcpp_vcl_include}"/>
118
            <includepath path="${using.dce.basedir}/include"/>
119
            <includepath path="${using.InfraBase.basedir}/include"/>
120
            <includepath path="${using.SecurityWrapper.basedir}/include"/>
121
            <includepath path="${using.XMLSchema_Interfaces.basedir}/include"/>
122
            <includepath path="${using.XmlSchemaWrapperInterface.basedir}/include"/>
123
 
124
            <linkerarg value="-aa "/>
125
            <linkerarg value=" -Tpe"/>
126
            <linkerarg value=" -x"/>
127
            <linkerarg value=" -Gn"/>
128
            <linkerarg value="c0w32.obj"/>
129
            <linkerarg value="sysinit.obj"/>
2243 bivey 130
 
2245 bivey 131
            <libset dir="${using.TopGrid.basedir}/lib.win32" libs="osgc6220,osdgc6220"/>
132
            <libset dir="${using.TMSSoftware.basedir}/lib.win32" libs="TMSC6"/>
133
            <libset dir="${bcpp_lib}" libs="vclsmp,tee,adortl,inetdb,inet,vclx,vcldb,bdertl,dbrtl,rtl,vcl,import32,cp32mt,vcljpg"/>
134
        </cc>        
135
 
136
    </target>
2243 bivey 137
 
2247 bivey 138
    <target name="make_package">
2245 bivey 139
        <mkdir dir="build/pkg"/>
140
        <mkdir dir="build/pkg/bin.win32"/>
141
 
142
        <copy todir="build/pkg/bin.win32">
143
            <fileset dir="${basedir}/src">
144
                <include name="TxnTestManager.exe" />
145
            </fileset>
146
        </copy>
2243 bivey 147
 
2245 bivey 148
        <summarise-manifest/>
149
    </target>
2243 bivey 150
 
2245 bivey 151
</project>