| Line 31... |
Line 31... |
| 31 |
description="Optional compiler path override. Normally defined within the ant-???? compiler package."/>
|
31 |
description="Optional compiler path override. Normally defined within the ant-???? compiler package."/>
|
| 32 |
|
32 |
|
| 33 |
<attribute name="rtti"
|
33 |
<attribute name="rtti"
|
| 34 |
default="true"
|
34 |
default="true"
|
| 35 |
description="Optional flag, used to enable Run-Time Type Information"/>
|
35 |
description="Optional flag, used to enable Run-Time Type Information"/>
|
| - |
|
36 |
|
| - |
|
37 |
<attribute name="usevcl"
|
| - |
|
38 |
default="false"
|
| - |
|
39 |
description="Optional flag, used to include vcl libraries"/>
|
| 36 |
|
40 |
|
| 37 |
<attribute name="exceptions"
|
41 |
<attribute name="exceptions"
|
| 38 |
default="true"
|
42 |
default="true"
|
| 39 |
description="Optional flag, used to enable exception handling support. Defaults to true"/>
|
43 |
description="Optional flag, used to enable exception handling support. Defaults to true"/>
|
| 40 |
|
44 |
|
| 41 |
<attribute name="multithreaded"
|
45 |
<attribute name="multithreaded"
|
| Line 105... |
Line 109... |
| 105 |
</condition>
|
109 |
</condition>
|
| 106 |
|
110 |
|
| 107 |
<condition property="compile.platform" value="sparc">
|
111 |
<condition property="compile.platform" value="sparc">
|
| 108 |
<os name="SunOS"/>
|
112 |
<os name="SunOS"/>
|
| 109 |
</condition>
|
113 |
</condition>
|
| - |
|
114 |
|
| 110 |
|
115 |
|
| 111 |
<!-- Type of target => executable,plugin,shared,static -->
|
116 |
<!-- Type of target => executable,plugin,shared,static -->
|
| 112 |
<if>
|
117 |
<if>
|
| 113 |
<equals arg1="@{outtype}" arg2="executable"/>
|
118 |
<equals arg1="@{outtype}" arg2="executable"/>
|
| 114 |
<then>
|
119 |
<then>
|
| 115 |
<property name="@{name}--targetfolder" value="bin.${compile.platform}${@{name}@{compiler}@{buildtype}-compile_type_symbol}"/>
|
120 |
<property name="@{name}--targetfolder" value="bin.${compile.platform}${@{name}@{compiler}@{buildtype}-compile_type_symbol}"/>
|
| 116 |
<property name="@{name}@{compiler}@{outtype}@{buildtype}-output_name" value="@{targetname}"/>
|
121 |
<property name="@{name}@{compiler}@{outtype}@{buildtype}-output_name" value="@{targetname}"/>
|
| 117 |
</then>
|
122 |
</then>
|
| 118 |
<else>
|
123 |
<else>
|
| 119 |
<property name="@{name}--targetfolder" value="lib.${compile.platform}"/>
|
124 |
<property name="@{name}--targetfolder" value="lib.${compile.platform}"/>
|
| 120 |
<property name="@{name}@{compiler}@{outtype}@{buildtype}-output_name" value="@{targetname}@{version}${@{name}@{compiler}@{buildtype}-compile_type_symbol}"/>
|
125 |
<property name="@{name}@{compiler}@{outtype}@{buildtype}-output_name" value="@{targetname}@{version}${@{name}@{compiler}@{buildtype}-compile_type_symbol}"/>
|
| 121 |
</else>
|
126 |
</else>
|
| 122 |
</if>
|
127 |
</if>
|
| 123 |
|
128 |
|
| - |
|
129 |
<!-- Type of target => Linker Options for bcpp compiler according type executable,plugin,shared,static-->
|
| - |
|
130 |
|
| - |
|
131 |
<if>
|
| - |
|
132 |
<equals arg1="@{compiler}" arg2="bcpp"/>
|
| - |
|
133 |
<then>
|
| - |
|
134 |
<if>
|
| - |
|
135 |
<equals arg1="@{outtype}" arg2="executable"/>
|
| - |
|
136 |
<then>
|
| - |
|
137 |
<property name="@{buildtype}@{compiler}@{name}--linker" value="@{compiler}_linker_@{buildtype}_@{subsystem}"/>
|
| - |
|
138 |
</then>
|
| - |
|
139 |
<else>
|
| - |
|
140 |
<if>
|
| - |
|
141 |
<equals arg1="@{outtype}" arg2="shared"/>
|
| - |
|
142 |
<then>
|
| - |
|
143 |
<property name="@{buildtype}@{compiler}@{name}--linker" value="@{compiler}_linker_@{buildtype}_@{subsystem}"/>
|
| - |
|
144 |
</then>
|
| - |
|
145 |
<else>
|
| - |
|
146 |
<property name="@{buildtype}@{compiler}@{name}--linker" value="@{compiler}_linker_none"/>
|
| - |
|
147 |
</else>
|
| - |
|
148 |
</if>
|
| - |
|
149 |
</else>
|
| - |
|
150 |
</if>
|
| - |
|
151 |
</then>
|
| - |
|
152 |
<else>
|
| - |
|
153 |
<property name="@{buildtype}@{compiler}@{name}--linker" value="@{compiler}_linker_@{buildtype}_@{subsystem}"/>
|
| - |
|
154 |
</else>
|
| - |
|
155 |
</if>
|
| - |
|
156 |
|
| - |
|
157 |
<!-- Type of target => Linker Options with VCL-->
|
| - |
|
158 |
<if>
|
| - |
|
159 |
<equals arg1="@{usevcl}" arg2="true"/>
|
| - |
|
160 |
<then>
|
| - |
|
161 |
<property name="@{name}_@{compiler}--vcl" value="_vcl"/>
|
| - |
|
162 |
|
| - |
|
163 |
</then>
|
| - |
|
164 |
<else>
|
| - |
|
165 |
<property name="@{name}_@{compiler}--vcl" value=""/>
|
| - |
|
166 |
|
| - |
|
167 |
</else>
|
| - |
|
168 |
</if>
|
| - |
|
169 |
|
| 124 |
|
170 |
|
| 125 |
<mkdir dir="${objdir}/@{buildtype}_@{compiler}"/>
|
171 |
<mkdir dir="${objdir}/@{buildtype}_@{compiler}"/>
|
| 126 |
<mkdir dir="${objdir}/@{buildtype}_@{compiler}/@{targetname}"/>
|
172 |
<mkdir dir="${objdir}/@{buildtype}_@{compiler}/@{targetname}"/>
|
| 127 |
<mkdir dir="@{pkgdir}"/>
|
173 |
<mkdir dir="@{pkgdir}"/>
|
| 128 |
<mkdir dir="@{pkgdir}/${@{name}--targetfolder}"/>
|
174 |
<mkdir dir="@{pkgdir}/${@{name}--targetfolder}"/>
|
| Line 132... |
Line 178... |
| 132 |
<echo taskname="ant-cppcompile-task">Placing Objects in ${objdir}/@{buildtype}_@{compiler}/@{targetname}</echo>
|
178 |
<echo taskname="ant-cppcompile-task">Placing Objects in ${objdir}/@{buildtype}_@{compiler}/@{targetname}</echo>
|
| 133 |
<echo taskname="ant-cppcompile-task">Use Compiler Includes from ${@{compiler}_include_@{buildtype}}</echo>
|
179 |
<echo taskname="ant-cppcompile-task">Use Compiler Includes from ${@{compiler}_include_@{buildtype}}</echo>
|
| 134 |
<echo taskname="ant-cppcompile-task">Use Package Includes from @{pkgdir}/include</echo>
|
180 |
<echo taskname="ant-cppcompile-task">Use Package Includes from @{pkgdir}/include</echo>
|
| 135 |
<echo taskname="ant-cppcompile-task">Linking with Library ${@{compiler}_lib_@{buildtype}} Files: ${@{compiler}_libraries_@{buildtype}}</echo>
|
181 |
<echo taskname="ant-cppcompile-task">Linking with Library ${@{compiler}_lib_@{buildtype}} Files: ${@{compiler}_libraries_@{buildtype}}</echo>
|
| 136 |
|
182 |
|
| 137 |
<echo taskname="ant-cppcompile-task">Linker @{compiler}_linker_@{buildtype}_@{subsystem}</echo>
|
183 |
<echo taskname="ant-cppcompile-task">Linker ${@{buildtype}@{compiler}@{name}--linker}${@{name}_@{compiler}--vcl}</echo>
|
| 138 |
<echo taskname="ant-cppcompile-task">Compiler @{compiler}_compiler_@{buildtype}_@{subsystem}</echo>
|
184 |
<echo taskname="ant-cppcompile-task">Compiler @{compiler}_compiler_@{buildtype}_@{subsystem}</echo>
|
| 139 |
<echo taskname="ant-cppcompile-task">Output File Name ${@{name}@{compiler}@{outtype}@{buildtype}-output_name}</echo>
|
185 |
<echo taskname="ant-cppcompile-task">Output File Name ${@{name}@{compiler}@{outtype}@{buildtype}-output_name}</echo>
|
| 140 |
|
186 |
|
| 141 |
|
- |
|
| 142 |
<echo taskname="ant-cppcompile-task">Compiler Name ${@{compiler}_compilername}</echo>
|
187 |
<echo taskname="ant-cppcompile-task">Include Path: ${@{compiler}_include_@{buildtype}}</echo>
|
| 143 |
<echo taskname="ant-cppcompile-task">path @{compilerpath}</echo>
|
- |
|
| - |
|
188 |
|
| 144 |
|
189 |
|
| 145 |
<cc name="${@{compiler}_compilername}"
|
190 |
<cc name="${@{compiler}_compilername}"
|
| 146 |
path="@{compilerpath}"
|
191 |
path="@{compilerpath}"
|
| 147 |
rtti="@{rtti}"
|
192 |
rtti="@{rtti}"
|
| 148 |
exceptions="@{exceptions}"
|
193 |
exceptions="@{exceptions}"
|
| Line 153... |
Line 198... |
| 153 |
subsystem="@{subsystem}"
|
198 |
subsystem="@{subsystem}"
|
| 154 |
outfile="@{pkgdir}/${@{name}--targetfolder}/${@{name}@{compiler}@{outtype}@{buildtype}-output_name}"
|
199 |
outfile="@{pkgdir}/${@{name}--targetfolder}/${@{name}@{compiler}@{outtype}@{buildtype}-output_name}"
|
| 155 |
objdir="${objdir}/@{buildtype}_@{compiler}/@{targetname}">
|
200 |
objdir="${objdir}/@{buildtype}_@{compiler}/@{targetname}">
|
| 156 |
|
201 |
|
| 157 |
<compiler refid="@{compiler}_compiler_@{buildtype}_@{subsystem}"/>
|
202 |
<compiler refid="@{compiler}_compiler_@{buildtype}_@{subsystem}"/>
|
| 158 |
<linker refid="@{compiler}_linker_@{buildtype}_@{subsystem}"/>
|
203 |
<linker refid="${@{buildtype}@{compiler}@{name}--linker}${@{name}_@{compiler}--vcl}"/>
|
| 159 |
|
204 |
|
| - |
|
205 |
|
| 160 |
<includepath path="${@{compiler}_include_@{buildtype}}"/>
|
206 |
<includepath path="${@{compiler}_include_@{buildtype}}"/>
|
| 161 |
<includepath path="@{pkgdir}/include"/>
|
207 |
<includepath path="@{pkgdir}/include"/>
|
| 162 |
|
208 |
|
| 163 |
<compiler-elements/>
|
209 |
<compiler-elements/>
|
| 164 |
|
210 |
|