common/build.postbuild.xml
author Simon Howkins <simonh@symbian.org>
Fri, 01 Oct 2010 16:54:01 +0100
changeset 1276 fdcfee9c5b0d
parent 1275 5a935138ebeb
child 1277 06a4d69b725f
permissions -rw-r--r--
Bug 3748: Please separate ROM images into a separate zip file \epoc32\rom\* and \epoc32\rombuild\* now in separate archive (apart from items which are included in the tools zip)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
     2
<project name="SF-POSTBUILD" xmlns:hlm="http://www.nokia.com/helium">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
     3
    <target name="sf-postbuild" depends="sf-build-roms">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
     4
        <stopwatch name="sf-postbuild"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
     5
        <echo>[SF-POSTBUILD]</echo>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
     6
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
     7
        <if><istrue value="${sf.relicense.exported.headers}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
     8
        <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
     9
            <runtarget target="sf-run-sfl-licence-munging"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    10
        </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    11
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    12
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    13
        <parallel>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    14
            <!-- TAG SOURCE CODE -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    15
            <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    16
                <istrue value="${sf.spec.tagafterbuild.enable}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    17
                <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    18
                    <echo message="Apply tag to the source code used in this build"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    19
                    <runtarget target="sf-tag-hg-code"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    20
                </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    21
            </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    22
            
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    23
            <!-- Create MD5s -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    24
            <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    25
                <istrue value="${sf.spec.md5.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    26
                <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    27
                    <echo message="INFO Creating MD5s"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    28
                    <runtarget target="sf-run-evalid"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    29
                </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    30
            </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    31
            
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    32
            <!-- Package up the binaries we built -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    33
            <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    34
                <istrue value="${sf.spec.package.bin.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    35
                <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    36
                    <stopwatch name="sf-postbuild packaging binaries"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    37
                    <echo message="INFO Packaging Binaries"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    38
                    <runtarget target="sf-package-binary"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    39
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    40
                    <echo message="INFO Validate Zip files"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    41
                    <runtarget target="sf-package-validate"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    42
                    <stopwatch name="sf-postbuild packaging binaries" action="elapsed"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    43
                </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    44
            </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    45
            
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    46
            <!-- run build analysis tools -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    47
            <runtarget target="sf-run-analysis"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    48
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    49
            <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    50
                <istrue value="${sf.spec.publish.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    51
                <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    52
                    <!-- Generate reports to compare this build to a previous one -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    53
                    <runtarget target="sf-compare-to-baseline"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    54
                </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    55
            </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    56
        </parallel>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    57
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    58
        <!-- Generate release_metadata entries for the md5 zips -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    59
        <antcall target="sf-zip-content">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    60
            <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    61
            <param name="zip.target.name" value="md5-just-metadata" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    62
        </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    63
 
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    64
        <!-- Launch smoketest -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    65
        <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    66
            <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    67
                <runtarget target="sf-build-smoketestpkg"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    68
                <runtarget target="sf-send-testpkg"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    69
            </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    70
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    71
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    72
        <!-- Launch BC check -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    73
        <if><istrue value="${sf.spec.bccheck.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    74
            <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    75
                <runtarget target="sf-bc-check"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    76
            </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    77
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    78
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    79
        <!-- Launch package tests -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    80
        <if><istrue value="${sf.spec.package.test.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    81
            <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    82
                <runtarget target="sf-test-package"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    83
            </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    84
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    85
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    86
        <!-- copy log files linked to the generation of roms for REE -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    87
        <runtarget target="sf-copy-rom-logs"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    88
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    89
        <runtarget target="sf-merge-brag"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    90
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    91
        <!-- Zip up all the logs -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    92
        <runtarget target="sf-zip-logs"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    93
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    94
        <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    95
            <istrue value="${sf.spec.publish.enable}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    96
            <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    97
                <echo message="Send links to Diamonds"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    98
                <runtarget target="sf-links-to-diamonds"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
    99
                <echo message="Send BRAG status information to Diamonds"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   100
                <runtarget target="sf-brag-to-diamonds"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   101
                
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   102
                <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   103
                <runtarget target="sf-publish"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   104
            </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   105
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   106
        <stopwatch name="sf-postbuild" action="elapsed"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   107
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   108
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   109
    <target name="sf-tag-hg-code">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   110
        <!-- To do the tagging, we need to know what tag to use, and who the author is (from hg's perspective) -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   111
        <fail message="This target needs to have all the details specified, or to be run interactively so it can query the user">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   112
            <condition>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   113
                <and>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   114
                    <isset property="sf.hudson.executor.number"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   115
                    <not>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   116
                        <or>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   117
                            <isset property="sf.tagafterbuild.tag"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   118
                            <isset property="sf.hg.ui.username"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   119
                        </or>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   120
                    </not>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   121
                </and>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   122
            </condition>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   123
        </fail>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   124
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   125
        <!-- Ask the user, interactively, what tag to use -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   126
        <input addproperty="sf.tagafterbuild.tag" message="Enter the tag to apply to the code (eg &quot;PDK_1.0.1&quot;):"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   127
        <fail message="No tag supplied">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   128
            <condition>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   129
                <length string="${sf.tagafterbuild.tag}" trim="true" length="0"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   130
            </condition>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   131
        </fail>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   132
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   133
        <!-- Now get the username sorted out -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   134
        <exec executable="hg" outputproperty="sf.hg.showconfig.ui.username">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   135
            <arg value="showconfig"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   136
            <arg value="ui.username"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   137
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   138
        <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}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   139
        <fail message="No author supplied">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   140
            <condition>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   141
                <length string="${sf.hg.ui.username}" trim="true" length="0"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   142
            </condition>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   143
        </fail>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   144
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   145
        <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   146
              outputFile="${temp.build.dir}/tag-hg-code.ant.xml">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   147
            <data expandProperties="yes">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   148
                ant: antProperties()
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   149
                data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   150
            </data>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   151
        </fmpp>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   152
        <ant antfile="${temp.build.dir}/tag-hg-code.ant.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   153
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   154
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   155
    <target name="sf-push-hg-tags">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   156
        <!-- To do the pushing, we need to have a set of credentials for the developer.symbian.org site -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   157
        <fail message="This target needs to have loging credentials specified specified, or to be run interactively so it can query the user">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   158
            <condition>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   159
                <and>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   160
                    <isset property="sf.hudson.executor.number"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   161
                    <not>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   162
                        <or>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   163
                            <isset property="sf.symbian.account.username"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   164
                            <isset property="sf.symbian.account.password"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   165
                        </or>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   166
                    </not>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   167
                </and>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   168
            </condition>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   169
        </fail>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   170
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   171
        <input addproperty="sf.symbian.account.username" message="Enter symbian.org username (eg &quot;fredb&quot;)"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   172
        <fail message="No author supplied">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   173
            <condition>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   174
                <length string="${sf.hg.ui.username}" trim="true" length="0"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   175
            </condition>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   176
        </fail>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   177
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   178
        <input addproperty="sf.symbian.account.password" message="Enter symbian.org password (eg &quot;unguessable&quot;)">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   179
            <!-- Ant 1.8 supports secure here, which would be an improvement... -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   180
            <handler type="default"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   181
        </input>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   182
        <fail message="No password supplied">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   183
            <condition>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   184
                <length string="${sf.hg.ui.password}" trim="true" length="0"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   185
            </condition>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   186
        </fail>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   187
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   188
        <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   189
            <not>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   190
                <available file="${build.drive}/tagging" type="dir"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   191
            </not>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   192
            <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   193
                <!-- No dir with tagged repos in - create them! -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   194
                <runtarget target="sf-tag-hg-code"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   195
            </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   196
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   197
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   198
        <fmpp sourceFile="${sf.common.config.dir}/templates/push-hg-tags.ant.xml.ftl"
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   199
              outputFile="${temp.build.dir}/push-hg-tags.ant.xml">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   200
            <data expandProperties="yes">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   201
                ant: antProperties()
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   202
                data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   203
            </data>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   204
        </fmpp>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   205
        <ant antfile="${temp.build.dir}/push-hg-tags.ant.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   206
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   207
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   208
    <target name="sf-run-evalid" >
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   209
        <delete dir="${build.drive}/output/md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   210
        <mkdir  dir="${build.drive}/output/md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   211
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   212
        <parallel>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   213
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   214
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   215
            <arg value="evalid -g epoc32/include output/md5/epoc32_include.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   216
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   217
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   218
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   219
            <arg value="evalid -g epoc32/s60 output/md5/epoc32_s60.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   220
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   221
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   222
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   223
            <arg value="evalid -g epoc32/localisation output/md5/epoc32_localisation.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   224
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   225
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   226
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   227
            <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"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   228
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   229
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   230
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   231
            <arg value="evalid -x \.sym$ -g epoc32/release/armv5/udeb output/md5/epoc32_release_armv5_udeb.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   232
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   233
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   234
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   235
            <arg value="evalid -x \.sym$ -g epoc32/release/armv5/urel output/md5/epoc32_release_armv5_urel.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   236
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   237
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   238
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   239
            <arg value="evalid -x \.sym$ -g epoc32/release/winscw/udeb output/md5/epoc32_release_winscw_udeb.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   240
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   241
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   242
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   243
            <arg value="evalid -x \.sym$ -g epoc32/release/winscw/urel output/md5/epoc32_release_winscw_urel.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   244
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   245
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   246
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   247
            <arg value="evalid -g epoc32/cshlpcmp_template output/md5/epoc32_cshlpcmp_template.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   248
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   249
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   250
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   251
            <arg value="evalid -g epoc32/data output/md5/epoc32_data.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   252
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   253
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   254
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   255
            <arg value="evalid -g epoc32/engdoc output/md5/epoc32_engdoc.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   256
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   257
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   258
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   259
            <arg value="evalid -g epoc32/engineeringtools output/md5/epoc32_engineeringtools.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   260
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   261
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   262
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   263
            <arg value="evalid -g epoc32/gcc output/md5/epoc32_gcc.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   264
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   265
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   266
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   267
            <arg value="evalid -g epoc32/gcc_mingw output/md5/epoc32_gcc_mingw.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   268
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   269
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   270
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   271
            <arg value="evalid -g epoc32/ksa output/md5/epoc32_ksa.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   272
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   273
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   274
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   275
            <arg value="evalid -g epoc32/rom output/md5/epoc32_rom.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   276
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   277
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   278
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   279
            <arg value="evalid -g epoc32/rombuild output/md5/epoc32_rombuild.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   280
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   281
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   282
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   283
            <arg value="evalid -g epoc32/sbs_config output/md5/epoc32_sbs_config.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   284
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   285
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   286
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   287
            <arg value="evalid -g epoc32/sdk_special output/md5/epoc32_sdk_special.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   288
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   289
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   290
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   291
            <arg value="evalid -g epoc32/stdapis output/md5/epoc32_stdapis.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   292
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   293
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   294
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   295
            <arg value="evalid -g epoc32/stubs output/md5/epoc32_stubs.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   296
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   297
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   298
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   299
            <arg value="evalid -g epoc32/tools output/md5/epoc32_tools.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   300
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   301
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   302
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   303
            <arg value="evalid -g epoc32/wins output/md5/epoc32_wins.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   304
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   305
        <exec executable="cmd" dir="${build.drive}/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   306
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   307
            <arg value="evalid -g epoc32/winscw output/md5/epoc32_winscw.md5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   308
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   309
        </parallel>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   310
        <!-- package MD5s directly into epoc32/relinfo location so that its usable out-of-the-box -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   311
        <mkdir dir="${build.output.dir}/zips/release"/> <!-- Hack to prevent non-existing release dir -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   312
        <zip destfile="${build.output.dir}/zips/release/build_md5.zip">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   313
            <zipfileset dir="${build.drive}/output/md5/" prefix="epoc32/relinfo"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   314
        </zip>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   315
    </target>    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   316
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   317
    <target name="sf-package-binary" depends="sf-package-postbuild-rnd,sf-merge-manifest">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   318
        <!-- Warning: Reverting to using the He zipper will also revert to a single zip for the binaries:
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   319
             would need to update the template and possibly the script that populates it -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   320
        <!--antcall target="sf-zip-content">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   321
            <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   322
            <param name="zip.target.name" value="bin" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   323
        </antcall-->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   324
        <parallel>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   325
            <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   326
                <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   327
                    <isset property="sf.sdk.header.list.file"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   328
                    <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   329
                        <property name="sf.epoc32.exclusions.file" value="${sf.sdk.header.list.file}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   330
                    </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   331
                </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   332
                <property name="sf.epoc32.exclusions.file" value="nul:"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   333
                <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   334
                    <arg value="a"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   335
                    <arg value="-t${sf.spec.package.zip.format}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   336
                    <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> <!-- rnd content taken from internal hg repos -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   337
                    <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   338
                    <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> <!-- merged list of prebuilt content such as binaries_prebuilt -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   339
                    <arg value="-x@${sf.epoc32.exclusions.file}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   340
                    <arg value="-x!epoc32\gcc"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   341
                    <arg value="-x!epoc32\gcc_mingw"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   342
                    <arg value="-x!epoc32\tools"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   343
                    <arg value="-x!epoc32\data\buildinfo.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   344
                    <!-- Feature database artifacts released as part of the tools zip -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   345
                    <arg value="-x!epoc32\data\config\features.dat"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   346
                    <arg value="-x!epoc32\include\featureuids.h"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   347
                    <arg value="-x!epoc32\rom\include\feature.iby"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   348
                    <arg value="-x!epoc32\rom\include\featuredatabase.xml"/>
1276
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   349
                    <arg value="-x!epoc32\rom"/> <!-- ROM images (etc) go into their own archive -->
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   350
                    <arg value="-x!epoc32\rombuild"/> <!-- ROM images go into their own archive -->
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   351
                    <arg value="-x!epoc32\data\media"/> <!-- Files created when emulator is used to create comms database - not worth releasing-->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   352
                    <arg value="-x!epoc32\build"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   353
                    <arg value="-x!epoc32\release\armv5"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   354
                    <arg value="-x!epoc32\release\winscw"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   355
                    <arg value="-xr!*.sym"/>
1273
92bfe0d10c29 Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents: 1272
diff changeset
   356
                    <arg value="${build.drive}/output/zips/release/binaries_epoc.${sf.spec.package.zip.format}.zip"/>
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   357
                    <arg value="epoc32\"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   358
                </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   359
            </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   360
            
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   361
            <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   362
                <isset property="sf.sdk.header.list.file"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   363
                <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   364
                    <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_sdk.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   365
                        <arg value="a"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   366
                        <arg value="-t${sf.spec.package.zip.format}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   367
                        <arg value="-i@${sf.sdk.header.list.file}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   368
                        <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   369
                        <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   370
                        <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   371
                        <arg value="-x!epoc32/include/featureuids.h"/> <!-- This needs to come from the tools zip instead -->
1273
92bfe0d10c29 Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents: 1272
diff changeset
   372
                        <arg value="${build.drive}/output/zips/release/binaries_epoc_sdk.${sf.spec.package.zip.format}.zip"/>
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   373
                    </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   374
                    <!-- Check that all the files we want in the SDK are zipped -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   375
                    <antcall target="sf-log-to-brag">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   376
                        <param name="sf.brag.id" value="SDK"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   377
                        <param name="sf.brag.log" value="${build.log.dir}/zip_${build.id}_binaries_sdk.log"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   378
                        <param name="sf.brag.phase" value="Postbuild"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   379
                        <param name="sf.brag.step" value="Package SDK"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   380
                    </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   381
                    <!-- Generate release_metadata entries for the SDK zip -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   382
                    <antcall target="sf-zip-content">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   383
                        <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   384
                        <param name="zip.target.name" value="bin-sdk-just-metadata" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   385
                    </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   386
                </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   387
            </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   388
            
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   389
            <!-- WinsCW binaries, by udeb/urel/lib -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   390
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_udeb.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   391
                <arg value="a"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   392
                <arg value="-t${sf.spec.package.zip.format}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   393
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   394
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   395
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   396
                <arg value="-xr!*.sym"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   397
                <arg value="-xr!*.lib"/>
1273
92bfe0d10c29 Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents: 1272
diff changeset
   398
                <arg value="${build.drive}/output/zips/release/binaries_winscw_udeb.${sf.spec.package.zip.format}.zip"/>
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   399
                <arg value="epoc32\release\winscw\udeb"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   400
            </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   401
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_urel.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   402
                <arg value="a"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   403
                <arg value="-t${sf.spec.package.zip.format}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   404
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   405
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   406
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   407
                <arg value="-xr!*.sym"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   408
                <arg value="-xr!*.lib"/>
1273
92bfe0d10c29 Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents: 1272
diff changeset
   409
                <arg value="${build.drive}/output/zips/release/binaries_winscw_urel.${sf.spec.package.zip.format}.zip"/>
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   410
                <arg value="epoc32\release\winscw\urel"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   411
            </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   412
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_lib.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   413
                <arg value="a"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   414
                <arg value="-t${sf.spec.package.zip.format}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   415
                <arg value="-ir!epoc32/release/winscw/*.lib"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   416
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   417
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   418
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
1273
92bfe0d10c29 Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents: 1272
diff changeset
   419
                <arg value="${build.drive}/output/zips/release/binaries_winscw_lib.${sf.spec.package.zip.format}.zip"/>
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   420
            </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   421
            
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   422
            <!-- ARMv5 binaries, by udeb/urel/lib -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   423
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_udeb.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   424
                <arg value="a"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   425
                <arg value="-t${sf.spec.package.zip.format}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   426
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   427
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   428
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   429
                <arg value="-xr!*.sym"/>
1273
92bfe0d10c29 Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents: 1272
diff changeset
   430
                <arg value="${build.drive}/output/zips/release/binaries_armv5_udeb.${sf.spec.package.zip.format}.zip"/>
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   431
                <arg value="epoc32\release\armv5\udeb"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   432
            </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   433
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_urel.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   434
                <arg value="a"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   435
                <arg value="-t${sf.spec.package.zip.format}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   436
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   437
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   438
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   439
                <arg value="-xr!*.sym"/>
1273
92bfe0d10c29 Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents: 1272
diff changeset
   440
                <arg value="${build.drive}/output/zips/release/binaries_armv5_urel.${sf.spec.package.zip.format}.zip"/>
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   441
                <arg value="epoc32\release\armv5\urel"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   442
            </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   443
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_lib.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   444
                <arg value="a"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   445
                <arg value="-t${sf.spec.package.zip.format}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   446
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   447
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   448
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   449
                <arg value="-xr!*.sym"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   450
                <arg value="-ir!epoc32/release/armv5/_*.bin"/> <!-- include bootloaders in common lib zipfile -->
1273
92bfe0d10c29 Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents: 1272
diff changeset
   451
                <arg value="${build.drive}/output/zips/release/binaries_armv5_lib.${sf.spec.package.zip.format}.zip"/>
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   452
                <arg value="epoc32\release\armv5\lib"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   453
            </exec>
1276
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   454
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   455
            <!-- ROM images -->
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   456
            <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_rom_images.log">
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   457
                <arg value="a"/>
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   458
                <arg value="-t${sf.spec.package.zip.format}"/>
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   459
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   460
                <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   461
                <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   462
                <arg value="-x!epoc32\rom\include\feature.iby"/>
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   463
                <arg value="-x!epoc32\rom\include\featuredatabase.xml"/>
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   464
                <arg value="${build.drive}/output/zips/release/binaries_rom_images.${sf.spec.package.zip.format}.zip"/>
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   465
                <arg value="epoc32\rom"/>
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   466
                <arg value="epoc32\rombuild"/>
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
   467
            </exec>
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   468
        </parallel>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   469
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   470
        <runtarget target="sf-package-tools"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   471
        <runtarget target="sf-package-prebuilt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   472
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   473
        <!-- Generate release_metadata entries for the above zips -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   474
        <antcall target="sf-zip-content">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   475
            <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   476
            <param name="zip.target.name" value="bin-just-metadata" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   477
        </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   478
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   479
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   480
    <target name="sf-package-postbuild-rnd" >
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   481
        <antcall target="sf-zip-content">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   482
            <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   483
            <param name="zip.target.name" value="rnd-postbuild" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   484
        </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   485
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   486
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   487
    <target name="sf-package-tools" depends="sf-merge-manifest">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   488
        <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   489
            <arg value="a"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   490
            <arg value="-t${sf.spec.package.zip.format}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   491
            <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   492
            <arg value="-x@/output/temp_build_files/manifest_excludelist.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   493
            <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
1273
92bfe0d10c29 Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents: 1272
diff changeset
   494
            <arg value="${build.drive}/output/zips/release/tools_epoc.${sf.spec.package.zip.format}.zip"/>
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   495
            <arg value="epoc32/tools"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   496
            <arg value="epoc32/gcc"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   497
            <arg value="epoc32/gcc_mingw"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   498
            <arg value="epoc32/data/buildinfo.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   499
            <arg value="epoc32/data/config/features.dat"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   500
            <arg value="epoc32/include/featureuids.h"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   501
            <arg value="epoc32/rom/include/feature.iby"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   502
            <arg value="epoc32/rom/include/featuredatabase.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   503
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   504
        <antcall target="sf-zip-content">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   505
            <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   506
            <param name="zip.target.name" value="tools" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   507
        </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   508
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   509
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   510
    <target name="sf-package-validate">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   511
        <exec executable="7z" dir="${build.drive}/output/zips" failonerror="false" output="${build.drive}/output/zips/validate.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   512
            <arg value="t"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   513
            <arg value="*.zip"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   514
        </exec>  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   515
        <exec executable="7z" dir="${build.drive}/output/zips/release" failonerror="false" output="${build.drive}/output/zips/release/validate.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   516
            <arg value="t"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   517
            <arg value="*.zip"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   518
        </exec>  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   519
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   520
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   521
    <!-- merge manifests for prebuilt stuff delivered at the start of build process -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   522
    <target name="sf-merge-manifest">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   523
      <echo message="INFO Build drive is ${build.drive} "/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   524
      <concat destfile="${build.drive}\output\temp_build_files\manifest_excludelist.txt">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   525
        <fileset dir="${build.drive}" includes="*manifest*" excludes="manifest_excludelist.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   526
      </concat>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   527
       
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   528
       <!-- touch file to update/create it in the event that there are no manifest* files available 
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   529
            as 7z will not be happy being given a non-existent file -->  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   530
      <touch file="${build.drive}\output\temp_build_files\manifest_excludelist.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   531
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   532
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   533
    <target name="sf-package-prebuilt" depends="sf-merge-manifest">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   534
    <!-- for each prebuilt manifest* file, repackage -->  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   535
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   536
      <for param="manifest">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   537
        <path>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   538
          <fileset dir="${build.drive}\">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   539
            <include name="manifest*.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   540
            <exclude name="manifest*restricted*.txt"/> <!-- dont repack restricted content such as testconfigfileparser -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   541
          </fileset>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   542
        </path>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   543
        <!-- strip manifest_ and .txt extension for matched file -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   544
        <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   545
        <propertyregex property="manifest.shortname" override="true" input="@{manifest}" regexp="manifest_(\S+)(.txt)" select="\1" global="true"  casesensitive="false"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   546
        <propertyregex property="manifest.fullname"  override="true" input="@{manifest}" regexp="(.*)" select="\1" global="true"  casesensitive="false"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   547
        <propertyregex property="manifest.pkgname"   override="true" input="@{manifest}" regexp="manifest_binaries_(\S+)(.txt)" select="\1" global="true"  casesensitive="false"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   548
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   549
        <echo message="INFO Packaging ${manifest.fullname} into ${manifest.shortname}.zip"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   550
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   551
        <exec executable="7za" dir="${build.drive}/" output="${build.drive}/zip_${manifest.shortname}.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   552
            <arg value="a"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   553
            <arg value="-t${sf.spec.package.zip.format}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   554
            <arg value="-i@${manifest.fullname}"/>
1273
92bfe0d10c29 Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents: 1272
diff changeset
   555
            <arg value="${build.drive}/output/zips/release/${manifest.shortname}.${sf.spec.package.zip.format}.zip"/> 
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   556
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   557
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   558
        <!-- merge release metadata -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   559
        <antcall target="sf-zip-content">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   560
            <param name="zip.config.file"  value="${temp.build.dir}/zip.cfg.xml.ftl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   561
            <param name="zip.target.name"  value="bin-${manifest.pkgname}-metadata" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   562
            <param name="sf.spec.job.name" value="${manifest.pkgname}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   563
        </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   564
        </sequential>  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   565
      </for>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   566
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   567
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   568
    <!-- runs analysis of missing bins and source -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   569
    <target name="sf-run-analysis">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   570
        <stopwatch name="sf-run-analysis"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   571
        <mkdir dir="${build.log.dir}/analysis"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   572
        <parallel>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   573
          <runtarget target="sf-run-analysis-ant"/>
1265
85e3fec18491 Remove duplicate analysis-ant call
Shabe Razvi <shaber@symbian.org>
parents: 1261
diff changeset
   574
1261
dd40521a5759 Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents: 1259
diff changeset
   575
          <if><istrue value="${sf.spec.analysis.depends.enable}"/>
dd40521a5759 Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents: 1259
diff changeset
   576
          <then>
dd40521a5759 Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents: 1259
diff changeset
   577
              <runtarget target="sf-run-analysis-depends"/>
dd40521a5759 Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents: 1259
diff changeset
   578
          </then>
dd40521a5759 Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents: 1259
diff changeset
   579
          </if>
dd40521a5759 Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents: 1259
diff changeset
   580
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   581
          <runtarget target="sf-run-analysis-raptor"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   582
          <runtarget target="sf-run-analysis-yarp"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   583
          <runtarget target="sf-run-analysis-whatlog-summary"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   584
          <runtarget target="sf-run-analysis-missing-files"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   585
        </parallel>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   586
        <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   587
          <istrue value="${sf.spec.publish.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   588
            <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   589
            <runtarget target="sf-run-analysis-diamonds"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   590
            </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   591
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   592
        <stopwatch name="sf-run-analysis" action="elapsed"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   593
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   594
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   595
    <target name="sf-run-analysis-ant">    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   596
        <echo message="Running source analysis of ANT output"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   597
        <exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   598
            <arg value="${sf.common.config.dir}/tools/analysis/scan_antlogs.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   599
            <arg value="*ant*"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   600
            <arg value="*stderr*"/>  <!-- helium 7 splits output into stderr logs, so use them also -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   601
            <arg value="*sbs_error*"/> 
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   602
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   603
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   604
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   605
    <target name="sf-run-analysis-raptor">            
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   606
      <!-- Cook the processed raptor logs to produce something in the right format for the BRAG system -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   607
      <mkdir dir="${build.log.dir}/summary/"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   608
      <!-- exec executable="perl" output="${build.log.dir}/summary/sbs_BRAG.xml" logError="yes" failonerror="false">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   609
        <arg value="${sf.common.config.dir}/tools/brag/sbsToBRAG.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   610
        <arg value="${build.log.dir}/analysis/*_compile_preprocessed.log"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   611
      </exec -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   612
      
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   613
      <echo message="Running UH parser on *_compile.log files"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   614
      <apply executable="perl" dir="${build.drive}/utilities/uh_parser" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" parallel="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   615
        <arg value="uh.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   616
        <arg value="-m"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   617
        <arg value="--basedir=${build.log.dir}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   618
        <fileset dir="${build.log.dir}">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   619
          <include name="*_compile.log"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   620
          <include name="*_export.log"/>  <!-- for explicit export step -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   621
          <exclude name="*build_check_compile.log"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   622
        </fileset>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   623
      </apply>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   624
          
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   625
      <!-- Now iterate through the generated TSVs to sort them and remove duplicates -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   626
      <for param="tsv">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   627
        <path>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   628
          <fileset dir="${build.log.dir}">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   629
            <include name="releaseables/**/*.tsv"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   630
          </fileset>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   631
        </path>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   632
        <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   633
          <exec executable="perl" input="@{tsv}" output="@{tsv}">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   634
            <arg value="${sf.common.config.dir}/tools/sortUnique.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   635
          </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   636
        </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   637
      </for>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   638
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   639
      <!-- Cook the raptor analysis further to produce something in the right format for the BRAG system -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   640
      <exec executable="perl" output="${build.log.dir}/summary/Uh_BRAG.xml" logError="yes">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   641
        <arg value="${sf.common.config.dir}/tools/brag/uh2brag.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   642
        <arg value="--index"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   643
        <arg value="${build.log.dir}/html/index.html"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   644
      </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   645
      <!-- And copy the XSL so the output can be transformed by a browser -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   646
      <copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   647
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   648
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   649
    <target name="sf-run-analysis-yarp">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   650
      <echo message="Running yarp over *_compile.log files"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   651
      <for param="logfile">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   652
        <path>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   653
          <fileset dir="${build.log.dir}">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   654
            <include name="*_compile.log"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   655
            <exclude name="*build_check_compile.log"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   656
          </fileset>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   657
        </path>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   658
        <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   659
          <propertyregex override="yes" property="yarpfile"  input="@{logfile}" regexp=".*[\\|\/](.*)_compile\.log" replace="\1_yarp.csv"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   660
          <propertyregex override="yes" property="yarpfile_short"  input="${yarpfile}" regexp="[^_]*_[^_]*_[^_]*_(.+)_[^_]*_yarp\.csv" replace="YARP_\1"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   661
          <echo message="Yarping @{logfile}..."/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   662
          <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${yarpfile}.log" append="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   663
            <arg value="${sf.common.config.dir}/tools/analysis/yarp.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   664
            <arg value="@{logfile}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   665
            <arg value="${build.log.dir}/analysis/${yarpfile}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   666
          </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   667
          <exec executable="cmd" output="${build.drive}/output/logs/analysis/tmp_yarp_files.csv" append="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   668
            <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   669
            <arg value="echo"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   670
            <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}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   671
          </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   672
        </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   673
      </for>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   674
      
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   675
      <!-- Cook the yarp analysis further to produce something in the right format for the BRAG system -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   676
      <mkdir dir="${build.log.dir}/summary/"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   677
      <!-- exec executable="perl" output="${build.log.dir}/summary/Yarp_BRAG.xml" logError="yes">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   678
        <arg value="${sf.common.config.dir}/tools/brag/yarpToBRAG.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   679
        <arg value="${build.log.dir}/analysis/*_yarp.csv"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   680
      </exec -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   681
      
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   682
      <exec executable="perl" dir="${build.drive}" failonerror="false" outputproperty="sf.job.totalyarperrors">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   683
        <arg value="${sf.common.config.dir}/tools/analysis/parse_yarp_files.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   684
        <arg value="${build.drive}/output/logs/analysis/tmp_yarp_files.csv"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   685
      </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   686
      <echo message="Total yarp errors: ${sf.job.totalyarperrors}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   687
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   688
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   689
    <target name="sf-run-analysis-whatlog-summary" >
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   690
        <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   691
          <parallel>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   692
            <runtarget target="sf-run-analysis-list"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   693
            <runtarget target="sf-run-analysis-whatlog"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   694
          </parallel>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   695
          <runtarget target="sf-run-analysis-whatlog-merge" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   696
          <parallel>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   697
            <runtarget target="sf-run-analysis-whatlog-package"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   698
            <runtarget target="sf-run-analysis-whatlog-collisons"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   699
          </parallel>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   700
        </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   701
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   702
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   703
    <target name="sf-run-analysis-list">    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   704
        <echo message="Running list analysis"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   705
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_list_results.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   706
            <arg value="${sf.common.config.dir}/tools/analysis/parselistdirs.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   707
            <arg value="..\"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   708
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   709
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   710
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   711
    <target name="sf-run-analysis-whatlog">    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   712
        <echo message="Running whatlog analysis"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   713
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_what_results.csv">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   714
            <arg value="${sf.common.config.dir}/tools/analysis/parsewhatlog.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   715
            <arg value="..\"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   716
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   717
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   718
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   719
    <target name="sf-run-analysis-whatlog-merge" >        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   720
        <echo message="Running summary analysis"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   721
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   722
            <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   723
            <arg value="${build.id}_what_results.csv"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   724
            <arg value="${build.id}_list_results.log"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   725
            <arg value="${build.drive}/output/zips/release/binaries_epoc_additional.zip"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   726
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   727
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   728
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   729
    <target name="sf-run-analysis-whatlog-package" >        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   730
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   731
            <arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   732
            <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   733
            <arg value="${build.id}_what_results.csv_results.csv"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   734
            <arg value="${sf.project.location}/sysdefs/system_model_os.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   735
            <arg value="${sf.project.location}/sysdefs/system_model_s60.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   736
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   737
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   738
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   739
    <target name="sf-run-analysis-whatlog-collisons" >        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   740
        <echo message="Running collision analysis"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   741
        <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   742
            <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   743
            <arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   744
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   745
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   746
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   747
    <target name="sf-run-analysis-diamonds">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   748
      <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   749
        <istrue value="${sf.spec.publish.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   750
        <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   751
          <echo>[SF-RUN-ANALYSIS-DIAMONDS]</echo>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   752
          <echo message="Translate \output\logs\html\index.html into a Diamonds file"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   753
          <exec executable="perl" dir="${build.drive}">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   754
            <arg value="${sf.common.config.dir}/tools/uh2diamonds.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   755
          </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   756
          <echo message="Send ${build.log.dir}/diamonds_uh.xml to Diamonds"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   757
          <exec executable="python">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   758
            <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   759
            <arg value="-u"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   760
            <arg value="http://${diamonds.host}${diamonds.build.id}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   761
            <arg value="-f"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   762
            <arg value="${build.log.dir}/diamonds_uh.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   763
          </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   764
        </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   765
      </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   766
    </target>
1259
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   767
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   768
    <target name="sf-run-analysis-depends">
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   769
1261
dd40521a5759 Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents: 1259
diff changeset
   770
      <for param="binary" parallel="true" threadCount="${env.NUMBER_OF_PROCESSORS}">
1265
85e3fec18491 Remove duplicate analysis-ant call
Shabe Razvi <shaber@symbian.org>
parents: 1261
diff changeset
   771
        <fileset dir="${build.drive}/epoc32/release/winscw/udeb" casesensitive="false">
85e3fec18491 Remove duplicate analysis-ant call
Shabe Razvi <shaber@symbian.org>
parents: 1261
diff changeset
   772
            <include name="*.dll"/>
85e3fec18491 Remove duplicate analysis-ant call
Shabe Razvi <shaber@symbian.org>
parents: 1261
diff changeset
   773
            <include name="*.exe"/>
1259
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   774
        </fileset>
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   775
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   776
        <sequential>
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   777
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   778
        <propertyregex property="binary.filename"  override="true" input="@{binary}" regexp="\\([^\\]*)$" select="\1" casesensitive="false"/>
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   779
        <echo message="INFO Processing ${binary.filename}"/>
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   780
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   781
        <exec executable="cmd" dir="${sf.common.config.dir}/tools/analysis/" output="${temp.build.dir}/${binary.filename}.depends.out">
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   782
            <arg value="/c"/>            
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   783
            <arg value="perl"/>            
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   784
            <arg value="depends.pl"/>            
1261
dd40521a5759 Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents: 1259
diff changeset
   785
            <arg value="@{binary}"/>
1259
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   786
        </exec>
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   787
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   788
        </sequential>  
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   789
      </for>
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   790
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   791
      <concat destfile="${build.log.dir}\analysis\${build.id}_depends.log">
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   792
        <fileset dir="${temp.build.dir}" includes="*depends.out"/>
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   793
      </concat>
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   794
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   795
    </target>
5f8149838262 Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents: 1252
diff changeset
   796
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   797
    <target name="sf-links-to-diamonds">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   798
      <fmpp sourceFile="${sf.common.config.dir}/diamonds/linksForDiamonds.xml.ftl" outputFile="${build.log.dir}/linksForDiamonds.xml">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   799
        <data expandProperties="yes">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   800
          ant: antProperties()
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   801
        </data>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   802
      </fmpp>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   803
      <!-- Send the data to the server -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   804
      <exec executable="python">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   805
        <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   806
        <arg value="-u"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   807
        <arg value="http://${diamonds.host}${diamonds.build.id}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   808
        <arg value="-f"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   809
        <arg value="${build.log.dir}/linksForDiamonds.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   810
      </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   811
      
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   812
      <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"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   813
      <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"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   814
      <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"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   815
      <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"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   816
      <if><and><equals arg1="${sf.spec.smoketest.enable}" arg2="true"/><equals arg1="${sf.spec.ats.version}" arg2="ats3"/></and><then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   817
        <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"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   818
      </then></if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   819
      <if><and><equals arg1="${sf.spec.smoketest.enable}" arg2="true"/><equals arg1="${sf.spec.ats.version}" arg2="ats4"/></and><then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   820
        <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"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   821
      </then></if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   822
      <if><and><equals arg1="${sf.spec.bccheck.enable}" arg2="true"/><equals arg1="${sf.spec.bccheck.enable.ha}" arg2="true"/></and><then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   823
        <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"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   824
      </then></if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   825
      <if><and><equals arg1="${sf.spec.bccheck.enable}" arg2="true"/><equals arg1="${sf.spec.bccheck.enable.la}" arg2="true"/></and><then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   826
        <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"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   827
      </then></if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   828
      <if><equals arg1="${sf.spec.bccheck.enable.dynamic}" arg2="true"/><then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   829
        <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"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   830
      </then></if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   831
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   832
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   833
    <target name="sf-merge-brag">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   834
        <!-- Merge all our bits of XML together -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   835
        <exec executable="perl" output="${build.log.dir}/summary/_BRAG.xml" logError="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   836
            <arg value="${sf.common.config.dir}/tools/mergeXML.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   837
            <arg value="--xsl=brag.xsl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   838
            <arg value="--merge=buildStatus,phase(name),step(name),failures(level)"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   839
            <arg value="${build.log.dir}/summary/*?_BRAG.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   840
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   841
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   842
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   843
    <target name="sf-brag-to-diamonds">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   844
        <!-- Run XSL transform to create file to send to diamonds -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   845
        <java jar="${sf.common.config.dir}/sysdefdowngrade/xalan-j_2_7_1/xalan.jar" fork="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   846
            <arg value="-IN"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   847
            <arg value="${build.log.dir}/summary/_BRAG.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   848
            <arg value="-XSL"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   849
            <arg value="${sf.common.config.dir}/tools/brag/bragForDiamonds.xsl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   850
            <arg value="-OUT"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   851
            <arg value="${build.log.dir}/diamonds-status.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   852
        </java>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   853
        <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   854
            <istrue value="${sf.spec.publish.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   855
            <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   856
                <!-- Make sure that the summary directory is available to display the BRAG link -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   857
                <mkdir  dir="${publish.dir}/summary/"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   858
                <copy todir="${publish.dir}/summary/" preservelastmodified="true" failonerror="false">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   859
                   <fileset dir="${build.log.dir}/summary/"><include name="*.*"/></fileset>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   860
                </copy>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   861
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   862
                <!-- Try to obtain the diamonds ID for this build -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   863
                <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   864
                    <not><isset property="diamonds.build.id"/></not>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   865
                    <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   866
                        <property file="${build.log.dir}/diamonds_build_id.properties"/> <!-- This will fail silently -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   867
                    </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   868
                </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   869
                <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   870
                    <isset property="diamonds.build.id"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   871
                    <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   872
                        <!-- Send the data to the server -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   873
                        <exec executable="python">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   874
                            <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   875
                            <arg value="-u"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   876
                            <arg value="http://${diamonds.host}${diamonds.build.id}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   877
                            <arg value="-f"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   878
                            <arg value="${build.log.dir}/diamonds-status.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   879
                        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   880
                    </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   881
                    <else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   882
                        <echo message="diamonds.build.id is not known - unable to push any build specific information to diamonds server"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   883
                    </else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   884
                </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   885
            </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   886
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   887
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   888
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   889
    <target name="sf-check-utilities-dir">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   890
        <available property="sf-utilities-available" file="${build.drive}/utilities" type="dir"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   891
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   892
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   893
    <target name="sf-compare-to-baseline" depends="sf-check-utilities-dir" if="sf-utilities-available">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   894
        <property name="sf.releasenotes.wiki.txt" value="${build.log.dir}/releaseNotes.wiki.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   895
        <delete file="${sf.releasenotes.wiki.txt}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   896
        <!-- FCL Usage and Changesets -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   897
        <exec executable="perl" dir="${build.drive}" output="${sf.releasenotes.wiki.txt}">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   898
            <arg value="-I"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   899
            <arg value="${sf.common.config.dir}/tools/lib"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   900
            <arg value="${build.drive}/utilities/releaseAutomation/releaseNotes.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   901
            <arg value="--sources=${build.log.dir}/BOM/sources.csv"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   902
            <arg value="--baseline=${sf.previous.pdk.tag}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   903
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   904
        <!-- Package Comparison and FCL Usage -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   905
        <exec executable="perl" dir="${sf.spec.sourcesync.sourcespecdir}" output="${sf.releasenotes.wiki.txt}" append="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   906
            <arg value="${build.drive}/utilities/releaseAutomation/packageComparison.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   907
            <arg value="--sources=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   908
            <arg value="--sysdef=${sf.spec.sourcesync.sourcespecdir}/sysdefs/system_model.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   909
            <arg value="--sysdef=${sf.spec.sourcesync.sourcespecdir}/sysdefs/system_model_os.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   910
            <arg value="--sysdef=${sf.spec.sourcesync.sourcespecdir}/sysdefs/system_model_s60.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   911
            <arg value="--baseline=${sf.previous.pdk.tag}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   912
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   913
        <!-- Mercurial comparison -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   914
        <echo file="${sf.releasenotes.wiki.txt}" append="true">== Mercurial Comparison ==${line.separator}${line.separator}</echo>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   915
        <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   916
            <isset property="sf.previous.pdk.tag"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   917
            <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   918
                <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>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   919
                <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   920
                    <istrue value="${sf.spec.sourcesync.archive}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   921
                    <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   922
                        <echo file="${sf.releasenotes.wiki.txt}" append="true">'''Information cannot be derived as source was synced with archive option'''"${line.separator}${line.separator}</echo>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   923
                    </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   924
                    <else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   925
                        <exec executable="perl" dir="${build.drive}/" output="${sf.releasenotes.wiki.txt}" append="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   926
                            <arg value="${build.drive}/utilities/releaseAutomation/mercurialComparison.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   927
                            <arg value="${build.log.dir}/BOM/build-info.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   928
                            <arg value="${sf.previous.pdk.tag}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   929
                            <arg value="${build.log.dir}/mercurialComparison.tsv"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   930
                        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   931
                    </else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   932
                </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   933
            </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   934
            <else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   935
                <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>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   936
            </else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   937
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   938
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   939
        <!-- Code churn -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   940
        <!-- TODO? -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   941
        <fixcrlf file="${sf.releasenotes.wiki.txt}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   942
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   943
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   944
    <!-- package all logs into zipfile for publishing -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   945
    <target name="sf-zip-logs" >
1252
f2fbf395f696 Dont fail build in event that System Model copy fails.
Shabe Razvi <shaber@symbian.org>
parents: 1251
diff changeset
   946
        <!-- Moved from generate-layers, for Package build only. -->
f2fbf395f696 Dont fail build in event that System Model copy fails.
Shabe Razvi <shaber@symbian.org>
parents: 1251
diff changeset
   947
        <copy overwrite="true" file="${build.drive}/output/build/canonical_system_definition_${sf.spec.sysdef.configurations.list}.xml" todir="${build.log.dir}/BOM/" failonerror="false"/>
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   948
        <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   949
            <istrue value="${sf.spec.logs.zip.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   950
            <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   951
                <mkdir dir="${build.output.dir}/zips/release"/> <!-- workaround for when there's no other releaseables, just the logs -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   952
                <zip destfile="${build.output.dir}/zips/release/build_logs.zip" basedir="${build.drive}"> 
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   953
                    <include name="output/logs/**"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   954
                    <exclude name="output/logs/BC/**"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   955
                    <exclude name="output/logs/BOM/**"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   956
                    <exclude name="output/logs/deliverables/**"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   957
                    <exclude name="output/logs/releaseables/**"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   958
                </zip>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   959
                <!-- workaround for the time when when 'sf-run-analysis-raptor' has not been run -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   960
                <mkdir dir="${build.drive}/output/logs/releaseables"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   961
                <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   962
                    <available file="${build.drive}/output/logs/package_definitions" type="dir"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   963
                    <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   964
                        <zip destfile="${build.output.dir}/zips/release/build_BOM.zip">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   965
                            <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   966
                            <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   967
                            <zipfileset dir="${build.drive}/output/logs" prefix="build_info/logs/BOM">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   968
                                <include name="envinfo.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   969
                            </zipfileset>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   970
                            <zipfileset dir="${build.drive}/output/logs/package_definitions" prefix="build_info/package_definitions"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   971
                        </zip>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   972
                    </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   973
                    <else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   974
                        <zip destfile="${build.output.dir}/zips/release/build_BOM.zip">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   975
                            <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   976
                            <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   977
                            <zipfileset dir="${build.drive}/output/logs" prefix="build_info/logs/BOM">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   978
                                <include name="envinfo.txt"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   979
                            </zipfileset>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   980
                        </zip>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   981
                    </else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   982
                </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   983
                <antcall target="sf-zip-content">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   984
                    <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   985
                    <param name="zip.target.name" value="info-just-metadata" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   986
                </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   987
            </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   988
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   989
     </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   990
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   991
    <target name="sf-publish" depends="prep-publish">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   992
        <copy todir="${publish.dir}" preservelastmodified="true" failonerror="false">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   993
           <fileset dir="${build.output.dir}/zips/release/"><include name="build_*.zip"/></fileset>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   994
        </copy>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   995
        <mkdir dir="${publish.dir}/html"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   996
        <copy todir="${publish.dir}/html" preservelastmodified="true" failonerror="false">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   997
           <fileset dir="${build.log.dir}/html"><include name="*.html"/></fileset>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   998
        </copy>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
   999
        <mkdir dir="${publish.dir}/BC"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1000
        <copy todir="${publish.dir}/BC" preservelastmodified="true" failonerror="false">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1001
           <fileset dir="${build.log.dir}/BC/">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1002
               <include name="BBCResults.xsl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1003
               <include name="headers_report.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1004
               <include name="libraries_report.xml"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1005
           </fileset>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1006
        </copy>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1007
        <mkdir dir="${publish.dir}/ats_reports"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1008
        <copy file="${sf.common.config.dir}/tools/ats/report_dummy.html" tofile="${publish.dir}/ats_reports/index.html" failonerror="false"/>
1268
b69afcf5d763 Adding provision of publishing release zips to 'Candidates' location.
Chetan Kapoor<chetank@symbian.org>
parents: 1265
diff changeset
  1009
        <if>
b69afcf5d763 Adding provision of publishing release zips to 'Candidates' location.
Chetan Kapoor<chetank@symbian.org>
parents: 1265
diff changeset
  1010
            <istrue value="${sf.spec.publish.release.zips.enable}" />
b69afcf5d763 Adding provision of publishing release zips to 'Candidates' location.
Chetan Kapoor<chetank@symbian.org>
parents: 1265
diff changeset
  1011
        <then>
b69afcf5d763 Adding provision of publishing release zips to 'Candidates' location.
Chetan Kapoor<chetank@symbian.org>
parents: 1265
diff changeset
  1012
            <mkdir dir="${sf.spec.publish.release.zips.location}/${build.id}"/>
1276
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
  1013
            <copy todir="${sf.spec.publish.release.zips.location}/${build.id}" preservelastmodified="true" failonerror="false">
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
  1014
                <fileset dir="${build.output.dir}/zips/release/"><include name="*.*"/></fileset>
fdcfee9c5b0d Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents: 1275
diff changeset
  1015
            </copy>
1268
b69afcf5d763 Adding provision of publishing release zips to 'Candidates' location.
Chetan Kapoor<chetank@symbian.org>
parents: 1265
diff changeset
  1016
        </then>
b69afcf5d763 Adding provision of publishing release zips to 'Candidates' location.
Chetan Kapoor<chetank@symbian.org>
parents: 1265
diff changeset
  1017
        </if>
1251
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1018
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1019
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1020
    <!-- TODO: Make this work for package builds once we have sysmodel story worked out -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1021
    <target name="sf-run-analysis-missing-files" if="sf.spec.checkbuild">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1022
        <runtarget target="sf-check-missing-os-files"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1023
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1024
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1025
    <target name="sf-check-missing-os-files" depends="sf-compile-options">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1026
        <hlm:argSet id="sbs.check.tools.var">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1027
            <hlm:arg name="config" value="${sf.spec.sbs.tools.config}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1028
            <hlm:arg name="run-check" value="true" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1029
        </hlm:argSet>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1030
     
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1031
        <hlm:argSet id="sbs.check.main.var">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1032
            <hlm:arg name="config" value="${sf.spec.sbs.config}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1033
            <hlm:arg name="run-check" value="true" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1034
        </hlm:argSet>     
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1035
        <antcall target="compile-main" inheritAll="false" inheritRefs="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1036
            <param name="build.system" value="${sf.spec.build.system}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1037
            <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1038
            <param name="build.id" value ="sbs_check"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1039
            <reference refid="sbs.check.tools.var" torefid="sbs.var" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1040
            <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1041
            <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1042
        </antcall> 
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1043
        <if><istrue value="${sf.os.compile.iterate}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1044
          <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1045
            <for list="${sf.spec.sbs.config}" delimiter="," param="sf.spec.check.splitconfig">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1046
              <sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1047
                <echo message="INFO [Iterative check] @{sf.spec.check.splitconfig}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1048
                <hlm:argSet id="sbs.check.iterate.main.var">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1049
                    <hlm:arg name="config" value="@{sf.spec.check.splitconfig}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1050
                    <hlm:arg name="run-check" value="true" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1051
                </hlm:argSet>     
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1052
  
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1053
                <antcall target="compile-main" inheritAll="false" inheritRefs="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1054
                    <param name="build.system" value="${sf.spec.build.system}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1055
                    <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1056
                    <param name="build.id" value ="sbs_check"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1057
                    <reference refid="sbs.check.iterate.main.var" torefid="sbs.var" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1058
                    <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1059
                    <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1060
                </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1061
              </sequential>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1062
            </for>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1063
          </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1064
          <else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1065
          <antcall target="compile-main" inheritAll="false" inheritRefs="true">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1066
            <param name="build.system" value="${sf.spec.build.system}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1067
            <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1068
            <param name="build.id" value ="sbs_check"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1069
            <reference refid="sbs.check.main.var" torefid="sbs.var" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1070
            <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1071
            <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1072
          </antcall>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1073
        </else>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1074
      </if> 
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1075
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1076
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1077
    <target name="sf-create-public-PDK" depends="sf-prebuild,sf-run-sfl-licence-munging" >
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1078
        <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1079
            <istrue value="${sf.spec.md5.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1080
            <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1081
                <echo message="INFO Creating MD5s"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1082
                <runtarget target="sf-run-evalid"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1083
            </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1084
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1085
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1086
        <!-- Package up the binaries we built -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1087
        <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1088
            <istrue value="${sf.spec.package.bin.enable}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1089
            <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1090
                <echo message="INFO Packaging Binaries"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1091
                <runtarget target="sf-package-binary"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1092
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1093
                <echo message="INFO Validate Zip files"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1094
                <runtarget target="sf-package-validate"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1095
            </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1096
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1097
        <runtarget target="sf-merge-brag"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1098
        <runtarget target="sf-zip-logs"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1099
                
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1100
        <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1101
            <istrue value="${sf.spec.publish.enable}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1102
            <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1103
                <echo message="Send links to Diamonds"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1104
                <runtarget target="sf-links-to-diamonds"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1105
                <echo message="Send BRAG status information to Diamonds"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1106
                <runtarget target="sf-brag-to-diamonds"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1107
                
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1108
                <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1109
                <runtarget target="sf-publish"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1110
            </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1111
        </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1112
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1113
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1114
    <target name="sf-run-sfl-licence-munging" depends="sf-check-utilities-dir" if="sf-utilities-available">    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1115
        <echo message="Running SFL Licence Munging writing log to ${build.log.dir}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1116
        <stopwatch name="munge" action="start"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1117
        <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/postbuild_sfl-licence_munging_results.log">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1118
          <arg value="${build.drive}/utilities/williamr/convert_to_eula.pl"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1119
        </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1120
        <stopwatch name="munge" action="total"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1121
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1122
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1123
    <target name="sf-copy-rom-logs">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1124
        <property name="sf.rombuild.dir" value="${build.drive}/epoc32/rom/"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1125
        <!-- copy log files for each variant we have -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1126
        <echo message="build.log.dir= ${build.log.dir}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1127
        <echo message="sf.rombuild.dir= ${sf.rombuild.dir}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1128
        <echo message="sf.spec.referenceroms.variant= ${sf.spec.referenceroms.variant}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1129
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1130
        <copy todir="${build.log.dir}" preservelastmodified="true" failonerror="false">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1131
            <fileset dir="${sf.rombuild.dir}/${sf.spec.referenceroms.variant}/"><include name="*ROMBUILD.LOG"/></fileset>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1132
        </copy>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1133
        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1134
        <copy todir="${build.log.dir}" preservelastmodified="true" failonerror="false">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1135
            <fileset dir="${sf.rombuild.dir}/${sf.spec.referenceroms.variant}/"><include name="*rom.oby"/></fileset>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1136
        </copy>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1137
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1138
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1139
    <target name="sf-build-roms">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1140
        <!-- find out if this is an arm build, if it is, then build roms -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1141
        <propertyregex property="sf.is.arm.build"  override="true" input="${sf.spec.sbs.config}" regexp="(arm.*)" replace="true" casesensitive="false"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1142
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1143
        <if><isset property="sf.is.arm.build"/> 
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1144
        <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1145
            <mkdir dir="${roms.log.dir}"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1146
            <echo message="INFO Building Syborg MiniGUI stripped ROM"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1147
            <exec executable="cmd" dir="${build.drive}/epoc32/rom" failonerror="false">
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1148
                <arg value="/c"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1149
                <arg value="buildrom syborg minigui-stripped"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1150
            </exec>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1151
            <if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1152
                <!-- is iMaker rom building enabled? -->
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1153
                <istrue value="${sf.spec.referenceroms.createimages.enable}" />
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1154
                <then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1155
                    <echo message="INFO Building iMaker configurations"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1156
                    <runtarget target="build-roms"/>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1157
                </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1158
            </if>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1159
        </then>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1160
        </if>        
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1161
    </target>
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1162
    
0fc9e31020ea Bug 3679
Johan Groth <johang@symbian.org>
parents: 1249
diff changeset
  1163
</project>