Subversion Repositories DevTools

Rev

Rev 2247 | Blame | Last modification | View Log | RSS feed

<project name="TxnTestManager" default="build" basedir=".">

    <property name="env" environment="env" value="not used"/>
    
    <import file="depends.xml"/>
    <import file="${env.JATS_HOME}/ant-using/${ant-using}/ant-using.xml"/>

    <!--
        Important note: This build fails if the default dpkg_archive cache of
                        C:\Documents and Settings\<username>\build-repository is
                        used (it doesn't like the spaces). You _must_ have the
                        environment variable GBE_DPKG set to a path with no spaces.
    -->

    <using name="ant-bcpp" version="${ant-bcpp}"/>    
    <using name="dce" version="${dce}"/>
    <using name="InfraBase" version="${InfraBase}"/>
    <using name="SecurityWrapper" version="${SecurityWrapper}"/>
    <using name="TMSSoftware" version="${TMSSoftware}"/>
    <using name="TopGrid" version="${TopGrid}"/>
    <using name="XmlSchemaWrapperInterface" version="${XmlSchemaWrapperInterface}"/>
    <using name="XMLSchema_Interfaces" version="${XMLSchema_Interfaces}"/>

    <target name="build">

        <!-- Copy required files to source directory -->
        <copy todir="${basedir}/src">
            <fileset dir="${using.TopGrid.basedir}/lib.win32">
                <include name="TSGrid.res" />
                <include name="TSGrid.dcr" />
                <include name="TSImageList.dcr" />
                <include name="TSMask.dcr" />
                <include name="TSDBGrid.dcr" />
            </fileset>
            <fileset dir="${using.TMSSoftware.basedir}/lib.win32">
                <include name="AsgFindDialog.dfm" />
                <include name="ADVSPIN.RES" />
                <include name="advgrid.res" />
                <include name="asgres.RES" />
                <include name="AdvDirectoryEdit.res" />
                <include name="dbadvnav.RES" />
                <include name="AdvMemo.res" />
                <include name="asgspin.res" />
            </fileset>
        </copy>

        <!-- Create the release resource file -->
        <echo
            file="${basedir}/src/auto.rc"
            append="false">MAINICON                ICON    IMPURE DISCARDABLE "erg.ico"${line.separator}
1 VERSIONINFO${line.separator}
FILEVERSION 1,0,0,0${line.separator}
PRODUCTVERSION 1,0,0,0${line.separator}
BEGIN${line.separator}
BLOCK "StringFileInfo"${line.separator}
BEGIN${line.separator}
BLOCK "0C0904E4"${line.separator}
BEGIN${line.separator}
VALUE "CompanyName", "ERG Group\0"${line.separator}
VALUE "FileDescription", "Transaction Test Manager\0"${line.separator}
VALUE "FileVersion", "${packageversion}\0"${line.separator}
VALUE "InternalName", "TxnTestManager\0"${line.separator}
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}
VALUE "LegalTrademarks", "Copyright © ERG 2001-2005\0"${line.separator}
VALUE "OriginalFilename", "TxnTestManager\0"${line.separator}
VALUE "ProductName", "Transaction Test Manager\0"${line.separator}
VALUE "ProductVersion", "${packageversion}\0"${line.separator}
END${line.separator}
END${line.separator}
BLOCK "VarFileInfo"${line.separator}
BEGIN${line.separator}
VALUE "Translation", 0xc09, 1252${line.separator}
END${line.separator}
END${line.separator}
</echo>

        <exec executable="brc32" dir="${bcpp_bin}" vmlauncher="false">
            <arg line="-r -fo${basedir}/src/auto.res ${basedir}/src/auto.rc"/>
        </exec>

        <!-- Start the compile then linker -->
        <cc exceptions    = "true"
            incremental   = "false"
            name          = "bcc"
            objdir        = "${basedir}/src"
            outfile       = "${basedir}/src/TxnTestManager"
            outtype       = "executable"
            subsystem     = "gui"
            rebuild       = "true">

            <!-- To see the command line, run ant with the args -logger org.apache.tools.ant.DefaultLogger -verbose -->
            <compilerarg value="-O2"/>
            <compilerarg value="-Vx"/>
            <compilerarg value="-Ve"/>
            <compilerarg value="-X-"/>
            <compilerarg value="-a8"/>
            <compilerarg value="-6"/>
            <compilerarg value="-b-"/>
            <compilerarg value="-k-"/>
            <compilerarg value="-vi"/>
            <compilerarg value="-c"/>
            <compilerarg value="-tW"/>
            <compilerarg value="-tWM"/>
            <compilerarg value="-g255"/>
            <compilerarg value="-w-par"/>
            <compilerarg value="-DNO_STRICT"/>

            <fileset dir="${basedir}/src">
                <include name="**/*.cpp"/>
                <include name="auto.res"/>
            </fileset>

            <!-- The following includes are versioned and released in dpkg_archive -->
            <includepath path="${using.TMSSoftware.basedir}/include"/>
            <includepath path="${using.TopGrid.basedir}/include"/>
            <includepath path="${bcpp_include}"/>
            <includepath path="${bcpp_vcl_include}"/>
            <includepath path="${using.dce.basedir}/include"/>
            <includepath path="${using.InfraBase.basedir}/include"/>
            <includepath path="${using.SecurityWrapper.basedir}/include"/>
            <includepath path="${using.XMLSchema_Interfaces.basedir}/include"/>
            <includepath path="${using.XmlSchemaWrapperInterface.basedir}/include"/>
            
            <linkerarg value="-aa "/>
            <linkerarg value=" -Tpe"/>
            <linkerarg value=" -x"/>
            <linkerarg value=" -Gn"/>
            <linkerarg value="c0w32.obj"/>
            <linkerarg value="sysinit.obj"/>

            <libset dir="${using.TopGrid.basedir}/lib.win32" libs="osgc6220,osdgc6220"/>
            <libset dir="${using.TMSSoftware.basedir}/lib.win32" libs="TMSC6"/>
            <libset dir="${bcpp_lib}" libs="vclsmp,tee,adortl,inetdb,inet,vclx,vcldb,bdertl,dbrtl,rtl,vcl,import32,cp32mt,vcljpg"/>
        </cc>        
        
    </target>

    <target name="make_package">
        <mkdir dir="build/pkg"/>
        <mkdir dir="build/pkg/bin.win32"/>
        
        <copy todir="build/pkg/bin.win32">
            <fileset dir="${basedir}/src">
                <include name="TxnTestManager.exe" />
            </fileset>
        </copy>

        <summarise-manifest/>
    </target>

</project>