|
1 <!-- |
|
2 # |
|
3 # Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 # All rights reserved. |
|
5 # This component and the accompanying materials are made available |
|
6 # under the terms of "Eclipse Public License v1.0" |
|
7 # which accompanies this distribution, and is available |
|
8 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 # |
|
10 # Initial Contributors: |
|
11 # Nokia Corporation - initial contribution. |
|
12 # |
|
13 # Contributors: |
|
14 # |
|
15 # Description: |
|
16 # |
|
17 --> |
|
18 |
|
19 <project name="Properties"> |
|
20 |
|
21 <!-- |
|
22 This file contains common properties for each build.xml file. |
|
23 It assumes that before using the properties target "init.properties" |
|
24 is run. |
|
25 --> |
|
26 |
|
27 <!--The environment properties --> |
|
28 <property environment="env"/> |
|
29 |
|
30 <!--The root of the source files --> |
|
31 <property name="java.src.root" location="${ant.file.Properties}/../../"/> |
|
32 |
|
33 <!--The used bytecode version --> |
|
34 <property name="javac.source" value="1.3"/> |
|
35 <property name="javac.target" value="1.3"/> |
|
36 |
|
37 <!--Set the component.dir --> |
|
38 <property name="component.dir" value="${ant.project.name}"/> |
|
39 |
|
40 <!--Search import file="${platform.utilities.xml.file} in utilities.xml file |
|
41 for reason why this property is defined"/> --> |
|
42 <property name="platform.utilities.xml.file" value="utilities.fake.xml"/> |
|
43 |
|
44 <!--The cldc/cdc class file locations --> |
|
45 <property name="bootclasspath.cldc" location="${java.src.root}/inc/classes.cldc.zip"/> |
|
46 <property name="bootclasspath.cdc" location="${java.src.root}/inc/classes.cdc.zip"/> |
|
47 <property name="bootclasspath.fp" location="${java.src.root}/inc/classes.fp.zip"/> |
|
48 |
|
49 |
|
50 |
|
51 <!--NOTE!!! Properties defined below can be used only inside a target--> |
|
52 |
|
53 |
|
54 <!--Set the properties with S60 specific values--> |
|
55 <target name="set.s60.properties" if="target.s60"> |
|
56 |
|
57 <condition property="real.cfg.name" |
|
58 value="udeb" |
|
59 else="urel"> |
|
60 <equals arg1="${target.cfg}" arg2="debug"/> |
|
61 </condition> |
|
62 |
|
63 <!-- Set internal epoc root --> |
|
64 <condition property="epocroot" |
|
65 value="${env.EPOCROOT}" |
|
66 else=""> |
|
67 <isset property="env.EPOCROOT"/> |
|
68 </condition> |
|
69 |
|
70 <!--Location of eswt.jar. This is not needed in S60 Avkon, |
|
71 but needed in S60 Qt. --> |
|
72 <property name="eswt.jar" value=":${java.src.root}/javauis/bin/eswt.jar"/> |
|
73 |
|
74 <!--The root for the java compile time outputs--> |
|
75 <property name="compile.result.root" |
|
76 location="${epocroot}epoc32/build/jrt/javabuild"/> |
|
77 |
|
78 <!--The root file where the jarfiles are put that are used to build against--> |
|
79 <property name="jar.destination.root" |
|
80 location="${epocroot}epoc32/release/${target.platform}/${real.cfg.name}"/> |
|
81 |
|
82 <!--JAVA_HOME for JAPT & JAR2JXE --> |
|
83 |
|
84 <!-- Set executable ending for Java platform tools --> |
|
85 <condition property="j9.java.home" |
|
86 value="${epocroot}epoc32/tools/java/japtjxe.windows" |
|
87 else="${epocroot}epoc32/tools/java/japtjxe.linux"> |
|
88 <os family="windows"/> |
|
89 </condition> |
|
90 |
|
91 <!--The utility file containing platform specific fetures--> |
|
92 <property name="dyn.platform.utilities.xml.file" value="utilities.s60.xml"/> |
|
93 |
|
94 <!--The default directory for cldc based s60 java code--> |
|
95 <property name="javasrc.platform.specific" value="../javasrc.s60"/> |
|
96 |
|
97 <!--The default directory for cdc based s60 java code--> |
|
98 <property name="javasrc.platform.specific.cdc" value="../javasrc.s60.cdc"/> |
|
99 |
|
100 <!--The java resource root --> |
|
101 <property name="java.res.root" |
|
102 location="${epocroot}epoc32/release/${target.platform}/${real.cfg.name}/z/resource/java"/> |
|
103 |
|
104 <!--The java captain datacage --> |
|
105 <property name="java.captain.datacage" |
|
106 location="${epocroot}epoc32/release/${target.platform}/${real.cfg.name}/z/private/200211dc"/> |
|
107 |
|
108 <!--The extension directory of the VM. --> |
|
109 <property name="vm.extension.directory" |
|
110 location="${java.res.root}/jvm/lib/common"/> |
|
111 |
|
112 <!--The directory for entitys to be set to bootclass path. This is the location |
|
113 where the jar and/or odc files goes to --> |
|
114 <property name="bcp.dest.directory" |
|
115 location="${java.res.root}/jvm/lib/jrt"/> |
|
116 |
|
117 </target> |
|
118 |
|
119 |
|
120 <!--Set the properties with linux specific values--> |
|
121 <target name="set.linux.properties" if="target.linux"> |
|
122 <!--The root for the java compile time outputs--> |
|
123 <property name="compile.result.root" |
|
124 location="${env.JAVA_BIN_ROOT}/javabuild"/> |
|
125 |
|
126 <!--Location of eswt.jar. This is needed in compile time in Linux--> |
|
127 <property name="eswt.jar" value=":${java.src.root}/javauis/bin/eswt.jar"/> |
|
128 |
|
129 <!--The root file where the interface jarfiles are put --> |
|
130 <property name="jar.destination.root" |
|
131 location="${compile.result.root}/jars/${target.platform}/${target.cfg}"/> |
|
132 |
|
133 <!--The utility file containing platform specific fetures--> |
|
134 <property name="dyn.platform.utilities.xml.file" value="utilities.linux.xml"/> |
|
135 |
|
136 <!--The default directory for cldc based linux java code--> |
|
137 <property name="javasrc.platform.specific" value="../javasrc.linux"/> |
|
138 |
|
139 <!--The default directory for cdc based linux java code--> |
|
140 <property name="javasrc.platform.specific.cdc" value="../javasrc.linux.cdc"/> |
|
141 |
|
142 <!--The java resource root --> |
|
143 <property name="java.res.root" |
|
144 location="${env.JAVA_BIN_ROOT}"/> |
|
145 |
|
146 <!--The java captain datacage --> |
|
147 <property name="java.captain.datacage" |
|
148 location="${env.JAVA_BIN_ROOT}"/> |
|
149 |
|
150 <!--The extension directory of the VM. --> |
|
151 <property name="vm.extension.directory" location="${env.JAVA_BIN_ROOT}/jsr/classes/common"/> |
|
152 |
|
153 <!--The directory for entitys to be set to bootclass path. This is the location |
|
154 where the jar and/or odc files goes to --> |
|
155 <property name="bcp.dest.directory" |
|
156 location="${vm.extension.directory}"/> |
|
157 |
|
158 </target> |
|
159 |
|
160 <!-- Set target.s60 or target.linux --> |
|
161 <target name="set.target" depends="explicit.target.type, implicit.target.type"> |
|
162 <condition property="target.s60"> |
|
163 <equals arg1="${target.type}" arg2="s60"/> |
|
164 </condition> |
|
165 <condition property="target.linux"> |
|
166 <equals arg1="${target.type}" arg2="linux"/> |
|
167 </condition> |
|
168 </target> |
|
169 |
|
170 <!-- Get implicit target.type (s60 or linux) --> |
|
171 <target name="implicit.target.type" unless="target.type"> |
|
172 <condition property="target.type" value="s60"> |
|
173 <os family="windows"/> |
|
174 </condition> |
|
175 <condition property="target.type" value="linux"> |
|
176 <os family="unix"/> |
|
177 </condition> |
|
178 </target> |
|
179 |
|
180 <!-- Get explicit target type from variable "target.buildenv" --> |
|
181 <target name="explicit.target.type" if="env.BUILDENV"> |
|
182 <condition property="target.type" value="s60"> |
|
183 <equals arg1="${env.BUILDENV}" arg2="symbian"/> |
|
184 </condition> |
|
185 <condition property="target.type" value="linux"> |
|
186 <equals arg1="${env.BUILDENV}" arg2="linux"/> |
|
187 </condition> |
|
188 |
|
189 </target> |
|
190 |
|
191 <!--Set default value for target.platform --> |
|
192 <target name="define.target.platform" unless="target.platform"> |
|
193 <condition property="target.platform" |
|
194 value="winscw" |
|
195 else="linux"> |
|
196 <isset property="target.s60" /> |
|
197 </condition> |
|
198 </target> |
|
199 |
|
200 <!--Set default value for target.cfg --> |
|
201 <target name="define.target.cfg" unless="target.cfg"> |
|
202 <property name="target.cfg" value="debug"/> |
|
203 </target> |
|
204 |
|
205 <!--Set default value for bootclasspath --> |
|
206 <target name="define.bootclasspath" unless="bootclasspath"> |
|
207 <property name="bootclasspath" value="${bootclasspath.cldc}"/> |
|
208 </target> |
|
209 |
|
210 <!--Set default value for java.src.paths --> |
|
211 <target name="define.javasrc.path" unless="java.src.paths"> |
|
212 <property name="java.src.paths" value="../javasrc"/> |
|
213 </target> |
|
214 |
|
215 <!--Set default value for jar.filename --> |
|
216 <target name="define.jar.filename" unless="jar.filename"> |
|
217 <property name="jar.filename" value="${ant.project.name}.jar"/> |
|
218 </target> |
|
219 |
|
220 <!--Set default value for native.dll.name --> |
|
221 <target name="define.native.dll.name" unless="native.dll.name"> |
|
222 <property name="native.dll.name" value="${ant.project.name}"/> |
|
223 </target> |
|
224 |
|
225 <!--Set default value for odc.file.name --> |
|
226 <target name="define.odc.file.name" unless="odc.file.name"> |
|
227 <property name="odc.file.name" value="${ant.project.name}"/> |
|
228 </target> |
|
229 |
|
230 <!--Set default value for bootclasspath.second --> |
|
231 <target name="define.bootclasspath.second" unless="bootclasspath.second"> |
|
232 <property name="bootclasspath.second" value="${bootclasspath.cdc}"/> |
|
233 </target> |
|
234 |
|
235 <!--Set default value for bootclasspath.second --> |
|
236 <target name="define.java.src.second.paths" unless="java.src.second.paths"> |
|
237 <property name="java.src.second.paths" value="../javasrc.cdc"/> |
|
238 </target> |
|
239 |
|
240 <!--Target for making component specific initalizations depending on |
|
241 the values of dynamic properties (e.g. Target platform). |
|
242 The default implementation of this target is empty and the component |
|
243 should override this if it provides public APIs --> |
|
244 <target name="init.component.properties"> |
|
245 </target> |
|
246 |
|
247 |
|
248 <!--Initilize the dynamic properties --> |
|
249 <target name="init.properties" depends="set.target, |
|
250 define.target.platform, |
|
251 define.target.cfg, |
|
252 set.s60.properties, |
|
253 set.linux.properties, |
|
254 define.bootclasspath, |
|
255 init.component.properties, |
|
256 define.javasrc.path, |
|
257 define.jar.filename, |
|
258 define.native.dll.name, |
|
259 define.odc.file.name, |
|
260 define.bootclasspath.second, |
|
261 define.java.src.second.paths"> |
|
262 |
|
263 <!--The directory where the component specific compile results are put to --> |
|
264 <property name="component.root.dir" location="${compile.result.root}/${component.dir}"/> |
|
265 |
|
266 <!--The directory where the component specific classes are put to --> |
|
267 <property name="classes.dir" location="${component.root.dir}/classes"/> |
|
268 |
|
269 <!--The directory where the component specific classes (1) are put to --> |
|
270 <property name="classes.first.dir" location="${classes.dir}/first"/> |
|
271 |
|
272 <!--The directory where the component specific classes (2) are put to --> |
|
273 <property name="classes.second.dir" location="${classes.dir}/second"/> |
|
274 |
|
275 <!--The directory where the component specific classes are collected to --> |
|
276 <property name="classes.collection.dir" location="${classes.dir}/collection"/> |
|
277 |
|
278 <!--The directory where the temporary javah header files are put to --> |
|
279 <property name="temp.javah.dir" location="${component.root.dir}/temp.javah"/> |
|
280 |
|
281 <!--The directory where the compile time javah header files are put to --> |
|
282 <!--property name="javah.dir" location="${component.root.dir}/inc.javah"/--> |
|
283 <property name="javah.dir" location="${compile.result.root}/inc.javah"/> |
|
284 |
|
285 <!--The jar file containing all the internal API class files--> |
|
286 <property name="platform.api.jar" location="${jar.destination.root}/java_platform_api.jar"/> |
|
287 |
|
288 <!--The jar file containing all the public API class files--> |
|
289 <property name="public.api.jar" location="${jar.destination.root}/java_public_api.jar"/> |
|
290 |
|
291 <!--The jar file containing all the cldc based class files--> |
|
292 <property name="impl.cldc.jar" location="${jar.destination.root}/java_impl_cldc.jar"/> |
|
293 |
|
294 <!--The jar file containing all the cldc based class files--> |
|
295 <property name="impl.cdc.jar" location="${jar.destination.root}/java_impl_cdc.jar"/> |
|
296 |
|
297 <!--The jar file containing all the localization files--> |
|
298 <property name="resource.jar" location="${bcp.dest.directory}/resources.jar"/> |
|
299 |
|
300 <!--The jar file containing all the cldc based class files and cldc classes itself |
|
301 This is for signature testing --> |
|
302 <property name="signature.jar" location="${jar.destination.root}/java_signature_test.jar"/> |
|
303 |
|
304 <!--Property for setting the javadebug for java compilation--> |
|
305 <condition property="javac.debug.on" |
|
306 value="true" |
|
307 else="false"> |
|
308 <equals arg1="${target.cfg}" arg2="debug"/> |
|
309 </condition> |
|
310 |
|
311 <!--Does the directory containing platform specific cldc based code exist --> |
|
312 <available file="${javasrc.platform.specific}" property="javasrc.platform.specific.present"/> |
|
313 |
|
314 <!--Does the directory containing platform specific cdc based code exist --> |
|
315 <available file="${javasrc.platform.specific.cdc}" property="javasrc.platform.specific.cdc.present"/> |
|
316 |
|
317 </target> |
|
318 </project> |
|
319 |