common/build.postbuild.xml
author Dario Sestito <darios@symbian.org>
Thu, 19 Aug 2010 18:56:19 +0100
changeset 1218 b9a2adc3ea65
parent 1208 86025b85795b
child 1249 96548ab09767
permissions -rw-r--r--
Uncomment push to update package models automatically
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">
956
aabab255ad7b Add new sf-build-roms target to invoke iMaker rom building
Shabe Razvi <shaber@symbian.org>
parents: 942
diff changeset
     3
    <target name="sf-postbuild" depends="sf-build-roms">
861
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 848
diff changeset
     4
        <stopwatch name="sf-postbuild"/>
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
     5
        <echo>[SF-POSTBUILD]</echo>
698
382728cd25d2 Add sf-rombuild target to build ROMs. Backout ARM license check suppression.
Shabe Razvi <shaber@symbian.org>
parents: 685
diff changeset
     6
        
744
22e6c7258a80 Added call to munge license headers at the top of the postbuild phase, so it should be done within the platorm build.
Simon Howkins <simonh@symbian.org>
parents: 743
diff changeset
     7
        <if><istrue value="${sf.relicense.exported.headers}"/>
22e6c7258a80 Added call to munge license headers at the top of the postbuild phase, so it should be done within the platorm build.
Simon Howkins <simonh@symbian.org>
parents: 743
diff changeset
     8
        <then>
22e6c7258a80 Added call to munge license headers at the top of the postbuild phase, so it should be done within the platorm build.
Simon Howkins <simonh@symbian.org>
parents: 743
diff changeset
     9
            <runtarget target="sf-run-sfl-licence-munging"/>
22e6c7258a80 Added call to munge license headers at the top of the postbuild phase, so it should be done within the platorm build.
Simon Howkins <simonh@symbian.org>
parents: 743
diff changeset
    10
        </then>
22e6c7258a80 Added call to munge license headers at the top of the postbuild phase, so it should be done within the platorm build.
Simon Howkins <simonh@symbian.org>
parents: 743
diff changeset
    11
        </if>
22e6c7258a80 Added call to munge license headers at the top of the postbuild phase, so it should be done within the platorm build.
Simon Howkins <simonh@symbian.org>
parents: 743
diff changeset
    12
        
22e6c7258a80 Added call to munge license headers at the top of the postbuild phase, so it should be done within the platorm build.
Simon Howkins <simonh@symbian.org>
parents: 743
diff changeset
    13
        <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
    14
            <!-- 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
    15
            <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
    16
                <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
    17
                <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
    18
                    <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
    19
                    <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
    20
                </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
    21
            </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
    22
            
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
            <!-- 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
    24
            <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
    25
                <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
    26
                <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
    27
                    <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
    28
                    <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
    29
                </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
    30
            </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
    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
            <!-- 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
    33
            <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
    34
                <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
    35
                <then>
861
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 848
diff changeset
    36
                    <stopwatch name="sf-postbuild packaging binaries"/>
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
    37
                    <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
    38
                    <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
    39
    
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
    40
                    <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
    41
                    <runtarget target="sf-package-validate"/>
861
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 848
diff changeset
    42
                    <stopwatch name="sf-postbuild packaging binaries" action="elapsed"/>
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
    43
                </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
    44
            </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
    45
            
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
    46
            <!-- 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
    47
            <runtarget target="sf-run-analysis"/>
792
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
    48
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
    49
            <if>
792
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
    50
                <istrue value="${sf.spec.publish.enable}"/>
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
    51
                <then>
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
    52
                    <!-- Generate reports to compare this build to a previous one -->
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
    53
                    <runtarget target="sf-compare-to-baseline"/>
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
    54
                </then>
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
    55
            </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
    56
        </parallel>
792
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
    57
        
680
81550e87fc91 Moved the generation of the release metadata entry for the MD5 zip outside of
Simon Howkins <simonh@symbian.org>
parents: 678
diff changeset
    58
        <!-- Generate release_metadata entries for the md5 zips -->
81550e87fc91 Moved the generation of the release metadata entry for the MD5 zip outside of
Simon Howkins <simonh@symbian.org>
parents: 678
diff changeset
    59
        <antcall target="sf-zip-content">
681
eeab5a04dc46 Updated throughout to use the "temp_build_files" dir on the build drive rather than the "generated" directory in the fbf source tree.
Simon Howkins <simonh@symbian.org>
parents: 680
diff changeset
    60
            <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
925
f1243b2c51fe build_md5.zip now in release_metadata.xml
MattD <mattd@symbian.org>
parents: 923
diff changeset
    61
            <param name="zip.target.name" value="md5-just-metadata" />
680
81550e87fc91 Moved the generation of the release metadata entry for the MD5 zip outside of
Simon Howkins <simonh@symbian.org>
parents: 678
diff changeset
    62
        </antcall>
81550e87fc91 Moved the generation of the release metadata entry for the MD5 zip outside of
Simon Howkins <simonh@symbian.org>
parents: 678
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
        <!-- 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
    65
        <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
    66
            <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
    67
                <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
    68
                <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
    69
            </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
    70
        </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
    71
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
    72
        <!-- 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
    73
        <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
    74
            <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
    75
                <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
    76
            </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
    77
        </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
    78
1208
86025b85795b Implemented package tests
Maciej Seroka <maciejs@symbian.org>
parents: 1191
diff changeset
    79
        <!-- Launch package tests -->
86025b85795b Implemented package tests
Maciej Seroka <maciejs@symbian.org>
parents: 1191
diff changeset
    80
        <if><istrue value="${sf.spec.package.test.enable}"/>
86025b85795b Implemented package tests
Maciej Seroka <maciejs@symbian.org>
parents: 1191
diff changeset
    81
            <then>
86025b85795b Implemented package tests
Maciej Seroka <maciejs@symbian.org>
parents: 1191
diff changeset
    82
                <runtarget target="sf-test-package"/>
86025b85795b Implemented package tests
Maciej Seroka <maciejs@symbian.org>
parents: 1191
diff changeset
    83
            </then>
86025b85795b Implemented package tests
Maciej Seroka <maciejs@symbian.org>
parents: 1191
diff changeset
    84
        </if>
86025b85795b Implemented package tests
Maciej Seroka <maciejs@symbian.org>
parents: 1191
diff changeset
    85
792
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
    86
        <!-- copy log files linked to the generation of roms for REE -->
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
    87
        <runtarget target="sf-copy-rom-logs"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
    88
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
    89
        <runtarget target="sf-merge-brag"/>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
    90
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
    91
        <!-- 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
    92
        <runtarget target="sf-zip-logs"/>
695
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
    93
        
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
    94
        <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
    95
            <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
    96
            <then>
695
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
    97
                <echo message="Send links to Diamonds"/>
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
    98
                <runtarget target="sf-links-to-diamonds"/>
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
    99
                <echo message="Send BRAG status information to Diamonds"/>
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
   100
                <runtarget target="sf-brag-to-diamonds"/>
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
   101
                
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
   102
                <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
   103
                <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
   104
            </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
   105
        </if>
1108
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
   106
        <runtarget target="sf-build-summary"/>
861
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 848
diff changeset
   107
        <stopwatch name="sf-postbuild" action="elapsed"/>
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
   108
    </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
   109
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   110
    <target name="sf-tag-hg-code">
1084
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   111
        <!-- To do the tagging, we need to know what tag to use, and who the author is (from hg's perspective) -->
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   112
        <fail message="This target needs to have all the details specified, or to be run interactively so it can query the user">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   113
            <condition>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   114
                <and>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   115
                    <isset property="sf.hudson.executor.number"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   116
                    <not>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   117
                        <or>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   118
                            <isset property="sf.tagafterbuild.tag"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   119
                            <isset property="sf.hg.ui.username"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   120
                        </or>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   121
                    </not>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   122
                </and>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   123
            </condition>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   124
        </fail>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   125
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   126
        <!-- Ask the user, interactively, what tag to use -->
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   127
        <input addproperty="sf.tagafterbuild.tag" message="Enter the tag to apply to the code (eg &quot;PDK_1.0.1&quot;):"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   128
        <fail message="No tag supplied">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   129
            <condition>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   130
                <length string="${sf.tagafterbuild.tag}" trim="true" length="0"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   131
            </condition>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   132
        </fail>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   133
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   134
        <!-- Now get the username sorted out -->
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   135
        <exec executable="hg" outputproperty="sf.hg.showconfig.ui.username">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   136
            <arg value="showconfig"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   137
            <arg value="ui.username"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   138
        </exec>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   139
        <input addproperty="sf.hg.ui.username" message="Enter hg author credentials (eg &quot;Fred Bloggs &lt;fredb@example.org&gt;&quot;) default is" defaultvalue="${sf.hg.showconfig.ui.username}"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   140
        <fail message="No author supplied">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   141
            <condition>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   142
                <length string="${sf.hg.ui.username}" trim="true" length="0"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   143
            </condition>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   144
        </fail>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   145
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
   146
        <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
681
eeab5a04dc46 Updated throughout to use the "temp_build_files" dir on the build drive rather than the "generated" directory in the fbf source tree.
Simon Howkins <simonh@symbian.org>
parents: 680
diff changeset
   147
              outputFile="${temp.build.dir}/tag-hg-code.ant.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
   148
            <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
   149
                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
   150
                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
   151
            </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
   152
        </fmpp>
681
eeab5a04dc46 Updated throughout to use the "temp_build_files" dir on the build drive rather than the "generated" directory in the fbf source tree.
Simon Howkins <simonh@symbian.org>
parents: 680
diff changeset
   153
        <ant antfile="${temp.build.dir}/tag-hg-code.ant.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
   154
    </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
   155
1084
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   156
    <target name="sf-push-hg-tags">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   157
        <!-- To do the pushing, we need to have a set of credentials for the developer.symbian.org site -->
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   158
        <fail message="This target needs to have loging credentials specified specified, or to be run interactively so it can query the user">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   159
            <condition>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   160
                <and>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   161
                    <isset property="sf.hudson.executor.number"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   162
                    <not>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   163
                        <or>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   164
                            <isset property="sf.symbian.account.username"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   165
                            <isset property="sf.symbian.account.password"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   166
                        </or>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   167
                    </not>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   168
                </and>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   169
            </condition>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   170
        </fail>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   171
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   172
        <input addproperty="sf.symbian.account.username" message="Enter symbian.org username (eg &quot;fredb&quot;)"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   173
        <fail message="No author supplied">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   174
            <condition>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   175
                <length string="${sf.hg.ui.username}" trim="true" length="0"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   176
            </condition>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   177
        </fail>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   178
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   179
        <input addproperty="sf.symbian.account.password" message="Enter symbian.org password (eg &quot;unguessable&quot;)">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   180
            <!-- Ant 1.8 supports secure here, which would be an improvement... -->
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   181
            <handler type="default"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   182
        </input>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   183
        <fail message="No password supplied">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   184
            <condition>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   185
                <length string="${sf.hg.ui.password}" trim="true" length="0"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   186
            </condition>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   187
        </fail>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   188
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   189
        <if>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   190
            <not>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   191
                <available file="${build.drive}/tagging" type="dir"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   192
            </not>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   193
            <then>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   194
                <!-- No dir with tagged repos in - create them! -->
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   195
                <runtarget target="sf-tag-hg-code"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   196
            </then>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   197
        </if>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   198
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   199
        <fmpp sourceFile="${sf.common.config.dir}/templates/push-hg-tags.ant.xml.ftl"
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   200
              outputFile="${temp.build.dir}/push-hg-tags.ant.xml">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   201
            <data expandProperties="yes">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   202
                ant: antProperties()
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   203
                data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   204
            </data>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   205
        </fmpp>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   206
        <ant antfile="${temp.build.dir}/push-hg-tags.ant.xml"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   207
    </target>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   208
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
   209
    <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
   210
        <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
   211
        <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
   212
023e28d6bf31 Moved 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
        <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
   214
        <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
   215
            <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
   216
            <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
   217
        </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
   218
        <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
   219
            <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
   220
            <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
   221
        </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
   222
        <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
   223
            <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
   224
            <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
   225
        </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
   226
        <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
   227
            <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
   228
            <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
   229
        </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
   230
        <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
   231
            <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
   232
            <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
   233
        </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
   234
        <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
   235
            <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
   236
            <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
   237
        </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
   238
        <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
   239
            <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
   240
            <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
   241
        </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
   242
        <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
   243
            <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
   244
            <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
   245
        </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
   246
        <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
   247
            <arg value="/c"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   248
            <arg value="evalid -g epoc32/cshlpcmp_template output/md5/epoc32_cshlpcmp_template.md5"/>
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
   249
        </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
   250
        <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
   251
            <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
   252
            <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
   253
        </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
   254
        <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
   255
            <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
   256
            <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
   257
        </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
   258
        <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
   259
            <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
   260
            <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
   261
        </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
   262
        <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
   263
            <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
   264
            <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
   265
        </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
   266
        <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
   267
            <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
   268
            <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
   269
        </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
   270
        <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
   271
            <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
   272
            <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
   273
        </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
   274
        <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
   275
            <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
   276
            <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
   277
        </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
   278
        <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
   279
            <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
   280
            <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
   281
        </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
   282
        <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
   283
            <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
   284
            <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
   285
        </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
   286
        <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
   287
            <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
   288
            <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
   289
        </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
   290
        <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
   291
            <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
   292
            <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
   293
        </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
   294
        <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
   295
            <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
   296
            <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
   297
        </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
   298
        <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
   299
            <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
   300
            <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
   301
        </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
   302
        <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
   303
            <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
   304
            <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
   305
        </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
   306
        <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
   307
            <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
   308
            <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
   309
        </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
   310
        </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
   311
        <!-- package MD5s directly into epoc32/relinfo location so that its usable out-of-the-box -->
795
7f120899dd36 Changed to package the SDK header files in a different zip to the rest of the epoc32 tree.
Simon Howkins <simonh@symbian.org>
parents: 792
diff changeset
   312
        <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
   313
        <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
   314
            <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
   315
        </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
   316
    </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
   317
    
1035
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   318
    <target name="sf-package-binary" depends="sf-package-postbuild-rnd,sf-merge-manifest">
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
   319
        <!-- 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
   320
             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
   321
        <!--antcall target="sf-zip-content">
681
eeab5a04dc46 Updated throughout to use the "temp_build_files" dir on the build drive rather than the "generated" directory in the fbf source tree.
Simon Howkins <simonh@symbian.org>
parents: 680
diff changeset
   322
            <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
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
   323
            <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
   324
        </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
   325
        <parallel>
806
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   326
            <sequential>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   327
                <if>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   328
                    <isset property="sf.sdk.header.list.file"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   329
                    <then>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   330
                        <property name="sf.epoc32.exclusions.file" value="${sf.sdk.header.list.file}"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   331
                    </then>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   332
                </if>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   333
                <property name="sf.epoc32.exclusions.file" value="nul:"/>
1037
3011d062ba36 Resolve packaging oddity with missing build.drive fwdslash
Shabe Razvi <shaber@symbian.org>
parents: 1036
diff changeset
   334
                <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
806
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   335
                    <arg value="a"/>
912
5a63512dfd19 quick fix for zipping winscw lib files. Added property 'sf.spec.package.zip.format' for the post-build zip format (default is '7z').
MattD <mattd@symbian.org>
parents: 911
diff changeset
   336
                    <arg value="-t${sf.spec.package.zip.format}"/>
1035
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   337
                    <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> <!-- rnd content taken from internal hg repos -->
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   338
                    <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
1036
1f465f774089 Fix property typo and add sf-package-tools dependency on sf-merge-manifest
Shabe Razvi <shaber@symbian.org>
parents: 1035
diff changeset
   339
                    <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> <!-- merged list of prebuilt content such as binaries_prebuilt -->
806
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   340
                    <arg value="-x@${sf.epoc32.exclusions.file}"/>
838
a1ebf7f8e66f Move gcc into tools_epoc.zip so that syborg/beagle rom building works during build from source only.
Shabe Razvi <shaber@symbian.org>
parents: 822
diff changeset
   341
                    <arg value="-x!epoc32\gcc"/>
960
b0315c337be6 Changed packaging so that /epoc/gcc_mingw/** is put into tools_epoc.zip
Simon Howkins <simonh@symbian.org>
parents: 959
diff changeset
   342
                    <arg value="-x!epoc32\gcc_mingw"/>
806
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   343
                    <arg value="-x!epoc32\tools"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   344
                    <arg value="-x!epoc32\data\buildinfo.txt"/>
1188
b7b3892c3ce5 Moved further feature database artifacts from binaries zip to tools zip.
Simon Howkins <simonh@symbian.org>
parents: 1183
diff changeset
   345
                    <!-- Feature database artifacts released as part of the tools zip -->
1013
d20ad9274826 Include prebuilt features.dat in tools_epoc.zip, as its built via tools2
Shabe Razvi <shaber@symbian.org>
parents: 1009
diff changeset
   346
                    <arg value="-x!epoc32\data\config\features.dat"/>
1188
b7b3892c3ce5 Moved further feature database artifacts from binaries zip to tools zip.
Simon Howkins <simonh@symbian.org>
parents: 1183
diff changeset
   347
                    <arg value="-x!epoc32\include\featureuids.h"/>
b7b3892c3ce5 Moved further feature database artifacts from binaries zip to tools zip.
Simon Howkins <simonh@symbian.org>
parents: 1183
diff changeset
   348
                    <arg value="-x!epoc32\rom\include\feature.iby"/>
b7b3892c3ce5 Moved further feature database artifacts from binaries zip to tools zip.
Simon Howkins <simonh@symbian.org>
parents: 1183
diff changeset
   349
                    <arg value="-x!epoc32\rom\include\featuredatabase.xml"/>
1031
6660c0312c89 Bug 2670: binaries_epoc.zip contains megabytes of useless Emulator files
Simon Howkins <simonh@symbian.org>
parents: 1029
diff changeset
   350
                    <arg value="-x!epoc32\data\media"/> <!-- Files created when emulator is used to create comms database - not worth releasing-->
806
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   351
                    <arg value="-x!epoc32\build"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   352
                    <arg value="-x!epoc32\release\armv5"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   353
                    <arg value="-x!epoc32\release\winscw"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   354
                    <arg value="-xr!*.sym"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   355
                    <arg value="${build.drive}/output/zips/release/binaries_epoc.zip"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   356
                    <arg value="epoc32\"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   357
                </exec>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   358
            </sequential>
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
   359
            
806
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   360
            <if>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   361
                <isset property="sf.sdk.header.list.file"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   362
                <then>
1037
3011d062ba36 Resolve packaging oddity with missing build.drive fwdslash
Shabe Razvi <shaber@symbian.org>
parents: 1036
diff changeset
   363
                    <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_sdk.log">
806
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   364
                        <arg value="a"/>
912
5a63512dfd19 quick fix for zipping winscw lib files. Added property 'sf.spec.package.zip.format' for the post-build zip format (default is '7z').
MattD <mattd@symbian.org>
parents: 911
diff changeset
   365
                        <arg value="-t${sf.spec.package.zip.format}"/>
806
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   366
                        <arg value="-i@${sf.sdk.header.list.file}"/>
813
66884b6df45d If any files are in both the list of SDK headers, and the list of RnD headers, then they're only zipped in the binaries_epoc_additional zip, and not the binaries_epoc_sdk zip.
Simon Howkins <simonh@symbian.org>
parents: 809
diff changeset
   367
                        <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
1036
1f465f774089 Fix property typo and add sf-package-tools dependency on sf-merge-manifest
Shabe Razvi <shaber@symbian.org>
parents: 1035
diff changeset
   368
                        <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   369
                        <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
1190
19e93405e223 Further tweak to zipping the files related to the features database - ensure there's no duplication between sdk header files and tools files.
Simon Howkins <simonh@symbian.org>
parents: 1188
diff changeset
   370
                        <arg value="-x!epoc32/include/featureuids.h"/> <!-- This needs to come from the tools zip instead -->
806
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   371
                        <arg value="${build.drive}/output/zips/release/binaries_epoc_sdk.zip"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   372
                    </exec>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   373
                    <!-- Check that all the files we want in the SDK are zipped -->
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   374
                    <antcall target="sf-log-to-brag">
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   375
                        <param name="sf.brag.id" value="SDK"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   376
                        <param name="sf.brag.log" value="${build.log.dir}/zip_${build.id}_binaries_sdk.log"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   377
                        <param name="sf.brag.phase" value="Postbuild"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   378
                        <param name="sf.brag.step" value="Package SDK"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   379
                    </antcall>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   380
                    <!-- Generate release_metadata entries for the SDK zip -->
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   381
                    <antcall target="sf-zip-content">
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   382
                        <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   383
                        <param name="zip.target.name" value="bin-sdk-just-metadata" />
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   384
                    </antcall>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   385
                </then>
d6151ad46381 Updated framework for packaging SDK headers so the contents to zip can be set by a project property (or it can zip everything together if it's not set).
Simon Howkins <simonh@symbian.org>
parents: 795
diff changeset
   386
            </if>
795
7f120899dd36 Changed to package the SDK header files in a different zip to the rest of the epoc32 tree.
Simon Howkins <simonh@symbian.org>
parents: 792
diff changeset
   387
            
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   388
            <!-- WinsCW binaries, by udeb/urel/lib -->
1037
3011d062ba36 Resolve packaging oddity with missing build.drive fwdslash
Shabe Razvi <shaber@symbian.org>
parents: 1036
diff changeset
   389
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_udeb.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
   390
                <arg value="a"/>
912
5a63512dfd19 quick fix for zipping winscw lib files. Added property 'sf.spec.package.zip.format' for the post-build zip format (default is '7z').
MattD <mattd@symbian.org>
parents: 911
diff changeset
   391
                <arg value="-t${sf.spec.package.zip.format}"/>
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
   392
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
1036
1f465f774089 Fix property typo and add sf-package-tools dependency on sf-merge-manifest
Shabe Razvi <shaber@symbian.org>
parents: 1035
diff changeset
   393
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   394
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
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
   395
                <arg value="-xr!*.sym"/>
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   396
                <arg value="-xr!*.lib"/>
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   397
                <arg value="${build.drive}/output/zips/release/binaries_winscw_udeb.zip"/>
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   398
                <arg value="epoc32\release\winscw\udeb"/>
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   399
            </exec>
1037
3011d062ba36 Resolve packaging oddity with missing build.drive fwdslash
Shabe Razvi <shaber@symbian.org>
parents: 1036
diff changeset
   400
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_urel.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
   401
                <arg value="a"/>
912
5a63512dfd19 quick fix for zipping winscw lib files. Added property 'sf.spec.package.zip.format' for the post-build zip format (default is '7z').
MattD <mattd@symbian.org>
parents: 911
diff changeset
   402
                <arg value="-t${sf.spec.package.zip.format}"/>
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
   403
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
1036
1f465f774089 Fix property typo and add sf-package-tools dependency on sf-merge-manifest
Shabe Razvi <shaber@symbian.org>
parents: 1035
diff changeset
   404
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   405
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
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
   406
                <arg value="-xr!*.sym"/>
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   407
                <arg value="-xr!*.lib"/>
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   408
                <arg value="${build.drive}/output/zips/release/binaries_winscw_urel.zip"/>
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   409
                <arg value="epoc32\release\winscw\urel"/>
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   410
            </exec>
1037
3011d062ba36 Resolve packaging oddity with missing build.drive fwdslash
Shabe Razvi <shaber@symbian.org>
parents: 1036
diff changeset
   411
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_lib.log">
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   412
                <arg value="a"/>
912
5a63512dfd19 quick fix for zipping winscw lib files. Added property 'sf.spec.package.zip.format' for the post-build zip format (default is '7z').
MattD <mattd@symbian.org>
parents: 911
diff changeset
   413
                <arg value="-t${sf.spec.package.zip.format}"/>
5a63512dfd19 quick fix for zipping winscw lib files. Added property 'sf.spec.package.zip.format' for the post-build zip format (default is '7z').
MattD <mattd@symbian.org>
parents: 911
diff changeset
   414
                <arg value="-ir!epoc32/release/winscw/*.lib"/>
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   415
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
1036
1f465f774089 Fix property typo and add sf-package-tools dependency on sf-merge-manifest
Shabe Razvi <shaber@symbian.org>
parents: 1035
diff changeset
   416
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   417
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   418
                <arg value="${build.drive}/output/zips/release/binaries_winscw_lib.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
   419
            </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
   420
            
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   421
            <!-- ARMv5 binaries, by udeb/urel/lib -->
1037
3011d062ba36 Resolve packaging oddity with missing build.drive fwdslash
Shabe Razvi <shaber@symbian.org>
parents: 1036
diff changeset
   422
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_udeb.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
   423
                <arg value="a"/>
912
5a63512dfd19 quick fix for zipping winscw lib files. Added property 'sf.spec.package.zip.format' for the post-build zip format (default is '7z').
MattD <mattd@symbian.org>
parents: 911
diff changeset
   424
                <arg value="-t${sf.spec.package.zip.format}"/>
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
   425
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
1036
1f465f774089 Fix property typo and add sf-package-tools dependency on sf-merge-manifest
Shabe Razvi <shaber@symbian.org>
parents: 1035
diff changeset
   426
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   427
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
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
   428
                <arg value="-xr!*.sym"/>
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   429
                <arg value="${build.drive}/output/zips/release/binaries_armv5_udeb.zip"/>
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   430
                <arg value="epoc32\release\armv5\udeb"/>
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
   431
            </exec>
1037
3011d062ba36 Resolve packaging oddity with missing build.drive fwdslash
Shabe Razvi <shaber@symbian.org>
parents: 1036
diff changeset
   432
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_urel.log">
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   433
                <arg value="a"/>
912
5a63512dfd19 quick fix for zipping winscw lib files. Added property 'sf.spec.package.zip.format' for the post-build zip format (default is '7z').
MattD <mattd@symbian.org>
parents: 911
diff changeset
   434
                <arg value="-t${sf.spec.package.zip.format}"/>
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
   435
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
1036
1f465f774089 Fix property typo and add sf-package-tools dependency on sf-merge-manifest
Shabe Razvi <shaber@symbian.org>
parents: 1035
diff changeset
   436
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   437
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
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
   438
                <arg value="-xr!*.sym"/>
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   439
                <arg value="${build.drive}/output/zips/release/binaries_armv5_urel.zip"/>
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   440
                <arg value="epoc32\release\armv5\urel"/>
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
   441
            </exec>
1037
3011d062ba36 Resolve packaging oddity with missing build.drive fwdslash
Shabe Razvi <shaber@symbian.org>
parents: 1036
diff changeset
   442
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_lib.log">
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   443
                <arg value="a"/>
912
5a63512dfd19 quick fix for zipping winscw lib files. Added property 'sf.spec.package.zip.format' for the post-build zip format (default is '7z').
MattD <mattd@symbian.org>
parents: 911
diff changeset
   444
                <arg value="-t${sf.spec.package.zip.format}"/>
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   445
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
1036
1f465f774089 Fix property typo and add sf-package-tools dependency on sf-merge-manifest
Shabe Razvi <shaber@symbian.org>
parents: 1035
diff changeset
   446
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   447
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   448
                <arg value="-xr!*.sym"/>
937
d01f6a730008 Include armv5 bootloader binaries into lib zipfile.
Shabe Razvi <shaber@symbian.org>
parents: 925
diff changeset
   449
                <arg value="-ir!epoc32/release/armv5/_*.bin"/> <!-- include bootloaders in common lib zipfile -->
911
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   450
                <arg value="${build.drive}/output/zips/release/binaries_armv5_lib.zip"/>
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   451
                <arg value="epoc32\release\armv5\lib"/>
49d8149ba655 Changes to zipping during platform build; binary files are divided into 4 more zips, reducing individual sizes.
Simon Howkins <simonh@symbian.org>
parents: 882
diff changeset
   452
            </exec>
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
   453
        </parallel>
1004
bd44a5c3330c Moving call to sf-package-tools outside the /parallel tag
Chetan Kapoor <chetank@symbian.org>
parents: 1002
diff changeset
   454
        
bd44a5c3330c Moving call to sf-package-tools outside the /parallel tag
Chetan Kapoor <chetank@symbian.org>
parents: 1002
diff changeset
   455
        <runtarget target="sf-package-tools"/>
1035
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   456
        <runtarget target="sf-package-prebuilt"/>
1004
bd44a5c3330c Moving call to sf-package-tools outside the /parallel tag
Chetan Kapoor <chetank@symbian.org>
parents: 1002
diff changeset
   457
        
497
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   458
        <!-- 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
   459
        <antcall target="sf-zip-content">
681
eeab5a04dc46 Updated throughout to use the "temp_build_files" dir on the build drive rather than the "generated" directory in the fbf source tree.
Simon Howkins <simonh@symbian.org>
parents: 680
diff changeset
   460
            <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
497
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   461
            <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
   462
        </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
   463
    </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
   464
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
   465
    <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
   466
        <antcall target="sf-zip-content">
681
eeab5a04dc46 Updated throughout to use the "temp_build_files" dir on the build drive rather than the "generated" directory in the fbf source tree.
Simon Howkins <simonh@symbian.org>
parents: 680
diff changeset
   467
            <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
456
1ba3c86ebec0 Bug 350 RnD binary zips missing all content outside epoc32 tree
Simon Howkins <simonh@symbian.org>
parents: 386
diff changeset
   468
            <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
   469
        </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
   470
    </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
   471
1036
1f465f774089 Fix property typo and add sf-package-tools dependency on sf-merge-manifest
Shabe Razvi <shaber@symbian.org>
parents: 1035
diff changeset
   472
    <target name="sf-package-tools" depends="sf-merge-manifest">
1037
3011d062ba36 Resolve packaging oddity with missing build.drive fwdslash
Shabe Razvi <shaber@symbian.org>
parents: 1036
diff changeset
   473
        <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_tools_epoc32.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
   474
            <arg value="a"/>
912
5a63512dfd19 quick fix for zipping winscw lib files. Added property 'sf.spec.package.zip.format' for the post-build zip format (default is '7z').
MattD <mattd@symbian.org>
parents: 911
diff changeset
   475
            <arg value="-t${sf.spec.package.zip.format}"/>
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
   476
            <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
1037
3011d062ba36 Resolve packaging oddity with missing build.drive fwdslash
Shabe Razvi <shaber@symbian.org>
parents: 1036
diff changeset
   477
            <arg value="-x@/output/temp_build_files/manifest_excludelist.txt"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   478
            <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   479
            <arg value="${build.drive}/output/zips/release/tools_epoc.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
   480
            <arg value="epoc32/tools"/>
838
a1ebf7f8e66f Move gcc into tools_epoc.zip so that syborg/beagle rom building works during build from source only.
Shabe Razvi <shaber@symbian.org>
parents: 822
diff changeset
   481
            <arg value="epoc32/gcc"/>
960
b0315c337be6 Changed packaging so that /epoc/gcc_mingw/** is put into tools_epoc.zip
Simon Howkins <simonh@symbian.org>
parents: 959
diff changeset
   482
            <arg value="epoc32/gcc_mingw"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   483
            <arg value="epoc32/data/buildinfo.txt"/>
1013
d20ad9274826 Include prebuilt features.dat in tools_epoc.zip, as its built via tools2
Shabe Razvi <shaber@symbian.org>
parents: 1009
diff changeset
   484
            <arg value="epoc32/data/config/features.dat"/>
1188
b7b3892c3ce5 Moved further feature database artifacts from binaries zip to tools zip.
Simon Howkins <simonh@symbian.org>
parents: 1183
diff changeset
   485
            <arg value="epoc32/include/featureuids.h"/>
b7b3892c3ce5 Moved further feature database artifacts from binaries zip to tools zip.
Simon Howkins <simonh@symbian.org>
parents: 1183
diff changeset
   486
            <arg value="epoc32/rom/include/feature.iby"/>
b7b3892c3ce5 Moved further feature database artifacts from binaries zip to tools zip.
Simon Howkins <simonh@symbian.org>
parents: 1183
diff changeset
   487
            <arg value="epoc32/rom/include/featuredatabase.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
   488
        </exec>
497
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   489
        <antcall target="sf-zip-content">
681
eeab5a04dc46 Updated throughout to use the "temp_build_files" dir on the build drive rather than the "generated" directory in the fbf source tree.
Simon Howkins <simonh@symbian.org>
parents: 680
diff changeset
   490
            <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
497
63547bf80809 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 492
diff changeset
   491
            <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
   492
        </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
   493
    </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
   494
    
023e28d6bf31 Moved 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
    <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
   496
        <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
   497
            <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
   498
            <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
   499
        </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
   500
        <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
   501
            <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
   502
            <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
   503
        </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
   504
    </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
   505
1035
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   506
    <!-- merge manifests for prebuilt stuff delivered at the start of build process -->
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   507
    <target name="sf-merge-manifest">
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   508
      <echo message="INFO Build drive is ${build.drive} "/>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   509
      <concat destfile="${build.drive}\output\temp_build_files\manifest_excludelist.txt">
1037
3011d062ba36 Resolve packaging oddity with missing build.drive fwdslash
Shabe Razvi <shaber@symbian.org>
parents: 1036
diff changeset
   510
        <fileset dir="${build.drive}" includes="*manifest*" excludes="manifest_excludelist.txt"/>
1035
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   511
      </concat>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   512
       
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   513
       <!-- touch file to update/create it in the event that there are no manifest* files available 
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   514
            as 7z will not be happy being given a non-existent file -->  
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   515
      <touch file="${build.drive}\output\temp_build_files\manifest_excludelist.txt"/>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   516
    </target>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   517
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   518
    <target name="sf-package-prebuilt" depends="sf-merge-manifest">
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   519
    <!-- for each prebuilt manifest* file, repackage -->  
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   520
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   521
      <for param="manifest">
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   522
        <path>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   523
          <fileset dir="${build.drive}\">
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   524
            <include name="manifest*.txt"/>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   525
            <exclude name="manifest*restricted*.txt"/> <!-- dont repack restricted content such as testconfigfileparser -->
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   526
          </fileset>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   527
        </path>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   528
        <!-- strip manifest_ and .txt extension for matched file -->
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   529
        <sequential>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   530
        <propertyregex property="manifest.shortname" override="true" input="@{manifest}" regexp="manifest_(\S+)(.txt)" select="\1" global="true"  casesensitive="false"/>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   531
        <propertyregex property="manifest.fullname"  override="true" input="@{manifest}" regexp="(.*)" select="\1" global="true"  casesensitive="false"/>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   532
        <propertyregex property="manifest.pkgname"   override="true" input="@{manifest}" regexp="manifest_binaries_(\S+)(.txt)" select="\1" global="true"  casesensitive="false"/>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   533
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   534
        <echo message="INFO Packaging ${manifest.fullname} into ${manifest.shortname}.zip"/>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   535
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   536
        <exec executable="7za" dir="${build.drive}/" output="${build.drive}/zip_${manifest.shortname}.log">
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   537
            <arg value="a"/>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   538
            <arg value="-t${sf.spec.package.zip.format}"/>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   539
            <arg value="-i@${manifest.fullname}"/>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   540
            <arg value="${build.drive}/output/zips/release/${manifest.shortname}.zip"/> 
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   541
        </exec>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   542
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   543
        <!-- merge release metadata -->
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   544
        <antcall target="sf-zip-content">
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   545
            <param name="zip.config.file"  value="${temp.build.dir}/zip.cfg.xml.ftl"/>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   546
            <param name="zip.target.name"  value="bin-${manifest.pkgname}-metadata" />
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   547
            <param name="sf.spec.job.name" value="${manifest.pkgname}" />
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   548
        </antcall>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   549
        </sequential>  
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   550
      </for>
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   551
62b7cda1c2bb Add re-packaging for prebuilt binaries into the PDK, driven from a manifest_* file delivered with the prebuilt zip file
Shabe Razvi <shaber@symbian.org>
parents: 1031
diff changeset
   552
    </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
   553
    <!-- 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
   554
    <target name="sf-run-analysis">
861
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 848
diff changeset
   555
        <stopwatch name="sf-run-analysis"/>
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
   556
        <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
   557
        <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
   558
          <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
   559
          <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
   560
          <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
   561
          <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
   562
          <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
   563
        </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
   564
        <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
   565
          <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
   566
            <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
   567
            <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
   568
            </then>
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   569
        </if>
861
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 848
diff changeset
   570
        <stopwatch name="sf-run-analysis" action="elapsed"/>
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
   571
    </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
   572
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   573
    <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
   574
        <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
   575
        <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
   576
            <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
   577
            <arg value="*ant*"/>
914
e4c5389160b3 Fix scan_antlogs.pl execution plus fix ConE calls to use PDT_HOME env variable
Shabe Razvi <shaber@symbian.org>
parents: 882
diff changeset
   578
            <arg value="*stderr*"/>  <!-- helium 7 splits output into stderr logs, so use them also -->
e4c5389160b3 Fix scan_antlogs.pl execution plus fix ConE calls to use PDT_HOME env variable
Shabe Razvi <shaber@symbian.org>
parents: 882
diff changeset
   579
            <arg value="*sbs_error*"/> 
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
   580
        </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
   581
    </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
   582
764
d00048f1b036 Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents: 755
diff changeset
   583
    <target name="sf-run-analysis-raptor">            
809
6d9f7bb4fcec Re-instated call to process raptor logs for BRAG purposes.
Simon Howkins <simonh@symbian.org>
parents: 806
diff changeset
   584
      <!-- Cook the processed raptor logs to produce something in the right format for the BRAG system -->
6d9f7bb4fcec Re-instated call to process raptor logs for BRAG purposes.
Simon Howkins <simonh@symbian.org>
parents: 806
diff changeset
   585
      <mkdir dir="${build.log.dir}/summary/"/>
881
82070405cb6e Remove redundant computation of some BRAG intermediate xml files
Dario Sestito <darios@symbian.org>
parents: 871
diff changeset
   586
      <!-- exec executable="perl" output="${build.log.dir}/summary/sbs_BRAG.xml" logError="yes" failonerror="false">
809
6d9f7bb4fcec Re-instated call to process raptor logs for BRAG purposes.
Simon Howkins <simonh@symbian.org>
parents: 806
diff changeset
   587
        <arg value="${sf.common.config.dir}/tools/brag/sbsToBRAG.pl"/>
6d9f7bb4fcec Re-instated call to process raptor logs for BRAG purposes.
Simon Howkins <simonh@symbian.org>
parents: 806
diff changeset
   588
        <arg value="${build.log.dir}/analysis/*_compile_preprocessed.log"/>
881
82070405cb6e Remove redundant computation of some BRAG intermediate xml files
Dario Sestito <darios@symbian.org>
parents: 871
diff changeset
   589
      </exec -->
809
6d9f7bb4fcec Re-instated call to process raptor logs for BRAG purposes.
Simon Howkins <simonh@symbian.org>
parents: 806
diff changeset
   590
      
907
bab81256b297 Remove Raptor log preprocessing as no longer needed
Dario Sestito <darios@symbian.org>
parents: 906
diff changeset
   591
      <echo message="Running UH parser on *_compile.log files"/>
906
5239d4d0bed1 Take the UH parser from the utilities repo
Dario Sestito <darios@symbian.org>
parents: 882
diff changeset
   592
      <apply executable="perl" dir="${build.drive}/utilities/uh_parser" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" parallel="true">
764
d00048f1b036 Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents: 755
diff changeset
   593
        <arg value="uh.pl"/>
942
dabd7af4f869 Remove call to releaseables.pl script as now UH parser handles releaseables as well
Dario Sestito <darios@symbian.org>
parents: 937
diff changeset
   594
        <arg value="-m"/>
764
d00048f1b036 Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents: 755
diff changeset
   595
        <arg value="--basedir=${build.log.dir}"/>
907
bab81256b297 Remove Raptor log preprocessing as no longer needed
Dario Sestito <darios@symbian.org>
parents: 906
diff changeset
   596
        <fileset dir="${build.log.dir}">
bab81256b297 Remove Raptor log preprocessing as no longer needed
Dario Sestito <darios@symbian.org>
parents: 906
diff changeset
   597
          <include name="*_compile.log"/>
1041
705ebddb2efc Include explicit export log in tsv file creation
Shabe Razvi <shaber@symbian.org>
parents: 1037
diff changeset
   598
          <include name="*_export.log"/>  <!-- for explicit export step -->
907
bab81256b297 Remove Raptor log preprocessing as no longer needed
Dario Sestito <darios@symbian.org>
parents: 906
diff changeset
   599
          <exclude name="*build_check_compile.log"/>
764
d00048f1b036 Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents: 755
diff changeset
   600
        </fileset>
d00048f1b036 Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents: 755
diff changeset
   601
      </apply>
383
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   602
          
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   603
      <!-- 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
   604
      <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
   605
        <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
   606
          <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
   607
            <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
   608
          </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
   609
        </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
   610
        <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
   611
          <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
   612
            <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
   613
          </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
   614
        </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
   615
      </for>
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   616
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   617
      <!-- Cook the raptor analysis further to produce something in the right format for the BRAG system -->
882
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 881
diff changeset
   618
      <exec executable="perl" output="${build.log.dir}/summary/Uh_BRAG.xml" logError="yes">
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 881
diff changeset
   619
        <arg value="${sf.common.config.dir}/tools/brag/uh2brag.pl"/>
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 881
diff changeset
   620
        <arg value="--index"/>
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 881
diff changeset
   621
        <arg value="${build.log.dir}/html/index.html"/>
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   622
      </exec>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents: 546
diff changeset
   623
      <!-- 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
   624
      <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
   625
    </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
   626
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents: 640
diff changeset
   627
    <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
   628
      <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
   629
      <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
   630
        <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
   631
          <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
   632
            <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
   633
            <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
   634
          </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
   635
        </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
   636
        <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
   637
          <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
   638
          <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
   639
          <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
   640
          <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
   641
            <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
   642
            <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
   643
            <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
   644
          </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
   645
          <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
   646
            <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
   647
            <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
   648
            <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
   649
          </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
   650
        </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
   651
      </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
   652
      
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents: 640
diff changeset
   653
      <!-- 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
   654
      <mkdir dir="${build.log.dir}/summary/"/>
881
82070405cb6e Remove redundant computation of some BRAG intermediate xml files
Dario Sestito <darios@symbian.org>
parents: 871
diff changeset
   655
      <!-- exec executable="perl" output="${build.log.dir}/summary/Yarp_BRAG.xml" logError="yes">
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents: 640
diff changeset
   656
        <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
   657
        <arg value="${build.log.dir}/analysis/*_yarp.csv"/>
881
82070405cb6e Remove redundant computation of some BRAG intermediate xml files
Dario Sestito <darios@symbian.org>
parents: 871
diff changeset
   658
      </exec -->
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents: 640
diff changeset
   659
      
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
   660
      <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
   661
        <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
   662
        <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
   663
      </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
   664
      <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
   665
    </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
   666
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   667
    <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
   668
        <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
   669
          <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
   670
            <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
   671
            <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
   672
          </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
   673
          <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
   674
          <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
   675
            <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
   676
            <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
   677
          </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
   678
        </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
   679
    </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
   680
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   681
    <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
   682
        <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
   683
        <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
   684
            <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
   685
            <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
   686
        </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
   687
    </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
   688
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   689
    <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
   690
        <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
   691
        <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
   692
            <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
   693
            <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
   694
        </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
   695
    </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
   696
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   697
    <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
   698
        <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
   699
        <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
   700
            <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
   701
            <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
   702
            <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
   703
            <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
   704
        </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
   705
    </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
   706
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   707
    <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
   708
        <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
   709
            <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
   710
            <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
   711
            <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
   712
            <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
   713
            <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
   714
        </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
   715
    </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
   716
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   717
    <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
   718
        <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
   719
        <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
   720
            <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
   721
            <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
   722
        </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
   723
    </target>
1050
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   724
    
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   725
    <target name="sf-run-analysis-diamonds">
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   726
      <if>
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   727
        <istrue value="${sf.spec.publish.enable}"/>
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   728
        <then>
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   729
          <echo>[SF-RUN-ANALYSIS-DIAMONDS]</echo>
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   730
          <echo message="Translate \output\logs\html\index.html into a Diamonds file"/>
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   731
          <exec executable="perl" dir="${build.drive}">
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   732
            <arg value="${sf.common.config.dir}/tools/uh2diamonds.pl"/>
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   733
          </exec>
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   734
          <echo message="Send ${build.log.dir}/diamonds_uh.xml to Diamonds"/>
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   735
          <exec executable="python">
1084
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   736
            <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   737
            <arg value="-u"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   738
            <arg value="http://${diamonds.host}${diamonds.build.id}"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   739
            <arg value="-f"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   740
            <arg value="${build.log.dir}/diamonds_uh.xml"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents: 1082
diff changeset
   741
          </exec>
1050
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   742
        </then>
34dcbee2af5e Fix: Diamonds summary build info should be more related to the raptor build breakdown from the UH parser
Dario Sestito <darios@symbian.org>
parents: 1041
diff changeset
   743
      </if>
695
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
   744
    </target>
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
   745
    
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
   746
    <target name="sf-links-to-diamonds">
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
   747
      <fmpp sourceFile="${sf.common.config.dir}/diamonds/linksForDiamonds.xml.ftl" outputFile="${build.log.dir}/linksForDiamonds.xml">
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
   748
        <data expandProperties="yes">
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
   749
          ant: antProperties()
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
   750
        </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
   751
      </fmpp>
600
01511de51fcd Add link in Diamonds to read the BAG status from _brag.xml.
Arnaud Lenoir
parents: 599
diff changeset
   752
      <!-- Send the data to the server -->
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   753
      <exec executable="python">
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   754
        <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   755
        <arg value="-u"/>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   756
        <arg value="http://${diamonds.host}${diamonds.build.id}"/>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   757
        <arg value="-f"/>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   758
        <arg value="${build.log.dir}/linksForDiamonds.xml"/>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   759
      </exec>
1183
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   760
      
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   761
      <echo message="report&#x0009;Summary,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/summary/_brag.xml,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   762
      <echo message="report&#x0009;Raptor Build Summary,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/html/index.html,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   763
      <echo message="report&#x0009;Build BOM,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/build_BOM.zip,file${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   764
      <echo message="report&#x0009;Build Logs,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/build_logs.zip,file${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   765
      <if><and><equals arg1="${sf.spec.smoketest.enable}" arg2="true"/><equals arg1="${sf.spec.ats.version}" arg2="ats3"/></and><then>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   766
        <echo message="report&#x0009;Smoke Test Report,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/ats_reports/ATS3Report.html,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   767
      </then></if>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   768
      <if><and><equals arg1="${sf.spec.smoketest.enable}" arg2="true"/><equals arg1="${sf.spec.ats.version}" arg2="ats4"/></and><then>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   769
        <echo message="report&#x0009;Smoke Test Report,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/ats_reports/simplelogger/testreport.xml,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   770
      </then></if>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   771
      <if><and><equals arg1="${sf.spec.bccheck.enable}" arg2="true"/><equals arg1="${sf.spec.bccheck.enable.ha}" arg2="true"/></and><then>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   772
        <echo message="report&#x0009;Binary Compatibility Report (Headerfiles),http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/BC/headers_report.xml,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   773
      </then></if>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   774
      <if><and><equals arg1="${sf.spec.bccheck.enable}" arg2="true"/><equals arg1="${sf.spec.bccheck.enable.la}" arg2="true"/></and><then>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   775
        <echo message="report&#x0009;Binary Compatibility Report (Libraries),http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/BC/libraries_report.xml,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   776
      </then></if>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   777
      <if><equals arg1="${sf.spec.bccheck.enable.dynamic}" arg2="true"/><then>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   778
        <echo message="report&#x0009;Dynamic BC Test Reports,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/ats_reports/index.html,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
   779
      </then></if>
695
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
   780
    </target>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   781
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   782
    <target name="sf-merge-brag">
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   783
        <!-- Merge all our bits of XML together -->
680
81550e87fc91 Moved the generation of the release metadata entry for the MD5 zip outside of
Simon Howkins <simonh@symbian.org>
parents: 678
diff changeset
   784
        <exec executable="perl" output="${build.log.dir}/summary/_BRAG.xml" logError="true">
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   785
            <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
   786
            <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
   787
            <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
   788
            <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
   789
        </exec>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   790
    </target>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   791
959
8dfe67a9e2fe Adding sf-merge-brag target
Chetan Kapoor <chetank@symbian.org>
parents: 942
diff changeset
   792
    <target name="sf-brag-to-diamonds">
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   793
        <!-- 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
   794
        <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
   795
            <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
   796
            <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
   797
            <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
   798
            <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
   799
            <arg value="-OUT"/>
1178
448665667824 Generate diamonds-status.xml so that newer Helium versions set it as BRAG status.
Shabe Razvi <shaber@symbian.org>
parents: 1172
diff changeset
   800
            <arg value="${build.log.dir}/diamonds-status.xml"/>
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   801
        </java>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   802
        <if>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   803
            <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
   804
            <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
   805
                <!-- 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
   806
                <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
   807
                <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
   808
                   <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
   809
                </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
   810
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   811
                <!-- 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
   812
                <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
   813
                    <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
   814
                    <then>
27e421bea313 Sorted out misalignment between capture of diamonds build id and its re-use.
Simon Howkins <simonh@symbian.org>
parents: 592
diff changeset
   815
                        <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
   816
                    </then>
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   817
                </if>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   818
                <if>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   819
                    <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
   820
                    <then>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   821
                        <!-- 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
   822
                        <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
   823
                            <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/>
784
9791b89d932a Fix Diamonds links are no longer appearing
Dario Sestito <darios@symbian.org>
parents: 778
diff changeset
   824
                            <arg value="-u"/>
9791b89d932a Fix Diamonds links are no longer appearing
Dario Sestito <darios@symbian.org>
parents: 778
diff changeset
   825
                            <arg value="http://${diamonds.host}${diamonds.build.id}"/>
9791b89d932a Fix Diamonds links are no longer appearing
Dario Sestito <darios@symbian.org>
parents: 778
diff changeset
   826
                            <arg value="-f"/>
1178
448665667824 Generate diamonds-status.xml so that newer Helium versions set it as BRAG status.
Shabe Razvi <shaber@symbian.org>
parents: 1172
diff changeset
   827
                            <arg value="${build.log.dir}/diamonds-status.xml"/>
592
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   828
                        </exec>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   829
                    </then>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   830
                    <else>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   831
                        <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
   832
                    </else>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   833
                </if>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   834
            </then>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   835
        </if>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   836
    </target>
85da6704f82d Added target to push a collated and calculated BRAG status to diamonds.
Simon Howkins <simonh@symbian.org>
parents: 589
diff changeset
   837
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
   838
    <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
   839
        <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
   840
    </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
   841
1172
94015cd3cb74 Fix: sf-diamondize-bom target is run twice
Dario Sestito <darios@symbian.org>
parents: 1169
diff changeset
   842
    <target name="sf-compare-to-baseline" depends="sf-check-utilities-dir" if="sf-utilities-available">
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
   843
        <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
   844
        <delete file="${sf.releasenotes.wiki.txt}"/>
985
0c73a8e8c626 Added commands to invoke new release note generator.
Simon Howkins <simonh@symbian.org>
parents: 960
diff changeset
   845
        <!-- FCL Usage and Changesets -->
0c73a8e8c626 Added commands to invoke new release note generator.
Simon Howkins <simonh@symbian.org>
parents: 960
diff changeset
   846
        <exec executable="perl" dir="${build.drive}" output="${sf.releasenotes.wiki.txt}">
999
c5fcafe43a98 Told perl where to look for libraries, so that Text::CSV can be located even when the script is in utilities, and the module is in an fbf repo.
Simon Howkins <simonh@symbian.org>
parents: 985
diff changeset
   847
            <arg value="-I"/>
c5fcafe43a98 Told perl where to look for libraries, so that Text::CSV can be located even when the script is in utilities, and the module is in an fbf repo.
Simon Howkins <simonh@symbian.org>
parents: 985
diff changeset
   848
            <arg value="${sf.common.config.dir}/tools/lib"/>
985
0c73a8e8c626 Added commands to invoke new release note generator.
Simon Howkins <simonh@symbian.org>
parents: 960
diff changeset
   849
            <arg value="${build.drive}/utilities/releaseAutomation/releaseNotes.pl"/>
999
c5fcafe43a98 Told perl where to look for libraries, so that Text::CSV can be located even when the script is in utilities, and the module is in an fbf repo.
Simon Howkins <simonh@symbian.org>
parents: 985
diff changeset
   850
            <arg value="--sources=${build.log.dir}/BOM/sources.csv"/>
c5fcafe43a98 Told perl where to look for libraries, so that Text::CSV can be located even when the script is in utilities, and the module is in an fbf repo.
Simon Howkins <simonh@symbian.org>
parents: 985
diff changeset
   851
            <arg value="--baseline=${sf.previous.pdk.tag}"/>
985
0c73a8e8c626 Added commands to invoke new release note generator.
Simon Howkins <simonh@symbian.org>
parents: 960
diff changeset
   852
        </exec>
743
19d0e93b3fe4 Switched to using revised Package/FCL analysis script.
Simon Howkins <simonh@symbian.org>
parents: 716
diff changeset
   853
        <!-- Package Comparison and FCL Usage -->
985
0c73a8e8c626 Added commands to invoke new release note generator.
Simon Howkins <simonh@symbian.org>
parents: 960
diff changeset
   854
        <exec executable="perl" dir="${sf.spec.sourcesync.sourcespecdir}" output="${sf.releasenotes.wiki.txt}" append="true">
743
19d0e93b3fe4 Switched to using revised Package/FCL analysis script.
Simon Howkins <simonh@symbian.org>
parents: 716
diff changeset
   855
            <arg value="${build.drive}/utilities/releaseAutomation/packageComparison.pl"/>
19d0e93b3fe4 Switched to using revised Package/FCL analysis script.
Simon Howkins <simonh@symbian.org>
parents: 716
diff changeset
   856
            <arg value="--sources=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
985
0c73a8e8c626 Added commands to invoke new release note generator.
Simon Howkins <simonh@symbian.org>
parents: 960
diff changeset
   857
            <arg value="--sysdef=${sf.spec.sourcesync.sourcespecdir}/sysdefs/system_model.xml"/>
0c73a8e8c626 Added commands to invoke new release note generator.
Simon Howkins <simonh@symbian.org>
parents: 960
diff changeset
   858
            <arg value="--sysdef=${sf.spec.sourcesync.sourcespecdir}/sysdefs/system_model_os.xml"/>
0c73a8e8c626 Added commands to invoke new release note generator.
Simon Howkins <simonh@symbian.org>
parents: 960
diff changeset
   859
            <arg value="--sysdef=${sf.spec.sourcesync.sourcespecdir}/sysdefs/system_model_s60.xml"/>
743
19d0e93b3fe4 Switched to using revised Package/FCL analysis script.
Simon Howkins <simonh@symbian.org>
parents: 716
diff changeset
   860
            <arg value="--baseline=${sf.previous.pdk.tag}"/>
501
e918b03176d3 Add execution of fcls4releasenotes.pl in build system.
Arnaud Lenoir
parents: 497
diff changeset
   861
        </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
   862
        <!-- Mercurial comparison -->
503
a3b781744ed8 Used ${line.separator} to make (more) echo tasks more readable.
Simon Howkins <simonh@symbian.org>
parents: 502
diff changeset
   863
        <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
   864
        <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
   865
            <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
   866
            <then>
503
a3b781744ed8 Used ${line.separator} to make (more) echo tasks more readable.
Simon Howkins <simonh@symbian.org>
parents: 502
diff changeset
   867
                <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
   868
                <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
   869
                    <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
   870
                    <then>
502
8e7e1064493f Used ${line.separator} to make echo tasks more readable.
Simon Howkins <simonh@symbian.org>
parents: 501
diff changeset
   871
                        <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
   872
                    </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
   873
                    <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
   874
                        <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
   875
                            <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
   876
                            <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
   877
                            <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
   878
                            <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
   879
                        </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
   880
                    </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
   881
                </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
   882
            </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
   883
            <else>
502
8e7e1064493f Used ${line.separator} to make echo tasks more readable.
Simon Howkins <simonh@symbian.org>
parents: 501
diff changeset
   884
                <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
   885
            </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
   886
        </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
   887
        
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
   888
        <!-- 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
   889
        <!-- 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
   890
        <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
   891
    </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
   892
491
e73243604097 Bug 384 Platform build should output all PDK releasables into one directory
Simon Howkins <simonh@symbian.org>
parents: 474
diff changeset
   893
    <!-- 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
   894
    <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
   895
        <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
   896
            <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
   897
            <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
   898
                <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
   899
                <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
   900
                    <include name="output/logs/**"/>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   901
                    <exclude name="output/logs/BC/**"/>
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
   902
                    <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
   903
                    <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
   904
                    <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
   905
                </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
   906
                <!-- workaround for the time when when 'sf-run-analysis-raptor' has not been run -->
1082
372b86ab2b52 Fix: package build fail because there is no package_definitions dir
Dario Sestito <darios@symbian.org>
parents: 1080
diff changeset
   907
                <mkdir dir="${build.drive}/output/logs/releaseables"/>
1191
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   908
                <if>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   909
                    <available file="${build.drive}/output/logs/package_definitions" type="dir"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   910
                    <then>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   911
                        <zip destfile="${build.output.dir}/zips/release/build_BOM.zip">
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   912
                            <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   913
                            <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   914
                            <zipfileset dir="${build.drive}/output/logs" prefix="build_info/logs/BOM">
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   915
                                <include name="envinfo.txt"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   916
                            </zipfileset>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   917
                            <zipfileset dir="${build.drive}/output/logs/package_definitions" prefix="build_info/package_definitions"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   918
                        </zip>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   919
                    </then>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   920
                    <else>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   921
                        <zip destfile="${build.output.dir}/zips/release/build_BOM.zip">
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   922
                            <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   923
                            <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   924
                            <zipfileset dir="${build.drive}/output/logs" prefix="build_info/logs/BOM">
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   925
                                <include name="envinfo.txt"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   926
                            </zipfileset>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   927
                        </zip>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   928
                    </else>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
   929
                </if>
664
29955a149536 Bug 478: build_*.zip missing from generated release_metadata.xml
Simon Howkins <simonh@symbian.org>
parents: 649
diff changeset
   930
                <antcall target="sf-zip-content">
681
eeab5a04dc46 Updated throughout to use the "temp_build_files" dir on the build drive rather than the "generated" directory in the fbf source tree.
Simon Howkins <simonh@symbian.org>
parents: 680
diff changeset
   931
                    <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
664
29955a149536 Bug 478: build_*.zip missing from generated release_metadata.xml
Simon Howkins <simonh@symbian.org>
parents: 649
diff changeset
   932
                    <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
   933
                </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
   934
            </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
   935
        </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
   936
     </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
   937
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   938
    <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
   939
        <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
   940
           <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
   941
        </copy>
768
edc6746cee45 Publish HTML files summary of Raptor build
Dario Sestito <darios@symbian.org>
parents: 764
diff changeset
   942
        <mkdir dir="${publish.dir}/html"/>
edc6746cee45 Publish HTML files summary of Raptor build
Dario Sestito <darios@symbian.org>
parents: 764
diff changeset
   943
        <copy todir="${publish.dir}/html" preservelastmodified="true" failonerror="false">
edc6746cee45 Publish HTML files summary of Raptor build
Dario Sestito <darios@symbian.org>
parents: 764
diff changeset
   944
           <fileset dir="${build.log.dir}/html"><include name="*.html"/></fileset>
edc6746cee45 Publish HTML files summary of Raptor build
Dario Sestito <darios@symbian.org>
parents: 764
diff changeset
   945
        </copy>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   946
        <mkdir dir="${publish.dir}/BC"/>
773
6a54b486a5b4 Added Static BC reports for Platform Builds
Maciej Seroka <maciejs@symbian.org>
parents: 768
diff changeset
   947
        <copy todir="${publish.dir}/BC" preservelastmodified="true" failonerror="false">
6a54b486a5b4 Added Static BC reports for Platform Builds
Maciej Seroka <maciejs@symbian.org>
parents: 768
diff changeset
   948
           <fileset dir="${build.log.dir}/BC/">
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   949
               <include name="BBCResults.xsl"/>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   950
               <include name="headers_report.xml"/>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   951
               <include name="libraries_report.xml"/>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   952
           </fileset>
773
6a54b486a5b4 Added Static BC reports for Platform Builds
Maciej Seroka <maciejs@symbian.org>
parents: 768
diff changeset
   953
        </copy>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   954
        <mkdir dir="${publish.dir}/ats_reports"/>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   955
        <copy file="${sf.common.config.dir}/tools/ats/report_dummy.html" tofile="${publish.dir}/ats_reports/index.html" failonerror="false"/>
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
   956
    </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
   957
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   958
    <!-- TODO: Make this work for package builds once we have sysmodel story worked out -->
871
ef25bf39d67c sf-run-analysis-missing-files - changed to depend on a new undefined parameter 'sf.spec.checkbuild' so that it can be turned on and off
MattD <mattd@symbian.org>
parents: 864
diff changeset
   959
    <target name="sf-run-analysis-missing-files" if="sf.spec.checkbuild">
1169
5fafe4f9fda8 Removed code which redundantly checks values of sf.spec.splitbuild, sf.spec.os.skipbuild, and sf.spec.s60.skipbuild.
Simon Howkins <simonh@symbian.org>
parents: 1112
diff changeset
   960
        <runtarget target="sf-check-missing-os-files"/>
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   961
    </target>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   962
    
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
   963
    <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
   964
        <hlm:argSet id="sbs.check.tools.var">
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   965
            <hlm:arg name="config" value="${sf.spec.sbs.tools.config}" />
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   966
            <hlm:arg name="run-check" value="true" />
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   967
        </hlm:argSet>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   968
     
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   969
        <hlm:argSet id="sbs.check.main.var">
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   970
            <hlm:arg name="config" value="${sf.spec.sbs.config}" />
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   971
            <hlm:arg name="run-check" value="true" />
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   972
        </hlm:argSet>     
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   973
        <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
   974
            <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
   975
            <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
   976
            <param name="build.id" value ="sbs_check"/>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
   977
            <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
   978
            <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
   979
            <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
   980
        </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
   981
        <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
   982
          <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
   983
            <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
   984
              <sequential>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   985
                <echo message="INFO [Iterative check] @{sf.spec.check.splitconfig}"/>
637
3effbd6728d4 Modified sf-check-missing-os-files to deal with 'sf.os.compile.iterate' property. Added new target 'sf-compile-options' for setting the gmake sbs compile option, and added it as a dep for the compile targets.
MattD <mattd@symbian.org>
parents: 628
diff changeset
   986
                <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
   987
                    <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
   988
                    <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
   989
                </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
   990
  
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
   991
                <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
   992
                    <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
   993
                    <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
   994
                    <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
   995
                    <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
   996
                    <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
   997
                    <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
   998
                </antcall>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
   999
              </sequential>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
  1000
            </for>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
  1001
          </then>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
  1002
          <else>
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
  1003
          <antcall target="compile-main" inheritAll="false" inheritRefs="true">
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
  1004
            <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
  1005
            <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
  1006
            <param name="build.id" value ="sbs_check"/>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
  1007
            <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
  1008
            <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
  1009
            <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
  1010
          </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
  1011
        </else>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
  1012
      </if> 
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
  1013
    </target>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
  1014
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
  1015
    <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
  1016
        <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
  1017
            <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
  1018
            <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
  1019
                <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
  1020
                <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
  1021
            </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
  1022
        </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
  1023
        
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
  1024
        <!-- 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
  1025
        <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
  1026
            <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
  1027
            <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
  1028
                <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
  1029
                <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
  1030
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
  1031
                <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
  1032
                <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
  1033
            </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
  1034
        </if>
1009
94890205b399 buildinfo.txt now zipped up in tools_epoc.zip to make it more available for those wishing to build the platform.
Simon Howkins <simonh@symbian.org>
parents: 1005
diff changeset
  1035
        <runtarget target="sf-merge-brag"/>
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
  1036
        <runtarget target="sf-zip-logs"/>
695
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
  1037
                
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
  1038
        <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
  1039
            <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
  1040
            <then>
695
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
  1041
                <echo message="Send links to Diamonds"/>
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
  1042
                <runtarget target="sf-links-to-diamonds"/>
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
  1043
                <echo message="Send BRAG status information to Diamonds"/>
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
  1044
                <runtarget target="sf-brag-to-diamonds"/>
1eaeee12c3d1 Send to Diamonds only 3 links: brag, build bom, build logs
Dario Sestito <darios@symbian.org>
parents: 685
diff changeset
  1045
                
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
  1046
                <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
  1047
                <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
  1048
            </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
  1049
        </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
  1050
    </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
  1051
573
02a549e2960d Added helium target sf-run-sfl-licence-munging for Public PDK creation.
chetank
parents: 547
diff changeset
  1052
    <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
  1053
        <echo message="Running SFL Licence Munging writing log to ${build.log.dir}"/>
744
22e6c7258a80 Added call to munge license headers at the top of the postbuild phase, so it should be done within the platorm build.
Simon Howkins <simonh@symbian.org>
parents: 743
diff changeset
  1054
        <stopwatch name="munge" action="start"/>
573
02a549e2960d Added helium target sf-run-sfl-licence-munging for Public PDK creation.
chetank
parents: 547
diff changeset
  1055
        <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
  1056
          <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
  1057
        </exec>
744
22e6c7258a80 Added call to munge license headers at the top of the postbuild phase, so it should be done within the platorm build.
Simon Howkins <simonh@symbian.org>
parents: 743
diff changeset
  1058
        <stopwatch name="munge" action="total"/>
504
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
  1059
    </target>
4c61a133fe59 Add sbs --check to Platform build analysis.
Shabe Razvi <shaber@symbian.org>
parents: 503
diff changeset
  1060
792
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1061
    <target name="sf-copy-rom-logs">
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1062
        <property name="sf.rombuild.dir" value="${build.drive}/epoc32/rom/"/>
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1063
        <!-- copy log files for each variant we have -->
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1064
        <echo message="build.log.dir= ${build.log.dir}"/>
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1065
        <echo message="sf.rombuild.dir= ${sf.rombuild.dir}"/>
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1066
        <echo message="sf.spec.referenceroms.variant= ${sf.spec.referenceroms.variant}"/>
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1067
        
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1068
        <copy todir="${build.log.dir}" preservelastmodified="true" failonerror="false">
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1069
            <fileset dir="${sf.rombuild.dir}/${sf.spec.referenceroms.variant}/"><include name="*ROMBUILD.LOG"/></fileset>
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1070
        </copy>
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1071
        
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1072
        <copy todir="${build.log.dir}" preservelastmodified="true" failonerror="false">
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1073
            <fileset dir="${sf.rombuild.dir}/${sf.spec.referenceroms.variant}/"><include name="*rom.oby"/></fileset>
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1074
        </copy>
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1075
    </target>
893b85cda81b Removed code for building ROMs (now done by Raptor) but added code for publishing ROM building logs.
Arnaud Lenoir <arnaudl@symbian.org>
parents: 791
diff changeset
  1076
956
aabab255ad7b Add new sf-build-roms target to invoke iMaker rom building
Shabe Razvi <shaber@symbian.org>
parents: 942
diff changeset
  1077
    <target name="sf-build-roms">
1191
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1078
        <!-- find out if this is an arm build, if it is, then build roms -->
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1079
        <propertyregex property="sf.is.arm.build"  override="true" input="${sf.spec.sbs.config}" regexp="(arm.*)" replace="true" casesensitive="false"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1080
    
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1081
        <if><isset property="sf.is.arm.build"/> 
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1082
        <then>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1083
            <mkdir dir="${roms.log.dir}"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1084
            <echo message="INFO Building Syborg MiniGUI stripped ROM"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1085
            <exec executable="cmd" dir="${build.drive}/epoc32/rom" failonerror="false">
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1086
                <arg value="/c"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1087
                <arg value="buildrom syborg minigui-stripped"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1088
            </exec>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1089
            <if>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1090
                <!-- is iMaker rom building enabled? -->
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1091
                <istrue value="${sf.spec.referenceroms.createimages.enable}" />
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1092
                <then>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1093
                    <echo message="INFO Building iMaker configurations"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1094
                    <runtarget target="build-roms"/>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1095
                </then>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1096
            </if>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1097
        </then>
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1098
        </if>        
956
aabab255ad7b Add new sf-build-roms target to invoke iMaker rom building
Shabe Razvi <shaber@symbian.org>
parents: 942
diff changeset
  1099
    </target>
1108
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1100
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1101
    <!-- Transform BRAG xslt and display status at the end of the build -->
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1102
    <target name="sf-build-summary">
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1103
    <delete dir="${build.drive}/output/logs/summary/">
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1104
      <include name="**/*.html"/>
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1105
    </delete>
1191
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1106
     <xslt basedir="${build.drive}/output/logs/summary" destdir="${temp.build.dir}" extension=".html" style="brag.xsl"/>    
1108
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1107
    <loadfile srcFile="${temp.build.dir}/_BRAG.html" property="sf.brag.status">
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1108
    <filterchain>
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1109
      <linecontainsregexp>
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1110
        <regexp pattern="(BLACK|RED|AMBER|GREEN)"/>
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1111
      </linecontainsregexp>
1191
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1112
      <trim/>
1108
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1113
      <striplinebreaks/>
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1114
      <deletecharacters chars="\&gt;\&lt;\h2\h1\/"/>
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1115
    </filterchain>
1191
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1116
    </loadfile>    
1112
befa266a0393 Fix location of brag.xsl and point to correct top level summary
Shabe Razvi <shaber@symbian.org>
parents: 1108
diff changeset
  1117
    <echo message="BRAG STATUS: [${sf.brag.status}] - full build details available at ${build.drive}\output\logs\summary\_BRAG.xml"/>
1183
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
  1118
    
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
  1119
    <!-- record brag information in BIT file -->
6c7fc7463871 Add reports and brag info to BIT db
Dario Sestito <darios@symbian.org>
parents: 1178
diff changeset
  1120
    <echo message="build_brag&#x0009;${sf.brag.status}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
1191
5796b6eeacd9 Enable MiniGUI stripped ROM building for ARMv5 builds
Shabe Razvi <shaber@symbian.org>
parents: 1190
diff changeset
  1121
    </target>
1108
09255e80a1ec Transform and echo BRAG value to console
Shabe Razvi <shaber@symbian.org>
parents: 1084
diff changeset
  1122
360
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
  1123
</project>