sf-platform/compile.ant.xml
changeset 1124 82b232da6082
parent 1106 cae69bccf0cc
child 1158 6dad376b9835
equal deleted inserted replaced
1123:794ddd7e666a 1124:82b232da6082
    22   
    22   
    23   <!-- compile sbs.tools.config and sbs.config. tools built only if its not being unpacked first.
    23   <!-- compile sbs.tools.config and sbs.config. tools built only if its not being unpacked first.
    24        note: must be called from sf-os/s60-compile targets, as sys model input needed -->
    24        note: must be called from sf-os/s60-compile targets, as sys model input needed -->
    25   <target name="sf-do-compile" depends="create-canonical-sysdef-file">
    25   <target name="sf-do-compile" depends="create-canonical-sysdef-file">
    26     <echo message="INFO Using Helium 7+ for sf-do-compile"/>
    26     <echo message="INFO Using Helium 7+ for sf-do-compile"/>
    27     
       
    28     <propertyregex property="sf.unpack.tools" override="true" input="${sf.spec.baseline.getenv_options}" regexp="-i tools" select="true" defaultValue="false" casesensitive="false"/>
       
    29 
    27 
    30     <!-- explicitly run qmake once, as iterative build will repeat the step. if qmake is not unpacked already, then this step is skipped  -->
    28     <!-- explicitly run qmake once, as iterative build will repeat the step. if qmake is not unpacked already, then this step is skipped  -->
    31     <antcall target="run-qmake" inheritAll="false" inheritRefs="true">
    29     <antcall target="run-qmake" inheritAll="false" inheritRefs="true">
    32       <param name="qmake.enabled" value="true"/>
    30       <param name="qmake.enabled" value="true"/>
    33       <param name="sysdef.configuration" value="${sysdef.configurations.list}"/>
    31       <param name="sysdef.configuration" value="${sysdef.configurations.list}"/>
    44       <param name="sysdef.configuration" value="${sysdef.configurations.list}"/>
    42       <param name="sysdef.configuration" value="${sysdef.configurations.list}"/>
    45     </antcall>
    43     </antcall>
    46 	
    44 	
    47     <if> <!-- If tools baseline unpack has not been specified, or its not a "fast" build then try to build them -->
    45     <if> <!-- If tools baseline unpack has not been specified, or its not a "fast" build then try to build them -->
    48       <or>
    46       <or>
    49         <isfalse value="${sf.unpack.tools}"/>
    47         <isfalse value="${sf.spec.toolsbaseline.enable}"/>
    50         <isfalse value="${sf.spec.baseline.enable}"/>
       
    51         <isfalse value="${sf.os.compile.fast}"/>
    48         <isfalse value="${sf.os.compile.fast}"/>
    52       </or>
    49       </or>
    53       <then>
    50       <then>
    54         <echo message="INFO Building tools, unpack is not specified"/>        
    51         <echo message="INFO Building tools, unpack is not specified"/>        
    55         
    52         
    57         <antcall target="sf-do-target-compile" inheritAll="false" inheritRefs="true">
    54         <antcall target="sf-do-target-compile" inheritAll="false" inheritRefs="true">
    58             <param name="i.sf.spec.sbs.config" value="${sf.spec.sbs.tools.config}" />           
    55             <param name="i.sf.spec.sbs.config" value="${sf.spec.sbs.tools.config}" />           
    59         </antcall>
    56         </antcall>
    60       </then>
    57       </then>
    61       <else>
    58       <else>
    62         <echo message="INFO Skipping tools build, tools were unpacked from ${sf.spec.baseline.location}"/>        
    59         <echo message="INFO Skipping tools build, tools were unpacked from ${sf.spec.toolsbaseline.location}"/>
    63       </else>
    60       </else>
    64       </if>
    61       </if>
    65       	  	  
    62       	  	  
    66       <!-- sf.spec.sbs.config param used. do-target-build will decide to build sequentially/together -->
    63       <!-- sf.spec.sbs.config param used. do-target-build will decide to build sequentially/together -->
    67       <antcall target="sf-do-target-compile" inheritAll="false" inheritRefs="true">
    64       <antcall target="sf-do-target-compile" inheritAll="false" inheritRefs="true">
    68           <param name="i.sf.spec.sbs.config" value="${sf.spec.sbs.config}" />
    65           <param name="i.sf.spec.sbs.config" value="${sf.spec.sbs.config}" />
    69       </antcall>
    66       </antcall>
    70   
    67   
    71       <!-- Export model to BOM, as generate-layers target is no longer called from compile-main target -->
    68       <!-- Export model to BOM, as generate-layers target is no longer called from compile-main target -->
    72       <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configurations.list}.xml" todir="${build.log.dir}/BOM/"/>
    69       <!-- Name of file in BOM should always be system_model.xml, so that it can be predictably re-used again -->
       
    70       <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configurations.list}.xml" tofile="${build.log.dir}/BOM/system_model.xml"/>
    73   </target>
    71   </target>
    74 
    72 
    75   <!-- perform export only first to assist when parallel makefile parsing -->
    73   <!-- perform export only first to assist when parallel makefile parsing -->
    76   <target name="sf-do-full-export">
    74   <target name="sf-do-full-export">
       
    75   
       
    76     <!-- turn comma separated list into sbs friendly -c list, and _ separated list for friendly log names -->
       
    77     <propertyregex property="i.sf.spec.sbs.config.expanded"         override="true" input="${sf.spec.sbs.config}" regexp="(,)" replace=" -c " defaultValue="${sf.spec.sbs.config}" global="true"  casesensitive="false"/>
       
    78     <propertyregex property="i.sf.spec.sbs.tools.config.expanded"   override="true" input="${sf.spec.sbs.tools.config}" regexp="(,)" replace=" -c " defaultValue="${sf.spec.sbs.tools.config}" global="true"  casesensitive="false"/>
       
    79 
    77     <hlm:sbsinput id="sf.export">
    80     <hlm:sbsinput id="sf.export">
    78         <sbsOptions>
    81         <sbsOptions>
       
    82             <arg line="-c ${i.sf.spec.sbs.config.expanded} -c ${i.sf.spec.sbs.tools.config.expanded}"/>
    79             <arg line="-k" />
    83             <arg line="-k" />
    80             <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
    84             <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
    81             <arg line="-t ${sf.spec.sbs.retry.limit}"/>
    85             <arg line="-t ${sf.spec.sbs.retry.limit}"/>
    82             <arg name="--logfile" value="${compile.log.dir}/${build.id}_${sf.spec.os.sysdef.clean.configurations.list}_compile_${sf.export.stage.name}.log" />
    86             <arg name="--logfile" value="${build.drive}/output/logs/${build.id}_${sf.spec.os.sysdef.clean.configurations.list}_compile_${sf.export.stage.name}.log" />
    83             <arg name="--makefile" value="${compile.log.dir}/${build.id}_${sf.spec.os.sysdef.clean.configurations.list}_compile_${sf.export.stage.name}_Makefile" />
    87             <arg name="--makefile" value="${compile.log.dir}/${build.id}_${sf.spec.os.sysdef.clean.configurations.list}_compile_${sf.export.stage.name}_Makefile" />
    84             <arg line="--export-only"/>
    88             <arg line="--export-only"/>
    85         </sbsOptions>
    89         </sbsOptions>
    86     </hlm:sbsinput>
    90     </hlm:sbsinput>
    87     
    91     
   109                     <arg line="-k" />
   113                     <arg line="-k" />
   110                     <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
   114                     <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
   111                     <arg line="-t ${sf.spec.sbs.retry.limit}"/>
   115                     <arg line="-t ${sf.spec.sbs.retry.limit}"/>
   112                     <arg line="${sf.spec.sbs.options}"/>
   116                     <arg line="${sf.spec.sbs.options}"/>
   113                     <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
   117                     <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
   114                     <arg name="--logfile" value="${compile.log.dir}/${build.id}_@{item.sbs.splitconfig}_${sf.spec.os.sysdef.clean.configurations.list}_compile.log" />
   118                     <arg name="--logfile" value="${build.drive}/output/logs/${build.id}_@{item.sbs.splitconfig}_${sf.spec.os.sysdef.clean.configurations.list}_compile.log" />
   115                     <arg name="--makefile" value="${compile.log.dir}/${build.id}_@{item.sbs.splitconfig}_${sf.spec.os.sysdef.clean.configurations.list}_Makefile" />
   119                     <arg name="--makefile" value="${compile.log.dir}/${build.id}_@{item.sbs.splitconfig}_${sf.spec.os.sysdef.clean.configurations.list}_Makefile" />
   116                     <arg line="--noexport"/>
   120                     <arg line="--noexport"/>
   117                 </sbsOptions>
   121                 </sbsOptions>
   118             </hlm:sbsinput>
   122             </hlm:sbsinput>
   119 
   123 
   143                     <arg line="-k" />
   147                     <arg line="-k" />
   144                     <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
   148                     <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
   145                     <arg line="-t ${sf.spec.sbs.retry.limit}"/>
   149                     <arg line="-t ${sf.spec.sbs.retry.limit}"/>
   146                     <arg line="${sf.spec.sbs.options}"/>
   150                     <arg line="${sf.spec.sbs.options}"/>
   147                     <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
   151                     <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
   148                     <arg name="--logfile" value="${compile.log.dir}/${build.id}_${i.sf.spec.sbs.config.expanded.logname}_${sf.spec.os.sysdef.clean.configurations.list}_compile.log" />
   152                     <arg name="--logfile" value="${build.drive}/output/logs/${build.id}_${i.sf.spec.sbs.config.expanded.logname}_${sf.spec.os.sysdef.clean.configurations.list}_compile.log" />
   149                     <arg name="--makefile" value="${compile.log.dir}/${build.id}_${i.sf.spec.sbs.config.expanded.logname}_${sf.spec.os.sysdef.clean.configurations.list}_Makefile" />
   153                     <arg name="--makefile" value="${compile.log.dir}/${build.id}_${i.sf.spec.sbs.config.expanded.logname}_${sf.spec.os.sysdef.clean.configurations.list}_Makefile" />
   150                     <arg line="--noexport"/>
   154                     <arg line="--noexport"/>
   151                 </sbsOptions>
   155                 </sbsOptions>
   152            </hlm:sbsinput>
   156            </hlm:sbsinput>
   153             
   157