sf-platform/compile.ant.xml
changeset 1019 4bfee1aab881
parent 1017 9bb7a955c2b3
child 1020 bc818b5bb6d9
equal deleted inserted replaced
997:92dd719cc91b 1019:4bfee1aab881
    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" inheritAll="false" inheritRefs="true">
       
    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" inheritAll="false" inheritRefs="true">
       
    56 	      <param name="qmake.enabled" value="true"/>
       
    57               <param name="sysdef.configuration" value="${sysdef.configurations.list}"/>
       
    58 	  </antcall>
       
    59 	  
       
    60 	  <!-- perform exports for bld.infs generated by qmake -->
       
    61 	  <antcall target="sf-do-full-export" inheritAll="false" inheritRefs="true">
       
    62 	      <param name="sf.export.stage.name" value="post_qmake_export"/>
       
    63 	  </antcall>	  
       
    64 	  
    50       <!-- sf.spec.sbs.config param used. do-target-build will decide to build sequentially/together -->
    65       <!-- 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">
    66       <antcall target="sf-do-target-compile" inheritAll="false" inheritRefs="true">
    52           <param name="i.sf.spec.sbs.config" value="${sf.spec.sbs.config}" />
    67           <param name="i.sf.spec.sbs.config" value="${sf.spec.sbs.config}" />
    53       </antcall>
    68       </antcall>
    54   
    69   
    61     <hlm:sbsinput id="sf.export">
    76     <hlm:sbsinput id="sf.export">
    62         <sbsOptions>
    77         <sbsOptions>
    63             <arg line="-k" />
    78             <arg line="-k" />
    64             <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
    79             <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
    65             <arg line="-t ${sf.spec.sbs.retry.limit}"/>
    80             <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" />
    81             <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" />
    82             <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"/>
    83             <arg line="--export-only"/>
    69         </sbsOptions>
    84         </sbsOptions>
    70     </hlm:sbsinput>
    85     </hlm:sbsinput>
    71     
    86     
    72     <!-- call helium's compile-main target using the sbsInput args defined above -->
    87     <!-- call helium's compile-main target using the sbsInput args defined above -->
    73     <echo message="INFO Full export for all targets"/>
    88     <echo message="INFO Full export for all targets"/>
    74     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    89     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    75         <param name="build.system" value="${sf.spec.build.system}" />
    90         <param name="build.system" value="${sf.spec.build.system}" />
    76         <param name="sbs.inputs.list" value="sf.export"/>
    91         <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> 
    92     </antcall> 
    79   </target>
    93   </target>
    80 
    94 
    81   <!-- compile sbs.config list of targets either sequentially or together -->
    95   <!-- compile sbs.config list of targets either sequentially or together -->
    82   <target name="sf-do-target-compile">
    96   <target name="sf-do-target-compile">