223 |
223 |
224 <target name="mini-build-archive" depends="mini-build-archive-ant,mini-build-archive-ec-full,mini-build-archive-ant-empty-config" /> |
224 <target name="mini-build-archive" depends="mini-build-archive-ant,mini-build-archive-ec-full,mini-build-archive-ant-empty-config" /> |
225 |
225 |
226 <!-- This target will copy a part of the tree structure to test policy.remover mapper. --> |
226 <!-- This target will copy a part of the tree structure to test policy.remover mapper. --> |
227 <target name="prepare-archiving"> |
227 <target name="prepare-archiving"> |
228 <delete dir="${build.drive}/test_policy" failonerror="false" /> |
228 <delete dir="${build.drive}/test_policy" failonerror="false" /> |
229 <mkdir dir="${build.drive}/test_policy/os" /> |
229 <mkdir dir="${build.drive}/test_policy/os" /> |
230 <!-- Creating a policy file under the new s60 test root. --> |
230 <!-- Creating a policy file under the new s60 test root. --> |
231 <echo file="${build.drive}/test_policy/distribution.policy.s60">0</echo> |
231 <echo file="${build.drive}/test_policy/distribution.policy.s60">0</echo> |
232 <echo file="${build.drive}/test_policy/os/distribution.policy.s60">0</echo> |
232 <echo file="${build.drive}/test_policy/os/distribution.policy.s60">0</echo> |
233 <!-- Getting some Content --> |
233 <!-- Getting some Content --> |
234 <copy todir="${build.drive}/test_policy"> |
234 <copy todir="${build.drive}/test_policy"> |
235 <fileset dir="${build.drive}/sf"> |
235 <fileset dir="${build.drive}/sf"> |
236 <include name="os/graphics/" /> |
236 <include name="os/graphics/" /> |
237 </fileset> |
237 </fileset> |
238 </copy> |
238 </copy> |
239 </target> |
239 </target> |
240 |
240 |
241 <target name="mini-build-archive-ec-full"> |
241 <target name="mini-build-archive-ec-full"> |
242 <antcall target="do-mini-build-archive"> |
242 <antcall target="do-mini-build-archive"> |
243 <param name="build.system" value="ec-helium" /> |
243 <param name="build.system" value="ec-helium" /> |
244 <param name="archive.using.ec" value="true" /> |
244 <param name="archive.using.ec" value="true" /> |
245 <param name="zipping.type" value="ec" /> |
245 <param name="zipping.type" value="ec" /> |
246 <!-- Uses to set the target location --> |
246 <!-- Uses to set the target location --> |
247 </antcall> |
247 </antcall> |
248 </target> |
248 </target> |
249 |
249 |
250 <target name="mini-build-archive-ant"> |
250 <target name="mini-build-archive-ant"> |
251 <antcall target="do-mini-build-archive"> |
251 <antcall target="do-mini-build-archive"> |
252 <param name="build.system" value="ebs" /> |
252 <param name="build.system" value="ebs" /> |
253 <param name="archive.using.ec" value="false" /> |
253 <param name="archive.using.ec" value="false" /> |
254 <param name="zipping.type" value="ant" /> |
254 <param name="zipping.type" value="ant" /> |
255 <!-- Uses to set the target location --> |
255 <!-- Uses to set the target location --> |
256 </antcall> |
256 </antcall> |
257 |
257 |
258 </target> |
258 </target> |
259 |
259 |
260 <target name="mini-build-archive-ant-empty-config"> |
260 <target name="mini-build-archive-ant-empty-config"> |
261 <hlm:zipContentMacro type="ee-empty" ec="false" file="${zip.config.file}" failonemptyconfig="false" /> |
261 <hlm:zipContentMacro type="ee-empty" ec="false" file="${zip.config.file}" failonemptyconfig="false" /> |
262 <au:expectfailure> |
262 <au:expectfailure> |
263 <hlm:zipContentMacro type="ee-empty" ec="false" file="${zip.config.file}" failonemptyconfig="true" /> |
263 <hlm:zipContentMacro type="ee-empty" ec="false" file="${zip.config.file}" failonemptyconfig="true" /> |
264 </au:expectfailure> |
264 </au:expectfailure> |
265 </target> |
265 </target> |
266 |
266 |
267 <target name="do-mini-build-archive"> |
267 <target name="do-mini-build-archive"> |
268 <runtarget target="prepare-archiving" /> |
268 <runtarget target="prepare-archiving" /> |
269 <runtarget target="zip-ee" /> |
269 <runtarget target="zip-ee" /> |
270 <!-- Checking the zip generation Ant --> |
270 <!-- Checking the zip generation Ant --> |
271 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/release_metadata.xml" /> |
271 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/release_metadata.xml" /> |
272 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_app_organizer_clock_binary.zip" /> |
272 <!--au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_app_organizer_clock_binary.zip" /--> |
273 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_app_organizer_clock.zip" /> |
273 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_app_organizer_clock.zip" /> |
274 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_0.zip" /> |
274 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_0.zip" /> |
275 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_1.zip" /> |
275 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_1.zip" /> |
276 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_3.zip" /> |
276 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_3.zip" /> |
277 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_950.zip" /> |
277 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_7.zip" /> |
|
278 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_1401.zip" /> |
278 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_0.zip" /> |
279 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_0.zip" /> |
279 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1.zip" /> |
280 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1.zip" /> |
280 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_2.zip" /> |
281 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_2.zip" /> |
281 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_3.zip" /> |
282 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_3.zip" /> |
282 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_7.zip" /> |
283 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_7.zip" /> |
283 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1308.zip" /> |
284 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1308.zip" /> |
284 </target> |
285 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1422.zip" /> |
285 |
286 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1435.zip" /> |
286 |
287 <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1436.zip" /> |
287 <target name="mini-build-cleanup"> |
288 </target> |
288 <delete verbose="true" includeemptydirs="true" failonerror="false"> |
289 |
289 <fileset dir="${build.drive}/" casesensitive="false"> |
290 |
290 <include name="makefile" /> |
291 <target name="mini-build-cleanup"> |
291 <include name="*.mk" /> |
292 <delete verbose="true" includeemptydirs="true" failonerror="false"> |
292 <include name="*.make" /> |
293 <fileset dir="${build.drive}/" casesensitive="false"> |
293 <include name="ecloud_tmp_*/**" /> |
294 <include name="makefile" /> |
294 <include name="emake.*" /> |
295 <include name="*.mk" /> |
295 <include name="epoc32/build/**" /> |
296 <include name="*.make" /> |
|
297 <include name="ecloud_tmp_*/**" /> |
|
298 <include name="emake.*" /> |
|
299 <include name="epoc32/build/**" /> |
296 <include name="epoc32/rombuild/imaker_temp/**" /> |
300 <include name="epoc32/rombuild/imaker_temp/**" /> |
297 <include name="epoc32/rombuild/${product.name}/**" /> |
301 <include name="epoc32/rombuild/${product.name}/**" /> |
298 <include name="epoc32/rom/config/*/**/foti*.*" /> |
302 <include name="epoc32/rom/config/*/**/foti*.*" /> |
299 <include name="output/**" /> |
303 <include name="output/**" /> |
300 <include name="timestart.txt" /> |
304 <include name="timestart.txt" /> |
301 <include name="timestop.txt" /> |
305 <include name="timestop.txt" /> |
302 <exclude name="output/build_area/localised/**" /> |
306 <exclude name="output/build_area/localised/**" /> |
303 </fileset> |
307 </fileset> |
304 </delete> |
308 </delete> |
305 </target> |
309 </target> |
306 |
310 |
307 <target name="mini-build-install-new-imaker"> |
311 <target name="mini-build-install-new-imaker"> |
308 <!-- Export custom image configuration file. --> |
312 <!-- Export custom image configuration file. --> |
309 <copy file="config/image_conf_naming.mk" tofile="${build.drive}/epoc32/rom/config/image_conf_naming.mk" /> |
313 <copy file="config/image_conf_naming.mk" tofile="${build.drive}/epoc32/rom/config/image_conf_naming.mk" /> |
310 <property name="imaker.dir" value="${helium.dir}/../external/imaker" /> |
314 <property name="imaker.dir" value="${helium.dir}/../external/imaker" /> |
311 <!-- |
315 <!-- |
312 <delete dir="${build.drive}/imaker_rnd"/> |
316 <delete dir="${build.drive}/imaker_rnd"/> |
313 <copy todir="${build.drive}/imaker_rnd"> |
317 <copy todir="${build.drive}/imaker_rnd"> |
314 <fileset dir="${imaker.dir}"/> |
318 <fileset dir="${imaker.dir}"/> |
315 </copy> |
319 </copy> |
316 |
320 |
317 <hlm:bldmakeBldfilesMacro dir="${build.drive}/imaker_rnd/group"/> |
321 <hlm:bldmakeBldfilesMacro dir="${build.drive}/imaker_rnd/group"/> |
318 <hlm:abldMacro dir="${build.drive}/imaker_rnd/group" command="cleanexport" platform=""/> |
322 <hlm:abldMacro dir="${build.drive}/imaker_rnd/group" command="cleanexport" platform=""/> |
319 <hlm:abldMacro dir="${build.drive}/imaker_rnd/group" command="export" platform=""/> |
323 <hlm:abldMacro dir="${build.drive}/imaker_rnd/group" command="export" platform=""/> |
320 --> |
324 --> |
321 </target> |
325 </target> |
322 |
326 |
323 <target name="mini-build-check"> |
327 <target name="mini-build-check"> |
324 <!-- Check if prep has set some prop correctly... --> |
328 <!-- Check if prep has set some prop correctly... --> |
325 <echo>'${arm.compiler.version}'</echo> |
329 <echo>'${arm.compiler.version}'</echo> |
326 <au:assertMatches string="${arm.compiler.version}" pattern="RVCT2\.2 \[Build 616\]" casesensitive="false" multiline="true" /> |
330 <au:assertMatches string="${arm.compiler.version}" pattern="RVCT2\.2 \[Build 616\]" casesensitive="false" multiline="true" /> |
327 |
331 |
328 <!-- Check if compile-main step did what expected... --> |
332 <!-- Check if compile-main step did what expected... --> |
329 <au:assertFileExists file="${canonical.sysdef.file}" /> |
333 <au:assertFileExists file="${canonical.sysdef.file}" /> |
330 <!--<au:assertFileExists file="${build.drive}/Makefile"/>--> |
334 <!--<au:assertFileExists file="${build.drive}/Makefile"/>--> |
331 <if> |
335 <if> |
332 <istrue value="${blocks.enabled}" /> |
336 <istrue value="${blocks.enabled}" /> |
333 <then> |
337 <then> |
334 <au:assertFileExists file="${blocks.config.dir}/roms.blocks_component.xml" /> |
338 <au:assertFileExists file="${blocks.config.dir}/roms.blocks_component.xml" /> |
335 </then> |
339 </then> |
336 </if> |
340 </if> |
337 |
341 |
338 <if> |
342 <if> |
339 <isset property="build.system.ec-helium" /> |
343 <isset property="build.system.ec-helium" /> |
340 <then> |
344 <then> |
341 <au:assertFileExists file="${build.drive}/emake.data" /> |
345 <au:assertFileExists file="${build.drive}/emake.data" /> |
342 <au:assertFileExists file="${temp.build.dir}/${build.id}.helium_minibuild_compile_run_emake.bat" /> |
346 <au:assertFileExists file="${temp.build.dir}/${build.id}.helium_minibuild_compile_run_emake.bat" /> |
343 </then> |
347 </then> |
344 </if> |
348 </if> |
345 |
349 |
346 <resourcecount property="fpsx.count"> |
350 <resourcecount property="fpsx.count"> |
347 <fileset dir="${build.output.dir}"> |
351 <fileset dir="${build.output.dir}"> |
348 <include name="**/*.core.fpsx" /> |
352 <include name="**/*.core.fpsx" /> |
349 <include name="**/*.rofs2.fpsx" /> |
353 <include name="**/*.rofs2.fpsx" /> |
350 </fileset> |
354 </fileset> |
351 </resourcecount> |
355 </resourcecount> |
352 <echo>Number of images generated: ${fpsx.count}.</echo> |
356 <echo>Number of images generated: ${fpsx.count}.</echo> |
353 </target> |
357 |
354 |
358 <!-- Taking abld build failure because of deprecation into account. --> |
355 |
359 <if> |
356 <!-- Custom iMaker configuration - preparing for future dev. --> |
360 <or> |
357 <property name="imaker.fmpp.makefile" location="${helium.dir}/tools/common/templates/imaker/build_imaker_roms_signing.mk.ftl" /> |
361 <contains string="${build.system}" substring="ebs" /> |
358 <hlm:imakerconfigurationset id="imaker.rom.config"> |
362 <contains string="${build.system}" substring="ec-helium" /> |
359 <imakerconfiguration> |
363 </or> |
360 <makefileset> |
364 <then> |
|
365 <au:assertTrue message="Build should have a pending failure because abld is not supported anymore."> |
|
366 <hlm:hasDeferredFailure name="compileSignalInput" /> |
|
367 </au:assertTrue> |
|
368 <hlm:clearDeferredFailures/> |
|
369 </then> |
|
370 </if> |
|
371 </target> |
|
372 |
|
373 |
|
374 <!-- Custom iMaker configuration - preparing for future dev. --> |
|
375 <property name="imaker.fmpp.makefile" location="${helium.dir}/tools/common/templates/imaker/build_imaker_roms_signing.mk.ftl" /> |
|
376 <hlm:imakerconfigurationset id="imaker.rom.config"> |
|
377 <imakerconfiguration> |
|
378 <makefileset> |
361 <include name="**/image_conf_${product.name}.mk" /> |
379 <include name="**/image_conf_${product.name}.mk" /> |
362 </makefileset> |
380 </makefileset> |
363 <targetset> |
381 <targetset> |
364 <include name="fota" /> |
382 <include name="fota" /> |
365 </targetset> |
383 </targetset> |
366 </imakerconfiguration> |
384 </imakerconfiguration> |
367 <imakerconfiguration> |
385 <imakerconfiguration> |
368 <makefileset> |
386 <makefileset> |
369 <include name="**/${product.name}/*ui.mk"/> |
387 <include name="**/${product.name}/*ui.mk"/> |
370 </makefileset> |
388 </makefileset> |
371 <targetset> |
389 <targetset> |
372 <include name="core(?:-prd|-rnd|-subcon)?$" /> |
390 <include name="core(?:-prd|-rnd|-subcon)?$" /> |
373 <include name="^langpack_01$" /> |
391 <include name="^langpack_01$" /> |
374 <exclude name=".*-image$" /> |
392 <exclude name=".*-image$" /> |
375 </targetset> |
393 </targetset> |
376 <variableset> |
394 <variableset> |
377 <variable name="USE_FOTI" value="1" /> |
395 <variable name="USE_FOTI" value="1" /> |
378 <variable name="USE_FOTA" value="1" /> |
396 <variable name="USE_FOTA" value="1" /> |
379 <variable name="TYPE" value="rnd" /> |
397 <variable name="TYPE" value="rnd" /> |
380 </variableset> |
398 </variableset> |
381 </imakerconfiguration> |
399 </imakerconfiguration> |
382 </hlm:imakerconfigurationset> |
400 </hlm:imakerconfigurationset> |
383 |
401 |
384 <fileset dir="${build.drive}/" id="mmp.to.target.config"> |
402 <fileset dir="${build.drive}/" id="mmp.to.target.config"> |
385 <include name="s60/app/**/*.mmp" /> |
403 <include name="s60/app/**/*.mmp" /> |
386 </fileset> |
404 </fileset> |
387 |
405 |
388 <import file="build.sbsinput.ant.xml" /> |
406 <import file="build.sbsinput.ant.xml" /> |
389 </project> |
407 </project> |
390 |
408 |