sf-package/build.xml
author Dario Sestito <darios@symbian.org>
Mon, 20 Jul 2009 10:43:39 +0100
changeset 319 257557b39754
parent 184 f50ee414b574
child 323 5c33f37d47a4
permissions -rw-r--r--
Added transformation of model file from version 3.0.0 to a version usable by Raptor
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
  
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 11
diff changeset
     6
  <!-- import package properties -->
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 11
diff changeset
     7
  <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
     8
  
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 11
diff changeset
     9
  <!-- import common properties/targets/references -->
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 11
diff changeset
    10
  <import file="../common/build.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 package references -->
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 11
diff changeset
    13
  <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
    14
  
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    15
  <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
    16
  
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
    17
    <!-- 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
    18
    <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
    19
    <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
    20
      <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
    21
      <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
    22
      <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
    23
    </exec>
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
        
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
        
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    26
    <runtarget target="sf-package-compile"/>
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    27
  </target>
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    28
  
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    29
  <target name="sf-package-compile">
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    30
    
182
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    31
    <hlm:sbsMakeOptions engine="gmake" id="sbs.fullbuild.options"/>
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    32
    <hlm:sbsMakeOptions engine="gmake" id="sbs.toolsbuild.options"/>
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    33
    
183
8025a9486931 Doing WHAT with .whatlog. Added check with an exec task (some arguments are not parameterized).
dario
parents: 182
diff changeset
    34
    <!-- CLEAN -->
182
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    35
    <hlm:argSet id="sbs.main.clean.sbs.var">
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    36
      <hlm:arg name="config" value="${sf.spec.sbs.config}" />
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    37
      <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    38
      <hlm:arg name="command" value="CLEAN" />
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    39
    </hlm:argSet>
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    40
    <antcall target="compile-main" inheritAll="false" inheritRefs="true">
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    41
      <param name="build.system" value="${sf.spec.build.system}" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    42
      <!-- param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" / -->
177
734d44a79c17 Given a dummy value to the configuration list
dario
parents: 176
diff changeset
    43
      <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    44
      <!-- param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/ -->
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    45
      <reference refid="sbs.main.clean.sbs.var" torefid="sbs.var" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    46
      <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    47
      <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    48
    </antcall>
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    49
    
183
8025a9486931 Doing WHAT with .whatlog. Added check with an exec task (some arguments are not parameterized).
dario
parents: 182
diff changeset
    50
    <!-- BUILD tools2 -->
182
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    51
    <hlm:argSet id="sbs.tools2.var">
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    52
      <hlm:arg name="config" value="tools2_rel" />
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    53
      <hlm:arg name="singlejob" value="false" />
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    54
      <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    55
    </hlm:argSet>
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    56
    <antcall target="compile-main" inheritAll="false" inheritRefs="true">
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    57
      <param name="build.system" value="${sf.spec.build.system}" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    58
      <!-- param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" / -->
177
734d44a79c17 Given a dummy value to the configuration list
dario
parents: 176
diff changeset
    59
      <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    60
      <!-- param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/ -->
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    61
      <reference refid="sbs.tools2.var" torefid="sbs.var" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    62
      <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    63
      <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    64
    </antcall>
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    65
    
183
8025a9486931 Doing WHAT with .whatlog. Added check with an exec task (some arguments are not parameterized).
dario
parents: 182
diff changeset
    66
    <!-- BUILD tools -->
182
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    67
    <hlm:argSet id="sbs.tools.var">
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    68
      <hlm:arg name="config" value="tools_rel" />
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    69
      <hlm:arg name="singlejob" value="true" />
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    70
      <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    71
    </hlm:argSet>
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    72
    <antcall target="compile-main" inheritAll="false" inheritRefs="true">
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    73
      <param name="build.system" value="${sf.spec.build.system}" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    74
      <!-- param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" / -->
177
734d44a79c17 Given a dummy value to the configuration list
dario
parents: 176
diff changeset
    75
      <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    76
      <!-- param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/ -->
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    77
      <reference refid="sbs.tools.var" torefid="sbs.var" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    78
      <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    79
      <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    80
    </antcall>
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    81
    
183
8025a9486931 Doing WHAT with .whatlog. Added check with an exec task (some arguments are not parameterized).
dario
parents: 182
diff changeset
    82
    <!-- BUILD -->
182
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    83
    <hlm:argSet id="sbs.main.sbs.var">
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    84
      <hlm:arg name="config" value="${sf.spec.sbs.config}.whatlog" />
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    85
      <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
c35952f24212 added whatlog and check
dario
parents: 178
diff changeset
    86
    </hlm:argSet>
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    87
    <antcall target="compile-main" inheritAll="false" inheritRefs="true">
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    88
      <param name="build.system" value="${sf.spec.build.system}" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    89
      <!-- param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" / -->
177
734d44a79c17 Given a dummy value to the configuration list
dario
parents: 176
diff changeset
    90
      <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    91
      <!-- param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/ -->
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    92
      <reference refid="sbs.main.sbs.var" torefid="sbs.var" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    93
      <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    94
      <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    95
    </antcall>
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
    96
    
183
8025a9486931 Doing WHAT with .whatlog. Added check with an exec task (some arguments are not parameterized).
dario
parents: 182
diff changeset
    97
    <!-- 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
    98
    <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log">
f50ee414b574 Reimplemented --check as the previous version didn't work (also most of the arguments are parameterized now)
dario
parents: 183
diff changeset
    99
      <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c ${sf.spec.sbs.config} -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/>
f50ee414b574 Reimplemented --check as the previous version didn't work (also most of the arguments are parameterized now)
dario
parents: 183
diff changeset
   100
      <!-- 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
   101
    </exec>
8025a9486931 Doing WHAT with .whatlog. Added check with an exec task (some arguments are not parameterized).
dario
parents: 182
diff changeset
   102
    
170
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
   103
  </target>
31922c5222d7 Changes to support clean check and avoid filtering the logs
dario
parents: 18
diff changeset
   104
  
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
   105
</project>
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
   106