| 1798 |
crichaud |
1 |
<project name="delphi-task">
|
|
|
2 |
|
|
|
3 |
<!-- C O P Y R I G H T N O T I C E
|
|
|
4 |
This material is confidential to ERG and may not be disclosed in whole
|
|
|
5 |
or in part to any third party nor used in any manner whatsoever other
|
|
|
6 |
than for the purposes expressly consented to by ERG in writing.
|
|
|
7 |
|
|
|
8 |
This material is also copyright and may not be reproduced, stored in a
|
|
|
9 |
retrieval system or transmitted in any form or by any means in whole or
|
|
|
10 |
in part without the express written consent of ERG.
|
|
|
11 |
-->
|
|
|
12 |
|
|
|
13 |
<!-- This is a Windows based compiler package, so include its standard environment -->
|
|
|
14 |
<using name="ant-cpptasks" version="REPLACE_ANT_CPPTASKS"/>
|
|
|
15 |
<using name="ant-windows" version="REPLACE_ANT_WINDOWS"/>
|
|
|
16 |
|
|
|
17 |
<!-- Include the Borland C++ Builder Compiler/Linker environment from its COTS package -->
|
|
|
18 |
<using name="borland_bcb" version="REPLACE_BORLAND_BCB"/>
|
|
|
19 |
|
|
|
20 |
<!-- Set up the environment's Binary path, Include and Library paths -->
|
|
|
21 |
<property name="delphi_bin" value="${using.borland_bcb.basedir}\bin"/>
|
|
|
22 |
<property name="delphi_compilername" value="dcc"/>
|
|
|
23 |
|
|
|
24 |
<property name="delphi_include" value="${using.borland_bcb.basedir}\include"/>
|
|
|
25 |
<property name="delphi_source" value="${using.borland_bcb.basedir}\source"/>
|
|
|
26 |
|
|
|
27 |
<property name="delphi_vcl_include" value="${delphi_include}\vcl"/>
|
|
|
28 |
<property name="delphi_vcl_source" value="${delphi_source}\vcl"/>
|
|
|
29 |
|
|
|
30 |
<property name="delphi_include_debug" value="${delphi_include}"/>
|
|
|
31 |
<property name="delphi_include_release" value="${delphi_include}"/>
|
|
|
32 |
|
|
|
33 |
<property name="delphi_common_libs" value="sysinit.obj,Memmgr.lib"/>
|
|
|
34 |
<property name="delphi_dblibs" value="adortl.lib,dbexpress.lib,vcldb.lib,dbrtl.lib,bdertl.lib"/>
|
|
|
35 |
<property name="delphi_rtl" value="rtl.lib,import32.lib"/>
|
|
|
36 |
|
|
|
37 |
<property name="delphi_gui_libs" value="cp32mt.lib,vcl.lib,vclx.lib"/>
|
|
|
38 |
|
|
|
39 |
<!-- The console library cw32.lib MUST ALWAYS follow the cp32mt library if used -->
|
|
|
40 |
<property name="delphi_console_libs" value="cw32.lib"/>
|
|
|
41 |
|
|
|
42 |
<property name="delphi_libraries_debug" value="${delphi_common_libs},${delphi_rtl},${delphi_dblibs}"/>
|
|
|
43 |
<property name="delphi_libraries_release" value="${delphi_common_libs},${delphi_rtl},${delphi_dblibs}"/>
|
|
|
44 |
|
|
|
45 |
<property name="delphi_lib_debug" value="${using.borland_bcb.basedir}\lib\debug"/>
|
|
|
46 |
<property name="delphi_lib_release" value="${using.borland_bcb.basedir}\lib\release"/>
|
|
|
47 |
<property name="delphi_lib_objects" value="${using.borland_bcb.basedir}\lib\obj"/>
|
|
|
48 |
|
|
|
49 |
<!-- The particular library paths are dependent upon the Release/Debug status -->
|
|
|
50 |
<if>
|
|
|
51 |
<equals arg1="${debug}" arg2="true"/>
|
|
|
52 |
<then>
|
|
|
53 |
<property name="delphi_lib" value="${delphi_lib_debug}"/>
|
|
|
54 |
</then>
|
|
|
55 |
<else>
|
|
|
56 |
<property name="delphi_lib" value="${delphi_lib_release}"/>
|
|
|
57 |
</else>
|
|
|
58 |
</if>
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
<!-- Create the Borland Compiler/Linker default configuration location files for Includes & Libraries -->
|
|
|
62 |
<!-- These files are use by the compiler/linker when a dependent file cannot be found in the defined paths -->
|
|
|
63 |
<echo file="${delphi_bin}/dcc32.cfg">-U"${delphi_include}";"${delphi_vcl_include}" -u"${delphi_lib}"</echo>
|
|
|
64 |
|
|
|
65 |
<echo file="${delphi_bin}/dcc32.cfg">-aWinTypes=Windows;WinProcs=Windows;DbiProcs=BDE;DbiTypes=BDE;DbiErrs=BDE -u${delphi_lib_release};${delphi_lib_objects}</echo>
|
|
|
66 |
|
|
|
67 |
<compiler id="delphi_compiler_debug_console" name="${delphi_compilername}">
|
|
|
68 |
</compiler>
|
|
|
69 |
|
|
|
70 |
<compiler id="delphi_compiler_debug_gui" name="${delphi_compilername}">
|
|
|
71 |
</compiler>
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
<compiler id="delphi_compiler_release_console" name="${delphi_compilername}">
|
|
|
75 |
</compiler>
|
|
|
76 |
|
|
|
77 |
<compiler id="delphi_compiler_release_gui" name="${delphi_compilername}">
|
|
|
78 |
<compilerarg value="-D_RTLDLL;NO_STRICT;USEPACKAGES"/>
|
|
|
79 |
|
|
|
80 |
<compilerarg value="-E${pkginclude}"/>
|
|
|
81 |
|
|
|
82 |
<compilerarg value="-U${delphi_vcl_include}"/>
|
|
|
83 |
|
|
|
84 |
<compilerarg value="-O${delphi_include}"/>
|
|
|
85 |
<compilerarg value="-O${delphi_vcl_include}"/>
|
|
|
86 |
</compiler>
|
|
|
87 |
|
|
|
88 |
<!-- Linker rules -->
|
|
|
89 |
|
|
|
90 |
<linker id="delphi_linker_none" name="${delphi_compilername}" path="${delphi_bin}">
|
|
|
91 |
</linker>
|
|
|
92 |
|
|
|
93 |
<linker id="delphi_linker_debug_console_vcl" name="${delphi_compilername}" path="${delphi_bin}">
|
|
|
94 |
<linkerarg value="-L"${delphi_lib_debug}""/>
|
|
|
95 |
<fileset dir="${delphi_lib_debug}" includes="${delphi_gui_libs}" casesensitive="no"/>
|
|
|
96 |
<fileset dir="${delphi_lib_debug}" includes="${delphi_libraries_debug}" casesensitive="no"/>
|
|
|
97 |
<fileset dir="${delphi_lib_debug}" includes="${delphi_console_libs}" casesensitive="no"/>
|
|
|
98 |
</linker>
|
|
|
99 |
|
|
|
100 |
<linker id="delphi_linker_release_console_vcl" name="${delphi_compilername}" path="${delphi_bin}">
|
|
|
101 |
<linkerarg value="-L"${delphi_lib_release}""/>
|
|
|
102 |
<fileset dir="${delphi_lib_release}" includes="${delphi_gui_libs}" casesensitive="no"/>
|
|
|
103 |
<fileset dir="${delphi_lib_release}" includes="${delphi_libraries_release}" casesensitive="no"/>
|
|
|
104 |
<fileset dir="${delphi_lib_release}" includes="${delphi_console_libs}" casesensitive="no"/>
|
|
|
105 |
</linker>
|
|
|
106 |
|
|
|
107 |
<linker id="delphi_linker_debug_console" name="${delphi_compilername}" path="${delphi_bin}">
|
|
|
108 |
<linkerarg value="-L"${delphi_lib_debug}""/>
|
|
|
109 |
<fileset dir="${delphi_lib_debug}" includes="${delphi_libraries_debug}" casesensitive="no"/>
|
|
|
110 |
<fileset dir="${delphi_lib_debug}" includes="${delphi_console_libs}" casesensitive="no"/>
|
|
|
111 |
</linker>
|
|
|
112 |
|
|
|
113 |
<linker id="delphi_linker_debug_gui" name="${delphi_compilername}" path="${delphi_bin}">
|
|
|
114 |
<linkerarg value="-L"${delphi_lib_debug}""/>
|
|
|
115 |
<fileset dir="${delphi_lib_debug}" includes="${delphi_gui_libs}" casesensitive="no"/>
|
|
|
116 |
<fileset dir="${delphi_lib_debug}" includes="${delphi_libraries_debug}" casesensitive="no"/>
|
|
|
117 |
</linker>
|
|
|
118 |
|
|
|
119 |
<linker id="delphi_linker_release_console" name="${delphi_compilername}" path="${delphi_bin}">
|
|
|
120 |
<linkerarg value="-L"${delphi_lib_release}""/>
|
|
|
121 |
<fileset dir="${delphi_lib_release}" includes="${delphi_libraries_release}" casesensitive="no"/>
|
|
|
122 |
<fileset dir="${delphi_lib_release}" includes="${delphi_console_libs}" casesensitive="no"/>
|
|
|
123 |
</linker>
|
|
|
124 |
|
|
|
125 |
<linker id="delphi_linker_release_gui" name="${delphi_compilername}" path="${delphi_bin}">
|
|
|
126 |
<linkerarg value="-L"${delphi_lib_release}""/>
|
|
|
127 |
<fileset dir="${delphi_lib_release}" includes="${delphi_gui_libs}" casesensitive="no"/>
|
|
|
128 |
<fileset dir="${delphi_lib_release}" includes="${delphi_libraries_release}" casesensitive="no"/>
|
|
|
129 |
</linker>
|
|
|
130 |
|
|
|
131 |
</project>
|