common/build.xml
author Dario Sestito <darios@symbian.org>
Thu, 20 Aug 2009 10:44:38 +0100
changeset 370 6a77c1534c7f
parent 369 13fa826ea048
permissions -rw-r--r--
Truclean should not be performed if the sources.csv line doesn't have a sysdef field
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
96
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 92
diff changeset
     2
<project name="SF-COMMON-CONFIG" xmlns:hlm="http://www.nokia.com/helium">
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     3
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     4
    <property environment="env"/> <!-- make environment variables available via env -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     5
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     6
    <dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     7
    
361
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
     8
    <!-- Import common properties -->
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     9
    <import file="${sf.common.config.dir}/common_props.ant.xml" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    10
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    11
    <!-- setup Helium internal properties from their equivalent in the project spec -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    12
    <property name="build.name" value="${sf.spec.job.name}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    13
    <property name="core.build.version" value="${sf.spec.job.codeline}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    14
    <property name="build.number" value="${sf.spec.job.number}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    15
    <property name="build.drive" value="${sf.spec.job.drive}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    16
    <property name="build.family" value="${sf.project.type}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    17
    <property name="email.from" value="${sf.spec.email.from}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    18
    <property name="local.free.space" value="${sf.spec.job.freespace}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    19
    <property name="network.free.space" value="${sf.spec.publish.network.freespace}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    20
    <property name="network.drive" value="${sf.spec.publish.networkdrive}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    21
    <property name="prep.root.dir" value="${sf.spec.job.rootdir}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    22
    <property name="publish" value="${sf.spec.publish.enable}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    23
    <property name="publish.root.dir" value="${sf.spec.publish.rootdir}"/>
169
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 168
diff changeset
    24
    <property name="diamonds.host" value="${sf.spec.publish.diamonds.server}"/>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 168
diff changeset
    25
    <property name="diamonds.port" value="${sf.spec.publish.diamonds.port}"/>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 168
diff changeset
    26
    <property name="diamonds.path" value="${sf.spec.publish.diamonds.path}"/>
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    27
    <property name="build.system" value="${sf.spec.build.system}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    28
    <property name="base_release.path" value="${sf.spec.baseline.location}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    29
    <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
368
cb0ec85c881d Set Raptor -j option to 2 for package builds
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
    30
    <if>
cb0ec85c881d Set Raptor -j option to 2 for package builds
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
    31
      <isset property="sf.spec.sbs.numberofjobs"/>
cb0ec85c881d Set Raptor -j option to 2 for package builds
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
    32
      <then>
cb0ec85c881d Set Raptor -j option to 2 for package builds
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
    33
        <property name="number.of.threads" value="${sf.spec.sbs.numberofjobs}"/>
cb0ec85c881d Set Raptor -j option to 2 for package builds
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
    34
      </then>
cb0ec85c881d Set Raptor -j option to 2 for package builds
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
    35
    </if>
290
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
    36
    
170
4b1e939c052c Added yarp to diamonds publishing
Dario Sestito <darios@symbian.org>
parents: 169
diff changeset
    37
    <!-- SF-specific Helium properties not meant to be exposed in the project spec -->
4b1e939c052c Added yarp to diamonds publishing
Dario Sestito <darios@symbian.org>
parents: 169
diff changeset
    38
    <property name="diamonds.listener.configuration.file" location="${sf.common.config.dir}/diamonds/config.xml.ftl"/>
4b1e939c052c Added yarp to diamonds publishing
Dario Sestito <darios@symbian.org>
parents: 169
diff changeset
    39
    
361
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
    40
    <!-- Import all core HELIUM targets -->
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    41
    <import file="${helium.dir}/helium.ant.xml" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    42
    
361
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
    43
    <!-- Import common references -->
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    44
    <import file="${sf.common.config.dir}/common_refs.ant.xml" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    45
             
361
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
    46
    <!-- Import functionality distributed into other file(s) -->
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
    47
    <import file="${sf.common.config.dir}/build.postbuild.xml"/>
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
    48
             
290
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
    49
    <!-- setup conditional Helium internal properties -->
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
    50
    <if><istrue value="${sf.spec.sourcesync.usecache}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
    51
        <then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
    52
            <property name="sf.spec.sourcesync.sourcespecdir" value="${sf.common.config.dir}/generated"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
    53
        </then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
    54
        <else>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
    55
            <property name="sf.spec.sourcesync.sourcespecdir" value="${sf.project.location}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
    56
        </else>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
    57
    </if>
206
32693583e769 Added Hg local cache management feature.
ThomasE
parents: 201
diff changeset
    58
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    59
    <!-- conditional import of generated source spec if available -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    60
    <if><available  file="${sf.common.config.dir}/generated/source-spec.ant.xml" />
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
    61
        <then>
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    62
            <echo message="Generated source spec found, importing..." />
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
    63
            <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
    64
        </then>
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    65
    </if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    66
    
206
32693583e769 Added Hg local cache management feature.
ThomasE
parents: 201
diff changeset
    67
    <target name="sf-prep" depends="prep-drive,init-build-area,sf-generate-source-spec,check-tool-dependencies,create-bom,log-build-env">
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    68
        <echo>[SF-PREP]</echo>
367
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    69
        <!-- Test for the disk space we would like for this build -->
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    70
	<fail>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    71
            <condition>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    72
                <not>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    73
                    <or>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    74
                        <isset property="sf.suppress.drive.space.check"/>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    75
                        <hasfreespace partition="${build.drive}" needed="${sf.drive.space.needed}"/>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    76
                    </or>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    77
                </not>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    78
            </condition>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    79
Insufficient space to run this build to completion. (Was looking for ${sf.drive.space.needed}.) To suppress this check, set the property sf.suppress.drive.space.check to any value.
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    80
        </fail>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    81
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    82
        <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/>
367
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    83
        <echo message="Checking build Environment"/>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    84
        <exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="true">
359
61571c10c5d0 Added Build environment check feature
ThomasE
parents: 357
diff changeset
    85
            <arg value="CheckBuildEnv.pl"/>
61571c10c5d0 Added Build environment check feature
ThomasE
parents: 357
diff changeset
    86
            <arg value="--xml=BuildEnv.xml"/>
61571c10c5d0 Added Build environment check feature
ThomasE
parents: 357
diff changeset
    87
            <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/>
367
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    88
            <arg value="--sbs='${sf.spec.sbs.config}'"/>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    89
            <arg value="--tools='${sf.spec.sbs.tools.config}'"/>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    90
            <arg value="Common"/>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 366
diff changeset
    91
        </exec>
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    92
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    93
        
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    94
    <target name="sf-build-all" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    95
        <echo>[SF-BUILD-ALL]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    96
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    97
    
366
cde2244c8ea6 First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
    98
    <target name="sf-summary" depends="">
cde2244c8ea6 First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
    99
        <echo>[SF-SUMMARY]</echo>
cde2244c8ea6 First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
   100
        <echo message="Generating build summary"/>
cde2244c8ea6 First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
   101
        <exec executable="perl" dir="${sf.common.config.dir}/tools/summary" failonerror="true">
cde2244c8ea6 First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
   102
          <arg value="brag_script.pl"/>
cde2244c8ea6 First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
   103
          <arg value="--buildid=${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
cde2244c8ea6 First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
   104
          <arg value="--basedir=${sf.spec.job.rootdir}"/>
cde2244c8ea6 First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
   105
        </exec>
cde2244c8ea6 First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
   106
    </target>
cde2244c8ea6 First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents: 365
diff changeset
   107
    
199
cb50a5d37880 Added new helium target: 'sf-build-and-pack' for use if you need to babysit 'sf-prebuild'
MattD <mattd@symbian.org>
parents: 194
diff changeset
   108
    <target name="sf-build-and-pack" depends="sf-build-noprep,sf-postbuild">
cb50a5d37880 Added new helium target: 'sf-build-and-pack' for use if you need to babysit 'sf-prebuild'
MattD <mattd@symbian.org>
parents: 194
diff changeset
   109
        <echo>[SF-BUILD-AND-PACK]</echo>
cb50a5d37880 Added new helium target: 'sf-build-and-pack' for use if you need to babysit 'sf-prebuild'
MattD <mattd@symbian.org>
parents: 194
diff changeset
   110
    </target>
cb50a5d37880 Added new helium target: 'sf-build-and-pack' for use if you need to babysit 'sf-prebuild'
MattD <mattd@symbian.org>
parents: 194
diff changeset
   111
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   112
    <target name="sf-build" depends="sf-prep,sf-prebuild,sf-build-noprep,sf-postbuild">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   113
        <echo>[SF-BUILD]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   114
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   115
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   116
    <target name="sf-parse-project-config">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   117
    <!-- TODO: Parse the project config and generate properties and csv file to be
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   118
    used by the builds. -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   119
        <echo message="Parse the project configuration" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   120
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   121
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   122
    <target name="sf-generate-source-spec" depends="sf-parse-project-config">
290
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   123
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   124
        <!-- Generate the sources.csv if hg cache is activated -->
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   125
        <if><istrue value="${sf.spec.sourcesync.usecache}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   126
            <then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   127
                <echo message="Generating Hg local cache..." />
335
d00601cbf754 minor fix - creation of 'generated' dir for caching files.
MattD <mattd@symbian.org>
parents: 327
diff changeset
   128
                <mkdir dir="${sf.common.config.dir}/generated"/>
290
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   129
                <exec executable="perl" dir="${build.log.dir}" failonerror="true" output="${build.log.dir}/${build.id}_hgcache.log">
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   130
                    <arg value="${sf.common.config.dir}/tools/cachefiles.pl"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   131
                    <arg value="${sf.spec.sourcesync.cachelocation}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   132
                    <arg value="${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   133
                    <arg value="${sf.common.config.dir}/generated/${sf.spec.sourcesync.sourcespecfile}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   134
                </exec>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   135
            </then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   136
        </if>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 289
diff changeset
   137
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   138
        <!-- TODO: 1. Same file name souce-spec.ant.xml is used for all packages
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   139
        for multiple package builds, this needs to be linked with package name. -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   140
        <!-- TODO: 2. Change fmpp data to be a full property rather than relative path -->
340
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   141
        <delete file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   142
        
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   143
        <fmpp sourceFile="${sf.common.config.dir}/templates/source-spec.ant.xml.ftl"
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   144
              outputFile="${sf.common.config.dir}/generated/source-spec.ant.xml">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   145
              <data expandProperties="yes">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   146
                    ant: antProperties()
206
32693583e769 Added Hg local cache management feature.
ThomasE
parents: 201
diff changeset
   147
                    data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   148
              </data>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   149
        </fmpp>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   150
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   151
    
226
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   152
    <target name="generate-layers">
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   153
       <echo message="canno-file:${canonical.sysdef.file}"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   154
       <echo message="raptor-filters:raptor_${sysdef.configuration}"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   155
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   156
       <!-- All we want is a sysdef with the config name appended, so just copy it -->
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   157
       <echo message="INFO: Skip GenXML and copy sysdef to sysdef+config name"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   158
       <copy file="${canonical.sysdef.file}" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   159
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   160
        <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml">
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   161
        <filterchain>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   162
            <linecontainsregexp negate="true">
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   163
                <regexp pattern="^\s*$"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   164
            </linecontainsregexp>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   165
        </filterchain>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   166
        </copy>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   167
        <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" todir="${build.log.dir}/BOM/"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   168
        <delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
   169
    </target>
147
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 137
diff changeset
   170
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   171
    <target name="sf-prebuild">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   172
        <echo>[SF-PREBUILD]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   173
        
169
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 168
diff changeset
   174
        <if>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 168
diff changeset
   175
            <istrue value="${sf.spec.publish.enable}"/>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 168
diff changeset
   176
            <then>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 168
diff changeset
   177
                <runtarget target="diamonds"/>
263
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 262
diff changeset
   178
                <runtarget target="sf-tag-build"/>
169
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 168
diff changeset
   179
            </then>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 168
diff changeset
   180
        </if>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 168
diff changeset
   181
        
37
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 31
diff changeset
   182
        <!-- create BOM dir -->
48
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   183
        <mkdir dir="${build.drive}/output/logs/BOM"/>
37
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 31
diff changeset
   184
        
49
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   185
        <!-- record project and config information in BOM files -->
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   186
        <delete file="${build.drive}/output/logs/BOM/config.csv" quiet="true"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   187
        <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.repo">
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   188
            <arg value="showconfig"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   189
            <arg value="paths.default"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   190
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   191
        <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.rev">
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   192
            <arg value="identify"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   193
            <arg value="-n"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   194
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   195
        <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.checksum">
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   196
            <arg value="identify"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   197
            <arg value="-i"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   198
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   199
        <echo message="dir ${sf.config.dir} : revision ${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}"/>
50
f9a55f310713 Fixed error
DarioS@UK-DarioS.symbian.int
parents: 49
diff changeset
   200
        <exec executable="cmd" output="${build.drive}/output/logs/BOM/config.csv" append="true">
49
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   201
            <arg value="/c"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   202
            <arg value="echo"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   203
            <arg value="${sf.job.bom.config.repo},sf-config,${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   204
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   205
        <delete file="${build.drive}/output/logs/BOM/project.csv" quiet="true"/>
356
f5a4f71b49e1 BOM fix - Changed to reading project location ${sf.project.location} instead of ${sf.config.dir}/../build/config, which isn't always correct.
MattD <mattd@symbian.org>
parents: 354
diff changeset
   206
        <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.repo">
49
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   207
            <arg value="showconfig"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   208
            <arg value="paths.default"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   209
        </exec>
356
f5a4f71b49e1 BOM fix - Changed to reading project location ${sf.project.location} instead of ${sf.config.dir}/../build/config, which isn't always correct.
MattD <mattd@symbian.org>
parents: 354
diff changeset
   210
        <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.rev">
49
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   211
            <arg value="identify"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   212
            <arg value="-n"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   213
        </exec>
356
f5a4f71b49e1 BOM fix - Changed to reading project location ${sf.project.location} instead of ${sf.config.dir}/../build/config, which isn't always correct.
MattD <mattd@symbian.org>
parents: 354
diff changeset
   214
        <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.checksum">
49
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   215
            <arg value="identify"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   216
            <arg value="-i"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   217
        </exec>
356
f5a4f71b49e1 BOM fix - Changed to reading project location ${sf.project.location} instead of ${sf.config.dir}/../build/config, which isn't always correct.
MattD <mattd@symbian.org>
parents: 354
diff changeset
   218
        <echo message="dir ${sf.project.location} : revision ${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}"/>
50
f9a55f310713 Fixed error
DarioS@UK-DarioS.symbian.int
parents: 49
diff changeset
   219
        <exec executable="cmd" output="${build.drive}/output/logs/BOM/project.csv" append="true">
49
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   220
            <arg value="/c"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   221
            <arg value="echo"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   222
            <arg value="${sf.job.bom.project.repo},build/config,${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 48
diff changeset
   223
        </exec>
182
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   224
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   225
        <!-- tools baseline must come before epoc baseline to allow clean listing -->
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   226
        <if>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   227
            <istrue value="${sf.spec.toolsbaseline.enable}" />
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   228
            <then>
245
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   229
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   230
                <!-- record toolsbaseline information in BOM file -->
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   231
                <delete file="${build.drive}/output/logs/BOM/toolsbaseline.txt" quiet="true"/>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   232
                <exec executable="cmd" output="${build.drive}/output/logs/BOM/toolsbaseline.txt">
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   233
                    <arg value="/c"/>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   234
                    <arg value="echo"/>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   235
                    <arg value="${sf.spec.toolsbaseline.location}"/>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   236
                </exec>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   237
182
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   238
                <!-- wrapper around preparation-getenv but with diff params -->
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   239
                <runtarget target="sf-getenv-tools"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   240
                
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   241
                <echo message="INFO Getting tools environment listing"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   242
                <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_toolsbaseline.log">
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   243
                    <arg value="${sf.common.config.dir}/tools/listdir.pl"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   244
                    <arg value="${build.drive}/epoc32"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   245
                </exec>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   246
            </then>
245
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   247
            <else>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   248
                <!-- record fact that no tools baseline used. required by diamondize-bom  -->
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   249
                <touch file="${build.drive}/output/logs/BOM/toolsbaseline.txt"/>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   250
            </else>
182
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   251
        </if>        
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   252
        <if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   253
            <istrue value="${sf.spec.baseline.enable}" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   254
            <then>
46
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 37
diff changeset
   255
            
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 37
diff changeset
   256
                <!-- record baseline information in BOM file -->
48
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   257
                <delete file="${build.drive}/output/logs/BOM/baseline.txt" quiet="true"/>
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   258
                <exec executable="cmd" output="${build.drive}/output/logs/BOM/baseline.txt">
46
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 37
diff changeset
   259
                    <arg value="/c"/>
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 37
diff changeset
   260
                    <arg value="echo"/>
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 37
diff changeset
   261
                    <arg value="${sf.spec.baseline.location}"/>
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 37
diff changeset
   262
                </exec>
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 37
diff changeset
   263
                
80
1b428f25477e First drop of smoketest support
dario
parents: 66
diff changeset
   264
                <!-- run internal target preparation-getenv -->
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   265
                <runtarget target="preparation-getenv"/>
46
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 37
diff changeset
   266
                
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   267
            </then>
108
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 107
diff changeset
   268
            <else>
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 107
diff changeset
   269
                <!-- record fact that no baseline used. required by diamondize-bom  -->
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 107
diff changeset
   270
                <touch file="${build.drive}/output/logs/BOM/baseline.txt"/>
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 107
diff changeset
   271
            </else>
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   272
        </if>
182
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   273
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   274
        <if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   275
            <istrue value="${sf.spec.sourcesync.enable}" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   276
            <then>
340
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   277
                <runtarget target="sf-get-source"/>                
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   278
                <runtarget target="sf-package-source"/>                
134
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 132
diff changeset
   279
                <runtarget target="sf-unpack-rnd"/>
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   280
            </then>
108
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 107
diff changeset
   281
            <else>
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 107
diff changeset
   282
                <!-- record fact that no sources.csv used. required by diamondize-bom  -->
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 107
diff changeset
   283
                <touch file="${build.log.dir}/BOM/sources.csv"/> 
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 107
diff changeset
   284
            </else>
97
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 96
diff changeset
   285
        </if>        
51
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 50
diff changeset
   286
      <if>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 50
diff changeset
   287
        <istrue value="${sf.spec.publish.enable}"/>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 50
diff changeset
   288
        <then>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 50
diff changeset
   289
          <runtarget target="sf-diamondize-bom"/>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 50
diff changeset
   290
        </then>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 50
diff changeset
   291
      </if>
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   292
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   293
    
263
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 262
diff changeset
   294
    <target name="sf-tag-build">
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 262
diff changeset
   295
      <echo>[SF-TAG-BUILD]</echo>
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 262
diff changeset
   296
      <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-tag-build.xml.ftl" outputFile="${build.drive}/output/logs/sf-tag-build.xml">
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 262
diff changeset
   297
        <data expandProperties="yes">
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 262
diff changeset
   298
          ant: antProperties()
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 262
diff changeset
   299
        </data>
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 262
diff changeset
   300
      </fmpp>
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 262
diff changeset
   301
    </target>
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 262
diff changeset
   302
    
182
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   303
    <target name="sf-getenv-tools">
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   304
        <antcall target="preparation-getenv" inheritAll="false">
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   305
            <param name="base_release.path"           value="${sf.spec.toolsbaseline.location}"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   306
            <param name="base_release.getenv_options" value="${sf.spec.toolsbaseline.getenv_options}"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   307
        </antcall>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   308
    </target>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 181
diff changeset
   309
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   310
    <!-- generate dir list using passed location and name 
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   311
    if a baseline list is available then generate deltas too -->
62
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 51 61
diff changeset
   312
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   313
    <target name="sf-list-dir">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   314
        <property name="sf.currentlist.name"   value="${sf.list.name}"/> 
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   315
        <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
352
a4c764727769 sf-list-dir - added new tool 'listdir.py' which can exclude a directory and changed the behaviour of sf-list-dir to stop scanning epoc32/build to speed things up.
MattD <mattd@symbian.org>
parents: 351
diff changeset
   316
        <property name="sf.dir.exclude" value="${build.drive}/epoc32/build"/> 
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   317
    
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   318
        <if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   319
            <istrue value="${sf.spec.dirlist.enable}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   320
            <then>
352
a4c764727769 sf-list-dir - added new tool 'listdir.py' which can exclude a directory and changed the behaviour of sf-list-dir to stop scanning epoc32/build to speed things up.
MattD <mattd@symbian.org>
parents: 351
diff changeset
   321
                <echo message="Dirlist name: ${sf.currentlist.name} requested for ${sf.dir.location} excluding ${sf.dir.exclude}"/>
a4c764727769 sf-list-dir - added new tool 'listdir.py' which can exclude a directory and changed the behaviour of sf-list-dir to stop scanning epoc32/build to speed things up.
MattD <mattd@symbian.org>
parents: 351
diff changeset
   322
                <exec executable="python" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist.name}.log">
a4c764727769 sf-list-dir - added new tool 'listdir.py' which can exclude a directory and changed the behaviour of sf-list-dir to stop scanning epoc32/build to speed things up.
MattD <mattd@symbian.org>
parents: 351
diff changeset
   323
                    <arg value="${sf.common.config.dir}/tools/listdir.py"/>
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   324
                    <arg value="${sf.dir.location}"/>
352
a4c764727769 sf-list-dir - added new tool 'listdir.py' which can exclude a directory and changed the behaviour of sf-list-dir to stop scanning epoc32/build to speed things up.
MattD <mattd@symbian.org>
parents: 351
diff changeset
   325
                    <arg value="${sf.dir.exclude}"/>
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   326
                </exec>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   327
            </then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   328
        </if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   329
    </target>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   330
    
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   331
    <target name="sf-delta-dir">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   332
        <property name="sf.currentlist_a.name"   value="${sf.list_a.name}"/> 
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   333
        <property name="sf.currentlist_b.name"   value="${sf.list_b.name}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   334
        <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   335
        
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   336
        <if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   337
            <istrue value="${sf.spec.dirdelta.enable}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   338
            <then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   339
                <echo message="Delta requested for ${sf.currentlist_a.name} vs ${sf.currentlist_b.name} "/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   340
                <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}_delta.log">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   341
                    <arg value="${sf.common.config.dir}/tools/difflist.pl"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   342
                    <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_a.name}.log"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   343
                    <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}.log"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   344
                </exec>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   345
            </then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   346
        </if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   347
    </target>
62
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 51 61
diff changeset
   348
  
88
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 86
diff changeset
   349
    <target name="sf-intersect-dir">
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   350
        <property name="sf.currentlist_a.name"   value="${sf.list_a.name}"/> 
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   351
        <property name="sf.currentlist_b.name"   value="${sf.list_b.name}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   352
        <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   353
    
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   354
        <if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   355
            <istrue value="${sf.spec.dirdelta.enable}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   356
            <then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   357
                <echo message="Inersection requested for ${sf.currentlist_a.name} vs ${sf.currentlist_b.name} "/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   358
                <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}_intersect.log">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   359
                    <arg value="${sf.common.config.dir}/tools/difflist.pl"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   360
                    <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_a.name}.log"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   361
                    <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}.log"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   362
                    <arg value="-I"/> <!-- run difflist in intersect mode -->
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   363
                </exec>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   364
            </then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   365
        </if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   366
    </target>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   367
267
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 263
diff changeset
   368
    <target name="sf-build-noprep" depends="sf-truclean,sf-model-from-project,sf-compile,sf-postbuild">
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   369
        <echo>[SF-BUILD-NOPREP]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   370
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   371
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   372
    <target name="create-canonical-sysdef-file">
345
94b4a136d800 Simplified create-canonical-sysdef-file so that it's just a simple copy.
Simon Howkins <simonh@symbian.org>
parents: 344
diff changeset
   373
      <copy file="${build.drive}/${sf.spec.systemdefinition.location}" tofile="${canonical.sysdef.file}" failonerror="true" verbose="true"/>
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   374
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   375
    
225
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   376
  <target name="sf-truclean">
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   377
    <if>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   378
      <istrue value="${sf.spec.build.clean.enable}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   379
      <then>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   380
        <echo message="Executing truclean step."/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   381
        <fmpp sourceFile="${sf.common.config.dir}/templates/truclean.ant.xml.ftl"
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   382
            outputFile="${sf.common.config.dir}/generated/truclean.ant.xml">
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   383
          <data expandProperties="yes">
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   384
              ant: antProperties()
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   385
              data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   386
          </data>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   387
        </fmpp>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   388
        <ant antfile="${sf.common.config.dir}/generated/truclean.ant.xml"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   389
      </then>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   390
      <else>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   391
        <echo message="Skipping truclean step."/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   392
      </else>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   393
    </if>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   394
  </target>
267
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 263
diff changeset
   395
  
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 263
diff changeset
   396
  <target name="sf-model-from-project">
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 263
diff changeset
   397
    <if>
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 263
diff changeset
   398
      <isset property="sf.spec.systemdefinition.source"/>
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 263
diff changeset
   399
      <then>
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 263
diff changeset
   400
        <echo message="Using ${sf.spec.systemdefinition.source} as model file"/>
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 263
diff changeset
   401
        <echo message="Copying to ${build.drive}/definition.xml"/>
287
26128bd2e266 Un-hardwired an interim location for the system definition.
Simon Howkins <simonh@symbian.org>
parents: 285
diff changeset
   402
        <copy file="${sf.project.location}/${sf.spec.systemdefinition.source}" tofile="${build.drive}${sf.spec.systemdefinition.location}"/>
267
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 263
diff changeset
   403
      </then>
272
f2e8947e085a Added invokation to build.xml and adjusted path to backup locations to match my development environment.
Simon Howkins <simonh@symbian.org>
parents: 268
diff changeset
   404
      <else>
f2e8947e085a Added invokation to build.xml and adjusted path to backup locations to match my development environment.
Simon Howkins <simonh@symbian.org>
parents: 268
diff changeset
   405
        <!-- Collate the system definition from the packages listed in sources.csv -->
285
9b3d3d909bde Added some diagnostic output when the system definition is built from the sources.csv file.
Simon Howkins <simonh@symbian.org>
parents: 278
diff changeset
   406
        <echo message="Building system model from ${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
274
72ceabdbb597 Should fail the build if we can't generate the system model.
Simon Howkins <simonh@symbian.org>
parents: 273
diff changeset
   407
        <exec executable="perl" dir="${build.drive}/" output="${build.drive}${sf.spec.systemdefinition.location}" logError="true" failonerror="true">
272
f2e8947e085a Added invokation to build.xml and adjusted path to backup locations to match my development environment.
Simon Howkins <simonh@symbian.org>
parents: 268
diff changeset
   408
          <arg value="${sf.common.config.dir}/tools/csvToSysDef.pl"/>
f2e8947e085a Added invokation to build.xml and adjusted path to backup locations to match my development environment.
Simon Howkins <simonh@symbian.org>
parents: 268
diff changeset
   409
          <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
273
f7c6fc4239ac Fixed paths and drives for executing script.
Simon Howkins <simonh@symbian.org>
parents: 272
diff changeset
   410
          <arg value="${sf.config.dir}/../build/config/3k"/>
272
f2e8947e085a Added invokation to build.xml and adjusted path to backup locations to match my development environment.
Simon Howkins <simonh@symbian.org>
parents: 268
diff changeset
   411
        </exec>
f2e8947e085a Added invokation to build.xml and adjusted path to backup locations to match my development environment.
Simon Howkins <simonh@symbian.org>
parents: 268
diff changeset
   412
      </else>
267
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 263
diff changeset
   413
    </if>
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 263
diff changeset
   414
  </target>
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   415
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   416
    <target name="sf-get-source" depends="sf-generate-source-spec">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   417
        <ant antfile="${sf.common.config.dir}/generated/source-spec.ant.xml" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   418
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   419
    
51
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 50
diff changeset
   420
    <target name="sf-diamondize-bom">
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   421
        <fmpp sourceFile="${sf.common.config.dir}/templates/build-info.xml.ftl"
170
4b1e939c052c Added yarp to diamonds publishing
Dario Sestito <darios@symbian.org>
parents: 169
diff changeset
   422
              outputFile="${build.drive}/output/logs/sf-diamondize-bom.xml">
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   423
            <data expandProperties="yes">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   424
                ant: antProperties()
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   425
                config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   426
                project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]})
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   427
                baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim})
245
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   428
                toolsbaseline: slicedText(${build.drive}/output/logs/BOM/toolsbaseline.txt,{trim})
251
c75afb49c4d3 Add branch and changeset support for getting source. BOM sources.csv can now be reused directly.
Shabe Razvi <shaber@symbian.org>
parents: 248
diff changeset
   429
                sources: csv(${build.drive}/output/logs/BOM/sources.csv,{separator:',',headers:[loc,dst,type,rev,sysdef]})              
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   430
            </data>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   431
        </fmpp>
214
216378ca9c25 Export build-info.xml to BOM folder
Shabe Razvi <shaber@symbian.org>
parents: 209
diff changeset
   432
        <!-- Make a copy in BOM dir -->
218
36d82a2f1f92 Tidy up generate-layers and add missing quote
Shabe Razvi <shaber@symbian.org>
parents: 217
diff changeset
   433
        <copy file="${build.drive}/output/logs/sf-diamondize-bom.xml" tofile="${build.log.dir}/BOM/build-info.xml"/>
51
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 50
diff changeset
   434
    </target>
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   435
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   436
    <target name="sf-preprocess-package-config">
132
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 126
diff changeset
   437
        <mkdir dir="${sf.common.config.dir}/generated"/>
340
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   438
            <if><istrue value="${sf.spec.package.src.enable}"/>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   439
            <then>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   440
                <echo message="INFO Packaging Source Repos"/>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   441
                <property name="sf-preprocess-package-config.arg" value=""/>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   442
            </then>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   443
            <else>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   444
                <echo message="INFO Packaging: Ignoring Source Repos"/>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   445
                <property name="sf-preprocess-package-config.arg" value="--nosource"/>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   446
            </else>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   447
            </if>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   448
99
a115d49b621f Include epl/sfl category in zipfile name
Shabe Razvi <shaber@symbian.org>
parents: 98
diff changeset
   449
        <exec executable="perl" dir="${build.drive}/" failonerror="false" output="${build.log.dir}/zipconfig.log">
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   450
            <arg value="${sf.common.config.dir}/tools/populateziptemplate.pl"/>
206
32693583e769 Added Hg local cache management feature.
ThomasE
parents: 201
diff changeset
   451
            <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   452
            <arg value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl.template"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   453
            <arg value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
232
cfde8b1784f7 Simplified the locations of some generated files, so they are created where they need to be rather than created on one place and moved to another.
Simon Howkins <simonh@symbian.org>
parents: 231
diff changeset
   454
            <arg value="${build.log.dir}/rnd_excludefile.txt"/>
340
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 337
diff changeset
   455
            <arg value="${sf-preprocess-package-config.arg}"/>
96
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 92
diff changeset
   456
        </exec>
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   457
    </target>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   458
    
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   459
    <target name="sf-zip-content" depends="preprocess-zip-config">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   460
        <property name="zip.${zip.target.name}.log.file" location="${build.log.dir}/${build.id}_${zip.target.name}_zip.log" />
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   461
        <property name="zips.${zip.target.name}.spec.name" value="${zip.target.name}" />
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   462
        <hlm:zipContentMacro type="${zip.target.name}" file="${zip.config.file}" />
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   463
    </target>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   464
    
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   465
    <target name="sf-package-source" depends="sf-preprocess-package-config">
241
d64a45951a43 Small tweak to get the right content with the right filename for doing a PDK release.
Simon Howkins <simonh@symbian.org>
parents: 239
diff changeset
   466
        <!-- Firstly zip up src & rnd by package -->
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   467
        <antcall target="sf-zip-content">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   468
            <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   469
            <param name="zip.target.name" value="src" />
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   470
        </antcall>
241
d64a45951a43 Small tweak to get the right content with the right filename for doing a PDK release.
Simon Howkins <simonh@symbian.org>
parents: 239
diff changeset
   471
        <!-- Then zip up src zips by layer -->
239
5033df3f8834 Create zips of zips for SFL src.
Simon Howkins <simonh@symbian.org>
parents: 238
diff changeset
   472
        <antcall target="sf-zip-content">
5033df3f8834 Create zips of zips for SFL src.
Simon Howkins <simonh@symbian.org>
parents: 238
diff changeset
   473
            <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
5033df3f8834 Create zips of zips for SFL src.
Simon Howkins <simonh@symbian.org>
parents: 238
diff changeset
   474
            <param name="zip.target.name" value="src-by-layer" />
5033df3f8834 Create zips of zips for SFL src.
Simon Howkins <simonh@symbian.org>
parents: 238
diff changeset
   475
        </antcall>
107
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   476
    </target>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 104
diff changeset
   477
    
132
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 126
diff changeset
   478
    <!-- unpack rnd zips if available -->
134
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 132
diff changeset
   479
    <target name="sf-unpack-rnd">
132
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 126
diff changeset
   480
        <echo message="Unpacking any available RnD binaries"/>
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 126
diff changeset
   481
        <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/unzip_${build.id}_binaries_rnd.log">
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 126
diff changeset
   482
        <arg value="x"/>
194
10c7559f5d31 'sf-unpack-rnd' target: changed to overwrite mode, due to TEF being present earlier in build.
matt.davies@SYM-BUILD02.ad-sfpd.intra
parents: 190
diff changeset
   483
        <arg value="-y"/> <!-- Need to unpack in overwrite mode, due to TEF -->
288
a0e85954c23c Fix packaging issues. Released zips now delivered in zips\release folder.
Shabe Razvi <shaber@symbian.org>
parents: 260
diff changeset
   484
        <arg value="${build.drive}/output/zips/bin*.zip"/>
132
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 126
diff changeset
   485
        </exec>
122
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   486
    </target>
354
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   487
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   488
    <target name="sf-find-ATS-worker-root">
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   489
      <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/devices" failonerror="false" outputproperty="sf.spec.test.workerroot">
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   490
        <arg value="-pe"/>
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   491
        <arg value="&quot;m/TEMPDIR=(\S+)/;print $1;s/.*\n//g&quot;"/>
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   492
        <arg value="${env.COMPUTERNAME}\EMULATOR_GENERIC_${env.COMPUTERNAME}.properties" /> 
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   493
      </exec>
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   494
      <echo message="ATS Worker Root = ${sf.spec.test.workerroot}"/> 
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   495
    </target>
132
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 126
diff changeset
   496
    
354
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   497
    <target name ="sf-make-junction" depends="sf-find-ATS-worker-root">
122
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   498
        
354
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   499
        <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}"/>
122
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   500
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   501
        <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   502
        <arg value="make_junction.pl"/>
354
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   503
        <arg value="--link=${sf.spec.test.workerroot}/${sf.spec.test.epocroot}/epoc32"/>
122
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   504
        <arg value="--target=${build.drive}/epoc32"/>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   505
        <arg value="--force"/>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   506
      </exec>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   507
    </target>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   508
354
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   509
    <target name ="sf-delete-junction" depends="sf-find-ATS-worker-root">
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   510
        <exec executable="junction.exe" dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}" failonerror="false" output="${build.log.dir}/ATS_${build.id}_delete_junction.log">
122
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   511
        <arg value="-d"/>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   512
        <arg value="epoc32"/>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   513
      </exec>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 120
diff changeset
   514
    </target>  
354
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 352
diff changeset
   515
        
31
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   516
</project>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   517