sf-platform/compile.ant.xml
changeset 1014 5eec172ee719
parent 975 9e13c23197b2
child 1015 d059f7d92065
equal deleted inserted replaced
979:6c90564578a6 1014:5eec172ee719
    20     </antcall>
    20     </antcall>
    21   </target>
    21   </target>
    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="sf-do-full-export">
    25   <target name="sf-do-compile">
    26     <echo message="INFO Using Helium 7+ for sf-do-compile"/>
    26     <echo message="INFO Using Helium 7+ for sf-do-compile"/>
    27         
    27     
    28     <propertyregex property="sf.unpack.tools" override="true" input="${sf.spec.baseline.getenv_options}" regexp="-i tools" select="true" defaultValue="false" casesensitive="false"/>
    28     <propertyregex property="sf.unpack.tools" override="true" input="${sf.spec.baseline.getenv_options}" regexp="-i tools" select="true" defaultValue="false" casesensitive="false"/>
    29   
    29 
       
    30     <!-- perform initial exports -->
       
    31     <antcall target="sf-do-full-export">
       
    32         <param name="sf.export.stage.name" value="full_export"/>
       
    33     </antcall>	  
       
    34 	
    30     <if> <!-- If tools baseline unpack has not been specified, or its not a "fast" build then try to build them -->
    35     <if> <!-- If tools baseline unpack has not been specified, or its not a "fast" build then try to build them -->
    31       <or>
    36       <or>
    32         <isfalse value="${sf.unpack.tools}"/>
    37         <isfalse value="${sf.unpack.tools}"/>
    33         <isfalse value="${sf.spec.baseline.enable}"/>
    38         <isfalse value="${sf.spec.baseline.enable}"/>
    34         <isfalse value="${sf.os.compile.fast}"/>
    39         <isfalse value="${sf.os.compile.fast}"/>
    37         <echo message="INFO Building tools, unpack is not specified"/>        
    42         <echo message="INFO Building tools, unpack is not specified"/>        
    38         
    43         
    39         <!-- sf.spec.sbs.tools.config param used. do-target-build will decide to build sequentially/together -->
    44         <!-- sf.spec.sbs.tools.config param used. do-target-build will decide to build sequentially/together -->
    40         <antcall target="sf-do-target-compile" inheritAll="false" inheritRefs="true">
    45         <antcall target="sf-do-target-compile" inheritAll="false" inheritRefs="true">
    41             <param name="i.sf.spec.sbs.config" value="${sf.spec.sbs.tools.config}" />           
    46             <param name="i.sf.spec.sbs.config" value="${sf.spec.sbs.tools.config}" />           
    42             <param name="qmake.enabled"        value="false"/> <!-- ensure qmake is not run, before its available -->
       
    43         </antcall>
    47         </antcall>
    44       </then>
    48       </then>
    45       <else>
    49       <else>
    46         <echo message="INFO Skipping tools build, tools were unpacked from ${sf.spec.baseline.location}"/>        
    50         <echo message="INFO Skipping tools build, tools were unpacked from ${sf.spec.baseline.location}"/>        
    47       </else>
    51       </else>
    48       </if>
    52       </if>
    49       
    53       
       
    54 	  <!-- explicitly run qmake once, as iterative build will repeat the step  -->
       
    55 	  <antcall target="run-qmake">
       
    56 	      <param name="qmake.enabled" value="true"/>
       
    57 	  </antcall>
       
    58 	  
       
    59 	  <!-- perform exports for bld.infs generated by qmake -->
       
    60 	  <antcall target="sf-do-full-export">
       
    61 	      <param name="sf.export.stage.name" value="post_qmake_export"/>
       
    62 	  </antcall>	  
       
    63 	  
    50       <!-- sf.spec.sbs.config param used. do-target-build will decide to build sequentially/together -->
    64       <!-- sf.spec.sbs.config param used. do-target-build will decide to build sequentially/together -->
    51       <antcall target="sf-do-target-compile" inheritAll="false" inheritRefs="true">
    65       <antcall target="sf-do-target-compile" inheritAll="false" inheritRefs="true">
    52           <param name="i.sf.spec.sbs.config" value="${sf.spec.sbs.config}" />
    66           <param name="i.sf.spec.sbs.config" value="${sf.spec.sbs.config}" />
    53       </antcall>
    67       </antcall>
    54   
    68   
    61     <hlm:sbsinput id="sf.export">
    75     <hlm:sbsinput id="sf.export">
    62         <sbsOptions>
    76         <sbsOptions>
    63             <arg line="-k" />
    77             <arg line="-k" />
    64             <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
    78             <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
    65             <arg line="-t ${sf.spec.sbs.retry.limit}"/>
    79             <arg line="-t ${sf.spec.sbs.retry.limit}"/>
    66             <arg name="--logfile" value="${compile.log.dir}/${build.id}_${sf.spec.os.sysdef.clean.configurations.list}_compile_full_export.log" />
    80             <arg name="--logfile" value="${compile.log.dir}/${build.id}_${sf.spec.os.sysdef.clean.configurations.list}_compile_${sf.export.stage.name}.log" />
    67             <arg name="--makefile" value="${compile.log.dir}/${build.id}_${sf.spec.os.sysdef.clean.configurations.list}_compile_full_export_Makefile" />
    81             <arg name="--makefile" value="${compile.log.dir}/${build.id}_${sf.spec.os.sysdef.clean.configurations.list}_compile_${sf.export.stage.name}_Makefile" />
    68             <arg line="--export-only"/>
    82             <arg line="--export-only"/>
    69         </sbsOptions>
    83         </sbsOptions>
    70     </hlm:sbsinput>
    84     </hlm:sbsinput>
    71     
    85     
    72     <!-- call helium's compile-main target using the sbsInput args defined above -->
    86     <!-- call helium's compile-main target using the sbsInput args defined above -->
    73     <echo message="INFO Full export for all targets"/>
    87     <echo message="INFO Full export for all targets"/>
    74     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    88     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    75         <param name="build.system" value="${sf.spec.build.system}" />
    89         <param name="build.system" value="${sf.spec.build.system}" />
    76         <param name="sbs.inputs.list" value="sf.export"/>
    90         <param name="sbs.inputs.list" value="sf.export"/>
    77         <param name="qmake.enabled"   value="false"/> <!-- ensure qmake is not run, before its available -->
       
    78     </antcall> 
    91     </antcall> 
    79   </target>
    92   </target>
    80 
    93 
    81   <!-- compile sbs.config list of targets either sequentially or together -->
    94   <!-- compile sbs.config list of targets either sequentially or together -->
    82   <target name="sf-do-target-compile">
    95   <target name="sf-do-target-compile">