common/build.postbuild.xml
author MattD <mattd@symbian.org>
Fri, 16 Oct 2009 14:57:32 +0100
changeset 684 6d65abb8bba1
parent 677 dd6b7decdca2
child 685 b4b3727007b2
permissions -rw-r--r--
sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
360
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     2
<project name="SF-POSTBUILD" xmlns:hlm="http://www.nokia.com/helium">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
     3
    <target name="sf-postbuild">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
     4
        <echo>[SF-POSTBUILD]</echo>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
     5
        <parallel>                
470
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
     6
            <!-- TAG SOURCE CODE -->
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
     7
            <if>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
     8
                <istrue value="${sf.spec.tagafterbuild.enable}" />
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
     9
                <then>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    10
                    <echo message="Apply tag to the source code used in this build"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    11
                    <runtarget target="sf-tag-hg-code"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    12
                </then>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    13
            </if>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    14
            
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    15
            <!-- Create MD5s -->
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    16
            <if>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    17
                <istrue value="${sf.spec.md5.enable}"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    18
                <then>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    19
                    <echo message="INFO Creating MD5s"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    20
                    <runtarget target="sf-run-evalid"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    21
                </then>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    22
            </if>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    23
            
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    24
            <!-- Package up the binaries we built -->
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    25
            <if>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    26
                <istrue value="${sf.spec.package.bin.enable}"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    27
                <then>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    28
                    <echo message="INFO Packaging Binaries"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    29
                    <runtarget target="sf-package-binary"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    30
                    <runtarget target="sf-package-tools"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    31
    
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    32
                    <echo message="INFO Validate Zip files"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    33
                    <runtarget target="sf-package-validate"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    34
                </then>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    35
            </if>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    36
            
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    37
            <!-- run build analysis tools -->
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    38
            <runtarget target="sf-run-analysis"/>
627
56a1d97e7c73 Skip sf-compare-to-baseline if sf.spec.publish.enable is false. Update FBF documentation.
Shabe Razvi <shaber@symbian.org>
parents: 600
diff changeset
    39
        
56a1d97e7c73 Skip sf-compare-to-baseline if sf.spec.publish.enable is false. Update FBF documentation.
Shabe Razvi <shaber@symbian.org>
parents: 600
diff changeset
    40
            <if>
56a1d97e7c73 Skip sf-compare-to-baseline if sf.spec.publish.enable is false. Update FBF documentation.
Shabe Razvi <shaber@symbian.org>
parents: 600
diff changeset
    41
              <istrue value="${sf.spec.publish.enable}"/>
56a1d97e7c73 Skip sf-compare-to-baseline if sf.spec.publish.enable is false. Update FBF documentation.
Shabe Razvi <shaber@symbian.org>
parents: 600
diff changeset
    42
              <then>
56a1d97e7c73 Skip sf-compare-to-baseline if sf.spec.publish.enable is false. Update FBF documentation.
Shabe Razvi <shaber@symbian.org>
parents: 600
diff changeset
    43
                <!-- Generate reports to compare this build to a previous one -->
56a1d97e7c73 Skip sf-compare-to-baseline if sf.spec.publish.enable is false. Update FBF documentation.
Shabe Razvi <shaber@symbian.org>
parents: 600
diff changeset
    44
                <runtarget target="sf-compare-to-baseline"/>
56a1d97e7c73 Skip sf-compare-to-baseline if sf.spec.publish.enable is false. Update FBF documentation.
Shabe Razvi <shaber@symbian.org>
parents: 600
diff changeset
    45
              </then>
56a1d97e7c73 Skip sf-compare-to-baseline if sf.spec.publish.enable is false. Update FBF documentation.
Shabe Razvi <shaber@symbian.org>
parents: 600
diff changeset
    46
            </if>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    47
        </parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    48
        
470
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    49
        <!-- Launch smoketest -->
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    50
        <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    51
            <then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    52
                <runtarget target="sf-build-smoketestpkg"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    53
                <runtarget target="sf-send-testpkg"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    54
            </then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    55
        </if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    56
470
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    57
        <!-- Launch BC check -->
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    58
        <if><istrue value="${sf.spec.bccheck.enable}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    59
            <then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    60
                <runtarget target="sf-bc-check"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    61
            </then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    62
        </if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    63
470
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    64
        <!-- Zip up all the logs -->
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    65
        <runtarget target="sf-zip-logs"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    66
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
    67
        <!-- Publish logs/reports -->
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    68
        <if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    69
            <istrue value="${sf.spec.publish.enable}" />
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    70
            <then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    71
                <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    72
                <runtarget target="sf-publish"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    73
            </then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    74
        </if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    75
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    76
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    77
    <target name="sf-tag-hg-code">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    78
        <property name="sf.tagafterbuild.tag" value="${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    79
        <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    80
              outputFile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    81
            <data expandProperties="yes">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    82
                ant: antProperties()
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    83
                data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    84
            </data>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    85
        </fmpp>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    86
        <ant antfile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    87
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    88
677
dd6b7decdca2 Major packaging change to work around parallel calls - stopped zipping targets from having direct dependency on 'sf-preprocess-package-config', and instead have 'sf-zip-content' call 'sf-preprocess-package-config' if needed. Changed 'sf-prep' to call a target that wipes out the 'generated' directory. It's not perfect but it gets us going again.
MattD <mattd@symbian.org>
parents: 676
diff changeset
    89
    <target name="sf-run-evalid" >
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    90
        <delete dir="${build.drive}/output/md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    91
        <mkdir  dir="${build.drive}/output/md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    92
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    93
        <parallel>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
    94
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    95
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    96
            <arg value="evalid -g epoc32/include output/md5/epoc32_include.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    97
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
    98
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    99
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   100
            <arg value="evalid -g epoc32/s60 output/md5/epoc32_s60.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   101
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   102
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   103
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   104
            <arg value="evalid -g epoc32/localisation output/md5/epoc32_localisation.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   105
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   106
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   107
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   108
            <arg value="evalid -x \.sym$ -x ^armv5/udeb -x ^armv5/urel -x ^winscw/udeb -x ^winscw/urel -g epoc32/release output/md5/epoc32_release.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   109
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   110
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   111
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   112
            <arg value="evalid -x \.sym$ -g epoc32/release/armv5/udeb output/md5/epoc32_release_armv5_udeb.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   113
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   114
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   115
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   116
            <arg value="evalid -x \.sym$ -g epoc32/release/armv5/urel output/md5/epoc32_release_armv5_urel.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   117
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   118
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   119
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   120
            <arg value="evalid -x \.sym$ -g epoc32/release/winscw/udeb output/md5/epoc32_release_winscw_udeb.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   121
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   122
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   123
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   124
            <arg value="evalid -x \.sym$ -g epoc32/release/winscw/urel output/md5/epoc32_release_winscw_urel.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   125
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   126
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   127
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   128
            <arg value="evalid -g epoc32/cshlpcmp_template 	output/md5/epoc32_cshlpcmp_template.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   129
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   130
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   131
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   132
            <arg value="evalid -g epoc32/data output/md5/epoc32_data.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   133
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   134
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   135
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   136
            <arg value="evalid -g epoc32/engdoc output/md5/epoc32_engdoc.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   137
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   138
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   139
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   140
            <arg value="evalid -g epoc32/engineeringtools output/md5/epoc32_engineeringtools.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   141
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   142
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   143
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   144
            <arg value="evalid -g epoc32/gcc output/md5/epoc32_gcc.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   145
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   146
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   147
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   148
            <arg value="evalid -g epoc32/gcc_mingw output/md5/epoc32_gcc_mingw.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   149
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   150
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   151
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   152
            <arg value="evalid -g epoc32/ksa output/md5/epoc32_ksa.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   153
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   154
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   155
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   156
            <arg value="evalid -g epoc32/rom output/md5/epoc32_rom.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   157
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   158
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   159
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   160
            <arg value="evalid -g epoc32/rombuild output/md5/epoc32_rombuild.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   161
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   162
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   163
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   164
            <arg value="evalid -g epoc32/sbs_config output/md5/epoc32_sbs_config.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   165
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   166
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   167
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   168
            <arg value="evalid -g epoc32/sdk_special output/md5/epoc32_sdk_special.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   169
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   170
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   171
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   172
            <arg value="evalid -g epoc32/stdapis output/md5/epoc32_stdapis.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   173
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   174
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   175
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   176
            <arg value="evalid -g epoc32/stubs output/md5/epoc32_stubs.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   177
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   178
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   179
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   180
            <arg value="evalid -g epoc32/tools output/md5/epoc32_tools.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   181
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   182
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   183
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   184
            <arg value="evalid -g epoc32/wins output/md5/epoc32_wins.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   185
        </exec>
684
6d65abb8bba1 sf-run-evalid - minor change to make sure that evalid is run at the root of the build drive, which can stop the MD5s from being generated. (evalid requires dirs to be relative and not absolute)
MattD <mattd@symbian.org>
parents: 677
diff changeset
   186
        <exec executable="cmd" dir="${build.drive}/">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   187
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   188
            <arg value="evalid -g epoc32/winscw output/md5/epoc32_winscw.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   189
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   190
        </parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   191
        <!-- package MD5s directly into epoc32/relinfo location so that its usable out-of-the-box -->
677
dd6b7decdca2 Major packaging change to work around parallel calls - stopped zipping targets from having direct dependency on 'sf-preprocess-package-config', and instead have 'sf-zip-content' call 'sf-preprocess-package-config' if needed. Changed 'sf-prep' to call a target that wipes out the 'generated' directory. It's not perfect but it gets us going again.
MattD <mattd@symbian.org>
parents: 676
diff changeset
   192
    		<mkdir dir="${build.output.dir}/zips/release"/> <!-- Hack to prevent non-existing release dir -->
492
8820f5f867f2 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 491
diff changeset
   193
        <zip destfile="${build.output.dir}/zips/release/build_md5.zip">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   194
            <zipfileset dir="${build.drive}/output/md5/" prefix="epoc32/relinfo"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   195
        </zip>
664
29955a149536 Bug 478: build_*.zip missing from generated release_metadata.xml
Simon Howkins <simonh@symbian.org>
parents: 649
diff changeset
   196
        <!-- Generate release_metadata entries for the above zips -->
29955a149536 Bug 478: build_*.zip missing from generated release_metadata.xml
Simon Howkins <simonh@symbian.org>
parents: 649
diff changeset
   197
        <antcall target="sf-zip-content">
29955a149536 Bug 478: build_*.zip missing from generated release_metadata.xml
Simon Howkins <simonh@symbian.org>
parents: 649
diff changeset
   198
            <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
29955a149536 Bug 478: build_*.zip missing from generated release_metadata.xml
Simon Howkins <simonh@symbian.org>
parents: 649
diff changeset
   199
            <param name="zip.target.name" value="bin-just-metadata" />
29955a149536 Bug 478: build_*.zip missing from generated release_metadata.xml
Simon Howkins <simonh@symbian.org>
parents: 649
diff changeset
   200
        </antcall>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   201
    </target>    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   202
    
677
dd6b7decdca2 Major packaging change to work around parallel calls - stopped zipping targets from having direct dependency on 'sf-preprocess-package-config', and instead have 'sf-zip-content' call 'sf-preprocess-package-config' if needed. Changed 'sf-prep' to call a target that wipes out the 'generated' directory. It's not perfect but it gets us going again.
MattD <mattd@symbian.org>
parents: 676
diff changeset
   203
    <target name="sf-package-binary" depends="sf-package-postbuild-rnd">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   204
        <!-- Warning: Reverting to using the He zipper will also revert to a single zip for the binaries:
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   205
             would need to update the template and possibly the script that populates it -->
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   206
        <!--antcall target="sf-zip-content">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   207
            <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   208
            <param name="zip.target.name" value="bin" />
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   209
        </antcall-->
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   210
        <parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   211
            <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   212
                <arg value="a"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   213
                <arg value="-tzip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   214
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   215
                <arg value="-x!epoc32\tools"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   216
                <arg value="-x!epoc32\build"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   217
                <arg value="-x!epoc32\release\armv5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   218
                <arg value="-x!epoc32\release\winscw"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   219
                <arg value="-xr!*.sym"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   220
                <arg value="${build.drive}/output/zips/release/binaries_epoc.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   221
                <arg value="epoc32\"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   222
            </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   223
            
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   224
            <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   225
                <arg value="a"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   226
                <arg value="-tzip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   227
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   228
                <arg value="-xr!*.sym"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   229
                <arg value="${build.drive}/output/zips/release/binaries_winscw.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   230
                <arg value="epoc32\release\winscw\"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   231
            </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   232
            
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   233
            <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   234
                <arg value="a"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   235
                <arg value="-tzip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   236
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   237
                <arg value="-xr!*.sym"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   238
                <arg value="${build.drive}/output/zips/release/binaries_armv5.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   239
                <arg value="epoc32\release\armv5\"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   240
            </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   241
        </parallel>
497
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   242
        <!-- Generate release_metadata entries for the above zips -->
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   243
        <antcall target="sf-zip-content">
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   244
            <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   245
            <param name="zip.target.name" value="bin-just-metadata" />
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   246
        </antcall>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   247
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   248
677
dd6b7decdca2 Major packaging change to work around parallel calls - stopped zipping targets from having direct dependency on 'sf-preprocess-package-config', and instead have 'sf-zip-content' call 'sf-preprocess-package-config' if needed. Changed 'sf-prep' to call a target that wipes out the 'generated' directory. It's not perfect but it gets us going again.
MattD <mattd@symbian.org>
parents: 676
diff changeset
   249
    <target name="sf-package-postbuild-rnd" >
456
1ba3c86ebec0 Bug 350 RnD binary zips missing all content outside epoc32 tree
Simon Howkins <simonh@symbian.org>
parents: 386
diff changeset
   250
        <antcall target="sf-zip-content">
1ba3c86ebec0 Bug 350 RnD binary zips missing all content outside epoc32 tree
Simon Howkins <simonh@symbian.org>
parents: 386
diff changeset
   251
            <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
1ba3c86ebec0 Bug 350 RnD binary zips missing all content outside epoc32 tree
Simon Howkins <simonh@symbian.org>
parents: 386
diff changeset
   252
            <param name="zip.target.name" value="rnd-postbuild" />
1ba3c86ebec0 Bug 350 RnD binary zips missing all content outside epoc32 tree
Simon Howkins <simonh@symbian.org>
parents: 386
diff changeset
   253
        </antcall>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   254
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   255
677
dd6b7decdca2 Major packaging change to work around parallel calls - stopped zipping targets from having direct dependency on 'sf-preprocess-package-config', and instead have 'sf-zip-content' call 'sf-preprocess-package-config' if needed. Changed 'sf-prep' to call a target that wipes out the 'generated' directory. It's not perfect but it gets us going again.
MattD <mattd@symbian.org>
parents: 676
diff changeset
   256
    <target name="sf-package-tools" >
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   257
        <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   258
            <arg value="a"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   259
            <arg value="-tzip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   260
            <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   261
            <arg value="${build.drive}/output/zips/release/tools_epoc.zip"/> 
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   262
            <arg value="epoc32/tools"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   263
        </exec>
497
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   264
        <antcall target="sf-zip-content">
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   265
            <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   266
            <param name="zip.target.name" value="tools" />
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   267
        </antcall>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   268
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   269
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   270
    <target name="sf-package-validate">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   271
        <exec executable="7z" dir="${build.drive}/output/zips" failonerror="false" output="${build.drive}/output/zips/validate.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   272
            <arg value="t"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   273
            <arg value="*.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   274
        </exec>  
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   275
        <exec executable="7z" dir="${build.drive}/output/zips/release" failonerror="false" output="${build.drive}/output/zips/release/validate.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   276
            <arg value="t"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   277
            <arg value="*.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   278
        </exec>  
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   279
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   280
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   281
    <!-- runs analysis of missing bins and source -->
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   282
    <target name="sf-run-analysis">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   283
        <mkdir dir="${build.log.dir}/analysis"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   284
        <parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   285
          <runtarget target="sf-run-analysis-ant"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   286
          <runtarget target="sf-run-analysis-raptor"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   287
          <runtarget target="sf-run-analysis-yarp"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   288
          <runtarget target="sf-run-analysis-whatlog-summary"/>
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   289
          <runtarget target="sf-run-analysis-missing-files"/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   290
        </parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   291
        <if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   292
          <istrue value="${sf.spec.publish.enable}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   293
            <then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   294
            <runtarget target="sf-run-analysis-diamonds"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   295
            </then>
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   296
        </if>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   297
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   298
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   299
    <target name="sf-run-analysis-ant">    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   300
        <echo message="Running source analysis of ANT output"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   301
        <exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   302
            <arg value="${sf.common.config.dir}/tools/analysis/scan_antlogs.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   303
            <arg value="*ant*"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   304
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   305
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   306
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   307
    <target name="sf-run-analysis-raptor">            
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   308
      <echo message="Preprocessing *_compile.log files"/>
577
424a5ad9bc7d Adjusted sf-run-analysis-raptor so that when preprocessing the files, STDERR is appended, but STDOUT is not.
Simon Howkins <simonh@symbian.org>
parents: 573
diff changeset
   309
      <delete file="${build.log.dir}/analysis/${build.id}_preprocess.log"/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   310
      <for param="logfile">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   311
        <path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   312
          <fileset dir="${build.log.dir}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   313
            <include name="*_compile.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   314
            <exclude name="*build_check_compile.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   315
          </fileset>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   316
        </path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   317
        <sequential>
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   318
          <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\/](.*)_compile\.log" replace="\1_compile_preprocessed.log"/>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   319
          <echo message="Preprocessing @{logfile}..."/>
577
424a5ad9bc7d Adjusted sf-run-analysis-raptor so that when preprocessing the files, STDERR is appended, but STDOUT is not.
Simon Howkins <simonh@symbian.org>
parents: 573
diff changeset
   320
          <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" errorProperty="@{logfile}" >
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   321
            <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   322
          </exec>
577
424a5ad9bc7d Adjusted sf-run-analysis-raptor so that when preprocessing the files, STDERR is appended, but STDOUT is not.
Simon Howkins <simonh@symbian.org>
parents: 573
diff changeset
   323
	  <echo file="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true" message="${@{logfile}}${line.separator}"/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   324
        </sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   325
      </for>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   326
      
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   327
      <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   328
      <for param="whatlogfile">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   329
        <path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   330
          <fileset dir="${build.log.dir}/analysis">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   331
            <include name="*whatlog*_compile_preprocessed.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   332
          </fileset>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   333
        </path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   334
        <sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   335
          <echo message="Extracting whatlog info from @{whatlogfile}..."/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   336
          <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   337
            <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   338
            <arg value="--releaseable"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   339
            <arg value="--log=@{whatlogfile}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   340
            <arg value="--basedir=${build.log.dir}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   341
            <arg value="--append"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   342
          </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   343
        </sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   344
      </for>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   345
      
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   346
      <echo message="Extracting error information from *_compile_preprocessed.log files"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   347
      <for param="raptorlogfile">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   348
        <path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   349
          <fileset dir="${build.log.dir}/analysis">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   350
            <include name="*_compile_preprocessed.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   351
          </fileset>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   352
        </path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   353
        <sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   354
          <echo message="Extracting error info from @{raptorlogfile}..."/>
383
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   355
          <propertyregex override="yes" property="raptorconfig" input="@{raptorlogfile}" regexp=".*[\\/].*__(.*)\.whatlog_(single|multiple)_thread.*" replace="\1" casesensitive="false" defaultValue="noconfig"/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   356
          <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   357
            <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   358
            <arg value="--error"/>
365
Dario Sestito <darios@symbian.org>
parents: 361
diff changeset
   359
            <arg value="--warning"/>
383
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   360
            <arg value="--unreciped"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   361
            <arg value="--recipe"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   362
            <arg value="--config=${raptorconfig}"/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   363
            <arg value="--log=@{raptorlogfile}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   364
            <arg value="--basedir=${build.log.dir}/raptorbits"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   365
          </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   366
        </sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   367
      </for>
383
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   368
      
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   369
      <echo message="Summarizing Raptor data"/>
383
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   370
      <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   371
        <arg value="${sf.common.config.dir}/tools/raptor/summarize.pl"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   372
        <arg value="--raptorbitsdir=${build.log.dir}/raptorbits"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   373
        <arg value="--outputdir=${build.log.dir}"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   374
      </exec>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   375
          
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   376
      <!-- Now iterate through the generated TSVs to sort them and remove duplicates -->
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   377
      <for param="tsv">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   378
        <path>
371
fcb6057a8009 Adjusted matching for processing TSV files, so it will not fail even if the dir has not been created.
Simon Howkins <simonh@symbian.org>
parents: 365
diff changeset
   379
          <fileset dir="${build.log.dir}">
fcb6057a8009 Adjusted matching for processing TSV files, so it will not fail even if the dir has not been created.
Simon Howkins <simonh@symbian.org>
parents: 365
diff changeset
   380
            <include name="releaseables/**/*.tsv"/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   381
          </fileset>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   382
        </path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   383
        <sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   384
          <exec executable="perl" input="@{tsv}" output="@{tsv}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   385
            <arg value="${sf.common.config.dir}/tools/sortUnique.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   386
          </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   387
        </sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   388
      </for>
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   389
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   390
      <!-- Cook the raptor analysis further to produce something in the right format for the BRAG system -->
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   391
      <exec executable="perl" output="${build.log.dir}/summary/Raptor_BRAG.xml" logError="yes">
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   392
        <arg value="${sf.common.config.dir}/tools/brag/raptorToBRAG.pl"/>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   393
        <arg value="--raptorsummary"/>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   394
        <arg value="${build.log.dir}/raptorbits/summary.csv"/>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   395
      </exec>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   396
      <!-- And copy the XSL so the output can be transformed by a browser -->
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   397
      <copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   398
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   399
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents: 640
diff changeset
   400
    <target name="sf-run-analysis-yarp">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   401
      <echo message="Running yarp over *_compile.log files"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   402
      <for param="logfile">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   403
        <path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   404
          <fileset dir="${build.log.dir}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   405
            <include name="*_compile.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   406
            <exclude name="*build_check_compile.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   407
          </fileset>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   408
        </path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   409
        <sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   410
          <propertyregex override="yes" property="yarpfile"  input="@{logfile}" regexp=".*[\\|\/](.*)_compile\.log" replace="\1_yarp.csv"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   411
          <propertyregex override="yes" property="yarpfile_short"  input="${yarpfile}" regexp="[^_]*_[^_]*_[^_]*_(.+)_[^_]*_yarp\.csv" replace="YARP_\1"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   412
          <echo message="Yarping @{logfile}..."/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   413
          <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${yarpfile}.log" append="true">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   414
            <arg value="${sf.common.config.dir}/tools/analysis/yarp.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   415
            <arg value="@{logfile}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   416
            <arg value="${build.log.dir}/analysis/${yarpfile}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   417
          </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   418
          <exec executable="cmd" output="${build.drive}/output/logs/analysis/tmp_yarp_files.csv" append="true">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   419
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   420
            <arg value="echo"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   421
            <arg value="${yarpfile_short},${sf.spec.publish.networkdrive}\${sf.spec.job.name}\builds\${sf.spec.job.codeline}\${build.id}\logs\analysis\${yarpfile},${build.drive}\output\logs\analysis\${yarpfile}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   422
          </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   423
        </sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   424
      </for>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   425
      
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents: 640
diff changeset
   426
      <!-- Cook the yarp analysis further to produce something in the right format for the BRAG system -->
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents: 640
diff changeset
   427
      <mkdir dir="${build.log.dir}/summary/"/>
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents: 640
diff changeset
   428
      <exec executable="perl" output="${build.log.dir}/summary/Yarp_BRAG.xml" logError="yes">
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents: 640
diff changeset
   429
        <arg value="${sf.common.config.dir}/tools/brag/yarpToBRAG.pl"/>
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents: 640
diff changeset
   430
        <arg value="${build.log.dir}/analysis/*_yarp.csv"/>
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents: 640
diff changeset
   431
      </exec>
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents: 640
diff changeset
   432
      
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   433
      <exec executable="perl" dir="${build.drive}" failonerror="false" outputproperty="sf.job.totalyarperrors">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   434
        <arg value="${sf.common.config.dir}/tools/analysis/parse_yarp_files.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   435
        <arg value="${build.drive}/output/logs/analysis/tmp_yarp_files.csv"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   436
      </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   437
      <echo message="Total yarp errors: ${sf.job.totalyarperrors}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   438
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   439
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   440
    <target name="sf-run-analysis-whatlog-summary" >
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   441
        <sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   442
          <parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   443
            <runtarget target="sf-run-analysis-list"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   444
            <runtarget target="sf-run-analysis-whatlog"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   445
          </parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   446
          <runtarget target="sf-run-analysis-whatlog-merge" />
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   447
          <parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   448
            <runtarget target="sf-run-analysis-whatlog-package"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   449
            <runtarget target="sf-run-analysis-whatlog-collisons"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   450
          </parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   451
        </sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   452
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   453
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   454
    <target name="sf-run-analysis-list">    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   455
        <echo message="Running list analysis"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   456
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_list_results.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   457
            <arg value="${sf.common.config.dir}/tools/analysis/parselistdirs.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   458
            <arg value="..\"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   459
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   460
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   461
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   462
    <target name="sf-run-analysis-whatlog">    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   463
        <echo message="Running whatlog analysis"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   464
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_what_results.csv">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   465
            <arg value="${sf.common.config.dir}/tools/analysis/parsewhatlog.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   466
            <arg value="..\"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   467
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   468
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   469
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   470
    <target name="sf-run-analysis-whatlog-merge" >        
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   471
        <echo message="Running summary analysis"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   472
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   473
            <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   474
            <arg value="${build.id}_what_results.csv"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   475
            <arg value="${build.id}_list_results.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   476
            <arg value="${build.drive}/output/zips/release/binaries_epoc_additional.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   477
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   478
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   479
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   480
    <target name="sf-run-analysis-whatlog-package" >        
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   481
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   482
            <arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   483
            <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   484
            <arg value="${build.id}_what_results.csv_results.csv"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   485
            <arg value="${sf.project.location}/sysdefs/system_model_os.xml"/>
474
6f15b0257b5c Updated analyse_components.pl arguments to use system_model_s60.xml as well as a source of package/component names (required for split model)
ThomasE
parents: 470
diff changeset
   486
            <arg value="${sf.project.location}/sysdefs/system_model_s60.xml"/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   487
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   488
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   489
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   490
    <target name="sf-run-analysis-whatlog-collisons" >        
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   491
        <echo message="Running collision analysis"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   492
        <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   493
            <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   494
            <arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   495
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   496
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   497
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   498
    <target name="sf-run-analysis-diamonds">      
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   499
      <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-run-analysis.xml.ftl" outputFile="${build.drive}/output/logs/sf-run-analysis.xml">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   500
        <data expandProperties="yes">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   501
          ant: antProperties()
383
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   502
          raptor_summary: csv(${build.log.dir}/raptorbits/summary.csv,{separator:',',headers:[category,subcategory,severity,config,component,phase,recipe,file,line]})
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   503
          files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]})
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   504
        </data>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   505
      </fmpp>
600
01511de51fcd Add link in Diamonds to read the BAG status from _brag.xml.
Arnaud Lenoir
parents: 599
diff changeset
   506
      <!-- Send the data to the server -->
01511de51fcd Add link in Diamonds to read the BAG status from _brag.xml.
Arnaud Lenoir
parents: 599
diff changeset
   507
	  <exec executable="python">
01511de51fcd Add link in Diamonds to read the BAG status from _brag.xml.
Arnaud Lenoir
parents: 599
diff changeset
   508
		    <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/>
01511de51fcd Add link in Diamonds to read the BAG status from _brag.xml.
Arnaud Lenoir
parents: 599
diff changeset
   509
		    <arg value="-s"/>
01511de51fcd Add link in Diamonds to read the BAG status from _brag.xml.
Arnaud Lenoir
parents: 599
diff changeset
   510
		    <arg value="${diamonds.host}"/>
01511de51fcd Add link in Diamonds to read the BAG status from _brag.xml.
Arnaud Lenoir
parents: 599
diff changeset
   511
		    <arg value="-u"/>
01511de51fcd Add link in Diamonds to read the BAG status from _brag.xml.
Arnaud Lenoir
parents: 599
diff changeset
   512
		    <arg value="${diamonds.build.id}"/>
01511de51fcd Add link in Diamonds to read the BAG status from _brag.xml.
Arnaud Lenoir
parents: 599
diff changeset
   513
		    <arg value="-f"/>
01511de51fcd Add link in Diamonds to read the BAG status from _brag.xml.
Arnaud Lenoir
parents: 599
diff changeset
   514
		    <arg value="${build.log.dir}/sf-run-analysis.xml"/>
01511de51fcd Add link in Diamonds to read the BAG status from _brag.xml.
Arnaud Lenoir
parents: 599
diff changeset
   515
	  </exec>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents: 373
diff changeset
   516
    </target>    
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   517
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   518
    <target name="sf-brag-to-diamonds">
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   519
        <!-- Merge all our bits of XML together -->
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   520
        <exec executable="perl" output="${build.log.dir}/summary/_BRAG.xml">
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   521
            <arg value="${sf.common.config.dir}/tools/mergeXML.pl"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   522
            <arg value="--xsl=brag.xsl"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   523
            <arg value="--merge=buildStatus,phase(name),step(name),failures(level)"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   524
            <arg value="${build.log.dir}/summary/*?_BRAG.xml"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   525
        </exec>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   526
        <!-- Run XSL transform to create file to send to diamonds -->
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   527
        <java jar="${sf.common.config.dir}/sysdefdowngrade/xalan-j_2_7_1/xalan.jar" fork="true">
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   528
            <arg value="-IN"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   529
            <arg value="${build.log.dir}/summary/_BRAG.xml"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   530
            <arg value="-XSL"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   531
            <arg value="${sf.common.config.dir}/tools/brag/bragForDiamonds.xsl"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   532
            <arg value="-OUT"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   533
            <arg value="${temp.build.dir}/bragForDiamonds.xml"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   534
        </java>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   535
        <if>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   536
            <istrue value="${sf.spec.publish.enable}"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   537
            <then>
640
5ad0657305e8 sf-brag-to-diamonds - Only copy over the Brag XML if '${sf.spec.publish.enable}' is true.
MattD <mattd@symbian.org>
parents: 638
diff changeset
   538
                <!-- Make sure that the summary directory is available to display the BRAG link -->
5ad0657305e8 sf-brag-to-diamonds - Only copy over the Brag XML if '${sf.spec.publish.enable}' is true.
MattD <mattd@symbian.org>
parents: 638
diff changeset
   539
                <mkdir  dir="${publish.dir}/summary/"/>
5ad0657305e8 sf-brag-to-diamonds - Only copy over the Brag XML if '${sf.spec.publish.enable}' is true.
MattD <mattd@symbian.org>
parents: 638
diff changeset
   540
                <copy todir="${publish.dir}/summary/" preservelastmodified="true" failonerror="false">
5ad0657305e8 sf-brag-to-diamonds - Only copy over the Brag XML if '${sf.spec.publish.enable}' is true.
MattD <mattd@symbian.org>
parents: 638
diff changeset
   541
                   <fileset dir="${build.log.dir}/summary/"><include name="*.*"/></fileset>
5ad0657305e8 sf-brag-to-diamonds - Only copy over the Brag XML if '${sf.spec.publish.enable}' is true.
MattD <mattd@symbian.org>
parents: 638
diff changeset
   542
                </copy>
5ad0657305e8 sf-brag-to-diamonds - Only copy over the Brag XML if '${sf.spec.publish.enable}' is true.
MattD <mattd@symbian.org>
parents: 638
diff changeset
   543
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   544
                <!-- Try to obtain the diamonds ID for this build -->
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   545
                <if>
599
27e421bea313 Sorted out misalignment between capture of diamonds build id and its re-use.
Simon Howkins <simonh@symbian.org>
parents: 592
diff changeset
   546
                    <not><isset property="diamonds.build.id"/></not>
27e421bea313 Sorted out misalignment between capture of diamonds build id and its re-use.
Simon Howkins <simonh@symbian.org>
parents: 592
diff changeset
   547
                    <then>
27e421bea313 Sorted out misalignment between capture of diamonds build id and its re-use.
Simon Howkins <simonh@symbian.org>
parents: 592
diff changeset
   548
                        <property file="${build.log.dir}/diamonds_build_id.properties"/> <!-- This will fail silently -->
27e421bea313 Sorted out misalignment between capture of diamonds build id and its re-use.
Simon Howkins <simonh@symbian.org>
parents: 592
diff changeset
   549
                    </then>
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   550
                </if>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   551
                <if>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   552
                    <isset property="diamonds.build.id"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   553
                    <then>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   554
                        <!-- Send the data to the server -->
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   555
                        <exec executable="python">
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   556
                            <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   557
                            <arg value="-s"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   558
                            <arg value="${diamonds.host}"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   559
                            <arg value="-u"/>
599
27e421bea313 Sorted out misalignment between capture of diamonds build id and its re-use.
Simon Howkins <simonh@symbian.org>
parents: 592
diff changeset
   560
                            <arg value="${diamonds.build.id}"/>
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   561
                            <arg value="-f"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   562
                            <arg value="${temp.build.dir}/bragForDiamonds.xml"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   563
                        </exec>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   564
                    </then>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   565
                    <else>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   566
                        <echo message="diamonds.build.id is not known - unable to push any build specific information to diamonds server"/>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   567
                    </else>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   568
                </if>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   569
            </then>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   570
        </if>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   571
    </target>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   572
470
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   573
    <target name="sf-check-utilities-dir">
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   574
        <available property="sf-utilities-available" file="${build.drive}/utilities" type="dir"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   575
    </target>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   576
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   577
    <target name="sf-compare-to-baseline" depends="sf-diamondize-bom,sf-check-utilities-dir" if="sf-utilities-available">
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   578
        <property name="sf.releasenotes.wiki.txt" value="${build.log.dir}/releaseNotes.wiki.txt"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   579
        <delete file="${sf.releasenotes.wiki.txt}"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   580
        <!-- FCL usage -->
501
e918b03176d3 Add execution of fcls4releasenotes.pl in build system.
Arnaud Lenoir
parents: 497
diff changeset
   581
        <exec executable="perl" dir="${build.drive}/utilities/releaseAutomation/" output="${build.log.dir}/fcls4releasenotes.log">
e918b03176d3 Add execution of fcls4releasenotes.pl in build system.
Arnaud Lenoir
parents: 497
diff changeset
   582
            <arg value="${build.drive}/utilities/releaseAutomation/fcls4releasenotes.pl"/>
e918b03176d3 Add execution of fcls4releasenotes.pl in build system.
Arnaud Lenoir
parents: 497
diff changeset
   583
            <arg value="--pdkname1=${sf.previous.pdk.tag}"/>
e918b03176d3 Add execution of fcls4releasenotes.pl in build system.
Arnaud Lenoir
parents: 497
diff changeset
   584
            <arg value="--pdkloc2=${build.log.dir}"/>
e918b03176d3 Add execution of fcls4releasenotes.pl in build system.
Arnaud Lenoir
parents: 497
diff changeset
   585
        </exec>
470
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   586
        <!-- Mercurial comparison -->
503
a3b781744ed8 Used ${line.separator} to make (more) echo tasks more readable.
Simon Howkins <simonh@symbian.org>
parents: 502
diff changeset
   587
        <echo file="${sf.releasenotes.wiki.txt}" append="true">== Mercurial Comparison ==${line.separator}${line.separator}</echo>
470
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   588
        <if>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   589
            <isset property="sf.previous.pdk.tag"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   590
            <then>
503
a3b781744ed8 Used ${line.separator} to make (more) echo tasks more readable.
Simon Howkins <simonh@symbian.org>
parents: 502
diff changeset
   591
                <echo file="${sf.releasenotes.wiki.txt}" append="true">The Mercurial changes from Nokia were delivered as a bulk update based on '''XXXXXXXXXXXXXXXXXXXXXX'''.${line.separator}${line.separator}List of the Mercurial changes (files added/removed/modified) between ${sf.previous.pdk.tag} and PDK '''XXXXX''' - [[Media:XXXX.txt]].${line.separator}${line.separator}A short study of the results concentrating on the added and removed files has identified these significant package changes:${line.separator}${line.separator}</echo>
470
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   592
                <if>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   593
                    <istrue value="${sf.spec.sourcesync.archive}"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   594
                    <then>
502
8e7e1064493f Used ${line.separator} to make echo tasks more readable.
Simon Howkins <simonh@symbian.org>
parents: 501
diff changeset
   595
                        <echo file="${sf.releasenotes.wiki.txt}" append="true">'''Information cannot be derived as source was synced with archive option'''"${line.separator}${line.separator}</echo>
470
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   596
                    </then>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   597
                    <else>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   598
                        <exec executable="perl" dir="${build.drive}/" output="${sf.releasenotes.wiki.txt}" append="true">
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   599
                            <arg value="${build.drive}/utilities/releaseAutomation/mercurialComparison.pl"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   600
                            <arg value="${build.log.dir}/BOM/build-info.xml"/>
501
e918b03176d3 Add execution of fcls4releasenotes.pl in build system.
Arnaud Lenoir
parents: 497
diff changeset
   601
                            <arg value="${sf.previous.pdk.tag}"/>
470
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   602
                            <arg value="${build.log.dir}/mercurialComparison.tsv"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   603
                        </exec>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   604
                    </else>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   605
                </if>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   606
            </then>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   607
            <else>
502
8e7e1064493f Used ${line.separator} to make echo tasks more readable.
Simon Howkins <simonh@symbian.org>
parents: 501
diff changeset
   608
                <echo file="${sf.releasenotes.wiki.txt}" append="true">'''Information cannot be provided as the tag for the previous PDK was not provided to the build'''"${line.separator}${line.separator}</echo>
470
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   609
            </else>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   610
        </if>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   611
        
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   612
        <!-- Code churn -->
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   613
        <!-- TODO? -->
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   614
        <fixcrlf file="${sf.releasenotes.wiki.txt}"/>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   615
    </target>
eadcd4405e6a Added target to compare the build to the baseline. Initially populated with tasks to create part of the release notes.
Simon Howkins <simonh@symbian.org>
parents: 468
diff changeset
   616
491
e73243604097 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 474
diff changeset
   617
    <!-- package all logs into zipfile for publishing -->
677
dd6b7decdca2 Major packaging change to work around parallel calls - stopped zipping targets from having direct dependency on 'sf-preprocess-package-config', and instead have 'sf-zip-content' call 'sf-preprocess-package-config' if needed. Changed 'sf-prep' to call a target that wipes out the 'generated' directory. It's not perfect but it gets us going again.
MattD <mattd@symbian.org>
parents: 676
diff changeset
   618
    <target name="sf-zip-logs" >
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   619
        <if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   620
            <istrue value="${sf.spec.logs.zip.enable}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   621
            <then>
546
1c8d0b0d08dc sf-zip-logs - Fixed zipping regression for running smoketest or BC test alone caused by changeset e73243604097 - 'Bug 384 Platform build should output all PDK releasables into one directory'
MattD <mattd@symbian.org>
parents: 537
diff changeset
   622
                <mkdir dir="${build.output.dir}/zips/release"/> <!-- workaround for when there's no other releaseables, just the logs -->
491
e73243604097 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 474
diff changeset
   623
                <zip destfile="${build.output.dir}/zips/release/build_logs.zip" basedir="${build.drive}"> 
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   624
                    <include name="output/logs/**"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   625
                    <exclude name="output/logs/BOM/**"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   626
                    <exclude name="output/logs/deliverables/**"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   627
                    <exclude name="output/logs/releaseables/**"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   628
                </zip>
468
eb9ba249e164 Added test targets 'sf-test-smoketest' and 'sf-test-bc-check' for the test team. They populate the drive, run the tests and zip the output. Minor fix was needed in the post build for zipping: '${build.drive}/output/logs/releaseables' must exist
MattD <mattd@symbian.org>
parents: 456
diff changeset
   629
                <!-- workaround for the time when when 'sf-run-analysis-raptor' has not been run -->
eb9ba249e164 Added test targets 'sf-test-smoketest' and 'sf-test-bc-check' for the test team. They populate the drive, run the tests and zip the output. Minor fix was needed in the post build for zipping: '${build.drive}/output/logs/releaseables' must exist
MattD <mattd@symbian.org>
parents: 456
diff changeset
   630
                <mkdir dir="${build.drive}/output/logs/releaseables"/> 
491
e73243604097 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 474
diff changeset
   631
                <zip destfile="${build.output.dir}/zips/release/build_BOM.zip">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   632
                    <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   633
                    <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   634
                </zip>
664
29955a149536 Bug 478: build_*.zip missing from generated release_metadata.xml
Simon Howkins <simonh@symbian.org>
parents: 649
diff changeset
   635
                <antcall target="sf-zip-content">
29955a149536 Bug 478: build_*.zip missing from generated release_metadata.xml
Simon Howkins <simonh@symbian.org>
parents: 649
diff changeset
   636
                    <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
29955a149536 Bug 478: build_*.zip missing from generated release_metadata.xml
Simon Howkins <simonh@symbian.org>
parents: 649
diff changeset
   637
                    <param name="zip.target.name" value="info-just-metadata" />
29955a149536 Bug 478: build_*.zip missing from generated release_metadata.xml
Simon Howkins <simonh@symbian.org>
parents: 649
diff changeset
   638
                </antcall>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   639
            </then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   640
        </if>
625
4f9a01580199 Make sure the BRAG xml and xsl files are sent to bishare in an unzipped way to allow access from link in Diamonds.
Arnaud Lenoir
parents: 621
diff changeset
   641
     </target>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   642
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   643
    <target name="sf-publish" depends="prep-publish">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   644
        <copy todir="${publish.dir}" preservelastmodified="true" failonerror="false">
537
aa5ddb1f5ba0 post-build target 'sf-publish' - Fixed publishing regression caused by changeset e73243604097 - 'Bug 384 Platform build should output all PDK releasables into one directory'
MattD <mattd@symbian.org>
parents: 505
diff changeset
   645
           <fileset dir="${build.output.dir}/zips/release/"><include name="build_*.zip"/></fileset>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   646
        </copy>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   647
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   648
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   649
    <!-- TODO: Make this work for package builds once we have sysmodel story worked out -->
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   650
    <target name="sf-run-analysis-missing-files" if="sf.spec.splitbuild">
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   651
    <!-- splitbuild is only set for Platform builds -->
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   652
       <if><istrue value="${sf.spec.splitbuild}"/>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   653
       <then>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   654
            <if><istrue value="${sf.spec.os.skipbuild}" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   655
                <then><echo message="Skipping OS file check"/></then>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   656
                <else><runtarget target="sf-check-missing-os-files"/></else>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   657
            </if>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   658
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   659
            <if><istrue value="${sf.spec.s60.skipbuild}" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   660
                <then><echo message="Skipping S60 file check"/></then>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   661
                <else><runtarget target="sf-check-missing-s60-files"/></else>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   662
            </if>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   663
       </then>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   664
       <else>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   665
            <runtarget target="sf-check-missing-os-files"/>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   666
       </else>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   667
    </if>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   668
    </target>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   669
    
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: 628
diff changeset
   670
    <target name="sf-check-missing-os-files" depends="sf-compile-options">
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   671
        <hlm:argSet id="sbs.check.tools.var">
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   672
                <hlm:arg name="config" value="${sf.spec.sbs.tools.config}" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   673
                <hlm:arg name="run-check" value="true" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   674
        </hlm:argSet>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   675
     
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   676
        <hlm:argSet id="sbs.check.main.var">
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   677
                <hlm:arg name="config" value="${sf.spec.sbs.config}" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   678
                <hlm:arg name="run-check" value="true" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   679
        </hlm:argSet>     
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   680
        <antcall target="compile-main" inheritAll="false" inheritRefs="true">
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   681
            <param name="build.system" value="${sf.spec.build.system}" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   682
            <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   683
            <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   684
            <param name="build.id" value ="sbs_check"/>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   685
            <reference refid="sbs.check.tools.var" torefid="sbs.var" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   686
            <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   687
            <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   688
        </antcall> 
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: 628
diff changeset
   689
        <if><istrue value="${sf.os.compile.iterate}"/>
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: 628
diff changeset
   690
          <then>
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: 628
diff changeset
   691
            <for list="${sf.spec.sbs.config}" delimiter="," param="sf.spec.check.splitconfig">
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: 628
diff changeset
   692
              <sequential>
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: 628
diff changeset
   693
        				<echo message="INFO [Iterative check] @{sf.spec.check.splitconfig}"/>
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: 628
diff changeset
   694
                <hlm:argSet id="sbs.check.iterate.main.var">
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: 628
diff changeset
   695
                    <hlm:arg name="config" value="@{sf.spec.check.splitconfig}" />
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: 628
diff changeset
   696
                    <hlm:arg name="run-check" value="true" />
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: 628
diff changeset
   697
                </hlm:argSet>     
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: 628
diff changeset
   698
  
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: 628
diff changeset
   699
                <antcall target="compile-main" inheritAll="false" inheritRefs="true">
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: 628
diff changeset
   700
                    <param name="build.system" value="${sf.spec.build.system}" />
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: 628
diff changeset
   701
                    <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
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: 628
diff changeset
   702
                    <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
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: 628
diff changeset
   703
                    <param name="build.id" value ="sbs_check"/>
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: 628
diff changeset
   704
                    <reference refid="sbs.check.iterate.main.var" torefid="sbs.var" />
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: 628
diff changeset
   705
                    <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
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: 628
diff changeset
   706
                    <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
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: 628
diff changeset
   707
                </antcall>
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: 628
diff changeset
   708
      				</sequential>
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: 628
diff changeset
   709
      			</for>	
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: 628
diff changeset
   710
      		</then>		
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: 628
diff changeset
   711
        <else>
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   712
        <antcall target="compile-main" inheritAll="false" inheritRefs="true">
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   713
            <param name="build.system" value="${sf.spec.build.system}" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   714
            <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   715
            <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   716
            <param name="build.id" value ="sbs_check"/>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   717
            <reference refid="sbs.check.main.var" torefid="sbs.var" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   718
            <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   719
            <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
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: 628
diff changeset
   720
        </antcall>
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: 628
diff changeset
   721
        </else>
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: 628
diff changeset
   722
        </if> 
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   723
    </target>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   724
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: 628
diff changeset
   725
    <target name="sf-check-missing-s60-files" depends="sf-compile-options">
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   726
    
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   727
        <hlm:argSet id="sbs.check.tools.var">
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   728
                <hlm:arg name="config" value="${sf.spec.sbs.tools.config}" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   729
                <hlm:arg name="run-check" value="true" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   730
        </hlm:argSet>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   731
     
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   732
        <hlm:argSet id="sbs.check.main.var">
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   733
                <hlm:arg name="config" value="${sf.spec.sbs.config}" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   734
                <hlm:arg name="run-check" value="true" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   735
        </hlm:argSet>     
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   736
        <antcall target="compile-main" inheritAll="false" inheritRefs="true">
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   737
            <param name="build.system" value="${sf.spec.build.system}" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   738
            <param name="sysdef.configurations.list" value="${sf.spec.s60.sysdef.clean.configurations.list}" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   739
            <param name="sf.spec.sysdef.version" value ="${sf.spec.s60.sysdef.version}"/>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   740
            <param name="build.id" value ="sbs_check"/>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   741
            <reference refid="sbs.check.tools.var" torefid="sbs.var" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   742
            <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   743
            <reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   744
        </antcall> 
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   745
        <antcall target="compile-main" inheritAll="false" inheritRefs="true">
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   746
            <param name="build.system" value="${sf.spec.build.system}" />
505
590bb863f9b9 Use correct s60 config list for sbs check
Shabe Razvi <shaber@symbian.org>
parents: 504
diff changeset
   747
            <param name="sysdef.configurations.list" value="${sf.spec.s60.sysdef.clean.configurations.list}" />
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   748
            <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   749
            <param name="build.id" value ="sbs_check"/>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   750
            <reference refid="sbs.check.main.var" torefid="sbs.var" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   751
            <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   752
            <reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" />
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   753
        </antcall>
573
02a549e2960d Added helium target sf-run-sfl-licence-munging for Public PDK creation.
chetank
parents: 547
diff changeset
   754
        
02a549e2960d Added helium target sf-run-sfl-licence-munging for Public PDK creation.
chetank
parents: 547
diff changeset
   755
    </target>
02a549e2960d Added helium target sf-run-sfl-licence-munging for Public PDK creation.
chetank
parents: 547
diff changeset
   756
    
589
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   757
    <target name="sf-create-public-PDK" depends="sf-prebuild,sf-run-sfl-licence-munging" >
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   758
        <if>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   759
            <istrue value="${sf.spec.md5.enable}"/>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   760
            <then>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   761
                <echo message="INFO Creating MD5s"/>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   762
                <runtarget target="sf-run-evalid"/>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   763
            </then>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   764
        </if>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   765
        
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   766
        <!-- Package up the binaries we built -->
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   767
        <if>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   768
            <istrue value="${sf.spec.package.bin.enable}"/>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   769
            <then>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   770
                <echo message="INFO Packaging Binaries"/>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   771
                <runtarget target="sf-package-binary"/>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   772
                <runtarget target="sf-package-tools"/>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   773
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   774
                <echo message="INFO Validate Zip files"/>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   775
                <runtarget target="sf-package-validate"/>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   776
            </then>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   777
        </if>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   778
        <runtarget target="sf-zip-logs"/>
676
63fe736c83fb Moved invocation of sf-brag-to-diamonds, so it's right at the end of the postbuild (apart from publishing zipped logs).
Simon Howkins <simonh@symbian.org>
parents: 664
diff changeset
   779
        <runtarget target="sf-brag-to-diamonds"/>
589
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   780
        <if>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   781
            <istrue value="${sf.spec.publish.enable}" />
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   782
            <then>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   783
                <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   784
                <runtarget target="sf-publish"/>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   785
            </then>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   786
        </if>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   787
    </target>
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   788
a18cdecf36b3 Creation of 'sf-create-public-PDK' for munging licences in text files. Not tested yet as I've got another build running on this machine, so submitting and kicking via Hudson.
MattD <mattd@symbian.org>
parents: 577
diff changeset
   789
573
02a549e2960d Added helium target sf-run-sfl-licence-munging for Public PDK creation.
chetank
parents: 547
diff changeset
   790
    <target name="sf-run-sfl-licence-munging" depends="sf-check-utilities-dir" if="sf-utilities-available">    
02a549e2960d Added helium target sf-run-sfl-licence-munging for Public PDK creation.
chetank
parents: 547
diff changeset
   791
        <echo message="Running SFL Licence Munging writing log to ${build.log.dir}"/>
02a549e2960d Added helium target sf-run-sfl-licence-munging for Public PDK creation.
chetank
parents: 547
diff changeset
   792
        <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/postbuild_sfl-licence_munging_results.log">
02a549e2960d Added helium target sf-run-sfl-licence-munging for Public PDK creation.
chetank
parents: 547
diff changeset
   793
          <arg value="${build.drive}/utilities/williamr/convert_to_eula.pl"/>
02a549e2960d Added helium target sf-run-sfl-licence-munging for Public PDK creation.
chetank
parents: 547
diff changeset
   794
        </exec>
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   795
    </target>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   796
360
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   797
</project>