Subversion Repositories DevTools

Rev

Rev 1732 | 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.4.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.12.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_compilername" value="bcc"/>
        <property name="bcpp_include" value="${using.borland_bcb.basedir}/include"/>
        <property name="bcpp_vcl_include" value="${bcpp_include}/vcl"/>

        <property name="bcpp_include_debug"   value="${bcpp_include},${bcpp_vcl_include}"/>
        <property name="bcpp_include_release" value="${bcpp_include},${bcpp_vcl_include}"/>

        <property name="bcpp_common_libs" value="sysinit.obj,Memmgr.lib"/>
        <property name="bcpp_dblibs" value="vcldb.lib,dbrtl.lib,bdertl.lib"/>
        <property name="bcpp_rtl" value="rtl.lib,import32.lib"/>

        <property name="bcpp_console_libs" value="cw32.lib"/>
        <property name="bcpp_gui_libs" value="cp32mt.lib,vcl.lib,vclx.lib"/>

        <property name="bcpp_libraries_debug"   value="${bcpp_common_libs},${bcpp_rtl},${bcpp_dblibs}"/>
        <property name="bcpp_libraries_release" value="${bcpp_common_libs},${bcpp_rtl},${bcpp_dblibs}"/>

        <property name="bcpp_lib_debug" value="${using.borland_bcb.basedir}\lib\debug"/>
        <property name="bcpp_lib_release" value="${using.borland_bcb.basedir}\lib\release"/>

        <!-- The particular library paths are dependent upon the Release/Debug status -->
        <if>
                <equals arg1="${debug}" arg2="true"/>
                <then>
                        <property name="bcpp_lib" value="${bcpp_lib_debug}"/>
                </then>
                <else>
                        <property name="bcpp_lib" value="${bcpp_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="bcpp_compiler_debug_console" name="${bcpp_compilername}">
                <!--  zero length empty class member functions -->
                <compilerarg value="-Vx"/>
                <compilerarg value="-Ve"/>

                <!--  Pentium Pro Instructions -->
                <compilerarg value="-6"/>

                <!--  Don't suppress compiler banner -->
                <compilerarg value="-q-"/>

                <!-- 8 byte data alignment -->
                <compilerarg value="-a8"/>

                <!-- Integer Enums -->
                <compilerarg value="-b"/>

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

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

                <!-- Don't use register variables -->
                <compilerarg value="-r-"/>

                
                <!-- Disable all optimizations -->
                <compilerarg value="-Od"/>

                <compilerarg value="-DNO_STRICT"/>
                <compilerarg value="-D_DEBUG"/>

                <!-- Debug - Line numbers on -->
                <compilerarg value="-y"/>

                <!-- Turn on source debugging -->
                <compilerarg value="-v"/>

                <!-- Turn on inline expansion (-vi- turns off inline expansion). -->
                <compilerarg value="-vi-"/>

                <!--  ignore warnings - Parameter 'parameter' is never used.  -->
                <compilerarg value="-w-par"/>

                <!--  ignore warnings - Conversion may lose significant digits  -->
                <compilerarg value="-w-sig"/>

                <!--  ignore warnings -  'identifier' declared but never used.  -->
                <compilerarg value="-w-use"/>

                <!--  ignore warnings - Unreachable code  -->
                <compilerarg value="-w-rch"/>

                <!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
                <compilerarg value="-w-aus"/>
        </compiler>

        <compiler id="bcpp_compiler_debug_gui" name="${bcpp_compilername}">
                <!--  zero length empty class member functions -->
                <compilerarg value="-Vx"/>
                <compilerarg value="-Ve"/>

                <!--  Pentium Pro Instructions -->
                <compilerarg value="-6"/>

                <!--  Don't suppress compiler banner -->
                <compilerarg value="-q-"/>

                <!-- 8 byte data alignment -->
                <compilerarg value="-a8"/>

                <!-- Integer Enums -->
                <compilerarg value="-b"/>

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

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

                <!-- Don't use register variables -->
                <compilerarg value="-r-"/>

                
                <!-- Disable all optimizations -->
                <compilerarg value="-Od"/>

                <compilerarg value="-DNO_STRICT"/>
                <compilerarg value="-D_DEBUG"/>

                <!-- Debug - Line numbers on -->
                <compilerarg value="-y"/>

                <!-- Turn on source debugging -->
                <compilerarg value="-v"/>

                <!-- Turn on inline expansion (-vi- turns off inline expansion). -->
                <compilerarg value="-vi-"/>

                <!--  ignore warnings - Parameter 'parameter' is never used.  -->
                <compilerarg value="-w-par"/>

                <!--  ignore warnings - Conversion may lose significant digits  -->
                <compilerarg value="-w-sig"/>

                <!--  ignore warnings -  'identifier' declared but never used.  -->
                <compilerarg value="-w-use"/>

                <!--  ignore warnings - Unreachable code  -->
                <compilerarg value="-w-rch"/>

                <!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
                <compilerarg value="-w-aus"/>
        </compiler>


        <compiler id="bcpp_compiler_release_console" name="${bcpp_compilername}">
                <!--  zero length empty class member functions -->
                <compilerarg value="-Vx"/>
                <compilerarg value="-Ve"/>

                <!--  Pentium Pro Instructions -->
                <compilerarg value="-6"/>

                <compilerarg value="-Q-"/>

                <compilerarg value="-a8"/>

                <compilerarg value="-tWM"/>
                
                <!-- Integer Enums -->
                <compilerarg value="-b"/>

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

                <!-- Don't override Calling Convention, allow project to specify -->
                <!--compilerarg value="-ps"/-->

                <!-- Use register variables -->
                <compilerarg value="-r"/>

                <compilerarg value="-DNO_STRICT"/>
                
                <compilerarg value="-O2"/>
                <compilerarg value="-v-"/>

                <!--  ignore warnings - eg. Unused Parameters  -->
                <!-- Turn on inline expansion (-vi- turns off inline expansion). -->
                <compilerarg value="-vi-"/>

                <!--  ignore warnings - Parameter 'parameter' is never used.  -->
                <compilerarg value="-w-par"/>

                <!--  ignore warnings - Conversion may lose significant digits  -->
                <compilerarg value="-w-sig"/>

                <!--  ignore warnings -  'identifier' declared but never used.  -->
                <compilerarg value="-w-use"/>

                <!--  ignore warnings - Unreachable code  -->
                <compilerarg value="-w-rch"/>

                <!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
                <compilerarg value="-w-aus"/>
        </compiler>

        <compiler id="bcpp_compiler_release_gui" name="${bcpp_compilername}">
                <!--  zero length empty class member functions -->
                <compilerarg value="-Vx"/>
                <compilerarg value="-Ve"/>

                <!--  Pentium Pro Instructions -->
                <compilerarg value="-6"/>

                <compilerarg value="-Q-"/>

                <compilerarg value="-a8"/>

                <compilerarg value="-tWM"/>
                
                <!-- Integer Enums -->
                <compilerarg value="-b"/>

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

                <!-- Don't override Calling Convention, allow project to specify -->
                <!--compilerarg value="-ps"/-->

                <!-- Use register variables -->
                <compilerarg value="-r"/>

                <compilerarg value="-DNO_STRICT"/>
                
                <compilerarg value="-O2"/>
                <compilerarg value="-v-"/>

                <!--  ignore warnings - eg. Unused Parameters  -->
                <!-- Turn on inline expansion (-vi- turns off inline expansion). -->
                <compilerarg value="-vi-"/>

                <!--  ignore warnings - Parameter 'parameter' is never used.  -->
                <compilerarg value="-w-par"/>

                <!--  ignore warnings - Conversion may lose significant digits  -->
                <compilerarg value="-w-sig"/>

                <!--  ignore warnings -  'identifier' declared but never used.  -->
                <compilerarg value="-w-use"/>

                <!--  ignore warnings - Unreachable code  -->
                <compilerarg value="-w-rch"/>

                <!--  ignore warnings - 'identifier' is assigned a value that is never used  -->
                <compilerarg value="-w-aus"/>
        </compiler>

        <!-- Linker rules -->

        <linker id="bcpp_linker_debug_console" name="${bcpp_compilername}">
                <!--  Disable incremental linking  -->
                <linkerarg value="-Gn"/>
                <linkerarg value="-x"/>
                <linkerarg value="-aa"/>

                <linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>

                <fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
                <fileset dir="${bcpp_lib_debug}" includes="${bcpp_console_libs}" casesensitive="no"/>
        </linker>

        <linker id="bcpp_linker_debug_gui" name="${bcpp_compilername}">
                <!--  Disable incremental linking  -->
                <linkerarg value="-Gn"/>
                <linkerarg value="-x"/>
                <linkerarg value="-aa"/>

                <linkerarg value="-L&quot;${bcpp_lib_debug}&quot;"/>

                <fileset dir="${bcpp_lib_debug}" includes="${bcpp_libraries_debug}" casesensitive="no"/>
                <fileset dir="${bcpp_lib_debug}" includes="${bcpp_gui_libs}" casesensitive="no"/>
        </linker>



        <linker id="bcpp_linker_release_console" name="${bcpp_compilername}">
                <!--  Disable incremental linking  -->
                <linkerarg value="-Gn"/>

                <linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>

                <fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
                <fileset dir="${bcpp_lib_release}" includes="${bcpp_console_libs}" casesensitive="no"/>
        </linker>

        <linker id="bcpp_linker_release_gui" name="${bcpp_compilername}">
                <!--  Disable incremental linking  -->
                <linkerarg value="-Gn"/>

                <linkerarg value="-L&quot;${bcpp_lib_release}&quot;"/>

                <fileset dir="${bcpp_lib_release}" includes="${bcpp_libraries_release}" casesensitive="no"/>
                <fileset dir="${bcpp_lib_release}" includes="${bcpp_gui_libs}" casesensitive="no"/>
        </linker>

</project>