sf-package/build.xml
author Shabe Razvi <shaber@symbian.org>
Mon, 11 Oct 2010 12:07:02 +0100
changeset 1289 5a13d0332890
parent 1258 7c13417d5e31
child 1312 c2abb8ddb43c
permissions -rw-r--r--
Add properties to enable C100797 for Smoke testing
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
     2
<project name="SF-PACKAGE-CONFIG" xmlns:hlm="http://www.nokia.com/helium">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
     3
  <!-- location of this config -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
     4
  <dirname property="sf.package.config.dir" file="${ant.file.SF-PACKAGE-CONFIG}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
     5
  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
     6
  <!-- import codeline-specific properties -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
     7
  <import file="${sf.package.config.dir}/${sf.spec.job.codeline}_props.ant.xml" optional="yes"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
     8
  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
     9
  <!-- import package properties -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    10
  <import file="${sf.package.config.dir}/package_props.ant.xml" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    11
  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    12
  <!-- import common properties/targets/references -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    13
  <import file="../common/build.xml" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    14
  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    15
  <!-- import package references -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    16
  <import file="${sf.package.config.dir}/package_refs.ant.xml" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    17
  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    18
  <target name="sf-compile">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    19
  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    20
    <!-- Check that package_definition is not in v 3.0.0 otherwise transforms it to 2.0.1 -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    21
    <echo message="Check that model file is in a version usable by Raptor"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    22
    <exec executable="perl" dir="${sf.common.config.dir}/sysdefdowngrade" failonerror="false" output="${build.log.dir}/sysdefdowngrade.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    23
      <arg value="sysdefdowngrade.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    24
      <arg value="--model=${build.drive}/${sf.spec.systemdefinition.location}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    25
      <arg value="--sources=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    26
    </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    27
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    28
    <!-- helium 7+ should use new sf-package-compile target -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    29
    <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    30
        <or>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    31
          <equals arg1="${helium.version}" arg2="7.0"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    32
          <equals arg1="${last.major.helium.version}" arg2="7.0"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    33
        </or>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    34
        <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    35
            <runtarget target="sf-package-compile"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    36
        </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    37
        <else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    38
            <runtarget target="sf-package-compile-hlm-5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    39
        </else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    40
    </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    41
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    42
  </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    43
  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    44
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    45
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    46
  <target name="sf-package-compile">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    47
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    48
    <!-- build stuff -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    49
    <for list="${sf.spec.sbs.config}" delimiter="," param="item.sbs.splitconfig">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    50
      <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    51
      
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    52
      <hlm:sbsinput id="sf.build">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    53
        <sbsOptions>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    54
            <arg line="-c @{item.sbs.splitconfig}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    55
            <arg line="-k" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    56
            <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    57
            <arg line="-t ${sf.spec.sbs.retry.limit}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    58
            <arg line="${sf.spec.sbs.options}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    59
            <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    60
            <arg name="--logfile" value="${build.log.dir}/${build.id}_@{item.sbs.splitconfig}_compile.log" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    61
            <arg name="--makefile" value="${compile.log.dir}/${build.id}_@{item.sbs.splitconfig}_Makefile" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    62
        </sbsOptions>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    63
      </hlm:sbsinput>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    64
      
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    65
      <echo message="INFO [Iterative compile] Building target: @{item.sbs.splitconfig}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    66
      <antcall target="compile-main" inheritAll="false" inheritRefs="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    67
          <param name="build.system" value="${sf.spec.build.system}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    68
          <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    69
          <param name="sbs.inputs.list" value="sf.build"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    70
          <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    71
      </antcall>    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    72
      </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    73
    </for>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    74
    <!-- build test code -->	
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    75
    <if><istrue value="${sf.spec.package.test.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    76
        <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    77
            <for list="${sf.spec.sbs.config}" delimiter="," param="item.sbs.splitconfig">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    78
              <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    79
      
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    80
              <hlm:sbsinput id="sf.build">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    81
                <sbsOptions>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    82
                    <arg line="-c @{item.sbs.splitconfig}.test"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    83
                    <arg line="-k" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    84
                    <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    85
                    <arg line="-t ${sf.spec.sbs.retry.limit}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    86
                    <arg line="${sf.spec.sbs.options}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    87
                    <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    88
                    <arg name="--logfile" value="${build.log.dir}/${build.id}_@{item.sbs.splitconfig}_compile.log" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    89
                    <arg name="--makefile" value="${compile.log.dir}/${build.id}_@{item.sbs.splitconfig}_Makefile" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    90
                </sbsOptions>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    91
              </hlm:sbsinput>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    92
      
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    93
              <echo message="INFO [Iterative compile] Building target: @{item.sbs.splitconfig}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    94
              <antcall target="compile-main" inheritAll="false" inheritRefs="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    95
                  <param name="build.system" value="${sf.spec.build.system}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    96
                  <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    97
                  <param name="sbs.inputs.list" value="sf.build"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    98
                  <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    99
              </antcall>    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   100
              </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   101
           </for>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   102
         </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   103
    </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   104
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   105
    <!-- CHECK -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   106
    <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   107
      <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c tools2_rel -c winscw -c armv5 -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   108
      <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   109
    </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   110
   
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   111
  </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   112
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   113
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   114
  <target name="sf-package-compile-hlm-5">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   115
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   116
    <for list="${sf.spec.sbs.config}" delimiter="," param="item.sbs.splitconfig">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   117
      <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   118
        <echo message="INFO [Iterative compile] Building target: @{item.sbs.splitconfig}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   119
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   120
        <!-- Do CLEAN
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   121
        <hlm:argSet id="sbs.iterate.clean.var">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   122
          <hlm:arg name="config" value="@{item.sbs.splitconfig}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   123
          <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   124
          <hlm:arg name="command" value="CLEAN"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   125
        </hlm:argSet>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   126
        <antcall target="compile-main" inheritAll="false" inheritRefs="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   127
          <param name="build.system" value="${sf.spec.build.system}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   128
          <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   129
          <reference refid="sbs.iterate.clean.var" torefid="sbs.var" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   130
          <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   131
          <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   132
        </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   133
        -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   134
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   135
        <!-- Do BUILD -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   136
        <hlm:argSet id="sbs.main.iterate.sbs.var">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   137
          <hlm:arg name="config" value="@{item.sbs.splitconfig}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   138
          <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   139
          <hlm:arg name="retry-limit" value="${sf.spec.sbs.retry.limit}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   140
        </hlm:argSet>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   141
        <antcall target="compile-main" inheritAll="false" inheritRefs="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   142
          <param name="build.system" value="${sf.spec.build.system}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   143
          <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   144
          <reference refid="sbs.main.iterate.sbs.var" torefid="sbs.var" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   145
          <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   146
          <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   147
        </antcall>                
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   148
      </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   149
    </for>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   150
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   151
    <!-- CHECK -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   152
    <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   153
      <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c tools2_rel -c winscw -c armv5 -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   154
      <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   155
    </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   156
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   157
  </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   158
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   159
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   160
  <target name="sf-test-package">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   161
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   162
    <echo message="INFO Preparing package"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   163
    <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" output="${build.log.dir}/ATS_${build.id}_prep_package.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   164
        <arg value="hlm_prep_package.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   165
        <arg value="--csv-file=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   166
        <arg value="--bld-drive=${build.drive}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   167
    </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   168
  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   169
    <echo message="INFO Building package test drop(s)"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   170
<!--    <runtarget target="ats-test"/> --> <!-- Supported from Helium 9.0.5 onwards -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   171
    <echo message="INFO Skipped - Helium 9.0.5+ required"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   172
	
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   173
    <for param="file">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   174
        <path>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   175
            <fileset dir="${build.drive}/output/ats" includes="*.zip"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   176
        </path>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   177
        <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   178
            <propertyregex override="yes" property="program"  input="@{file}" regexp="([^\\/\/]*)$" select="\1"/>  						
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   179
            <echo message="INFO Updating package test drop with test info"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   180
            <echo message="************ Test drop name:  ${program} " />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   181
            <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_packagetest.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   182
                <arg value="ats_specialise_test_drop.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   183
                <arg value="--test-drop-name=${env.COMPUTERNAME}-packagetest-${build.id}_${program}"/> 
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   184
                <arg value="--host-name=${env.COMPUTERNAME}.ad-sfpd.intra"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   185
                <arg value="--src=${build.drive}/output/ats/${program}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   186
                <arg value="--dest=${sf.spec.test.package.location}\${env.COMPUTERNAME}-packagetest-${build.id}_${program}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   187
                <arg value="--publish=${publish.dir}\ats_reports\${program}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   188
                <arg value="--ats-version=ats4"/> <!-- Hard-coded ats-version as Test Drop Generator for WINSCW supports only ATS4 -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   189
            </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   190
            <!-- Now ready to send to ATS -->  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   191
            <echo message="Sending test drop :  ${program} ............" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   192
            <antcall target="sf-send-testpkg" inheritAll="false">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   193
                <param name="sf.spec.test.package.name" value="${env.COMPUTERNAME}-packagetest-${build.id}_${program}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   194
            </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   195
        </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   196
    </for>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   197
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   198
  </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   199
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   200
  <target name="ats-emulator-zip"/> <!-- This is to override exisiting Helium target called from ats-test -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   201
  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   202
</project>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   203