sf-tools/build.xml
author Johan Groth <johang@symbian.org>
Thu, 07 Oct 2010 15:08:50 +0100
changeset 1294 6a48e8922c95
parent 1292 f853a7acb410
child 1298 acc4b03313f0
permissions -rw-r--r--
Removed conditions in exec step.
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
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     6
  <!-- import package properties -->
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     7
  <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
     8
  
1292
f853a7acb410 Make sure new run-qmake.ant.xml.ftl is used.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
     9
  <!-- use sf-tools -->
f853a7acb410 Make sure new run-qmake.ant.xml.ftl is used.
Johan Groth <johang@symbian.org>
parents: 1111
diff changeset
    10
  <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
    11
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    12
  <!-- 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
    13
  <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
    14
  
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    15
  <!-- import package references -->
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    16
  <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
    17
  
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    18
    <!-- 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
    19
    <if>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    20
        <or>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    21
          <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
    22
          <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
    23
        </or>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    24
        <then>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    25
            <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
    26
        </then>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    27
    </if>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    28
    
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    29
  <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
    30
    <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
    31
    <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
    32
  </target>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    33
    
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    34
    <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
    35
    <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
    36
    <!-- 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
    37
    <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
    38
        <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
    39
    </copy>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    40
    <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
    41
    <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
    42
    <then>
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.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
    44
    </then>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    45
    </if>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    46
    
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    47
    <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
    48
    <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
    49
        <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
    50
    </exec>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    51
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    52
    <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
    53
    <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
    54
      <param name="sf.dir.location" value="epoc32"/> 
64899060ea4d Improve exclusion list generation for tools build
Shabe Razvi <shaber@symbian.org>
parents: 966
diff changeset
    55
      <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
    56
      <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
    57
    </antcall>    
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    58
  </target>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    59
  
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    60
  
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    61
  
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
 <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
    64
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    65
   <!-- 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
    66
   <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
    67
   <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
    68
   <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
    69
   <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
    70
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    71
   <!-- 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
    72
   <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
    73
        <sbsOptions>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    74
            <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
    75
            <arg line="-k" />
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    76
            <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
    77
            <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
    78
            <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
    79
            <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
    80
            <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
    81
        </sbsOptions>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    82
   </hlm:sbsinput>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    83
    
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    84
    <!-- 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
    85
    <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
    86
    <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
    87
      <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
    88
      <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
    89
      <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
    90
      <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
    91
    </antcall> 
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
 </target>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    94
1033
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
    95
 <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
    96
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
    97
 <!-- 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
    98
   <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
    99
   <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
   100
   
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   101
   <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
   102
   <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
   103
   
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   104
   <!-- 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
   105
   <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
   106
            <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
   107
            <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
   108
            <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
   109
            <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
   110
            <arg line="-k"/>
1033
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   111
            <arg line="--what"/>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   112
            <!-- 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
   113
            <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
   114
            <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
   115
            <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
   116
   </exec>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   117
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   118
   </target>
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   119
 
d8b3a897b1d5 Make manifest generation more accurate, based upon filtered WHAT output
Shabe Razvi <shaber@symbian.org>
parents: 1012
diff changeset
   120
 <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
   121
966
e06b37cce80d Update packaging to deliver output into epoc32\ location
Shabe Razvi <shaber@symbian.org>
parents: 964
diff changeset
   122
    <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
   123
        <arg value="a"/>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   124
        <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
   125
        <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
   126
        <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
   127
        <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
   128
    </exec>
1010
0630eeca6d07 list contents of zip file
andy simpson <andrews@symbian.org>
parents: 996
diff changeset
   129
964
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   130
    <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
   131
        <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
   132
        <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
   133
    </antcall>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   134
 </target>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   135
 
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   136
  <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
   137
     <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
   138
  </target>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   139
1011
ed6bac1beacb Repackage a generated manifest with binary zip output
Shabe Razvi <shaber@symbian.org>
parents: 1010
diff changeset
   140
 <!-- 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
   141
 <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
   142
    
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   143
</project>
ca156d459030 Add new sf-tools build type for use with tools projects
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   144