sf-platform/compile.ant.xml
changeset 914 e4c5389160b3
parent 913 eeffe74cd1b2
child 916 a93d4e0357e5
equal deleted inserted replaced
913:eeffe74cd1b2 914:e4c5389160b3
    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">
    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     <propertyregex property="sf.unpack.tools" override="true" input="${sf.spec.baseline.getenv_options}" regexp="-i tools" select="true" defaultValue="false" casesensitive="false"/>
    27     <propertyregex property="sf.unpack.tools" override="true" input="${sf.spec.baseline.getenv_options}" regexp="-i tools" select="true" defaultValue="false" casesensitive="false"/>
    28   
    28   
    29     <if> <!-- If tools baseline unpack has not been specified, or its not a "fast" build then try to build them -->
    29     <if> <!-- If tools baseline unpack has not been specified, or its not a "fast" build then try to build them -->
    30       <or>
    30       <or>
    31         <isfalse value="${sf.unpack.tools}"/>
    31         <isfalse value="${sf.unpack.tools}"/>
    67                     <arg line="-k" />
    67                     <arg line="-k" />
    68                     <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
    68                     <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
    69                     <arg line="-t ${sf.spec.sbs.retry.limit}"/>
    69                     <arg line="-t ${sf.spec.sbs.retry.limit}"/>
    70                     <arg line="${sf.spec.sbs.options}"/>
    70                     <arg line="${sf.spec.sbs.options}"/>
    71                     <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
    71                     <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
    72                     <arg name="--logfile" value="${compile.log.dir}/${build.id}_@{item.sbs.splitconfig}_compile.log" />
    72                     <arg name="--logfile" value="${compile.log.dir}/${build.id}_@{item.sbs.splitconfig}_${sf.spec.os.sysdef.clean.configurations.list}_compile.log" />
    73                     <arg name="--makefile" value="${compile.log.dir}/${build.id}_@{item.sbs.splitconfig}_Makefile" />
    73                     <arg name="--makefile" value="${compile.log.dir}/${build.id}_@{item.sbs.splitconfig}_${sf.spec.os.sysdef.clean.configurations.list}_Makefile" />
    74                 </sbsOptions>
    74                 </sbsOptions>
    75             </hlm:sbsinput>
    75             </hlm:sbsinput>
    76             
    76             
    77             <!-- call helium's compile-main target using the sbsInput args defined above -->
    77             <!-- call helium's compile-main target using the sbsInput args defined above -->
    78             <echo message="INFO Iterative compile building target: @{item.sbs.splitconfig}"/>
    78             <echo message="INFO Iterative compile building target: @{item.sbs.splitconfig}"/>
    87       <else>
    87       <else>
    88            <!-- turn comma separated list into sbs friendly -c list, and _ separated list for friendly log names -->
    88            <!-- turn comma separated list into sbs friendly -c list, and _ separated list for friendly log names -->
    89            <propertyregex property="i.sf.spec.sbs.config.expanded"         override="true" input="${i.sf.spec.sbs.config}" regexp="(,)" replace=" -c " defaultValue="${i.sf.spec.sbs.config}" global="true"  casesensitive="false"/>
    89            <propertyregex property="i.sf.spec.sbs.config.expanded"         override="true" input="${i.sf.spec.sbs.config}" regexp="(,)" replace=" -c " defaultValue="${i.sf.spec.sbs.config}" global="true"  casesensitive="false"/>
    90            <propertyregex property="i.sf.spec.sbs.config.expanded.logname" override="true" input="${i.sf.spec.sbs.config}" regexp="(,)" replace="_"    defaultValue="${i.sf.spec.sbs.config}" global="true"  casesensitive="false"/>
    90            <propertyregex property="i.sf.spec.sbs.config.expanded.logname" override="true" input="${i.sf.spec.sbs.config}" regexp="(,)" replace="_"    defaultValue="${i.sf.spec.sbs.config}" global="true"  casesensitive="false"/>
    91            <echo message="INFO Target : ${i.sf.spec.sbs.config.expanded}"/>
    91            <echo message="INFO Target : ${i.sf.spec.sbs.config.expanded}"/>
    92            <echo message="INFO Logname: ${i.sf.spec.sbs.config.expanded.logname}"/>
    92            <echo message="INFO Logname: ${i.sf.spec.sbs.config.expanded.logname} + Config: ${sf.spec.os.sysdef.clean.configurations.list}"/>
    93            
    93            
    94            <!-- TODO: Make this use above compile-main call -->
    94            <!-- TODO: Make this use above compile-main call? -->
    95            
    95            
    96            <!-- define sbs args, log name etc -->
    96            <!-- define sbs args, log name etc -->
    97            <hlm:sbsinput id="sf.build">
    97            <hlm:sbsinput id="sf.build">
    98                 <sbsOptions>
    98                 <sbsOptions>
    99                     <arg line="-c ${i.sf.spec.sbs.config.expanded}"/>
    99                     <arg line="-c ${i.sf.spec.sbs.config.expanded}"/>
   100                     <arg line="-k" />
   100                     <arg line="-k" />
   101                     <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
   101                     <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
   102                     <arg line="-t ${sf.spec.sbs.retry.limit}"/>
   102                     <arg line="-t ${sf.spec.sbs.retry.limit}"/>
   103                     <arg line="${sf.spec.sbs.options}"/>
   103                     <arg line="${sf.spec.sbs.options}"/>
   104                     <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
   104                     <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
   105                     <arg name="--logfile" value="${compile.log.dir}/${build.id}_${i.sf.spec.sbs.config.expanded.logname}_compile.log" />
   105                     <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" />
   106                     <arg name="--makefile" value="${compile.log.dir}/${build.id}_${i.sf.spec.sbs.config.expanded.logname}_Makefile" />
   106                     <arg name="--makefile" value="${compile.log.dir}/${build.id}_${i.sf.spec.sbs.config.expanded.logname}_${sf.spec.os.sysdef.clean.configurations.list}_Makefile" />
   107                 </sbsOptions>
   107                 </sbsOptions>
   108            </hlm:sbsinput>
   108            </hlm:sbsinput>
   109             
   109             
   110             <!-- call helium's compile-main target using the sbsInput args defined above -->
   110             <!-- call helium's compile-main target using the sbsInput args defined above -->
   111             <echo message="INFO Building target(s): ${i.sf.spec.sbs.config.expanded}"/>
   111             <echo message="INFO Building target(s): ${i.sf.spec.sbs.config.expanded}"/>