Subversion Repositories DevTools

Rev

Rev 1735 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<project name="bcpp-task">

        <!--    C O P Y R I G H T   N O T I C E
                        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 also 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.
        -->

        <!-- This is a Windows based compiler package, so include its standard environment -->
        <using name="ant-cpptasks" version="1.2.0"/>
        <using name="ant-windows" version="1.0.0"/>

        <!-- Include the Borland C++ Builder Compiler/Linker environment from its COTS package -->
        <using name="borland_bcb" version="6.0.11.cots">
                <exclude name="**/debug/*"   if="windows-release"/>
                <exclude name="**/release/*" if="windows-debug"/>
        </using>

        <!-- Set up the environment's Binary path, Include and Library paths -->
        <property name="bcpp_bin" value="${using.borland_bcb.basedir}/bin"/>
        <property name="bcpp_include" value="${using.borland_bcb.basedir}/include"/>
        <property name="bcpp_vcl_include" value="${bcpp_include}/vcl"/>
        <property name="bcpp_dblibs" value="vcldb,dbrtl"/>
        <property name="bcpp_rtl" value="rtl,cp32mt"/>

        <!-- The particular library paths are dependent upon the Release/Debug status -->
        <if>
                <isset property="is-debug"/>
                <then>
                        <property name="bcpp_lib" value="${using.borland_bcb.basedir}/lib/debug"/>
                </then>
                <else>
                        <property name="bcpp_lib" value="${using.borland_bcb.basedir}/lib/release"/>
                </else>
        </if>


        <!-- Create the Borland Compiler/Linker default configuration location files for Includes & Libraries -->
        <!-- These files are use by the compiler/linker when a dependent file cannot be found in the defined paths -->
        <echo file="${bcpp_bin}/ilink32.cfg">-L"${bcpp_lib}"</echo>
        <echo file="${bcpp_bin}/bcc32.cfg">-I"${bcpp_include}";"${bcpp_vcl_include}" -L"${bcpp_lib}"</echo>


        <compiler id="bcc_compiler" name="bcc">
                <!--  zero length empty class member functions -->
                <compilerarg value="-Vx"/>
                <compilerarg value="-Ve"/>

                <!-- No dependency checks  -->
                <compilerarg value="-X"/>

                <compilerarg value="-tWM"/>
                
                <!--   align on quad word boundaries  -->
                <compilerarg value="-a8"/>

                <compilerarg value="-WD"/>

                <!-- Unsigned Short Enums -->
                <compilerarg value="-b-"/>

                <!-- Standard Stack Frames -->
                <compilerarg value="-k"/>

                <!-- Standard Calling Convention -->
                <compilerarg value="-ps"/>

                <compilerarg value="-DNO_STRICT"/>
                
                <!-- Debug -->
                <compilerarg value="-D_DEBUG" if="is-debug"/>
                <compilerarg value="-y" if="is-debug"/>
                <compilerarg value="-vi-" if="is-debug"/>

                <!--  ignore warnings - ie. Unused Parameters  -->
                <compilerarg value="-w-par"/>
        </compiler>

</project>