common/build.xml
changeset 126 d827d1eea85e
parent 125 a4079a41ca7f
parent 123 5b2818c52aae
child 131 1f3285cd5668
equal deleted inserted replaced
125:a4079a41ca7f 126:d827d1eea85e
    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         <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
       
    82             <arg value="/c"/>
       
    83             <arg value="echo"/>
       
    84             <arg value="BASELINE_NAME=${sf.spec.bccheck.baseline.name}"/>
       
    85         </exec>
       
    86         <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
       
    87             <arg value="/c"/>
       
    88             <arg value="echo"/>
       
    89             <arg value="BASELINE_SDK_DIR=${sf.spec.bccheck.baseline.skd.dir}"/>
       
    90         </exec>
       
    91         <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
       
    92             <arg value="/c"/>
       
    93             <arg value="echo"/>
       
    94             <arg value="BASELINE_SDK_S60_VERSION=${sf.spec.bccheck.baseline.s60.version}"/>
       
    95         </exec>
       
    96         <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
       
    97             <arg value="/c"/>
       
    98             <arg value="echo"/>
       
    99             <arg value="CURRENT_NAME=${build.id}"/>
       
   100         </exec>
       
   101         <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
       
   102             <arg value="/c"/>
       
   103             <arg value="echo"/>
       
   104             <arg value="CURRENT_SDK_DIR=${build.drive}"/>
       
   105         </exec>
       
   106         <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
       
   107             <arg value="/c"/>
       
   108             <arg value="echo"/>
       
   109             <arg value="CURRENT_SDK_S60_VERSION=${sf.spec.bccheck.current.s60.version}"/>
       
   110         </exec>
       
   111 
       
   112         <delete file="${build.log.dir}/BC/libraries.txt" quiet="true"/>
       
   113         <exec executable="python" dir="${sf.spec.pdt.root}/fts/compatibilityanalyser" output="${build.log.dir}/BC/libraries.txt">
       
   114 			<arg value="CheckBC.py"/>
       
   115             <arg value="${build.log.dir}/BC/bc.config"/>
       
   116             <arg value="-la"/>
       
   117             <arg value="-f"/>
       
   118             <arg value="${sf.spec.bccheck.reportid}${sf.spec.job.number}"/>
       
   119         </exec>
       
   120         <delete file="${build.log.dir}/BC/libraries_report.xml" quiet="true"/>
       
   121         <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/Libraries_CompatibilityReport_${sf.spec.bccheck.reportid}${sf.spec.job.number}" tofile="${build.log.dir}/BC/libraries_report.xml" failonerror="true" verbose="true"/>
       
   122 
       
   123         <delete file="${build.log.dir}/BC/headers.txt" quiet="true"/>
       
   124         <exec executable="python" dir="${sf.spec.pdt.root}/fts/compatibilityanalyser" output="${build.log.dir}/BC/headers.txt">
       
   125 			<arg value="CheckBC.py"/>
       
   126             <arg value="${build.log.dir}/BC/bc.config"/>
       
   127             <arg value="-ha"/>
       
   128             <arg value="-f"/>
       
   129             <arg value="${sf.spec.bccheck.reportid}${sf.spec.job.number}"/>
       
   130         </exec>
       
   131         <delete file="${build.log.dir}/BC/headers_report.xml" quiet="true"/>
       
   132         <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/Headers_CompatibilityReport_${sf.spec.bccheck.reportid}${sf.spec.job.number}" tofile="${build.log.dir}/BC/headers_report.xml" failonerror="true" verbose="true"/>
       
   133     </target>
       
   134 
    76     <target name="sf-prebuild">
   135     <target name="sf-prebuild">
    77         <echo>[SF-PREBUILD]</echo>
   136         <echo>[SF-PREBUILD]</echo>
    78         
   137         
    79         <!-- create BOM dir -->
   138         <!-- create BOM dir -->
    80         <mkdir dir="${build.drive}/output/logs/BOM"/>
   139         <mkdir dir="${build.drive}/output/logs/BOM"/>
   196 
   255 
   197         <!-- run build analysis tools -->
   256         <!-- run build analysis tools -->
   198         <runtarget target="sf-run-analysis"/>
   257         <runtarget target="sf-run-analysis"/>
   199 
   258 
   200         <runtarget target="sf-zip-logs"/>
   259         <runtarget target="sf-zip-logs"/>
       
   260 
       
   261         <!-- Do BC check -->
       
   262         <if><istrue value="${sf.spec.bccheck.enable}"/>
       
   263             <then>
       
   264                 <runtarget target="sf-bc-check"/>
       
   265             </then>
       
   266         </if>
   201 
   267 
   202         <!-- PUBLISH LOGS/REPORTS -->
   268         <!-- PUBLISH LOGS/REPORTS -->
   203         <if>
   269         <if>
   204             <istrue value="${sf.spec.publish.enable}" />
   270             <istrue value="${sf.spec.publish.enable}" />
   205             <then>
   271             <then>