sf-package/build.xml
author Dario Sestito <darios@symbian.org>
Fri, 13 Nov 2009 17:48:12 +0000
changeset 765 2892c791ce6c
parent 711 7a9d3b010a52
child 899 d80a65072ed8
permissions -rw-r--r--
Fix XML-SAX bug #43174 (see http://rt.cpan.org/Public/Bug/Display.html?id=43174)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
171
a6f2b8d175d0 The prefix "hlm" for element "hlm:argSet" was not bound.
dario
parents: 170
diff changeset
     2
<project name="SF-PACKAGE-CONFIG" xmlns:hlm="http://www.nokia.com/helium">
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     3
  <!-- location of this config -->
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     4
  <dirname property="sf.package.config.dir" file="${ant.file.SF-PACKAGE-CONFIG}"/>
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     5
  
593
4fc8d6b0b184 Allow codeline-specific property file to be read (if present)
Dario Sestito <darios@symbian.org>
parents: 342
diff changeset
     6
  <!-- import codeline-specific properties -->
4fc8d6b0b184 Allow codeline-specific property file to be read (if present)
Dario Sestito <darios@symbian.org>
parents: 342
diff changeset
     7
  <import file="${sf.package.config.dir}/${sf.spec.job.codeline}_props.ant.xml" optional="yes"/>
4fc8d6b0b184 Allow codeline-specific property file to be read (if present)
Dario Sestito <darios@symbian.org>
parents: 342
diff changeset
     8
  
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 11
diff changeset
     9
  <!-- import package properties -->
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 11
diff changeset
    10
  <import file="${sf.package.config.dir}/package_props.ant.xml" />
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    11
  
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 11
diff changeset
    12
  <!-- import common properties/targets/references -->
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 11
diff changeset
    13
  <import file="../common/build.xml" />
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    14
  
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 11
diff changeset
    15
  <!-- import package references -->
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 11
diff changeset
    16
  <import file="${sf.package.config.dir}/package_refs.ant.xml" />
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    17
  
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    18
  <target name="sf-compile">
319
257557b39754 Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents: 184
diff changeset
    19
  
257557b39754 Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents: 184
diff changeset
    20
    <!-- Check that package_definition is not in v 3.0.0 otherwise transforms it to 2.0.1 -->
257557b39754 Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents: 184
diff changeset
    21
    <echo message="Check that model file is in a version usable by Raptor"/>
257557b39754 Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents: 184
diff changeset
    22
    <exec executable="perl" dir="${sf.common.config.dir}/sysdefdowngrade" failonerror="false" output="${build.log.dir}/sysdefdowngrade.log">
257557b39754 Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents: 184
diff changeset
    23
      <arg value="sysdefdowngrade.pl"/>
257557b39754 Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents: 184
diff changeset
    24
      <arg value="--model=${build.drive}/${sf.spec.systemdefinition.location}"/>
257557b39754 Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents: 184
diff changeset
    25
      <arg value="--sources=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
257557b39754 Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents: 184
diff changeset
    26
    </exec>
325
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 323
diff changeset
    27
    
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    28
    <runtarget target="sf-package-compile"/>
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    29
  </target>
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    30
  
637
3effbd6728d4 Modified sf-check-missing-os-files to deal with 'sf.os.compile.iterate' property. Added new target 'sf-compile-options' for setting the gmake sbs compile option, and added it as a dep for the compile targets.
MattD <mattd@symbian.org>
parents: 593
diff changeset
    31
  <target name="sf-package-compile" depends="sf-compile-options">
711
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    32
    
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    33
    <for list="${sf.spec.sbs.config}" delimiter="," param="item.sbs.splitconfig">
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    34
      <sequential>
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    35
        <echo message="INFO [Iterative compile] Building target: @{item.sbs.splitconfig}"/>
637
3effbd6728d4 Modified sf-check-missing-os-files to deal with 'sf.os.compile.iterate' property. Added new target 'sf-compile-options' for setting the gmake sbs compile option, and added it as a dep for the compile targets.
MattD <mattd@symbian.org>
parents: 593
diff changeset
    36
        
711
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    37
        <!-- Do CLEAN
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    38
        <hlm:argSet id="sbs.iterate.clean.var">
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    39
          <hlm:arg name="config" value="@{item.sbs.splitconfig}" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    40
          <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    41
          <hlm:arg name="command" value="CLEAN"/>
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    42
        </hlm:argSet>
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    43
        <antcall target="compile-main" inheritAll="false" inheritRefs="true">
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    44
          <param name="build.system" value="${sf.spec.build.system}" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    45
          <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    46
          <reference refid="sbs.iterate.clean.var" torefid="sbs.var" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    47
          <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    48
          <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    49
        </antcall>
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    50
        -->
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    51
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    52
        <!-- Do BUILD -->
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    53
        <hlm:argSet id="sbs.main.iterate.sbs.var">
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    54
          <hlm:arg name="config" value="@{item.sbs.splitconfig}" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    55
          <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    56
          <hlm:arg name="retry-limit" value="${sf.spec.sbs.retry.limit}" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    57
        </hlm:argSet>
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    58
        <antcall target="compile-main" inheritAll="false" inheritRefs="true">
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    59
          <param name="build.system" value="${sf.spec.build.system}" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    60
          <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    61
          <reference refid="sbs.main.iterate.sbs.var" torefid="sbs.var" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    62
          <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    63
          <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    64
        </antcall>                
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    65
      </sequential>
7a9d3b010a52 Let sbs targets be taken from sf.spec.sbs.config
Dario Sestito <darios@symbian.org>
parents: 637
diff changeset
    66
    </for>
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    67
    
183
8025a9486931 Doing WHAT with .whatlog. Added check with an exec task (some arguments are not parameterized).
dario
parents: 182
diff changeset
    68
    <!-- CHECK -->
184
f50ee414b574 Reimplemented --check as the previous version didn't work (also most of the arguments are parameterized now)
dario
parents: 183
diff changeset
    69
    <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log">
342
626d3847cf2a Commented out clean and tools targets. Changed tool2 target into tools2_rel
Dario Sestito <darios@symbian.org>
parents: 325
diff changeset
    70
      <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"/>
184
f50ee414b574 Reimplemented --check as the previous version didn't work (also most of the arguments are parameterized now)
dario
parents: 183
diff changeset
    71
      <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
183
8025a9486931 Doing WHAT with .whatlog. Added check with an exec task (some arguments are not parameterized).
dario
parents: 182
diff changeset
    72
    </exec>
8025a9486931 Doing WHAT with .whatlog. Added check with an exec task (some arguments are not parameterized).
dario
parents: 182
diff changeset
    73
    
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    74
  </target>
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    75
  
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    76
</project>
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    77