common/build.xml
changeset 261 a0e85954c23c
parent 260 13596dc42a47
child 262 633b96a83005
equal deleted inserted replaced
260:13596dc42a47 261:a0e85954c23c
   586         <!-- Then zip up src zips by layer -->
   586         <!-- Then zip up src zips by layer -->
   587         <antcall target="sf-zip-content">
   587         <antcall target="sf-zip-content">
   588             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   588             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   589             <param name="zip.target.name" value="src-by-layer" />
   589             <param name="zip.target.name" value="src-by-layer" />
   590         </antcall>
   590         </antcall>
   591         <!-- Copy the zips that need to have different names when a PDK is released -->
       
   592 	<copy file="${build.drive}/output/zips/bin_rnd_internal_updated.zip" tofile="${build.drive}/output/zips/binaries_epoc_additional.zip" failonerror="false"/>
       
   593 	<copy file="${build.drive}/output/zips/bin_rnd_internal_bldmefirst.zip" tofile="${build.drive}/output/zips/binaries_bldmefirst.zip" failonerror="false"/>
       
   594     </target>
   591     </target>
   595     
   592     
   596     <target name="sf-package-tools" depends="sf-preprocess-package-config">
   593     <target name="sf-package-tools" depends="sf-preprocess-package-config">
   597         <echo message="Packaging epoc32 tools - Temporary method"/>
   594         <echo message="Packaging epoc32 tools - Temporary method"/>
   598         <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log">
   595         <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log">
   599             <arg value="a"/>
   596             <arg value="a"/>
   600             <arg value="-tzip"/>
   597             <arg value="-tzip"/>
   601             <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   598             <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   602 <!--            <arg value="-x@${build.log.dir}/*_includefile.txt"/> -->
   599 <!--            <arg value="-x@${build.log.dir}/*_includefile.txt"/> -->
   603             <arg value="${build.drive}/output/zips/tools_epoc.zip"/> 
   600             <arg value="${build.drive}/output/zips/release/tools_epoc.zip"/> 
   604             <arg value="epoc32/tools"/>
   601             <arg value="epoc32/tools"/>
   605         </exec>
   602         </exec>
   606     </target>
   603     </target>
   607     
   604     
   608     <target name="sf-package-binary" depends="sf-preprocess-package-config,sf-package-postbuild-rnd">
   605     <target name="sf-package-binary" depends="sf-preprocess-package-config,sf-package-postbuild-rnd">
   620                 <arg value="-x!epoc32\tools"/>
   617                 <arg value="-x!epoc32\tools"/>
   621                 <arg value="-x!epoc32\build"/>
   618                 <arg value="-x!epoc32\build"/>
   622                 <arg value="-x!epoc32\release\armv5"/>
   619                 <arg value="-x!epoc32\release\armv5"/>
   623                 <arg value="-x!epoc32\release\winscw"/>
   620                 <arg value="-x!epoc32\release\winscw"/>
   624                 <arg value="-xr!*.sym"/>
   621                 <arg value="-xr!*.sym"/>
   625                 <arg value="${build.drive}/output/zips/binaries_epoc.zip"/>
   622                 <arg value="${build.drive}/output/zips/release/binaries_epoc.zip"/>
   626                 <arg value="epoc32\"/>
   623                 <arg value="epoc32\"/>
   627             </exec>
   624             </exec>
   628             
   625             
   629             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw.log">
   626             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw.log">
   630                 <arg value="a"/>
   627                 <arg value="a"/>
   631                 <arg value="-tzip"/>
   628                 <arg value="-tzip"/>
   632                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   629                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   633                 <arg value="-xr!*.sym"/>
   630                 <arg value="-xr!*.sym"/>
   634                 <arg value="${build.drive}/output/zips/binaries_winscw.zip"/>
   631                 <arg value="${build.drive}/output/zips/release/binaries_winscw.zip"/>
   635                 <arg value="epoc32\release\winscw\"/>
   632                 <arg value="epoc32\release\winscw\"/>
   636             </exec>
   633             </exec>
   637             
   634             
   638             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5.log">
   635             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5.log">
   639                 <arg value="a"/>
   636                 <arg value="a"/>
   640                 <arg value="-tzip"/>
   637                 <arg value="-tzip"/>
   641                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   638                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   642                 <arg value="-xr!*.sym"/>
   639                 <arg value="-xr!*.sym"/>
   643                 <arg value="${build.drive}/output/zips/binaries_armv5.zip"/>
   640                 <arg value="${build.drive}/output/zips/release/binaries_armv5.zip"/>
   644                 <arg value="epoc32\release\armv5\"/>
   641                 <arg value="epoc32\release\armv5\"/>
   645             </exec>
   642             </exec>
   646         </parallel>
   643         </parallel>
   647     </target>
   644     </target>
   648 
   645 
   650 
   647 
   651         <!-- zip any RnD _includefile.txt files generated during source packaging -->
   648         <!-- zip any RnD _includefile.txt files generated during source packaging -->
   652         <exec executable="perl" dir="${build.drive}/" failonerror="false" output="${build.log.dir}/zip_postbuild.log">
   649         <exec executable="perl" dir="${build.drive}/" failonerror="false" output="${build.log.dir}/zip_postbuild.log">
   653             <arg value="${sf.common.config.dir}/tools/zip_includefiles.pl"/>
   650             <arg value="${sf.common.config.dir}/tools/zip_includefiles.pl"/>
   654         </exec>
   651         </exec>
   655         <!-- cleanup my moving includefiles to logs and zips to zips\postbuild -->
   652         <!-- cleanup my moving includefiles to logs and zips to zips\release -->
   656         <move todir="${build.log.dir}">
   653         <move todir="${build.log.dir}">
   657            <fileset dir="${build.drive}"><include name="*_includefile.txt"/></fileset>
   654            <fileset dir="${build.drive}"><include name="*_includefile.txt"/></fileset>
   658         </move>
   655         </move>
   659         <move todir="${build.drive}/output/zips/postbuild">
   656         <move todir="${build.drive}/output/zips/release">
   660            <fileset dir="${build.drive}"><include name="bin_rnd_*.zip"/></fileset>
   657            <fileset dir="${build.drive}"><include name="bin*.zip"/></fileset>
   661         </move>
   658         </move>
   662         <!-- TODO: merge with release_metadata.xml ? -->
   659         <!-- TODO: merge with release_metadata.xml ? -->
   663     </target>
   660     </target>
   664 
   661 
   665     <!-- unpack rnd zips if available -->
   662     <!-- unpack rnd zips if available -->
   666     <target name="sf-unpack-rnd">
   663     <target name="sf-unpack-rnd">
   667         <echo message="Unpacking any available RnD binaries"/>
   664         <echo message="Unpacking any available RnD binaries"/>
   668         <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/unzip_${build.id}_binaries_rnd.log">
   665         <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/unzip_${build.id}_binaries_rnd.log">
   669         <arg value="x"/>
   666         <arg value="x"/>
   670         <arg value="-y"/> <!-- Need to unpack in overwrite mode, due to TEF -->
   667         <arg value="-y"/> <!-- Need to unpack in overwrite mode, due to TEF -->
   671         <arg value="-x@${sf.common.config.dir}/tools/lists/rebuiltok.txt"/>
   668         <arg value="${build.drive}/output/zips/bin*.zip"/>
   672         <arg value="${build.drive}/output/zips/bin_rnd*.zip"/>
       
   673         </exec>
   669         </exec>
   674     </target>
   670     </target>
   675     
   671     
   676     <target name ="sf-make-junction">
   672     <target name ="sf-make-junction">
   677         
   673         
   765         <echo message="Running summary analysis"/>
   761         <echo message="Running summary analysis"/>
   766         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
   762         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
   767             <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
   763             <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
   768             <arg value="${build.id}_what_results.csv"/>
   764             <arg value="${build.id}_what_results.csv"/>
   769             <arg value="${build.id}_list_results.log"/>
   765             <arg value="${build.id}_list_results.log"/>
   770             <arg value="${build.drive}/output/zips/postbuild/bin_rnd_internal_initial.zip"/>
   766             <arg value="${build.drive}/output/zips/release/binaries_epoc_additional.zip"/>
   771         </exec>
   767         </exec>
   772 
   768 
   773         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log">
   769         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log">
   774             <arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/>
   770             <arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/>
   775             <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
   771             <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>