common/build.xml
changeset 141 228f8b438c19
parent 133 6bf16e4e9cb7
child 142 247e27021cd0
equal deleted inserted replaced
137:4d23dd2e8d04 141:228f8b438c19
   239       </if>
   239       </if>
   240     </target>
   240     </target>
   241     
   241     
   242     <target name="sf-postbuild">
   242     <target name="sf-postbuild">
   243         <echo>[SF-POSTBUILD]</echo>
   243         <echo>[SF-POSTBUILD]</echo>
   244                 
   244         <parallel>                
   245         <!-- TAG SOURCE CODE -->
   245         <!-- TAG SOURCE CODE -->
   246         <if>
   246         <if>
   247             <istrue value="${sf.spec.tagafterbuild.enable}" />
   247             <istrue value="${sf.spec.tagafterbuild.enable}" />
   248             <then>
   248             <then>
   249                 <echo message="Apply tag to the source code used in this build"/>
   249                 <echo message="Apply tag to the source code used in this build"/>
   250                 <runtarget target="sf-tag-hg-code"/>
   250                 <runtarget target="sf-tag-hg-code"/>
   251             </then>
   251             </then>
   252         </if>
   252         </if>
   253     
   253         
       
   254         <if>
       
   255             <istrue value="${sf.spec.md5.enable}"/>
       
   256             <then>
       
   257                 <echo message="INFO Creating MD5s"/>
       
   258                 <runtarget target="sf-run-evalid"/>
       
   259             </then>
       
   260         </if>
   254         <if>
   261         <if>
   255             <istrue value="${sf.spec.package.bin.enable}"/>
   262             <istrue value="${sf.spec.package.bin.enable}"/>
   256             <then>
   263             <then>
   257                 <echo message="INFO Packaging Binaries"/>
   264                 <echo message="INFO Packaging Binaries"/>
   258                 <runtarget target="sf-package-binary"/>
   265                 <runtarget target="sf-package-binary"/>
   259             </then>
   266             </then>
   260         </if>
   267         </if>
   261 
   268         </parallel>
       
   269         
   262         <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
   270         <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
   263             <then>
   271             <then>
   264                 <runtarget target="sf-send-testpkg"/>
   272                 <runtarget target="sf-send-testpkg"/>
   265             </then>
   273             </then>
   266         </if>
   274         </if>
   564         <echo message="Running summary analysis"/>
   572         <echo message="Running summary analysis"/>
   565         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
   573         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
   566             <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
   574             <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
   567             <arg value="${build.id}_what_results.csv"/>
   575             <arg value="${build.id}_what_results.csv"/>
   568             <arg value="${build.id}_list_results.log"/>
   576             <arg value="${build.id}_list_results.log"/>
   569 	    <arg value="${build.drive}/output/zips/postbuild/bin_rnd_internal_initial.zip"/>
   577             <arg value="${build.drive}/output/zips/postbuild/bin_rnd_internal_initial.zip"/>
   570         </exec>
   578         </exec>
   571 	<exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log">
   579 
       
   580         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log">
   572             <arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/>
   581             <arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/>
   573             <arg value="${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}"/>
   582             <arg value="${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}"/>
   574 	    <arg value="${build.id}_what_results.csv_results.csv"/>
   583             <arg value="${build.id}_what_results.csv_results.csv"/>
   575             <arg value="${sf.project.location}/sysdefs/system_model_os_contributed.xml"/>
   584             <arg value="${sf.project.location}/sysdefs/system_model_os_contributed.xml"/>
   576 	    <arg value="${sf.project.location}/sysdefs/system_model_s60_contributed.xml"/>
   585             <arg value="${sf.project.location}/sysdefs/system_model_s60_contributed.xml"/>
   577         </exec>
   586         </exec>
   578 
   587 
   579         <echo message="Running collision analysis"/>
   588         <echo message="Running collision analysis"/>
   580         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
   589         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
   581             <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>
   590             <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>
   582             <arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/>
   591             <arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/>
   583         </exec>
   592         </exec>
   584     </target>
   593     </target>
   585   
   594   
       
   595     <target name="sf-run-evalid">
       
   596         <delete dir="${build.drive}/output/md5"/>
       
   597         <mkdir  dir="${build.drive}/output/md5"/>
       
   598 
       
   599         <parallel>
       
   600         <exec executable="cmd" dir="${build.drive}">
       
   601             <arg value="/c"/>
       
   602             <arg value="evalid -g epoc32/include output/md5/epoc32_include.md5"/>
       
   603         </exec>
       
   604         <exec executable="cmd" dir="${build.drive}">
       
   605             <arg value="/c"/>
       
   606             <arg value="evalid -g epoc32/s60 output/md5/epoc32_s60.md5"/>
       
   607         </exec>
       
   608         <exec executable="cmd" dir="${build.drive}">
       
   609             <arg value="/c"/>
       
   610             <arg value="evalid -g epoc32/localisation output/md5/epoc32_localisation.md5"/>
       
   611         </exec>
       
   612         <exec executable="cmd" dir="${build.drive}">
       
   613             <arg value="/c"/>
       
   614             <arg value="evalid -x \.sym$ -x ^armv5/udeb -x ^armv5/urel -x ^winscw/udeb -x ^winscw/urel -g epoc32/release output/md5/epoc32_release.md5"/>
       
   615         </exec>
       
   616         <exec executable="cmd" dir="${build.drive}">
       
   617             <arg value="/c"/>
       
   618             <arg value="evalid -x \.sym$ -g epoc32/release/armv5/udeb output/md5/epoc32_release_armv5_udeb.md5"/>
       
   619         </exec>
       
   620         <exec executable="cmd" dir="${build.drive}">
       
   621             <arg value="/c"/>
       
   622             <arg value="evalid -x \.sym$ -g epoc32/release/armv5/urel output/md5/epoc32_release_armv5_urel.md5"/>
       
   623         </exec>
       
   624         <exec executable="cmd" dir="${build.drive}">
       
   625             <arg value="/c"/>
       
   626             <arg value="evalid -x \.sym$ -g epoc32/release/winscw/urel output/md5/epoc32_release_winscw_udeb.md5"/>
       
   627         </exec>
       
   628         <exec executable="cmd" dir="${build.drive}">
       
   629             <arg value="/c"/>
       
   630             <arg value="evalid -x \.sym$ -g epoc32/release/winscw/udeb output/md5/epoc32_release_winscw_urel.md5"/>
       
   631         </exec>
       
   632         <exec executable="cmd" dir="${build.drive}">
       
   633             <arg value="/c"/>
       
   634             <arg value="evalid -g epoc32/cshlpcmp_template 	output/md5/epoc32_cshlpcmp_template.md5"/>
       
   635         </exec>
       
   636         <exec executable="cmd" dir="${build.drive}">
       
   637             <arg value="/c"/>
       
   638             <arg value="evalid -g epoc32/data output/md5/epoc32_data.md5"/>
       
   639         </exec>
       
   640         <exec executable="cmd" dir="${build.drive}">
       
   641             <arg value="/c"/>
       
   642             <arg value="evalid -g epoc32/engdoc output/md5/epoc32_engdoc.md5"/>
       
   643         </exec>
       
   644         <exec executable="cmd" dir="${build.drive}">
       
   645             <arg value="/c"/>
       
   646             <arg value="evalid -g epoc32/engineeringtools output/md5/epoc32_engineeringtools.md5"/>
       
   647         </exec>
       
   648         <exec executable="cmd" dir="${build.drive}">
       
   649             <arg value="/c"/>
       
   650             <arg value="evalid -g epoc32/gcc output/md5/epoc32_gcc.md5"/>
       
   651         </exec>
       
   652         <exec executable="cmd" dir="${build.drive}">
       
   653             <arg value="/c"/>
       
   654             <arg value="evalid -g epoc32/gcc_mingw output/md5/epoc32_gcc_mingw.md5"/>
       
   655         </exec>
       
   656         <exec executable="cmd" dir="${build.drive}">
       
   657             <arg value="/c"/>
       
   658             <arg value="evalid -g epoc32/ksa output/md5/epoc32_ksa.md5"/>
       
   659         </exec>
       
   660         <exec executable="cmd" dir="${build.drive}">
       
   661             <arg value="/c"/>
       
   662             <arg value="evalid -g epoc32/rom output/md5/epoc32_rom.md5"/>
       
   663         </exec>
       
   664         <exec executable="cmd" dir="${build.drive}">
       
   665             <arg value="/c"/>
       
   666             <arg value="evalid -g epoc32/rombuild output/md5/epoc32_rombuild.md5"/>
       
   667         </exec>
       
   668         <exec executable="cmd" dir="${build.drive}">
       
   669             <arg value="/c"/>
       
   670             <arg value="evalid -g epoc32/sbs_config output/md5/epoc32_sbs_config.md5"/>
       
   671         </exec>
       
   672         <exec executable="cmd" dir="${build.drive}">
       
   673             <arg value="/c"/>
       
   674             <arg value="evalid -g epoc32/sdk_special output/md5/epoc32_sdk_special.md5"/>
       
   675         </exec>
       
   676         <exec executable="cmd" dir="${build.drive}">
       
   677             <arg value="/c"/>
       
   678             <arg value="evalid -g epoc32/stdapis output/md5/epoc32_stdapis.md5"/>
       
   679         </exec>
       
   680         <exec executable="cmd" dir="${build.drive}">
       
   681             <arg value="/c"/>
       
   682             <arg value="evalid -g epoc32/stubs output/md5/epoc32_stubs.md5"/>
       
   683         </exec>
       
   684         <exec executable="cmd" dir="${build.drive}">
       
   685             <arg value="/c"/>
       
   686             <arg value="evalid -g epoc32/tools output/md5/epoc32_tools.md5"/>
       
   687         </exec>
       
   688         <exec executable="cmd" dir="${build.drive}">
       
   689             <arg value="/c"/>
       
   690             <arg value="evalid -g epoc32/wins output/md5/epoc32_wins.md5"/>
       
   691         </exec>
       
   692         <exec executable="cmd" dir="${build.drive}">
       
   693             <arg value="/c"/>
       
   694             <arg value="evalid -g epoc32/winscw output/md5/epoc32_winscw.md5"/>
       
   695         </exec>
       
   696         </parallel>
       
   697     </target>
   586 </project>
   698 </project>
   587 
   699