common/build.xml
changeset 247 cfde8b1784f7
parent 246 4f2482f1dd48
child 248 99d202b380d8
equal deleted inserted replaced
246:4f2482f1dd48 247:cfde8b1784f7
   543         <exec executable="perl" dir="${build.drive}/" failonerror="false" output="${build.log.dir}/zipconfig.log">
   543         <exec executable="perl" dir="${build.drive}/" failonerror="false" output="${build.log.dir}/zipconfig.log">
   544             <arg value="${sf.common.config.dir}/tools/populateziptemplate.pl"/>
   544             <arg value="${sf.common.config.dir}/tools/populateziptemplate.pl"/>
   545             <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
   545             <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
   546             <arg value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl.template"/>
   546             <arg value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl.template"/>
   547             <arg value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   547             <arg value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
       
   548             <arg value="${build.log.dir}/rnd_excludefile.txt"/>
   548         </exec>
   549         </exec>
   549     </target>
   550     </target>
   550     
   551     
   551     <target name="sf-zip-content" depends="preprocess-zip-config">
   552     <target name="sf-zip-content" depends="preprocess-zip-config">
   552         <property name="zip.${zip.target.name}.log.file" location="${build.log.dir}/${build.id}_${zip.target.name}_zip.log" />
   553         <property name="zip.${zip.target.name}.log.file" location="${build.log.dir}/${build.id}_${zip.target.name}_zip.log" />
   562     </target>
   563     </target>
   563     
   564     
   564     <target name="sf-package-tools" depends="sf-preprocess-package-config">
   565     <target name="sf-package-tools" depends="sf-preprocess-package-config">
   565         <echo message="Packaging epoc32 tools - Temporary method"/>
   566         <echo message="Packaging epoc32 tools - Temporary method"/>
   566             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log">
   567             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log">
   567             <arg value="a"/>
   568                 <arg value="a"/>
   568             <arg value="-tzip"/>
   569                 <arg value="-tzip"/>
   569             <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   570                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   570 <!--            <arg value="-x@${build.log.dir}/*_includefile.txt"/> -->
   571 <!--                <arg value="-x@${build.log.dir}/*_includefile.txt"/> -->
   571             <arg value="tools_epoc.zip"/> 
   572                 <arg value="tools_epoc.zip"/> 
   572             <arg value="epoc32/tools"/>
   573                 <arg value="epoc32/tools"/>
   573             </exec>
   574             </exec>
   574         <if><available file="${build.drive}/tools_epoc.zip"/>
   575         <if><available file="${build.drive}/tools_epoc.zip"/>
   575             <then><move file="${build.drive}/tools_epoc.zip" todir="${build.drive}/output/zips/"/></then>
   576             <then><move file="${build.drive}/tools_epoc.zip" todir="${build.drive}/output/zips/"/></then>
   576         </if>
   577         </if>
   577 
   578     </target>
   578     </target>
       
   579 
       
   580     
   579     
   581     <target name="sf-package-binary" depends="sf-preprocess-package-config,sf-package-postbuild-rnd">
   580     <target name="sf-package-binary" depends="sf-preprocess-package-config,sf-package-postbuild-rnd">
   582         <!--antcall target="sf-zip-content">
   581         <!--antcall target="sf-zip-content">
   583             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   582             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   584             <param name="zip.target.name" value="bin" />
   583             <param name="zip.target.name" value="bin" />
   585         </antcall-->
   584         </antcall-->
   586 
   585         
   587         <if><available file="${build.drive}/rnd_excludefile.txt" />
   586         <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
   588         <then>
       
   589             <echo message="Packaging with exclude list"/>
       
   590             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
       
   591             <arg value="a"/>
   587             <arg value="a"/>
   592             <arg value="-tzip"/>
   588             <arg value="-tzip"/>
   593             <arg value="-x@${build.drive}/rnd_excludefile.txt"/> <!-- excludes -->
   589             <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   594             <arg value="-x!epoc32\tools"/>
   590             <arg value="-x!epoc32\tools"/>
   595             <arg value="-x!epoc32\build"/> 
   591             <arg value="-x!epoc32\build"/>
   596             <arg value="-xr!*.sym"/> 
   592             <arg value="-xr!*.sym"/>
   597             <arg value="binaries_epoc.zip"/> 
   593             <arg value="${build.drive}/output/zips/binaries_epoc.zip"/>
   598             <arg value="epoc32\"/>
   594             <arg value="epoc32\"/>
   599             </exec>
   595         </exec>
   600             <move file="${build.drive}/rnd_excludefile.txt" todir="${build.log.dir}/"/>
       
   601         </then>
       
   602         <else>
       
   603             <echo message="Packaging without exclude list"/>
       
   604             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
       
   605             <arg value="a"/>
       
   606             <arg value="-tzip"/>
       
   607             <arg value="-x!epoc32\tools"/> 
       
   608             <arg value="-x!epoc32\build"/> <!-- excludes -->
       
   609             <arg value="-xr!*.sym"/> 
       
   610             <arg value="binaries_epoc.zip"/> 
       
   611             <arg value="epoc32\"/>
       
   612         </exec>
       
   613         </else>
       
   614         </if>
       
   615         <if><available file="${build.drive}/binaries_epoc.zip"/>
       
   616         <then><move file="${build.drive}/binaries_epoc.zip" todir="${build.drive}/output/zips/"/></then>
       
   617         </if>
       
   618 
       
   619     </target>
   596     </target>
   620 
   597 
   621     <target name="sf-package-postbuild-rnd" depends="sf-preprocess-package-config">
   598     <target name="sf-package-postbuild-rnd" depends="sf-preprocess-package-config">
   622 
   599 
   623         <!-- zip any RnD _includefile.txt files generated during source packaging -->
   600         <!-- zip any RnD _includefile.txt files generated during source packaging -->