sf-package/build.xml
author Johan Groth <johang@symbian.org>
Fri, 10 Sep 2010 11:29:11 +0100
changeset 1251 0fc9e31020ea
parent 1208 86025b85795b
child 1258 7c13417d5e31
permissions -rw-r--r--
Bug 3679 Moved the copy statement of canonical_system_definition_${sf.spec.sysdef.configurations.list}.xml from generate-layers to sf-zip-logs as generate-layers is not used any longer.
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
    <!-- Moved from generate-layers -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    29
    <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" todir="${build.log.dir}/BOM/"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    30
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    31
    <!-- helium 7+ should use new sf-package-compile target -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    32
    <if>
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
          <equals arg1="${helium.version}" arg2="7.0"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    35
          <equals arg1="${last.major.helium.version}" arg2="7.0"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    36
        </or>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    37
        <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    38
            <runtarget target="sf-package-compile"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    39
        </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    40
        <else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    41
            <runtarget target="sf-package-compile-hlm-5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    42
        </else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    43
    </if>
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
  </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    46
  
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
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    49
  <target name="sf-package-compile">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    50
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    51
    <!-- build stuff -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    52
    <for list="${sf.spec.sbs.config}" delimiter="," param="item.sbs.splitconfig">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    53
      <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    54
      
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    55
      <hlm:sbsinput id="sf.build">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    56
        <sbsOptions>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    57
            <arg line="-c @{item.sbs.splitconfig}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    58
            <arg line="-k" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    59
            <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    60
            <arg line="-t ${sf.spec.sbs.retry.limit}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    61
            <arg line="${sf.spec.sbs.options}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    62
            <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    63
            <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
    64
            <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
    65
        </sbsOptions>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    66
      </hlm:sbsinput>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    67
      
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    68
      <echo message="INFO [Iterative compile] Building target: @{item.sbs.splitconfig}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    69
      <antcall target="compile-main" inheritAll="false" inheritRefs="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    70
          <param name="build.system" value="${sf.spec.build.system}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    71
          <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    72
          <param name="sbs.inputs.list" value="sf.build"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    73
          <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    74
      </antcall>    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    75
      </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    76
    </for>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    77
    <!-- build test code -->	
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    78
    <if><istrue value="${sf.spec.package.test.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    79
        <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    80
            <for list="${sf.spec.sbs.config}" delimiter="," param="item.sbs.splitconfig">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    81
              <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    82
      
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    83
              <hlm:sbsinput id="sf.build">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    84
                <sbsOptions>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    85
                    <arg line="-c @{item.sbs.splitconfig}.test"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    86
                    <arg line="-k" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    87
                    <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    88
                    <arg line="-t ${sf.spec.sbs.retry.limit}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    89
                    <arg line="${sf.spec.sbs.options}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    90
                    <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    91
                    <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
    92
                    <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
    93
                </sbsOptions>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    94
              </hlm:sbsinput>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    95
      
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    96
              <echo message="INFO [Iterative compile] Building target: @{item.sbs.splitconfig}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    97
              <antcall target="compile-main" inheritAll="false" inheritRefs="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    98
                  <param name="build.system" value="${sf.spec.build.system}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
    99
                  <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   100
                  <param name="sbs.inputs.list" value="sf.build"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   101
                  <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   102
              </antcall>    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   103
              </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   104
           </for>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   105
         </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   106
    </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   107
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   108
    <!-- CHECK -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   109
    <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
   110
      <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
   111
      <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   112
    </exec>
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>
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
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   117
  <target name="sf-package-compile-hlm-5">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   118
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   119
    <for list="${sf.spec.sbs.config}" delimiter="," param="item.sbs.splitconfig">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   120
      <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   121
        <echo message="INFO [Iterative compile] Building target: @{item.sbs.splitconfig}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   122
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   123
        <!-- Do CLEAN
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   124
        <hlm:argSet id="sbs.iterate.clean.var">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   125
          <hlm:arg name="config" value="@{item.sbs.splitconfig}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   126
          <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   127
          <hlm:arg name="command" value="CLEAN"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   128
        </hlm:argSet>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   129
        <antcall target="compile-main" inheritAll="false" inheritRefs="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   130
          <param name="build.system" value="${sf.spec.build.system}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   131
          <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   132
          <reference refid="sbs.iterate.clean.var" torefid="sbs.var" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   133
          <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   134
          <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   135
        </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   136
        -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   137
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   138
        <!-- Do BUILD -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   139
        <hlm:argSet id="sbs.main.iterate.sbs.var">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   140
          <hlm:arg name="config" value="@{item.sbs.splitconfig}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   141
          <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   142
          <hlm:arg name="retry-limit" value="${sf.spec.sbs.retry.limit}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   143
        </hlm:argSet>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   144
        <antcall target="compile-main" inheritAll="false" inheritRefs="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   145
          <param name="build.system" value="${sf.spec.build.system}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   146
          <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   147
          <reference refid="sbs.main.iterate.sbs.var" torefid="sbs.var" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   148
          <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   149
          <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   150
        </antcall>                
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   151
      </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   152
    </for>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   153
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   154
    <!-- CHECK -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   155
    <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
   156
      <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
   157
      <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   158
    </exec>
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>
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
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   163
  <target name="sf-test-package">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   164
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   165
    <echo message="INFO Preparing package"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   166
    <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
   167
        <arg value="hlm_prep_package.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   168
        <arg value="--csv-file=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   169
        <arg value="--bld-drive=${build.drive}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   170
    </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   171
  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   172
    <echo message="INFO Building package test drop(s)"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   173
<!--    <runtarget target="ats-test"/> --> <!-- Supported from Helium 9.0.5 onwards -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   174
    <echo message="INFO Skipped - Helium 9.0.5+ required"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   175
	
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   176
    <for param="file">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   177
        <path>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   178
            <fileset dir="${build.drive}/output/ats" includes="*.zip"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   179
        </path>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   180
        <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   181
            <propertyregex override="yes" property="program"  input="@{file}" regexp="([^\\/\/]*)$" select="\1"/>  						
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   182
            <echo message="INFO Updating package test drop with test info"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   183
            <echo message="************ Test drop name:  ${program} " />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   184
            <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
   185
                <arg value="ats_specialise_test_drop.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   186
                <arg value="--test-drop-name=${env.COMPUTERNAME}-packagetest-${build.id}_${program}"/> 
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   187
                <arg value="--host-name=${env.COMPUTERNAME}.ad-sfpd.intra"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   188
                <arg value="--src=${build.drive}/output/ats/${program}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   189
                <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
   190
                <arg value="--publish=${publish.dir}\ats_reports\${program}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   191
                <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
   192
            </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   193
            <!-- Now ready to send to ATS -->  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   194
            <echo message="Sending test drop :  ${program} ............" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   195
            <antcall target="sf-send-testpkg" inheritAll="false">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   196
                <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
   197
            </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   198
        </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   199
    </for>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   200
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   201
  </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   202
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   203
  <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
   204
  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   205
</project>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1208
diff changeset
   206