common/build.xml
changeset 109 cb16ca6483d9
parent 103 c7c1445180e7
child 111 5b0bc2f89660
equal deleted inserted replaced
104:01387db0fc8c 109:cb16ca6483d9
   340             </data>
   340             </data>
   341         </fmpp>
   341         </fmpp>
   342     </target>
   342     </target>
   343 
   343 
   344     <target name="sf-preprocess-package-config">
   344     <target name="sf-preprocess-package-config">
       
   345         <mkdir dir="${sf.common.config.dir}/generated"/>
   345         <exec executable="perl" dir="${build.drive}/" failonerror="false" output="${build.log.dir}/zipconfig.log">
   346         <exec executable="perl" dir="${build.drive}/" failonerror="false" output="${build.log.dir}/zipconfig.log">
   346             <arg value="${sf.common.config.dir}/tools/populateziptemplate.pl"/>
   347             <arg value="${sf.common.config.dir}/tools/populateziptemplate.pl"/>
   347             <arg value="${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}"/>
   348             <arg value="${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}"/>
   348             <arg value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl.template"/>
   349             <arg value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl.template"/>
   349             <arg value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   350             <arg value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   383             <arg value="-x@${build.log.dir}/listdir_${build.id}_rnd_binaries.log"/> <!-- excludes -->
   384             <arg value="-x@${build.log.dir}/listdir_${build.id}_rnd_binaries.log"/> <!-- excludes -->
   384             <arg value="-x!epoc32\build"/> 
   385             <arg value="-x!epoc32\build"/> 
   385             <arg value="-xr!*.sym"/> 
   386             <arg value="-xr!*.sym"/> 
   386             <arg value="binaries_epoc.zip"/> 
   387             <arg value="binaries_epoc.zip"/> 
   387             <arg value="epoc32\"/>
   388             <arg value="epoc32\"/>
   388         </exec>
   389             </exec>
   389         </then>
   390         </then>
   390         <else>
   391         <else>
   391         <echo message="Packaging without exclude list"/>
   392             <echo message="Packaging without exclude list"/>
   392         <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
   393             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
   393             <arg value="a"/>
   394             <arg value="a"/>
   394             <arg value="-tzip"/>
   395             <arg value="-tzip"/>
   395             <arg value="-x!epoc32\build"/> <!-- excludes -->
   396             <arg value="-x!epoc32\build"/> <!-- excludes -->
   396             <arg value="-xr!*.sym"/> 
   397             <arg value="-xr!*.sym"/> 
   397             <arg value="binaries_epoc.zip"/> 
   398             <arg value="binaries_epoc.zip"/> 
   398             <arg value="epoc32\"/>
   399             <arg value="epoc32\"/>
   399 
       
   400         </exec>
   400         </exec>
   401         </else>
   401         </else>
   402         </if>
   402         </if>
   403         <if><available file="${build.drive}/binaries_epoc.zip"/>
   403         <if><available file="${build.drive}/binaries_epoc.zip"/>
   404         <then><move file="${build.drive}/binaries_epoc.zip" todir="${build.drive}/output/zips/"/></then>
   404         <then><move file="${build.drive}/binaries_epoc.zip" todir="${build.drive}/output/zips/"/></then>
   405         </if>
   405         </if>
   406     </target>
   406     </target>
   407 
   407     <!-- unpack rnd zips if available -->
   408     <target name="sf-merge-epoc32">
   408     <target name="sf-merge-epoc32">
   409     <!-- conditional execution of merge if rnd dir is found -->
   409         <echo message="Unpacking any available RnD binaries"/>
   410     <if><available file="${build.drive}/rnd" type="dir" />
   410         <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/unzip_${build.id}_binaries_rnd.log">
   411         <then>
   411         <arg value="x"/>
   412         <echo message="RnD binaries found, fast-copying into ${build.drive}/epoc32 tree"/>
   412         <arg value="${build.drive}/output/zips/bin_rnd*.zip"/>
   413         <hlm:fastcopy todir="${build.drive}/epoc32" verbose="true" overwrite="true" threadCount="4">
   413         </exec>
   414             <fileset dir="${build.drive}/rnd">
   414     </target>
   415             <exclude name="**/.hg/**"/>
   415     
   416             </fileset>
       
   417             <regexpmapper from="internal/initial/epoc32/(.*)" to="\1" handledirsep="true"/>
       
   418             <!--regexpmapper from="[^/]+/[^/]+/epoc32/(.*)" to="\1" handledirsep="true"/-->
       
   419             <!-- TODO make match exactly 2 levels deep otherwise nested epoc32 trees will also be merged -->
       
   420         </hlm:fastcopy>
       
   421         </then>
       
   422     </if>
       
   423     </target>
       
   424   
       
   425     <target name ="sf-make-junction">
   416     <target name ="sf-make-junction">
   426         
   417         
   427         <mkdir dir="${sf.spec.test.epocroot}"/>
   418         <mkdir dir="${sf.spec.test.epocroot}"/>
   428 
   419 
   429         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
   420         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
   470             <arg value="${sf.common.config.dir}/tools/analysis/parselistdirs.pl"/>
   461             <arg value="${sf.common.config.dir}/tools/analysis/parselistdirs.pl"/>
   471             <arg value="..\"/>
   462             <arg value="..\"/>
   472         </exec>
   463         </exec>
   473 
   464 
   474         <echo message="Running whatlog analysis"/>
   465         <echo message="Running whatlog analysis"/>
   475         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_what_results.log">
   466         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_what_results.csv">
   476             <arg value="${sf.common.config.dir}/tools/analysis/parsewhatlog.pl"/>
   467             <arg value="${sf.common.config.dir}/tools/analysis/parsewhatlog.pl"/>
   477             <arg value="..\"/>
   468             <arg value="..\"/>
   478         </exec>
   469         </exec>
   479 
   470 
   480         <echo message="Running summary analysis"/>
   471         <echo message="Running summary analysis"/>
   481         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
   472         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
   482             <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
   473             <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
       
   474             <arg value="${build.id}_what_results.csv"/>
   483             <arg value="${build.id}_list_results.log"/>
   475             <arg value="${build.id}_list_results.log"/>
   484             <arg value="${build.id}_what_results.log"/>
   476         </exec>
       
   477 
       
   478         <echo message="Running collision analysis"/>
       
   479         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
       
   480             <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>
       
   481             <arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/>
   485         </exec>
   482         </exec>
   486     </target>
   483     </target>
   487   
   484   
   488 </project>
   485 </project>
   489 
   486