buildframework/helium/tools/compile/ec/ec.ant.xml
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
child 217 0f5e3a7fb6af
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
    27 
    27 
    28     <property name="ec.emake" value="emake"/>
    28     <property name="ec.emake" value="emake"/>
    29     <property name="ec.makefile.file" location="${build.drive}/Makefile"/>
    29     <property name="ec.makefile.file" location="${build.drive}/Makefile"/>
    30 
    30 
    31     <property name="ec.sysdef2make" location="${helium.dir}/tools/compile/ec/sysdef2make.pl"/>
    31     <property name="ec.sysdef2make" location="${helium.dir}/tools/compile/ec/sysdef2make.pl"/>
       
    32     <property name="ec.sysdef2make.cmdline" value="-forcemake ((abld.*\-(w|what|c|check))|(abld.*resource))" />
    32     
    33     
    33     <property name="ec.historyfile" value="${build.drive}/emake.data"/>
    34     <property name="ec.historyfile" value="${build.drive}/emake.data"/>
    34     <property name="ec.mem.limit" value="1000000000"/>
    35     <property name="ec.mem.limit" value="1000000000"/>
    35     
    36     
    36     <!-- This can be used to query cluster manager to find information about the build. Set
    37     <!-- This can be used to query cluster manager to find information about the build. Set
    39     
    40     
    40 
    41 
    41     <!-- Converting cononical SDF into a Makefile. -->
    42     <!-- Converting cononical SDF into a Makefile. -->
    42     <target name="compile-genxml-ec" if="build.system.ec-helium">
    43     <target name="compile-genxml-ec" if="build.system.ec-helium">
    43         <!-- Using now the official script for GTI. -->
    44         <!-- Using now the official script for GTI. -->
    44         <exec executable="perl" dir="${build.drive}/" error="${build.log.dir}/${build.id}.${sysdef.configuration}.sysdef2make.log" failonerror="${failonerror}">
    45         <exec executable="perl" dir="${build.drive}/" error="${compile.log.dir}/${build.id}.${sysdef.configuration}.sysdef2make.log" failonerror="${failonerror}">
    45             <arg line="${ec.sysdef2make} -n ${sysdef.configuration} -s ${env.EPOCROOT} -forcemake ((abld.*\-(w|what|c|check))|(abld.*resource)) ${canonical.sysdef.file}"/>
    46             <arg line="${ec.sysdef2make} -n ${sysdef.configuration} -s ${env.EPOCROOT} ${ec.sysdef2make.cmdline} ${canonical.sysdef.file}"/>
    46         </exec>
    47         </exec>
    47         <hlm:metadatarecord database="${metadata.dbfile}">
    48         <hlm:metadatarecord database="${metadata.dbfile}">
    48             <hlm:textmetadatainput>
    49             <hlm:textmetadatainput>
    49                 <fileset casesensitive="false" file="${build.log.dir}/${build.id}.${sysdef.configuration}.sysdef2make.log"/>
    50                 <fileset casesensitive="false" file="${compile.log.dir}/${build.id}.${sysdef.configuration}.sysdef2make.log"/>
    50                 <metadatafilterset refid="filterset.genxml.ec" />
    51                 <metadatafilterset refid="filterset.genxml.ec" />
    51             </hlm:textmetadatainput>
    52             </hlm:textmetadatainput>
    52         </hlm:metadatarecord>
    53         </hlm:metadatarecord>
    53         <hlm:generateBuildStatus file="${build.id}.${sysdef.configuration}.sysdef2make.log" />
    54         <hlm:generateBuildStatus file="${build.id}.${sysdef.configuration}.sysdef2make.log" />
    54     </target>
    55     </target>
   281     transfered to proper error message. -->
   282     transfered to proper error message. -->
   282     <target name="compile-ec-logs">
   283     <target name="compile-ec-logs">
   283         <echo>Cleaning up the logs....</echo>
   284         <echo>Cleaning up the logs....</echo>
   284         <exec executable="perl" dir="${build.drive}/" failonerror="${failonerror}">
   285         <exec executable="perl" dir="${build.drive}/" failonerror="${failonerror}">
   285             <arg line="${helium.dir}/tools/compile/ec/ec_whatcheck.pl"/>
   286             <arg line="${helium.dir}/tools/compile/ec/ec_whatcheck.pl"/>
   286             <redirector input="${build.log.dir}/${build.id}.${sysdef.configuration}_build_output.log"
   287             <redirector input="${compile.log.dir}/${build.id}.${sysdef.configuration}_build_output.log"
   287                 output="${build.log.dir}/${build.id}.${sysdef.configuration}_compile.log"/>
   288                 output="${compile.log.dir}/${build.id}.${sysdef.configuration}_compile.log"/>
   288         </exec>
   289         </exec>
   289     </target>
   290     </target>
   290 
   291 
   291 
   292 
   292     <!-- Build the component using EC. This is the only target for EC builds.
   293     <!-- Build the component using EC. This is the only target for EC builds.
   306         </if>
   307         </if>
   307         
   308         
   308         <echo>emake debug flag: ${emake_debug_flag}</echo>
   309         <echo>emake debug flag: ${emake_debug_flag}</echo>
   309 
   310 
   310         <echo>Building ${sysdef.configuration}....</echo>
   311         <echo>Building ${sysdef.configuration}....</echo>
   311         <echo file="${build.log.dir}/${build.id}.${sysdef.configuration}_run_emake.bat" level="info">
   312         <echo file="${temp.build.dir}/${build.id}.${sysdef.configuration}_run_emake.bat" level="info">
   312 set
   313 set
   313 ${ec.emake} --emake-build-label=${build.id}.${sysdef.configuration} --emake-class=${ec.build.class} --emake-priority=normal --emake-maxagents=${ec.maxagents} --emake-job-limit=0 --emake-mem-limit=${ec.mem.limit} --emake-history=${ec.history.option} --emake-annodetail=basic,history,file,waiting --emake-annofile=${build.log.dir}\${build.id}.${sysdef.configuration}.emake.anno.xml --emake-historyfile=${ec.historyfile} --emake-debug=${emake_debug_flag} --emake-logfile=${build.log.dir}\${build.id}.${sysdef.configuration}.emake.g.dlog --emake-root=%EMAKE_ROOT%;${helium.dir} --emake-autodepend=1 -k -i -f ${build.drive}/${sysdef.configuration}.make LOGBUILDTIME=&quot;&quot; VERBOSE=&quot;&quot; SAVESPACE=&quot;&quot; ${sysdef.configuration}
   314 ${ec.emake} --emake-build-label=${build.id}.${sysdef.configuration} --emake-class=${ec.build.class} --emake-priority=normal --emake-maxagents=${ec.maxagents} --emake-job-limit=0 --emake-mem-limit=${ec.mem.limit} --emake-history=${ec.history.option} --emake-annodetail=basic,history,file,waiting --emake-annofile=${compile.log.dir}\${build.id}.${sysdef.configuration}.emake.anno.xml --emake-historyfile=${ec.historyfile} --emake-debug=${emake_debug_flag} --emake-logfile=${compile.log.dir}\${build.id}.${sysdef.configuration}.emake.g.dlog --emake-root=%EMAKE_ROOT%;${helium.dir} --emake-autodepend=1 -k -i -f ${build.drive}/${sysdef.configuration}.make LOGBUILDTIME=&quot;&quot; VERBOSE=&quot;&quot; SAVESPACE=&quot;&quot; ${sysdef.configuration}
   314         </echo>
   315         </echo>
   315 
   316 
   316         <exec executable="${build.log.dir}/${build.id}.${sysdef.configuration}_run_emake.bat"
   317         <exec executable="${temp.build.dir}/${build.id}.${sysdef.configuration}_run_emake.bat"
   317               dir="${build.drive}/" output="${build.log.dir}/${build.id}.${sysdef.configuration}_build_output.log"
   318               dir="${build.drive}/" output="${compile.log.dir}/${build.id}.${sysdef.configuration}_build_output.log"
   318               failonerror="${failonerror}">
   319               failonerror="${failonerror}">
   319             <env key="SYMBIANBUILD_DEPENDENCYOFF" value="1" />
   320             <env key="SYMBIANBUILD_DEPENDENCYOFF" value="1" />
   320         </exec>
   321         </exec>
   321         
   322         
   322         <antcall target="compile-ec-unpatch"/>
   323         <antcall target="compile-ec-unpatch"/>
   323         <antcall target="compile-ec-logs"/>
   324         <antcall target="compile-ec-logs"/>
   324 
   325 
   325         <!-- Testing everything happens correctly. -->
   326         <!-- Testing everything happens correctly. -->
   326         <hlm:assertFileExists file="${build.log.dir}/${build.id}.${sysdef.configuration}_run_emake.bat"/>
   327         <hlm:assertFileExists file="${temp.build.dir}/${build.id}.${sysdef.configuration}_run_emake.bat"/>
   327         <hlm:assertFileExists file="${build.log.dir}/${build.id}.${sysdef.configuration}_build_output.log"/>
   328         <hlm:assertFileExists file="${compile.log.dir}/${build.id}.${sysdef.configuration}_build_output.log"/>
   328         <hlm:assertFileExists file="${build.log.dir}/${build.id}.${sysdef.configuration}_compile.log"/>
   329         <hlm:assertFileExists file="${compile.log.dir}/${build.id}.${sysdef.configuration}_compile.log"/>
   329         <hlm:calculateErrorsFromLog logfile="${build.log.dir}/${build.id}.${sysdef.configuration}_compile.log" />
   330         <hlm:calculateErrorsFromLog logfile="${compile.log.dir}/${build.id}.${sysdef.configuration}_compile.log" />
   330     </target>
   331     </target>
   331 </project>
   332 </project>