common/build.xml
author Shabe Razvi <shaber@symbian.org>
Thu, 30 Apr 2009 16:09:08 +0100
changeset 78 52cc4f7310db
parent 76 a115d49b621f
child 81 5e724ff842b4
permissions -rw-r--r--
Strip drive and dir root from listing
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
41
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"?>
73
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
     2
<project name="SF-COMMON-CONFIG" xmlns:hlm="http://www.nokia.com/helium">
41
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
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     8
    <!-- import common properties -->
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}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    24
    <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
    25
    <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
    26
    <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    27
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    28
    <!-- import all core HELIUM targets -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    29
    <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
    30
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    31
    <!-- import common references -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    32
    <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
    33
             
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    34
    <!-- 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
    35
    <if><available  file="${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
    36
        <then>		    		
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    37
            <echo message="Generated source spec found, importing..." />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    38
    				<import file="${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
    39
    		</then>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    40
    </if>
69
c933fe776713 Fix generated sysdef filename and also remove erroneous comment
BuildAdmin@LON-ENGBUILD87
parents: 65
diff changeset
    41
     
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    42
    
47
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 41
diff changeset
    43
    <target name="sf-prep" depends="sf-generate-source-spec,prep-drive,init-build-area,check-tool-dependencies,create-bom,log-build-env">
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    44
        <echo>[SF-PREP]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    45
        <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    46
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    47
        
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    48
    <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
    49
        <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
    50
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    51
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    52
    <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
    53
        <echo>[SF-BUILD]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    54
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    55
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    56
    <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
    57
    <!-- 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
    58
    used by the builds. -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    59
        <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
    60
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    61
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    62
    <target name="sf-generate-source-spec" depends="sf-parse-project-config">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    63
        <!-- 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
    64
        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
    65
        <!-- TODO: 2. Change fmpp data to be a full property rather than relative path -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    66
        
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    67
        <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
    68
              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
    69
              <data expandProperties="yes">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    70
                    ant: antProperties()
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    71
                    data: csv(${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    72
              </data>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    73
        </fmpp>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    74
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    75
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    76
    <target name="sf-prebuild">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    77
        <echo>[SF-PREBUILD]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    78
        
47
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 41
diff changeset
    79
        <!-- create BOM dir -->
58
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 57
diff changeset
    80
        <mkdir dir="${build.drive}/output/logs/BOM"/>
47
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 41
diff changeset
    81
        
59
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    82
        <!-- record project and config information in BOM files -->
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    83
        <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: 58
diff changeset
    84
        <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: 58
diff changeset
    85
            <arg value="showconfig"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    86
            <arg value="paths.default"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    87
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    88
        <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: 58
diff changeset
    89
            <arg value="identify"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    90
            <arg value="-n"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    91
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    92
        <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: 58
diff changeset
    93
            <arg value="identify"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    94
            <arg value="-i"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    95
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    96
        <echo message="dir ${sf.config.dir} : revision ${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}"/>
60
f9a55f310713 Fixed error
DarioS@UK-DarioS.symbian.int
parents: 59
diff changeset
    97
        <exec executable="cmd" output="${build.drive}/output/logs/BOM/config.csv" append="true">
59
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    98
            <arg value="/c"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
    99
            <arg value="echo"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   100
            <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: 58
diff changeset
   101
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   102
        <delete file="${build.drive}/output/logs/BOM/project.csv" quiet="true"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   103
        <exec executable="hg" dir="${sf.config.dir}/../build/config" outputproperty="sf.job.bom.project.repo">
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   104
            <arg value="showconfig"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   105
            <arg value="paths.default"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   106
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   107
        <exec executable="hg" dir="${sf.config.dir}/../build/config" outputproperty="sf.job.bom.project.rev">
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   108
            <arg value="identify"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   109
            <arg value="-n"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   110
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   111
        <exec executable="hg" dir="${sf.config.dir}/../build/config" outputproperty="sf.job.bom.project.checksum">
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   112
            <arg value="identify"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   113
            <arg value="-i"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   114
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   115
        <echo message="dir ${sf.config.dir}/../build/config : revision ${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}"/>
60
f9a55f310713 Fixed error
DarioS@UK-DarioS.symbian.int
parents: 59
diff changeset
   116
        <exec executable="cmd" output="${build.drive}/output/logs/BOM/project.csv" append="true">
59
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   117
            <arg value="/c"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   118
            <arg value="echo"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   119
            <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: 58
diff changeset
   120
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   121
        
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   122
        <if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   123
            <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
   124
            <then>
56
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   125
            
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   126
                <!-- record baseline information in BOM file -->
58
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 57
diff changeset
   127
                <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: 57
diff changeset
   128
                <exec executable="cmd" output="${build.drive}/output/logs/BOM/baseline.txt">
56
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   129
                    <arg value="/c"/>
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   130
                    <arg value="echo"/>
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   131
                    <arg value="${sf.spec.baseline.location}"/>
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   132
                </exec>
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   133
                
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   134
                <!-- run interal target preparation-getenv -->
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   135
                <runtarget target="preparation-getenv"/>
56
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   136
                
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   137
            </then>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   138
        </if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   139
        
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   140
        <if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   141
            <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
   142
            <then>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   143
                <runtarget target="sf-get-source"/>
74
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   144
				
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   145
				<if><istrue value="${sf.spec.package.src.enable}"/>
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   146
				<then>
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   147
					<echo message="INFO Packaging Source"/>
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   148
					<runtarget target="sf-package-source"/>
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   149
				</then>
75
df71a85ab63f Add missing </if>
Shabe Razvi <shaber@symbian.org>
parents: 74
diff changeset
   150
				</if>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   151
            </then>
74
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   152
        </if>        
61
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   153
      <if>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   154
        <istrue value="${sf.spec.publish.enable}"/>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   155
        <then>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   156
          <runtarget target="sf-diamondize-bom"/>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   157
        </then>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   158
      </if>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   159
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   160
    
62
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   161
  <target name="sf-postbuild" depends="sf-zip-logs">
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   162
    <echo>[SF-POSTBUILD]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   163
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   164
    <!-- TAG SOURCE CODE -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   165
    <if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   166
      <istrue value="${sf.spec.tagafterbuild.enable}" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   167
      <then>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   168
        <echo message="Apply tag to the source code used in this build"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   169
        <runtarget target="sf-tag-hg-code"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   170
      </then>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   171
    </if>
74
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   172
	
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   173
	<if>
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   174
		<istrue value="${sf.spec.package.bin.enable}"/>
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   175
		<then>
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   176
			<echo message="INFO Packaging Binaries"/>
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   177
			<runtarget target="sf-package-binary"/>
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   178
		</then>
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   179
	</if>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   180
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   181
    <!-- PUBLISH LOGS/REPORTS -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   182
    <if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   183
      <istrue 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
   184
      <then>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   185
        <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   186
        <runtarget target="publish"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   187
      </then>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   188
    </if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   189
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   190
  </target>
62
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   191
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   192
  <!-- package all logs into zipfile before publish -->
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   193
  <target name="sf-zip-logs">
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   194
    <if>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   195
      <istrue value="${sf.spec.logs.zip.enable}"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   196
      <then>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   197
        <property name="temp.log.zip" value="${env.TEMP}/build_logs_${sf.spec.job.name}_${build.number}.zip"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   198
        <echo message="Zip log requested, zipping logs..."/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   199
        <zip destfile="${temp.log.zip}" basedir="${build.log.dir}"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   200
        <move file="${temp.log.zip}" todir="${build.log.dir}" failonerror="false"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   201
      </then>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   202
    </if>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   203
  </target>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   204
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   205
  <!-- generate dir list using passed location and name 
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   206
  if a baseline list is available then generate deltas too -->
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   207
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   208
  <target name="sf-list-dir">
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   209
    <property name="sf.currentlist.name"   value="${sf.list.name}"/> 
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   210
    <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   211
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   212
    <if>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   213
      <istrue value="${sf.spec.dirlist.enable}"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   214
      <then>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   215
        <echo message="Dirlist name: ${sf.currentlist.name} requested for ${sf.dir.location}"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   216
        <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist.name}.log">
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   217
          <arg value="${sf.common.config.dir}/tools/listdir.pl"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   218
          <arg value="${sf.dir.location}"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   219
        </exec>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   220
      </then>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   221
    </if>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   222
  </target>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   223
	
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   224
  <target name="sf-delta-dir">
63
f5604d0e720a Correct source and target diff files
ShabeR@UK-SHABER
parents: 62
diff changeset
   225
    <property name="sf.currentlist_a.name"   value="${sf.list_a.name}"/> 
62
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   226
    <property name="sf.currentlist_b.name"   value="${sf.list_b.name}"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   227
    <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   228
    		
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   229
    <if>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   230
      <istrue value="${sf.spec.dirdelta.enable}"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   231
      <then>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   232
        <echo message="Delta requested for ${sf.currentlist_a.name} vs ${sf.currentlist_b.name} "/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   233
        <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}_delta.log">
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   234
          <arg value="${sf.common.config.dir}/tools/difflist.pl"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   235
          <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_a.name}.log"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   236
          <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}.log"/>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   237
        </exec>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   238
      </then>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   239
    </if>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   240
  </target>
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   241
  
65
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   242
    <target name="sf-intersect-dir">
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   243
    <property name="sf.currentlist_a.name"   value="${sf.list_a.name}"/> 
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   244
    <property name="sf.currentlist_b.name"   value="${sf.list_b.name}"/>
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   245
    <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
73
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   246
	
65
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   247
    <if>
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   248
      <istrue value="${sf.spec.dirdelta.enable}"/>
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   249
      <then>
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   250
        <echo message="Inersection requested for ${sf.currentlist_a.name} vs ${sf.currentlist_b.name} "/>
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   251
        <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}_intersect.log">
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   252
          <arg value="${sf.common.config.dir}/tools/difflist.pl"/>
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   253
          <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_a.name}.log"/>
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   254
          <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}.log"/>
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   255
          <arg value="-I"/> <!-- run difflist in intersect mode -->
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   256
        </exec>
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   257
      </then>
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   258
    </if>
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   259
  </target>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   260
    <target name="sf-build-noprep" depends="sf-compile">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   261
        <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
   262
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   263
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   264
    <target name="create-canonical-sysdef-file">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   265
      <if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   266
        <istrue value="${sf.spec.systemdefinition.assemble}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   267
        <then>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   268
          <echo message="Calling Helium create-canonical-sysdef-file target to assemble sysdef fragments."/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   269
          <runtarget target="compile.create-canonical-sysdef-file"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   270
        </then>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   271
        <else>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   272
          <echo message="Will use ${build.drive}/${sf.spec.systemdefinition.location} as is as sysdef file"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   273
          <copy file="${build.drive}/${sf.spec.systemdefinition.location}" tofile="${build.drive}/output/build/canonical_system_definition.xml" failonerror="true" verbose="true"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   274
        </else>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   275
      </if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   276
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   277
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   278
    <target name="sf-compile">    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   279
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   280
    	<!-- TODO: add here assigments to raptor-related ant references -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   281
 	
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   282
    	<!-- hlm:argSet id="sbs.tools.var">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   283
			<hlm:arg name="config" value="${sf.spec.sbs.config}" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   284
			<hlm:arg name="singlejob" value="..." />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   285
			<hlm:arg name="enable-filter" value="..." />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   286
		</hlm:argSet -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   287
    	
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   288
        <!-- target name="compile-main-prebuild" -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   289
        <antcall target="compile-main" inheritAll="false">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   290
            <param 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
   291
            <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   292
            <!--<reference refid="sf.system.definition.files" torefid="system.definition.files" />-->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   293
        </antcall>    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   294
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   295
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   296
    <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
   297
        <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
   298
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   299
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   300
    <target name="sf-tag-hg-code">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   301
      <property name="sf.tagafterbuild.tag" value="${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   302
      <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   303
            outputFile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   304
        <data expandProperties="yes">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   305
              ant: antProperties()
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   306
              data: csv(${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   307
        </data>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   308
      </fmpp>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   309
      <ant antfile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   310
    </target>
61
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   311
    
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   312
    <target name="sf-diamondize-bom">
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   313
      <fmpp sourceFile="${sf.common.config.dir}/templates/build-info.xml.ftl"
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   314
            outputFile="${build.drive}/output/logs/BOM/build-info.xml">
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   315
        <data expandProperties="yes">
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   316
              ant: antProperties()
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   317
              config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   318
              project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]})
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   319
              baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim})
73
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   320
              sources: csv(${build.drive}/output/logs/BOM/sources.csv,{separator:',',headers:[loc,dst,rev]})              
61
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   321
        </data>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   322
      </fmpp>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   323
    </target>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   324
73
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   325
	<target name="sf-preprocess-package-config">
76
a115d49b621f Include epl/sfl category in zipfile name
Shabe Razvi <shaber@symbian.org>
parents: 75
diff changeset
   326
        <exec executable="perl" dir="${build.drive}/" failonerror="false" output="${build.log.dir}/zipconfig.log">
73
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   327
          <arg value="${sf.common.config.dir}/tools/populateziptemplate.pl"/>
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   328
          <arg value="${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}"/>
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   329
          <arg value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl.template"/>
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   330
        </exec>
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   331
	</target>
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   332
	
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   333
	<target name="sf-zip-content" depends="preprocess-zip-config">
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   334
		<property name="zip.${zip.target.name}.log.file" location="${build.log.dir}/${build.id}_${zip.target.name}_zip.log" />
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   335
		<property name="zips.${zip.target.name}.spec.name" value="${zip.target.name}" />
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   336
		<hlm:zipContentMacro type="${zip.target.name}" file="${zip.config.file}" />
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   337
	</target>
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   338
	
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   339
	<target name="sf-package-source" depends="sf-preprocess-package-config">
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   340
		<antcall target="sf-zip-content">
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   341
			<param name="zip.config.file" value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl"/>
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   342
			<param name="zip.target.name" value="src" />
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   343
		</antcall>	
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   344
	</target>
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   345
	
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   346
	<target name="sf-package-binary" depends="sf-preprocess-package-config">
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   347
		<antcall target="sf-zip-content">
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   348
		    <param name="zip.config.file" value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl"/>
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   349
			<param name="zip.target.name" value="bin" />
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   350
		</antcall>	
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   351
	</target>
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   352
	
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   353
</project>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   354
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   355