common/build.xml
changeset 792 893b85cda81b
parent 721 555e9b4085ea
child 829 b9c988316957
equal deleted inserted replaced
791:9054e820b1e6 792:893b85cda81b
   571         </exec>
   571         </exec>
   572         <!-- And copy the XSL so the output can be transformed by a browser -->
   572         <!-- And copy the XSL so the output can be transformed by a browser -->
   573         <copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/>
   573         <copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/>
   574     </target>
   574     </target>
   575        
   575        
   576 
       
   577     <target name="sf-rombuild">
       
   578       <!-- TODO If ANT gets a better way to do conditions based on value then use it instead! -->
       
   579       <property name="sf.rombuild.dir" value="${build.drive}/sf/os/kernelhwsrv/kernel/eka/rombuild"/>
       
   580       
       
   581       <for list="${sf.spec.sbs.config}" delimiter="," param="sf.spec.sbs.config.variant">
       
   582           <sequential>
       
   583           <propertyregex property="udeb" input="@{sf.spec.sbs.config.variant}" regexp="(armv5$|armv5\.|armv5_udeb)" select="\1"/>
       
   584           <propertyregex property="urel" input="@{sf.spec.sbs.config.variant}" regexp="(armv5$|armv5\.|armv5_urel)" select="\1"/>
       
   585           </sequential>
       
   586       </for> 
       
   587       
       
   588       <condition property="sf.spec.sbs.config.expanded" value="udeb">
       
   589       <and><isset property="udeb"/><not><isset property="urel"/></not></and>
       
   590       </condition>
       
   591       
       
   592       <condition property="sf.spec.sbs.config.expanded" value="urel">
       
   593       <and><isset property="urel"/><not><isset property="udeb"/></not></and>
       
   594       </condition>
       
   595       
       
   596       <condition property="sf.spec.sbs.config.expanded" value="udeb,urel">
       
   597       <and><isset property="udeb"/><isset property="urel"/></and>
       
   598       </condition>
       
   599       
       
   600       <if><isset property="sf.spec.sbs.config.expanded"/>
       
   601       <then>
       
   602           <echo message="INFO Found armv5, building ${sf.spec.sbs.config.expanded}"/>      
       
   603           
       
   604           <for list="${sf.spec.referenceroms.list}" delimiter="," param="sf.spec.referenceroms.variant">
       
   605               <sequential>
       
   606               <for list="${sf.spec.sbs.config.expanded}" delimiter="," param="sf.spec.sbs.config.expanded.i">
       
   607                   <sequential>
       
   608                       <echo message="INFO Building textshell ROM variant @{sf.spec.sbs.config.expanded.i} @{sf.spec.referenceroms.variant}"/>
       
   609                       <exec executable="cmd" dir="${sf.rombuild.dir}" failonerror="false" 
       
   610                       output="${build.log.dir}/ROM_@{sf.spec.referenceroms.variant}_@{sf.spec.sbs.config.expanded.i}_out.log" logError="true">
       
   611                           <arg value="/c"/>
       
   612                           <arg value="rom --variant=@{sf.spec.referenceroms.variant} --inst=armv5 --build=@{sf.spec.sbs.config.expanded.i} --type=tshell"/>
       
   613                       </exec>
       
   614                       
       
   615                       <if><available  file="${sf.rombuild.dir}/ROMBUILD.LOG"/>
       
   616                       <then>
       
   617                           <move file="${sf.rombuild.dir}/ROMBUILD.LOG" tofile="${build.log.dir}/ROMBUILD_@{sf.spec.referenceroms.variant}_@{sf.spec.sbs.config.expanded.i}.log"/>
       
   618                       </then>
       
   619                       <else>
       
   620                           <echo message="ERROR Failed to build @{sf.spec.sbs.config.expanded.i} ROM for @{sf.spec.referenceroms.variant} variant"/>
       
   621                       </else>
       
   622                       </if>
       
   623                   </sequential>
       
   624              </for>
       
   625              </sequential>
       
   626           </for>
       
   627           
       
   628           <move todir="${build.drive}/epoc32/rom/"  verbose="true" failonerror="false">
       
   629             <fileset dir="${sf.rombuild.dir}">
       
   630               <include name="**/*.IMG"/>
       
   631             </fileset>
       
   632           </move>
       
   633       </then>
       
   634       <else><echo message="INFO ROM Build requested but no valid build variants defined by sf.spec.sbs.config. Skipping."/></else>
       
   635       </if>
       
   636     </target>
       
   637 
       
   638 </project>
   576 </project>
   639 
   577