173 </else> |
173 </else> |
174 </if> |
174 </if> |
175 <stopwatch name="sf-compile" action="elapsed"/> |
175 <stopwatch name="sf-compile" action="elapsed"/> |
176 </target> |
176 </target> |
177 |
177 |
178 <target name="sf-s60-create-cenrep"> |
178 <target name="sf-s60-create-cenrep"> |
179 <echo message="INFO Generating CenRep"/> |
179 <echo message="INFO Generating CenRep"/> |
180 <echo message="Move 'sf.spec.s60.cenrep.export.location' out of the build..."/> |
180 <echo message="Move 'sf.spec.s60.cenrep.export.location' out of the build..."/> |
181 <property name="sf.spec.s60.cenrep.export.location.1" value="/epoc32/rom/config/confml_data/s60"/> |
181 <property name="sf.spec.s60.cenrep.export.location.1" value="/epoc32/rom/config/confml_data/s60"/> |
182 <property name="sf.spec.s60.cenrep.export.location.2" value="/epoc32/rom/config/assets"/> |
182 <property name="sf.spec.s60.cenrep.export.location.2" value="/epoc32/rom/config/assets"/> |
183 |
183 |
184 <if><available file="${build.drive}/${sf.spec.s60.cenrep.export.location.1}" type="dir"/> |
184 <if><available file="${build.drive}/${sf.spec.s60.cenrep.export.location.1}" type="dir"/> |
185 <then> |
185 <then> |
186 <property name="sf.spec.s60.cenrep.export.location" value="${sf.spec.s60.cenrep.export.location.1}"/> |
186 <property name="sf.spec.s60.cenrep.export.location" value="${sf.spec.s60.cenrep.export.location.1}"/> |
187 </then> |
187 </then> |
188 <else> |
188 <else> |
189 <property name="sf.spec.s60.cenrep.export.location" value="${sf.spec.s60.cenrep.export.location.2}"/> |
189 <property name="sf.spec.s60.cenrep.export.location" value="${sf.spec.s60.cenrep.export.location.2}"/> |
190 </else> |
190 </else> |
191 </if> |
191 </if> |
192 <echo message="${helium.dir}/../ConfigurationTool/cli_build.cmd -master_conf s60 -impl ${sf.spec.s60.cenrep.export.location} -confml ${sf.spec.s60.cenrep.export.location} -ignore_errors" /> |
192 |
|
193 <echo message="${helium.dir}/../ConfigurationTool/cli_build.cmd -master_conf s60 -impl ${sf.spec.s60.cenrep.export.location} -confml ${sf.spec.s60.cenrep.export.location} -ignore_errors" /> |
193 <exec executable="${helium.dir}/../ConfigurationTool/cli_build.cmd" dir="${build.drive}" failonerror="false" output="${build.log.dir}/${build.id}_create_cenrep.log"> |
194 <exec executable="${helium.dir}/../ConfigurationTool/cli_build.cmd" dir="${build.drive}" failonerror="false" output="${build.log.dir}/${build.id}_create_cenrep.log"> |
194 <arg value="-master_conf"/> |
195 <arg value="-master_conf"/> |
195 <arg value="s60"/> |
196 <arg value="s60"/> |
196 <arg value="-impl"/> |
197 <arg value="-impl"/> |
197 <arg value="${sf.spec.s60.cenrep.export.location}"/> |
198 <arg value="${sf.spec.s60.cenrep.export.location}"/> |
198 <arg value="-confml"/> |
199 <arg value="-confml"/> |
199 <arg value="${sf.spec.s60.cenrep.export.location}"/> |
200 <arg value="${sf.spec.s60.cenrep.export.location}"/> |
200 <arg value="-ignore_errors"/> |
201 <arg value="-ignore_errors"/> |
201 </exec> |
202 </exec> |
202 |
203 |
203 <if><available file="${build.drive}/cli_build_error.log" /> |
204 <if><available file="${build.drive}/cli_build_error.log" /> |
204 <then> |
205 <then> |
205 <echo message="INFO CenRep error log found, moving to ${build.log.dir}" /> |
206 <echo message="INFO CenRep error log found, moving to ${build.log.dir}" /> |
206 <move file="${build.drive}/cli_build_error.log" todir="${build.log.dir}" failonerror="false"/> |
207 <move file="${build.drive}/cli_build_error.log" todir="${build.log.dir}" failonerror="false"/> |
207 </then> |
208 </then> |
208 </if> |
209 </if> |
209 |
210 </target> |
210 </target> |
211 |
211 |
212 <target name="sf-s60-cone-cenrep"> |
212 <target name="sf-s60-cone-cenrep"> |
213 <!-- TODO: Make this better, as multiple exec calls are a bit clunky --> |
213 <!-- TODO: Make this better, as multiple exec calls are a bit clunky --> |
214 <if> |
214 <if><available file="${env.PDT_HOME}/ConE/" type="dir"/> |
215 <available file="${env.PDT_HOME}/ConE/" type="dir"/> |
215 <then> |
216 <then> |
216 <echo message="INFO Generating ConE CenRep"/> |
217 <echo message="INFO Generating ConE CenRep"/> |
217 |
218 |
218 <exec executable="cmd" dir="${build.drive}/epoc32/rom/config" failonerror="false" output="${build.log.dir}/${build.id}_cenrep.log"> |
219 <exec executable="cmd" dir="${build.drive}/epoc32/rom/config" failonerror="false" output="${build.log.dir}/${build.id}_cenrep.log"> |
219 <arg value="/c"/> |
220 <arg value="/c"/> |
220 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
221 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
221 <arg value="generate"/> |
222 <arg value="generate"/> |
222 <arg value="-c"/> |
223 <arg value="-c"/> |
223 <arg value="convert.confml"/> |
224 <arg value="convert.confml"/> |
224 <arg value="-o"/> |
225 <arg value="-o"/> |
225 <arg value="."/> |
226 <arg value="."/> |
226 </exec> |
227 </exec> |
227 |
228 |
228 <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log"> |
229 <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log"> |
229 <arg value="/c"/> |
230 <arg value="/c"/> |
230 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
231 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
231 <arg value="generate"/> |
232 <arg value="generate"/> |
232 <arg value="-p"/> |
233 <arg value="-p"/> |
233 <arg value="\epoc32\rom\config"/> |
234 <arg value="\epoc32\rom\config"/> |
234 <arg value="-o"/> |
235 <arg value="-o"/> |
235 <arg value="\epoc32\release\winscw\udeb\z"/> |
236 <arg value="\epoc32\release\winscw\udeb\z"/> |
236 <arg value="-c"/> |
237 <arg value="-c"/> |
237 <arg value="s60_root.confml"/> |
238 <arg value="s60_root.confml"/> |
238 <arg value="-v"/> |
239 <arg value="-v"/> |
239 <arg value="5"/> |
240 <arg value="5"/> |
240 </exec> |
241 </exec> |
241 |
242 |
242 <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log"> |
243 <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log"> |
243 <arg value="/c"/> |
244 <arg value="/c"/> |
244 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
245 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
245 <arg value="generate"/> |
246 <arg value="generate"/> |
246 <arg value="-p"/> |
247 <arg value="-p"/> |
247 <arg value="\epoc32\rom\config"/> |
248 <arg value="\epoc32\rom\config"/> |
248 <arg value="-o"/> |
249 <arg value="-o"/> |
249 <arg value="\epoc32\release\winscw\urel\z"/> |
250 <arg value="\epoc32\release\winscw\urel\z"/> |
250 <arg value="-c"/> |
251 <arg value="-c"/> |
251 <arg value="s60_root.confml"/> |
252 <arg value="s60_root.confml"/> |
252 <arg value="-v"/> |
253 <arg value="-v"/> |
253 <arg value="5"/> |
254 <arg value="5"/> |
254 </exec> |
255 </exec> |
255 |
256 |
256 <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log"> |
257 <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log"> |
257 <arg value="/c"/> |
258 <arg value="/c"/> |
258 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
259 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
259 <arg value="generate"/> |
260 <arg value="generate"/> |
260 <arg value="-p"/> |
261 <arg value="-p"/> |
261 <arg value="\epoc32\rom\config"/> |
262 <arg value="\epoc32\rom\config"/> |
262 <arg value="-o"/> |
263 <arg value="-o"/> |
263 <arg value="\epoc32\data\z"/> |
264 <arg value="\epoc32\data\z"/> |
264 <arg value="-c"/> |
265 <arg value="-c"/> |
265 <arg value="s60_root.confml"/> |
266 <arg value="s60_root.confml"/> |
266 <arg value="-v"/> |
267 <arg value="-v"/> |
267 <arg value="5"/> |
268 <arg value="5"/> |
268 </exec> |
269 </exec> |
269 |
270 |
270 <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log"> |
271 <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log"> |
271 <arg value="/c"/> |
272 <arg value="/c"/> |
272 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
273 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
273 <arg value="generate"/> |
274 <arg value="generate"/> |
274 <arg value="-p"/> |
275 <arg value="-p"/> |
275 <arg value="\epoc32\rom\config"/> |
276 <arg value="\epoc32\rom\config"/> |
276 <arg value="-o"/> |
277 <arg value="-o"/> |
277 <arg value="\epoc32\release\winscw\udeb\z"/> |
278 <arg value="\epoc32\release\winscw\udeb\z"/> |
278 <arg value="-c"/> |
279 <arg value="-c"/> |
279 <arg value="symbianos_root.confml"/> |
280 <arg value="symbianos_root.confml"/> |
280 <arg value="-v"/> |
281 <arg value="-v"/> |
281 <arg value="5"/> |
282 <arg value="5"/> |
282 </exec> |
283 </exec> |
283 |
284 |
284 <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log"> |
285 <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log"> |
285 <arg value="/c"/> |
286 <arg value="/c"/> |
286 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
287 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
287 <arg value="generate"/> |
288 <arg value="generate"/> |
288 <arg value="-p"/> |
289 <arg value="-p"/> |
289 <arg value="\epoc32\rom\config"/> |
290 <arg value="\epoc32\rom\config"/> |
290 <arg value="-o"/> |
291 <arg value="-o"/> |
291 <arg value="\epoc32\release\winscw\urel\z"/> |
292 <arg value="\epoc32\release\winscw\urel\z"/> |
292 <arg value="-c"/> |
293 <arg value="-c"/> |
293 <arg value="symbianos_root.confml"/> |
294 <arg value="symbianos_root.confml"/> |
294 <arg value="-v"/> |
295 <arg value="-v"/> |
295 <arg value="5"/> |
296 <arg value="5"/> |
296 </exec> |
297 </exec> |
297 |
298 |
298 <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log"> |
299 <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log"> |
299 <arg value="/c"/> |
300 <arg value="/c"/> |
300 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
301 <arg value="${env.PDT_HOME}/ConE/cone.cmd"/> |
301 <arg value="generate"/> |
302 <arg value="generate"/> |
302 <arg value="-p"/> |
303 <arg value="-p"/> |
303 <arg value="\epoc32\rom\config"/> |
304 <arg value="\epoc32\rom\config"/> |
304 <arg value="-o"/> |
305 <arg value="-o"/> |
305 <arg value="\epoc32\data\z"/> |
306 <arg value="\epoc32\data\z"/> |
306 <arg value="-c"/> |
307 <arg value="-c"/> |
307 <arg value="symbianos_root.confml"/> |
308 <arg value="symbianos_root.confml"/> |
308 <arg value="-v"/> |
309 <arg value="-v"/> |
309 <arg value="5"/> |
310 <arg value="5"/> |
310 </exec> |
311 </exec> |
311 |
312 |
312 </then> |
313 </then> |
313 <else> |
314 <else> |
314 <echo message="WARNING ConE is required to run this target. ConE not found in ${env.PDT_HOME}/ConE/, please update your PDT."/> |
315 <echo message="WARNING ConE is required to run this target. ConE not found in ${env.PDT_HOME}/ConE/, please update your PDT."/> |
315 </else> |
316 </else> |
316 </if> |
317 </if> |
317 </target> |
318 </target> |
318 |
319 |
319 </project> |
320 </project> |
320 |
321 |