239 <property name="sf.epoc32.exclusions.file" value="nul:"/> |
238 <property name="sf.epoc32.exclusions.file" value="nul:"/> |
240 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log"> |
239 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log"> |
241 <arg value="a"/> |
240 <arg value="a"/> |
242 <arg value="-t${sf.spec.package.zip.format}"/> |
241 <arg value="-t${sf.spec.package.zip.format}"/> |
243 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
242 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
244 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
243 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
245 <arg value="-x@${sf.epoc32.exclusions.file}"/> |
244 <arg value="-x@${sf.epoc32.exclusions.file}"/> |
246 <arg value="-x!epoc32\gcc"/> |
245 <arg value="-x!epoc32\gcc"/> |
247 <arg value="-x!epoc32\gcc_mingw"/> |
246 <arg value="-x!epoc32\gcc_mingw"/> |
248 <arg value="-x!epoc32\tools"/> |
247 <arg value="-x!epoc32\tools"/> |
|
248 <arg value="-x!epoc32\data\buildinfo.txt"/> |
249 <arg value="-x!epoc32\build"/> |
249 <arg value="-x!epoc32\build"/> |
250 <arg value="-x!epoc32\release\armv5"/> |
250 <arg value="-x!epoc32\release\armv5"/> |
251 <arg value="-x!epoc32\release\winscw"/> |
251 <arg value="-x!epoc32\release\winscw"/> |
252 <arg value="-xr!*.sym"/> |
252 <arg value="-xr!*.sym"/> |
253 <arg value="${build.drive}/output/zips/release/binaries_epoc.zip"/> |
253 <arg value="${build.drive}/output/zips/release/binaries_epoc.zip"/> |
254 <arg value="epoc32\"/> |
254 <arg value="epoc32\"/> |
255 </exec> |
255 </exec> |
256 </sequential> |
256 </sequential> |
257 |
257 |
258 <if> |
258 <if> |
259 <isset property="sf.sdk.header.list.file"/> |
259 <isset property="sf.sdk.header.list.file"/> |
260 <then> |
260 <then> |
261 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_sdk.log"> |
261 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_sdk.log"> |
262 <arg value="a"/> |
262 <arg value="a"/> |
263 <arg value="-t${sf.spec.package.zip.format}"/> |
263 <arg value="-t${sf.spec.package.zip.format}"/> |
264 <arg value="-i@${sf.sdk.header.list.file}"/> |
264 <arg value="-i@${sf.sdk.header.list.file}"/> |
265 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
265 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
266 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
266 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
267 <arg value="${build.drive}/output/zips/release/binaries_epoc_sdk.zip"/> |
267 <arg value="${build.drive}/output/zips/release/binaries_epoc_sdk.zip"/> |
268 </exec> |
268 </exec> |
269 <!-- Check that all the files we want in the SDK are zipped --> |
269 <!-- Check that all the files we want in the SDK are zipped --> |
270 <antcall target="sf-log-to-brag"> |
270 <antcall target="sf-log-to-brag"> |
271 <param name="sf.brag.id" value="SDK"/> |
271 <param name="sf.brag.id" value="SDK"/> |
284 <!-- WinsCW binaries, by udeb/urel/lib --> |
284 <!-- WinsCW binaries, by udeb/urel/lib --> |
285 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw_udeb.log"> |
285 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw_udeb.log"> |
286 <arg value="a"/> |
286 <arg value="a"/> |
287 <arg value="-t${sf.spec.package.zip.format}"/> |
287 <arg value="-t${sf.spec.package.zip.format}"/> |
288 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
288 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
289 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
289 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
290 <arg value="-xr!*.sym"/> |
290 <arg value="-xr!*.sym"/> |
291 <arg value="-xr!*.lib"/> |
291 <arg value="-xr!*.lib"/> |
292 <arg value="${build.drive}/output/zips/release/binaries_winscw_udeb.zip"/> |
292 <arg value="${build.drive}/output/zips/release/binaries_winscw_udeb.zip"/> |
293 <arg value="epoc32\release\winscw\udeb"/> |
293 <arg value="epoc32\release\winscw\udeb"/> |
294 </exec> |
294 </exec> |
295 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw_urel.log"> |
295 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw_urel.log"> |
296 <arg value="a"/> |
296 <arg value="a"/> |
297 <arg value="-t${sf.spec.package.zip.format}"/> |
297 <arg value="-t${sf.spec.package.zip.format}"/> |
298 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
298 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
299 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
299 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
300 <arg value="-xr!*.sym"/> |
300 <arg value="-xr!*.sym"/> |
301 <arg value="-xr!*.lib"/> |
301 <arg value="-xr!*.lib"/> |
302 <arg value="${build.drive}/output/zips/release/binaries_winscw_urel.zip"/> |
302 <arg value="${build.drive}/output/zips/release/binaries_winscw_urel.zip"/> |
303 <arg value="epoc32\release\winscw\urel"/> |
303 <arg value="epoc32\release\winscw\urel"/> |
304 </exec> |
304 </exec> |
305 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw_lib.log"> |
305 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw_lib.log"> |
306 <arg value="a"/> |
306 <arg value="a"/> |
307 <arg value="-t${sf.spec.package.zip.format}"/> |
307 <arg value="-t${sf.spec.package.zip.format}"/> |
308 <arg value="-ir!epoc32/release/winscw/*.lib"/> |
308 <arg value="-ir!epoc32/release/winscw/*.lib"/> |
309 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
309 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
310 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
310 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
311 <arg value="${build.drive}/output/zips/release/binaries_winscw_lib.zip"/> |
311 <arg value="${build.drive}/output/zips/release/binaries_winscw_lib.zip"/> |
312 </exec> |
312 </exec> |
313 |
313 |
314 <!-- ARMv5 binaries, by udeb/urel/lib --> |
314 <!-- ARMv5 binaries, by udeb/urel/lib --> |
315 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5_udeb.log"> |
315 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5_udeb.log"> |
316 <arg value="a"/> |
316 <arg value="a"/> |
317 <arg value="-t${sf.spec.package.zip.format}"/> |
317 <arg value="-t${sf.spec.package.zip.format}"/> |
318 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
318 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
319 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
319 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
320 <arg value="-xr!*.sym"/> |
320 <arg value="-xr!*.sym"/> |
321 <arg value="${build.drive}/output/zips/release/binaries_armv5_udeb.zip"/> |
321 <arg value="${build.drive}/output/zips/release/binaries_armv5_udeb.zip"/> |
322 <arg value="epoc32\release\armv5\udeb"/> |
322 <arg value="epoc32\release\armv5\udeb"/> |
323 </exec> |
323 </exec> |
324 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5_urel.log"> |
324 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5_urel.log"> |
325 <arg value="a"/> |
325 <arg value="a"/> |
326 <arg value="-t${sf.spec.package.zip.format}"/> |
326 <arg value="-t${sf.spec.package.zip.format}"/> |
327 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
327 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
328 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
328 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
329 <arg value="-xr!*.sym"/> |
329 <arg value="-xr!*.sym"/> |
330 <arg value="${build.drive}/output/zips/release/binaries_armv5_urel.zip"/> |
330 <arg value="${build.drive}/output/zips/release/binaries_armv5_urel.zip"/> |
331 <arg value="epoc32\release\armv5\urel"/> |
331 <arg value="epoc32\release\armv5\urel"/> |
332 </exec> |
332 </exec> |
333 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5_lib.log"> |
333 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5_lib.log"> |
334 <arg value="a"/> |
334 <arg value="a"/> |
335 <arg value="-t${sf.spec.package.zip.format}"/> |
335 <arg value="-t${sf.spec.package.zip.format}"/> |
336 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
336 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
337 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
337 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
338 <arg value="-xr!*.sym"/> |
338 <arg value="-xr!*.sym"/> |
339 <arg value="-ir!epoc32/release/armv5/_*.bin"/> <!-- include bootloaders in common lib zipfile --> |
339 <arg value="-ir!epoc32/release/armv5/_*.bin"/> <!-- include bootloaders in common lib zipfile --> |
340 <arg value="${build.drive}/output/zips/release/binaries_armv5_lib.zip"/> |
340 <arg value="${build.drive}/output/zips/release/binaries_armv5_lib.zip"/> |
341 <arg value="epoc32\release\armv5\lib"/> |
341 <arg value="epoc32\release\armv5\lib"/> |
342 </exec> |
342 </exec> |
343 |
|
344 |
|
345 </parallel> |
343 </parallel> |
346 |
344 |
347 <runtarget target="sf-package-tools"/> |
345 <runtarget target="sf-package-tools"/> |
348 |
|
349 |
346 |
350 <!-- Generate release_metadata entries for the above zips --> |
347 <!-- Generate release_metadata entries for the above zips --> |
351 <antcall target="sf-zip-content"> |
348 <antcall target="sf-zip-content"> |
352 <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
349 <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
353 <param name="zip.target.name" value="bin-just-metadata" /> |
350 <param name="zip.target.name" value="bin-just-metadata" /> |
364 <target name="sf-package-tools" > |
361 <target name="sf-package-tools" > |
365 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log"> |
362 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log"> |
366 <arg value="a"/> |
363 <arg value="a"/> |
367 <arg value="-t${sf.spec.package.zip.format}"/> |
364 <arg value="-t${sf.spec.package.zip.format}"/> |
368 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
365 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
369 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
366 <arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
370 <arg value="${build.drive}/output/zips/release/tools_epoc.zip"/> |
367 <arg value="${build.drive}/output/zips/release/tools_epoc.zip"/> |
371 <arg value="epoc32/tools"/> |
368 <arg value="epoc32/tools"/> |
372 <arg value="epoc32/gcc"/> |
369 <arg value="epoc32/gcc"/> |
373 <arg value="epoc32/gcc_mingw"/> |
370 <arg value="epoc32/gcc_mingw"/> |
|
371 <arg value="epoc32/data/buildinfo.txt"/> |
374 </exec> |
372 </exec> |
375 <antcall target="sf-zip-content"> |
373 <antcall target="sf-zip-content"> |
376 <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
374 <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
377 <param name="zip.target.name" value="tools" /> |
375 <param name="zip.target.name" value="tools" /> |
378 </antcall> |
376 </antcall> |
574 <data expandProperties="yes"> |
572 <data expandProperties="yes"> |
575 ant: antProperties() |
573 ant: antProperties() |
576 </data> |
574 </data> |
577 </fmpp> |
575 </fmpp> |
578 <!-- Send the data to the server --> |
576 <!-- Send the data to the server --> |
579 <exec executable="python"> |
577 <exec executable="python"> |
580 <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/> |
578 <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/> |
581 <arg value="-u"/> |
579 <arg value="-u"/> |
582 <arg value="http://${diamonds.host}${diamonds.build.id}"/> |
580 <arg value="http://${diamonds.host}${diamonds.build.id}"/> |
583 <arg value="-f"/> |
581 <arg value="-f"/> |
584 <arg value="${build.log.dir}/linksForDiamonds.xml"/> |
582 <arg value="${build.log.dir}/linksForDiamonds.xml"/> |
585 </exec> |
583 </exec> |
586 </target> |
584 </target> |
587 |
585 |
588 <target name="sf-merge-brag"> |
586 <target name="sf-merge-brag"> |
589 <!-- Merge all our bits of XML together --> |
587 <!-- Merge all our bits of XML together --> |
590 <exec executable="perl" output="${build.log.dir}/summary/_BRAG.xml" logError="true"> |
588 <exec executable="perl" output="${build.log.dir}/summary/_BRAG.xml" logError="true"> |
591 <arg value="${sf.common.config.dir}/tools/mergeXML.pl"/> |
589 <arg value="${sf.common.config.dir}/tools/mergeXML.pl"/> |
592 <arg value="--xsl=brag.xsl"/> |
590 <arg value="--xsl=brag.xsl"/> |
593 <arg value="--merge=buildStatus,phase(name),step(name),failures(level)"/> |
591 <arg value="--merge=buildStatus,phase(name),step(name),failures(level)"/> |
594 <arg value="${build.log.dir}/summary/*?_BRAG.xml"/> |
592 <arg value="${build.log.dir}/summary/*?_BRAG.xml"/> |
595 </exec> |
593 </exec> |
596 </target> |
594 </target> |
597 |
595 |
598 <target name="sf-brag-to-diamonds"> |
596 <target name="sf-brag-to-diamonds"> |
599 <!-- Run XSL transform to create file to send to diamonds --> |
597 <!-- Run XSL transform to create file to send to diamonds --> |
600 <java jar="${sf.common.config.dir}/sysdefdowngrade/xalan-j_2_7_1/xalan.jar" fork="true"> |
598 <java jar="${sf.common.config.dir}/sysdefdowngrade/xalan-j_2_7_1/xalan.jar" fork="true"> |
601 <arg value="-IN"/> |
599 <arg value="-IN"/> |
602 <arg value="${build.log.dir}/summary/_BRAG.xml"/> |
600 <arg value="${build.log.dir}/summary/_BRAG.xml"/> |
729 </copy> |
727 </copy> |
730 <mkdir dir="${publish.dir}/html"/> |
728 <mkdir dir="${publish.dir}/html"/> |
731 <copy todir="${publish.dir}/html" preservelastmodified="true" failonerror="false"> |
729 <copy todir="${publish.dir}/html" preservelastmodified="true" failonerror="false"> |
732 <fileset dir="${build.log.dir}/html"><include name="*.html"/></fileset> |
730 <fileset dir="${build.log.dir}/html"><include name="*.html"/></fileset> |
733 </copy> |
731 </copy> |
734 <mkdir dir="${publish.dir}/BC"/> |
732 <mkdir dir="${publish.dir}/BC"/> |
735 <copy todir="${publish.dir}/BC" preservelastmodified="true" failonerror="false"> |
733 <copy todir="${publish.dir}/BC" preservelastmodified="true" failonerror="false"> |
736 <fileset dir="${build.log.dir}/BC/"> |
734 <fileset dir="${build.log.dir}/BC/"> |
737 <include name="BBCResults.xsl"/> |
735 <include name="BBCResults.xsl"/> |
738 <include name="headers_report.xml"/> |
736 <include name="headers_report.xml"/> |
739 <include name="libraries_report.xml"/> |
737 <include name="libraries_report.xml"/> |
740 </fileset> |
738 </fileset> |
741 </copy> |
739 </copy> |
742 <mkdir dir="${publish.dir}/ats_reports"/> |
740 <mkdir dir="${publish.dir}/ats_reports"/> |
743 <copy file="${sf.common.config.dir}/tools/ats/report_dummy.html" tofile="${publish.dir}/ats_reports/index.html" failonerror="false"/> |
741 <copy file="${sf.common.config.dir}/tools/ats/report_dummy.html" tofile="${publish.dir}/ats_reports/index.html" failonerror="false"/> |
744 </target> |
742 </target> |
745 |
743 |
746 <!-- TODO: Make this work for package builds once we have sysmodel story worked out --> |
744 <!-- TODO: Make this work for package builds once we have sysmodel story worked out --> |
747 <target name="sf-run-analysis-missing-files" if="sf.spec.checkbuild"> |
745 <target name="sf-run-analysis-missing-files" if="sf.spec.checkbuild"> |
748 <!-- splitbuild is only set for Platform builds --> |
746 <!-- splitbuild is only set for Platform builds --> |
764 </if> |
762 </if> |
765 </target> |
763 </target> |
766 |
764 |
767 <target name="sf-check-missing-os-files" depends="sf-compile-options"> |
765 <target name="sf-check-missing-os-files" depends="sf-compile-options"> |
768 <hlm:argSet id="sbs.check.tools.var"> |
766 <hlm:argSet id="sbs.check.tools.var"> |
769 <hlm:arg name="config" value="${sf.spec.sbs.tools.config}" /> |
767 <hlm:arg name="config" value="${sf.spec.sbs.tools.config}" /> |
770 <hlm:arg name="run-check" value="true" /> |
768 <hlm:arg name="run-check" value="true" /> |
771 </hlm:argSet> |
769 </hlm:argSet> |
772 |
770 |
773 <hlm:argSet id="sbs.check.main.var"> |
771 <hlm:argSet id="sbs.check.main.var"> |
774 <hlm:arg name="config" value="${sf.spec.sbs.config}" /> |
772 <hlm:arg name="config" value="${sf.spec.sbs.config}" /> |
775 <hlm:arg name="run-check" value="true" /> |
773 <hlm:arg name="run-check" value="true" /> |
776 </hlm:argSet> |
774 </hlm:argSet> |
777 <antcall target="compile-main" inheritAll="false" inheritRefs="true"> |
775 <antcall target="compile-main" inheritAll="false" inheritRefs="true"> |
778 <param name="build.system" value="${sf.spec.build.system}" /> |
776 <param name="build.system" value="${sf.spec.build.system}" /> |
779 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" /> |
777 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" /> |
780 <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/> |
778 <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/> |
800 <param name="build.id" value ="sbs_check"/> |
798 <param name="build.id" value ="sbs_check"/> |
801 <reference refid="sbs.check.iterate.main.var" torefid="sbs.var" /> |
799 <reference refid="sbs.check.iterate.main.var" torefid="sbs.var" /> |
802 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" /> |
800 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" /> |
803 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" /> |
801 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" /> |
804 </antcall> |
802 </antcall> |
805 </sequential> |
803 </sequential> |
806 </for> |
804 </for> |
807 </then> |
805 </then> |
808 <else> |
806 <else> |
809 <antcall target="compile-main" inheritAll="false" inheritRefs="true"> |
807 <antcall target="compile-main" inheritAll="false" inheritRefs="true"> |
810 <param name="build.system" value="${sf.spec.build.system}" /> |
808 <param name="build.system" value="${sf.spec.build.system}" /> |
811 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" /> |
809 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" /> |
812 <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/> |
810 <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/> |
813 <param name="build.id" value ="sbs_check"/> |
811 <param name="build.id" value ="sbs_check"/> |
814 <reference refid="sbs.check.main.var" torefid="sbs.var" /> |
812 <reference refid="sbs.check.main.var" torefid="sbs.var" /> |
815 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" /> |
813 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" /> |
816 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" /> |
814 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" /> |
817 </antcall> |
815 </antcall> |
818 </else> |
816 </else> |
819 </if> |
817 </if> |
820 </target> |
818 </target> |
821 |
819 |
822 <target name="sf-check-missing-s60-files" depends="sf-compile-options"> |
820 <target name="sf-check-missing-s60-files" depends="sf-compile-options"> |
823 |
821 |
824 <hlm:argSet id="sbs.check.tools.var"> |
822 <hlm:argSet id="sbs.check.tools.var"> |