common/build.xml
changeset 193 19a76650e06d
parent 192 d5964b46ccaf
parent 133 6bf16e4e9cb7
child 196 05a7cfefd85f
equal deleted inserted replaced
192:d5964b46ccaf 193:19a76650e06d
    71                     data: csv(${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
    71                     data: csv(${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
    72               </data>
    72               </data>
    73         </fmpp>
    73         </fmpp>
    74     </target>
    74     </target>
    75     
    75     
       
    76     <target name="sf-bc-check">
       
    77         <!-- create BC dir -->
       
    78         <mkdir dir="${build.log.dir}/BC"/>
       
    79 
       
    80         <delete file="${build.log.dir}/BC/bc.config" quiet="true"/>
       
    81         <delete file="${build.log.dir}/BC/BBCResults.xsl" quiet="true"/>
       
    82         <delete file="${build.log.dir}/BC/libraries.txt" quiet="true"/>
       
    83         <delete file="${build.log.dir}/BC/libraries_report.xml" quiet="true"/>
       
    84         <delete file="${build.log.dir}/BC/headers.txt" quiet="true"/>
       
    85         <delete file="${build.log.dir}/BC/headers_report.xml" quiet="true"/>
       
    86 
       
    87         <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
       
    88             <arg value="/c"/>
       
    89             <arg value="echo"/>
       
    90             <arg value="BASELINE_NAME=${sf.spec.bccheck.baseline.name}"/>
       
    91         </exec>
       
    92         <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
       
    93             <arg value="/c"/>
       
    94             <arg value="echo"/>
       
    95             <arg value="BASELINE_SDK_DIR=${sf.spec.bccheck.baseline.skd.dir}"/>
       
    96         </exec>
       
    97         <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
       
    98             <arg value="/c"/>
       
    99             <arg value="echo"/>
       
   100             <arg value="BASELINE_SDK_S60_VERSION=${sf.spec.bccheck.baseline.s60.version}"/>
       
   101         </exec>
       
   102         <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
       
   103             <arg value="/c"/>
       
   104             <arg value="echo"/>
       
   105             <arg value="CURRENT_NAME=${build.id}"/>
       
   106         </exec>
       
   107         <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
       
   108             <arg value="/c"/>
       
   109             <arg value="echo"/>
       
   110             <arg value="CURRENT_SDK_DIR=${build.drive}"/>
       
   111         </exec>
       
   112         <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
       
   113             <arg value="/c"/>
       
   114             <arg value="echo"/>
       
   115             <arg value="CURRENT_SDK_S60_VERSION=${sf.spec.bccheck.current.s60.version}"/>
       
   116         </exec>
       
   117 
       
   118         <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/BBCResults.xsl" tofile="${build.log.dir}/BC/BBCResults.xsl" failonerror="true" verbose="true"/>
       
   119 
       
   120         <if><istrue value="${sf.spec.bccheck.enable.la}"/>
       
   121             <then>
       
   122                 <exec executable="python" dir="${sf.spec.pdt.root}/fts/compatibilityanalyser" output="${build.log.dir}/BC/libraries.txt">
       
   123 			        <arg value="CheckBC.py"/>
       
   124                     <arg value="${build.log.dir}/BC/bc.config"/>
       
   125                     <arg value="-la"/>
       
   126                     <arg value="-f"/>
       
   127                     <arg value="${sf.spec.bccheck.reportid}${sf.spec.job.number}"/>
       
   128                 </exec>
       
   129                 <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/Libraries_CompatibilityReport_${sf.spec.bccheck.reportid}${sf.spec.job.number}.xml" tofile="${build.log.dir}/BC/libraries_report.xml" failonerror="true" verbose="true"/>
       
   130             </then>
       
   131         </if>
       
   132 
       
   133         <if><istrue value="${sf.spec.bccheck.enable.ha}"/>
       
   134             <then>
       
   135                 <exec executable="python" dir="${sf.spec.pdt.root}/fts/compatibilityanalyser" output="${build.log.dir}/BC/headers.txt">
       
   136 		        	<arg value="CheckBC.py"/>
       
   137                     <arg value="${build.log.dir}/BC/bc.config"/>
       
   138                     <arg value="-ha"/>
       
   139                     <arg value="-f"/>
       
   140                     <arg value="${sf.spec.bccheck.reportid}${sf.spec.job.number}"/>
       
   141                 </exec>
       
   142                 <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/Headers_CompatibilityReport_${sf.spec.bccheck.reportid}${sf.spec.job.number}.xml" tofile="${build.log.dir}/BC/headers_report.xml" failonerror="true" verbose="true"/>
       
   143             </then>
       
   144         </if>
       
   145     </target>
       
   146 
    76     <target name="sf-prebuild">
   147     <target name="sf-prebuild">
    77         <echo>[SF-PREBUILD]</echo>
   148         <echo>[SF-PREBUILD]</echo>
    78         
   149         
    79         <!-- create BOM dir -->
   150         <!-- create BOM dir -->
    80         <mkdir dir="${build.drive}/output/logs/BOM"/>
   151         <mkdir dir="${build.drive}/output/logs/BOM"/>
   196 
   267 
   197         <!-- run build analysis tools -->
   268         <!-- run build analysis tools -->
   198         <runtarget target="sf-run-analysis"/>
   269         <runtarget target="sf-run-analysis"/>
   199 
   270 
   200         <runtarget target="sf-zip-logs"/>
   271         <runtarget target="sf-zip-logs"/>
       
   272 
       
   273         <!-- Do BC check -->
       
   274         <if><istrue value="${sf.spec.bccheck.enable}"/>
       
   275             <then>
       
   276                 <runtarget target="sf-bc-check"/>
       
   277             </then>
       
   278         </if>
   201 
   279 
   202         <!-- PUBLISH LOGS/REPORTS -->
   280         <!-- PUBLISH LOGS/REPORTS -->
   203         <if>
   281         <if>
   204             <istrue value="${sf.spec.publish.enable}" />
   282             <istrue value="${sf.spec.publish.enable}" />
   205             <then>
   283             <then>
   439     <!-- unpack rnd zips if available -->
   517     <!-- unpack rnd zips if available -->
   440     <target name="sf-unpack-rnd">
   518     <target name="sf-unpack-rnd">
   441         <echo message="Unpacking any available RnD binaries"/>
   519         <echo message="Unpacking any available RnD binaries"/>
   442         <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/unzip_${build.id}_binaries_rnd.log">
   520         <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/unzip_${build.id}_binaries_rnd.log">
   443         <arg value="x"/>
   521         <arg value="x"/>
       
   522         <arg value="-x@${sf.common.config.dir}/tools/lists/rebuiltok.txt"/>
   444         <arg value="${build.drive}/output/zips/bin_rnd*.zip"/>
   523         <arg value="${build.drive}/output/zips/bin_rnd*.zip"/>
   445         </exec>
   524         </exec>
   446     </target>
   525     </target>
   447     
   526     
   448     <target name ="sf-make-junction">
   527     <target name ="sf-make-junction">
   503         <echo message="Running summary analysis"/>
   582         <echo message="Running summary analysis"/>
   504         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
   583         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
   505             <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
   584             <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
   506             <arg value="${build.id}_what_results.csv"/>
   585             <arg value="${build.id}_what_results.csv"/>
   507             <arg value="${build.id}_list_results.log"/>
   586             <arg value="${build.id}_list_results.log"/>
       
   587 	    <arg value="${build.drive}/output/zips/postbuild/bin_rnd_internal_initial.zip"/>
       
   588         </exec>
       
   589 	<exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log">
       
   590             <arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/>
       
   591             <arg value="${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}"/>
       
   592 	    <arg value="${build.id}_what_results.csv_results.csv"/>
       
   593             <arg value="${sf.project.location}/sysdefs/system_model_os_contributed.xml"/>
       
   594 	    <arg value="${sf.project.location}/sysdefs/system_model_s60_contributed.xml"/>
   508         </exec>
   595         </exec>
   509 
   596 
   510         <echo message="Running collision analysis"/>
   597         <echo message="Running collision analysis"/>
   511         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
   598         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
   512             <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>
   599             <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>