common/build.postbuild.xml
changeset 792 893b85cda81b
parent 791 9054e820b1e6
child 795 7f120899dd36
equal deleted inserted replaced
791:9054e820b1e6 792:893b85cda81b
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <project name="SF-POSTBUILD" xmlns:hlm="http://www.nokia.com/helium">
     2 <project name="SF-POSTBUILD" xmlns:hlm="http://www.nokia.com/helium">
     3     <target name="sf-postbuild">
     3     <target name="sf-postbuild">
     4         <echo>[SF-POSTBUILD]</echo>
     4         <echo>[SF-POSTBUILD]</echo>
     5         
       
     6         <if><istrue value="${sf.spec.referenceroms.createimages.enable}"/>
       
     7         <then>
       
     8             <echo message="INFO Building ROMs defined for this project"/>
       
     9             <runtarget target="sf-rombuild"/>
       
    10         </then>
       
    11         </if>
       
    12         
     5         
    13         <if><istrue value="${sf.relicense.exported.headers}"/>
     6         <if><istrue value="${sf.relicense.exported.headers}"/>
    14         <then>
     7         <then>
    15             <runtarget target="sf-run-sfl-licence-munging"/>
     8             <runtarget target="sf-run-sfl-licence-munging"/>
    16         </then>
     9         </then>
    48                 </then>
    41                 </then>
    49             </if>
    42             </if>
    50             
    43             
    51             <!-- run build analysis tools -->
    44             <!-- run build analysis tools -->
    52             <runtarget target="sf-run-analysis"/>
    45             <runtarget target="sf-run-analysis"/>
    53         
    46 
    54             <if>
    47             <if>
    55               <istrue value="${sf.spec.publish.enable}"/>
    48                 <istrue value="${sf.spec.publish.enable}"/>
    56               <then>
    49                 <then>
    57                 <!-- Generate reports to compare this build to a previous one -->
    50                     <!-- Generate reports to compare this build to a previous one -->
    58                 <runtarget target="sf-compare-to-baseline"/>
    51                     <runtarget target="sf-compare-to-baseline"/>
    59               </then>
    52                 </then>
    60             </if>
    53             </if>
    61         </parallel>
    54         </parallel>
    62 
    55         
    63         <!-- Generate release_metadata entries for the md5 zips -->
    56         <!-- Generate release_metadata entries for the md5 zips -->
    64         <antcall target="sf-zip-content">
    57         <antcall target="sf-zip-content">
    65             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
    58             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
    66             <param name="zip.target.name" value="bin-just-metadata" />
    59             <param name="zip.target.name" value="bin-just-metadata" />
    67         </antcall>
    60         </antcall>
    78         <if><istrue value="${sf.spec.bccheck.enable}"/>
    71         <if><istrue value="${sf.spec.bccheck.enable}"/>
    79             <then>
    72             <then>
    80                 <runtarget target="sf-bc-check"/>
    73                 <runtarget target="sf-bc-check"/>
    81             </then>
    74             </then>
    82         </if>
    75         </if>
       
    76 
       
    77         <!-- copy log files linked to the generation of roms for REE -->
       
    78         <runtarget target="sf-copy-rom-logs"/>
    83 
    79 
    84         <!-- Zip up all the logs -->
    80         <!-- Zip up all the logs -->
    85         <runtarget target="sf-zip-logs"/>
    81         <runtarget target="sf-zip-logs"/>
    86         
    82         
    87         <if>
    83         <if>
   805           <arg value="${build.drive}/utilities/williamr/convert_to_eula.pl"/>
   801           <arg value="${build.drive}/utilities/williamr/convert_to_eula.pl"/>
   806         </exec>
   802         </exec>
   807         <stopwatch name="munge" action="total"/>
   803         <stopwatch name="munge" action="total"/>
   808     </target>
   804     </target>
   809 
   805 
       
   806     <target name="sf-copy-rom-logs">
       
   807         <property name="sf.rombuild.dir" value="${build.drive}/epoc32/rom/"/>
       
   808         <!-- copy log files for each variant we have -->
       
   809         <echo message="build.log.dir= ${build.log.dir}"/>
       
   810         <echo message="sf.rombuild.dir= ${sf.rombuild.dir}"/>
       
   811         <echo message="sf.spec.referenceroms.variant= ${sf.spec.referenceroms.variant}"/>
       
   812         
       
   813         <copy todir="${build.log.dir}" preservelastmodified="true" failonerror="false">
       
   814             <fileset dir="${sf.rombuild.dir}/${sf.spec.referenceroms.variant}/"><include name="*ROMBUILD.LOG"/></fileset>
       
   815         </copy>
       
   816         
       
   817         <copy todir="${build.log.dir}" preservelastmodified="true" failonerror="false">
       
   818             <fileset dir="${sf.rombuild.dir}/${sf.spec.referenceroms.variant}/"><include name="*rom.oby"/></fileset>
       
   819         </copy>
       
   820     </target>
       
   821 
   810 </project>
   822 </project>