sf-tools/build.xml
author Johan Groth <johang@symbian.org>
Mon, 11 Oct 2010 14:51:10 +0100
changeset 1298 acc4b03313f0
parent 1292 f853a7acb410
parent 1290 7fa08dafc6b9
child 1299 da1ff046acdc
permissions -rw-r--r--
Merge.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     2
<project name="SF-TOOLS-CONFIG" xmlns:hlm="http://www.nokia.com/helium">
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     3
  <!-- location of this config -->
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     4
  <dirname property="sf.tools.config.dir" file="${ant.file.SF-TOOLS-CONFIG}"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     5
1290
7fa08dafc6b9 Added a template to build Orbit tools.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
     6
  <!-- tools template -->
7fa08dafc6b9 Added a template to build Orbit tools.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
     7
  <property name="qt.qmake.ant.template" value="${sf.tools.config.dir}/templates/run-qmake.ant.xml.ftl"/>
7fa08dafc6b9 Added a template to build Orbit tools.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
     8
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     9
  <!-- import package properties -->
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    10
  <import file="${sf.tools.config.dir}/tools_props.ant.xml" optional="true"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    11
  
1292
f853a7acb410 Make sure new run-qmake.ant.xml.ftl is used.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
    12
  <!-- use sf-tools -->
f853a7acb410 Make sure new run-qmake.ant.xml.ftl is used.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
    13
  <property name="qt.qmake.ant.template" value="${sf.tools.config.dir}/run-qmake.ant.xml.ftl"/> <!-- override helium default to use our own template -->
f853a7acb410 Make sure new run-qmake.ant.xml.ftl is used.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
    14
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    15
  <!-- import common properties/targets/references -->
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    16
  <import file="../common/build.xml" />
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    17
  
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    18
  <!-- import package references -->
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    19
  <import file="${sf.tools.config.dir}/tools_refs.ant.xml"  optional="true"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    20
  
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    21
    <!-- Support Helium 7+ only for Tools build -->
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    22
    <if>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    23
        <or>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    24
          <equals arg1="${helium.version}" arg2="5.0"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    25
          <equals arg1="${last.major.helium.version}" arg2="5.0"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    26
        </or>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    27
        <then>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    28
            <fail>INFO Tools build requires minimum of Helium 7.0</fail>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    29
        </then>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    30
    </if>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    31
    
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    32
  <target name="sf-build-noprep" depends="sf-platform-bootstrap-gt,sf-compile,sf-postbuild">
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    33
    <echo>[SF-BUILD-NOPREP] INFO:(tools)</echo>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    34
    <echo>[SF-BUILD-NOPREP] WARNING: Not generating model from packages</echo>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    35
  </target>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    36
    
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    37
    <target name="sf-platform-bootstrap-gt" >
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    38
    <echo>INFO: Bootstrap files required by SBSv2</echo>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    39
    <!-- do initial stuff to get raptor working -->
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    40
    <copy todir="${build.drive}/epoc32/include/variant/" failonerror="true" verbose="true">
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    41
        <fileset dir="${build.drive}/${sf.spec.bldmefirst.gt.hrh}" includes="*.hrh"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    42
    </copy>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    43
    <copy file="${build.drive}/${sf.spec.bldmefirst.gt.variant}" tofile="${build.drive}/epoc32/tools/variant/variant.cfg" failonerror="true" verbose="true" overwrite="true" preservelastmodified="true" />
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    44
    <if><isset property="sf.spec.bldmefirst.gt.hrh.os"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    45
    <then>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    46
      <copy file="${build.drive}/${sf.spec.bldmefirst.gt.hrh.os}" tofile="${build.drive}/epoc32/include/variant/Symbian_OS.hrh" failonerror="false" overwrite="true" verbose="true" preservelastmodified="true" />
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    47
    </then>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    48
    </if>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    49
    
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    50
    <echo>INFO: Explicit export of files needed for tools build</echo>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    51
    <exec executable="cmd" dir="${build.drive}" failonerror="false" output="${build.log.dir}/${build.id}_bootstrap_export.log">
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    52
        <arg value="/c sbs.bat EXPORT --export-only -b /sf/os/kernelhwsrv/kernel/eka/bld.inf -b /sf/os/kernelhwsrv/userlibandfileserver/fileserver/group/bld.inf -k -c tools2"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    53
    </exec>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    54
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    55
    <echo message="INFO Getting bootstrap environment listing"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    56
    <antcall target="sf-list-dir" inheritAll="false">
996
64899060ea4d Improve exclusion list generation for tools build
Shabe Razvi <shaber@symbian.org>
parents: 966
diff changeset
    57
      <param name="sf.dir.location" value="epoc32"/> 
64899060ea4d Improve exclusion list generation for tools build
Shabe Razvi <shaber@symbian.org>
parents: 966
diff changeset
    58
      <param name="sf.dir.exclude"  value="epoc32/build"/>     
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    59
      <param name="sf.list.name" value="bootstrap"/>
966
e06b37cce80d Update packaging to deliver output into epoc32\ location
Shabe Razvi <shaber@symbian.org>
parents: 964
diff changeset
    60
    </antcall>    
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    61
  </target>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    62
  
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    63
  
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    64
  
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    65
  
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    66
 <target name="sf-compile" depends="sf-platform-bootstrap-gt">
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    67
1290
7fa08dafc6b9 Added a template to build Orbit tools.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
    68
    <!-- explicitly run qmake once, as iterative build will repeat the step. if qmake is not unpacked already, then this step is skipped  -->
7fa08dafc6b9 Added a template to build Orbit tools.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
    69
    <antcall target="run-qmake" inheritAll="false" inheritRefs="true">
7fa08dafc6b9 Added a template to build Orbit tools.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
    70
      <param name="qmake.enabled" value="true"/>
7fa08dafc6b9 Added a template to build Orbit tools.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
    71
      <param name="sysdef.configuration" value="${sysdef.configurations.list}"/>
7fa08dafc6b9 Added a template to build Orbit tools.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
    72
    </antcall>
7fa08dafc6b9 Added a template to build Orbit tools.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
    73
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    74
   <!-- turn comma separated list into sbs friendly -c list, and _ separated list for friendly log names -->
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    75
   <propertyregex property="i.sf.spec.sbs.config.expanded"         override="true" input="${sf.spec.sbs.config}" regexp="(,)" replace=" -c " defaultValue="${sf.spec.sbs.config}" global="true"  casesensitive="false"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    76
   <propertyregex property="i.sf.spec.sbs.config.expanded.logname" override="true" input="${sf.spec.sbs.config}" regexp="(,)" replace="_"    defaultValue="${sf.spec.sbs.config}" global="true"  casesensitive="false"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    77
   <echo message="INFO Target : ${i.sf.spec.sbs.config.expanded}"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    78
   <echo message="INFO Logname: ${i.sf.spec.sbs.config.expanded.logname} + Config: ${sf.spec.sysdef.configurations.list}"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    79
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    80
   <!-- define sbs args, log name etc -->
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    81
   <hlm:sbsinput id="sf.build">
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    82
        <sbsOptions>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    83
            <arg line="-c ${i.sf.spec.sbs.config.expanded}"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    84
            <arg line="-k" />
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    85
            <arg line="-t ${sf.spec.sbs.retry.limit}"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    86
            <arg line="${sf.spec.sbs.options}"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    87
            <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    88
            <arg name="--logfile" value="${compile.log.dir}/${build.id}_${i.sf.spec.sbs.config.expanded.logname}_compile.log" />
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    89
            <arg name="--makefile" value="${compile.log.dir}/${build.id}_${i.sf.spec.sbs.config.expanded.logname}_Makefile" />
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    90
        </sbsOptions>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    91
   </hlm:sbsinput>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    92
    
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    93
    <!-- call helium's compile-main target using the sbsInput args defined above -->
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    94
    <echo message="INFO Building target(s): ${i.sf.spec.sbs.config.expanded}"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    95
    <antcall target="compile-main" inheritAll="false" inheritRefs="true">
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    96
      <param name="build.system"               value="${sf.spec.build.system}" />
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    97
      <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    98
      <param name="sbs.inputs.list"            value="sf.build"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    99
      <reference refid="sf.spec.tools.system.definition.files" torefid="system.definition.files" />
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   100
    </antcall> 
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   101
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   102
 </target>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   103
1033
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   104
 <target name="sf-create-manifest">
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   105
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   106
 <!-- turn comma separated list into sbs friendly -c list, and _ separated list for friendly log names -->
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   107
   <propertyregex property="i.sf.spec.sbs.config.expanded"         override="true" input="${sf.spec.sbs.config}" regexp="(,)" replace=" -c " defaultValue="${sf.spec.sbs.config}" global="true"  casesensitive="false"/>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   108
   <propertyregex property="i.sf.spec.sbs.config.expanded.logname" override="true" input="${sf.spec.sbs.config}" regexp="(,)" replace="_"    defaultValue="${sf.spec.sbs.config}" global="true"  casesensitive="false"/>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   109
   
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   110
   <echo message="INFO Creating WHAT output for target : ${i.sf.spec.sbs.config.expanded}"/>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   111
   <echo message="INFO Logname: ${i.sf.spec.sbs.config.expanded.logname} + Config: ${sf.spec.sysdef.configurations.list}"/>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   112
   
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   113
   <!-- define sbs args, log name etc -->
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   114
   <exec executable="cmd" dir="${build.drive}" failonerror="false" output="${build.drive}/manifest_binaries_${sf.spec.job.name}.txt">
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   115
            <arg line="/c sbs.bat"/>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   116
            <arg line="-c ${i.sf.spec.sbs.config.expanded}"/>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   117
            <arg line="-s ${build.drive}\output\build\canonical_system_definition.xml"/>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   118
            <arg line="${sf.spec.sbs.options}"/>
1111
86b0bbaa517c Add -k(eepgoing) option to tools manifest generation to help overcome missing bld.inf files
Shabe Razvi <shaber@symbian.org>
parents: 1033
diff changeset
   119
            <arg line="-k"/>
1033
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   120
            <arg line="--what"/>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   121
            <!-- output only what is found on disk -->
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   122
            <arg line=" | perl -pe &quot;while ($line=&lt;STDIN&gt;) { my $orig =$line; chomp $line; print $orig if (-e &quot;$line&quot;); };&quot;"/>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   123
            <arg line=" | perl -pe &quot;s/^${build.drive}\\//; s/\\/\//g; &quot;"/> <!-- remove drive and backslash to fwdslash-->
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   124
            <arg line=" | findstr /B /V tools"/> <!-- ignore raptor exports into root of drive-->
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   125
   </exec>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   126
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   127
   </target>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   128
 
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   129
 <target name="sf-package-binary" depends="sf-create-manifest">
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   130
966
e06b37cce80d Update packaging to deliver output into epoc32\ location
Shabe Razvi <shaber@symbian.org>
parents: 964
diff changeset
   131
    <exec executable="7z" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_${sf.spec.job.name}.log">
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   132
        <arg value="a"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   133
        <arg value="-t${sf.spec.package.zip.format}"/>
1033
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   134
        <arg value="-i@${build.drive}/manifest_binaries_${sf.spec.job.name}.txt"/>
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   135
        <arg value="${build.drive}/output/zips/release/binaries_${sf.spec.job.name}.zip"/>
1033
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   136
        <arg value="manifest_binaries_${sf.spec.job.name}.txt"/>
1011
ed6bac1beacb Repackage a generated manifest with binary zip output
Shabe Razvi <shaber@symbian.org>
parents: 1010
diff changeset
   137
    </exec>
1010
0630eeca6d07 list contents of zip file
andy simpson <andrews@symbian.org>
parents: 996
diff changeset
   138
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   139
    <antcall target="sf-zip-content">
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   140
        <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   141
        <param name="zip.target.name" value="bin-${sf.spec.job.name}-metadata" />
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   142
    </antcall>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   143
 </target>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   144
 
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   145
  <target name="create-canonical-sysdef-file">
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   146
     <copy file="${sf.spec.systemdefinition.location}" tofile="${canonical.sysdef.file}" failonerror="true" verbose="true"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   147
  </target>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   148
1011
ed6bac1beacb Repackage a generated manifest with binary zip output
Shabe Razvi <shaber@symbian.org>
parents: 1010
diff changeset
   149
 <!-- do nothing for this in a tools build -->
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   150
 <target name="sf-copy-rom-logs"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   151
    
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   152
</project>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   153