common/build.xml
author ShabeR@UK-SHABER
Wed, 15 Apr 2009 14:15:35 +0100
changeset 40 54444a2ae2db
parent 39 9edae8fe1416
child 62 2771e394c9bd
permissions -rw-r--r--
1. Update list and delta targets 2. Add WHAT target 3. Make raptor filter configurable
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     2
<project name="SF-COMMON-CONFIG">
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     3
13
046dbf1ae2da Progress in moving old vars to new formats
dejianmeng@d070750.prod.ad.symbian.intra
parents: 11
diff changeset
     4
    <property environment="env"/> <!-- make environment variables available via env -->
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
     5
    
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
     6
    <dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
     7
    
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
     8
    <!-- import common properties -->
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
     9
    <import file="${sf.common.config.dir}/common_props.ant.xml" />
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    10
    
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    11
    <!-- setup Helium internal properties from their equivalent in the project spec -->
30
62563fa42f57 name, codeline, number
dariosestito@L063522.prod.ad.symbian.intra
parents: 29
diff changeset
    12
    <property name="build.name" value="${sf.spec.job.name}"/>
62563fa42f57 name, codeline, number
dariosestito@L063522.prod.ad.symbian.intra
parents: 29
diff changeset
    13
    <property name="core.build.version" value="${sf.spec.job.codeline}"/>
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    14
    <property name="build.number" value="${sf.spec.job.number}"/>
29
eb008692e822 Job drive defaults to G: and job number defaults to 0
dariosestito@L063522.prod.ad.symbian.intra
parents: 28
diff changeset
    15
    <property name="build.drive" value="${sf.spec.job.drive}"/>
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    16
    <property name="build.family" value="${sf.project.type}"/>
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    17
    <property name="email.from" value="${sf.spec.email.from}"/>
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    18
    <property name="local.free.space" value="${sf.spec.job.freespace}"/>
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    19
    <property name="network.free.space" value="${sf.spec.publish.network.freespace}"/>
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    20
    <property name="network.drive" value="${sf.spec.publish.networkdrive}"/>
28
3d263295af67 Changed default rootdir and made it be used
dariosestito@L063522.prod.ad.symbian.intra
parents: 27
diff changeset
    21
    <property name="prep.root.dir" value="${sf.spec.job.rootdir}"/>
26
50f9c55550f1 Added publishing of logs and reports
dariosestito@L063522.prod.ad.symbian.intra
parents: 25
diff changeset
    22
    <property name="publish" value="${sf.spec.publish.enable}"/>
50f9c55550f1 Added publishing of logs and reports
dariosestito@L063522.prod.ad.symbian.intra
parents: 25
diff changeset
    23
    <property name="publish.root.dir" value="${sf.spec.publish.rootdir}"/>
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    24
    <property name="build.system" value="${sf.spec.build.system}"/>
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    25
    <property name="base_release.path" value="${sf.spec.baseline.location}"/>
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    26
    <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    27
    
23
cde62357aba5 Moved back the override
dariosestito@L063522.prod.ad.symbian.intra
parents: 22
diff changeset
    28
    <!-- import all core HELIUM targets -->
cde62357aba5 Moved back the override
dariosestito@L063522.prod.ad.symbian.intra
parents: 22
diff changeset
    29
    <import file="${helium.dir}/helium.ant.xml" />
cde62357aba5 Moved back the override
dariosestito@L063522.prod.ad.symbian.intra
parents: 22
diff changeset
    30
    
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    31
    <!-- import common references -->
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
    32
    <import file="${sf.common.config.dir}/common_refs.ant.xml" />
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    33
             
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    34
    <!-- conditional import of generated source spec if available -->
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    35
    <if><available  file="${sf.common.config.dir}/generated/source-spec.ant.xml" />
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    36
        <then>		    		
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    37
            <echo message="Generated source spec found, importing..." />
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    38
    				<import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    39
    		</then>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    40
    </if>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    41
    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    42
    <!--
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    43
    ** TARGET DEFINITIONS
9
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    44
    -->   
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    45
    
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    46
    <target name="sf-prep" depends="sf-generate-source-spec, prep-drive,init-build-area,check-tool-dependencies,create-bom,log-build-env">
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    47
        <echo>[SF-PREP]</echo>
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    48
        <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/>
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    49
    </target>
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    50
        
9
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    51
    <target name="sf-build-all" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    52
        <echo>[SF-BUILD-ALL]</echo>
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    53
    </target>
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    54
    
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    55
    <target name="sf-build" depends="sf-prep,sf-prebuild,sf-build-noprep,sf-postbuild">
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    56
        <echo>[SF-BUILD]</echo>
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    57
    </target>
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    58
    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    59
    <target name="sf-parse-project-config">
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    60
    <!-- TODO: Parse the project config and generate properties and csv file to be
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    61
    used by the builds. -->
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    62
        <echo message="Parse the project configuration" />
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    63
    </target>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    64
    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    65
    <target name="sf-generate-source-spec" depends="sf-parse-project-config">
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    66
        <!-- TODO: 1. Same file name souce-spec.ant.xml is used for all packages
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    67
        for multiple package builds, this needs to be linked with package name. -->
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    68
        <!-- TODO: 2. Change fmpp data to be a full property rather than relative path -->
6
8bbcf7b2218d Various changes
dariosestito@d070750.prod.ad.symbian.intra
parents: 5
diff changeset
    69
        
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    70
        <fmpp sourceFile="${sf.common.config.dir}/templates/source-spec.ant.xml.ftl"
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    71
              outputFile="${sf.common.config.dir}/generated/source-spec.ant.xml">
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    72
              <data expandProperties="yes">
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    73
                    ant: antProperties()
14
d40c87fa5c20 Restore properties.default.ant.xml and allow projec spec to be configurable
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 13
diff changeset
    74
                    data: csv(${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    75
              </data>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    76
        </fmpp>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    77
    </target>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    78
    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    79
    <target name="sf-prebuild">
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    80
        <echo>[SF-PREBUILD]</echo>
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    81
        
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    82
        <if>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    83
            <istrue value="${sf.spec.baseline.enable}" />
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    84
            <then>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    85
                <runtarget target="preparation-getenv"/>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    86
            </then>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    87
        </if>
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    88
        
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    89
        <if>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    90
            <istrue value="${sf.spec.sourcesync.enable}" />
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    91
            <then>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    92
                <runtarget target="sf-get-source"/>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    93
            </then>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    94
        </if>     
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    95
    </target>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    96
    
37
00208f982d58 Add sf-zip-logs target to be run before sf-postbuild. Packages logs in zipfile for easy transfer.
ShabeR@UK-SHABER
parents: 30
diff changeset
    97
  <target name="sf-postbuild" depends="sf-zip-logs">
26
50f9c55550f1 Added publishing of logs and reports
dariosestito@L063522.prod.ad.symbian.intra
parents: 25
diff changeset
    98
    <echo>[SF-POSTBUILD]</echo>
50f9c55550f1 Added publishing of logs and reports
dariosestito@L063522.prod.ad.symbian.intra
parents: 25
diff changeset
    99
    <runtarget target="publish"/>
50f9c55550f1 Added publishing of logs and reports
dariosestito@L063522.prod.ad.symbian.intra
parents: 25
diff changeset
   100
    <if>
50f9c55550f1 Added publishing of logs and reports
dariosestito@L063522.prod.ad.symbian.intra
parents: 25
diff changeset
   101
      <istrue value="${sf.spec.publish.enable}" />
50f9c55550f1 Added publishing of logs and reports
dariosestito@L063522.prod.ad.symbian.intra
parents: 25
diff changeset
   102
      <then>
50f9c55550f1 Added publishing of logs and reports
dariosestito@L063522.prod.ad.symbian.intra
parents: 25
diff changeset
   103
        <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
25
393f5234e12c Added publishing stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 24
diff changeset
   104
        <runtarget target="publish"/>
26
50f9c55550f1 Added publishing of logs and reports
dariosestito@L063522.prod.ad.symbian.intra
parents: 25
diff changeset
   105
      </then>
50f9c55550f1 Added publishing of logs and reports
dariosestito@L063522.prod.ad.symbian.intra
parents: 25
diff changeset
   106
    </if>
50f9c55550f1 Added publishing of logs and reports
dariosestito@L063522.prod.ad.symbian.intra
parents: 25
diff changeset
   107
  </target>
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   108
    
37
00208f982d58 Add sf-zip-logs target to be run before sf-postbuild. Packages logs in zipfile for easy transfer.
ShabeR@UK-SHABER
parents: 30
diff changeset
   109
		
00208f982d58 Add sf-zip-logs target to be run before sf-postbuild. Packages logs in zipfile for easy transfer.
ShabeR@UK-SHABER
parents: 30
diff changeset
   110
    <!-- package all logs into zipfile before publish -->
00208f982d58 Add sf-zip-logs target to be run before sf-postbuild. Packages logs in zipfile for easy transfer.
ShabeR@UK-SHABER
parents: 30
diff changeset
   111
    <target name="sf-zip-logs">
40
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   112
		<if><istrue value="${sf.spec.logs.zip.enable}"/>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   113
			<then>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   114
				<property name="temp.log.zip" value="${env.TEMP}/build_logs_${sf.spec.job.name}_${build.number}.zip"/>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   115
				<echo message="Zip log requested, zipping logs..."/>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   116
				<zip destfile="${temp.log.zip}" basedir="${build.log.dir}"/>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   117
				<move file="${temp.log.zip}" todir="${build.log.dir}" failonerror="false"/>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   118
			</then>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   119
		</if>
37
00208f982d58 Add sf-zip-logs target to be run before sf-postbuild. Packages logs in zipfile for easy transfer.
ShabeR@UK-SHABER
parents: 30
diff changeset
   120
    </target>
00208f982d58 Add sf-zip-logs target to be run before sf-postbuild. Packages logs in zipfile for easy transfer.
ShabeR@UK-SHABER
parents: 30
diff changeset
   121
	
39
9edae8fe1416 Add tools to create file tree deltas and integrate them into build f/w
ShabeR@UK-SHABER
parents: 37
diff changeset
   122
	<!-- generate dir list using passed location and name 
9edae8fe1416 Add tools to create file tree deltas and integrate them into build f/w
ShabeR@UK-SHABER
parents: 37
diff changeset
   123
	if a baseline list is available then generate deltas too -->
9edae8fe1416 Add tools to create file tree deltas and integrate them into build f/w
ShabeR@UK-SHABER
parents: 37
diff changeset
   124
	
9edae8fe1416 Add tools to create file tree deltas and integrate them into build f/w
ShabeR@UK-SHABER
parents: 37
diff changeset
   125
	<target name="sf-list-dir">
40
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   126
		<property name="sf.currentlist.name"   value="${sf.list.name}"/> 
39
9edae8fe1416 Add tools to create file tree deltas and integrate them into build f/w
ShabeR@UK-SHABER
parents: 37
diff changeset
   127
		<property name="sf.dir.location" value="${build.drive}/epoc32"/> 
9edae8fe1416 Add tools to create file tree deltas and integrate them into build f/w
ShabeR@UK-SHABER
parents: 37
diff changeset
   128
		
40
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   129
		<if><istrue value="${sf.spec.dirlist.enable}"/>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   130
			<then>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   131
			<echo message="Dirlist name: ${sf.currentlist.name} requested for ${sf.dir.location}"/>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   132
			<exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist.name}.log">
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   133
				<arg value="${sf.common.config.dir}/tools/listdir.pl"/>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   134
				<arg value="${sf.dir.location}"/>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   135
			</exec>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   136
			</then>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   137
		</if>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   138
	</target>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   139
	
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   140
	<target name="sf-delta-dir">
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   141
		<property name="sf.currentlist_a.name"   value="${sf.list_b.name}"/> 
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   142
		<property name="sf.currentlist_b.name"   value="${sf.list_b.name}"/>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   143
		<property name="sf.dir.location" value="${build.drive}/epoc32"/> 
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   144
    		
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   145
		<if><istrue value="${sf.spec.dirdelta.enable}"/>
39
9edae8fe1416 Add tools to create file tree deltas and integrate them into build f/w
ShabeR@UK-SHABER
parents: 37
diff changeset
   146
		<then>
40
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   147
		<echo message="Delta requested for ${sf.currentlist_a.name} vs ${sf.currentlist_b.name} "/>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   148
			<exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}_delta.log">
39
9edae8fe1416 Add tools to create file tree deltas and integrate them into build f/w
ShabeR@UK-SHABER
parents: 37
diff changeset
   149
				<arg value="${sf.common.config.dir}/tools/difflist.pl"/>
40
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   150
				<arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_a.name}.log"/>
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   151
				<arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}.log"/>
39
9edae8fe1416 Add tools to create file tree deltas and integrate them into build f/w
ShabeR@UK-SHABER
parents: 37
diff changeset
   152
			</exec>
9edae8fe1416 Add tools to create file tree deltas and integrate them into build f/w
ShabeR@UK-SHABER
parents: 37
diff changeset
   153
		</then>
9edae8fe1416 Add tools to create file tree deltas and integrate them into build f/w
ShabeR@UK-SHABER
parents: 37
diff changeset
   154
		</if>
40
54444a2ae2db 1. Update list and delta targets
ShabeR@UK-SHABER
parents: 39
diff changeset
   155
	</target>	
8
b7bfb0cc6f4a Remove duplicate sync and rename sf-build-run to correct sf-build-noprep target
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 7
diff changeset
   156
    <target name="sf-build-noprep" depends="sf-compile">
b7bfb0cc6f4a Remove duplicate sync and rename sf-build-run to correct sf-build-noprep target
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 7
diff changeset
   157
        <echo>[SF-BUILD-NOPREP]</echo>
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   158
    </target>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   159
    
24
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   160
    <target name="create-canonical-sysdef-file">
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   161
      <if>
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   162
        <istrue value="${sf.spec.systemdefinition.assemble}"/>
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   163
        <then>
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   164
          <echo message="Calling Helium create-canonical-sysdef-file target to assemble sysdef fragments."/>
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   165
          <runtarget target="compile.create-canonical-sysdef-file"/>
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   166
        </then>
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   167
        <else>
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   168
          <echo message="Will use ${build.drive}/${sf.spec.systemdefinition.location} as is as sysdef file"/>
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   169
          <copy file="${build.drive}/${sf.spec.systemdefinition.location}" tofile="${build.drive}/output/build/canonical_system_definition.xml" failonerror="true" verbose="true"/>
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   170
        </else>
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   171
      </if>
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   172
    </target>
1cdce57ae369 Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
dariosestito@L063522.prod.ad.symbian.intra
parents: 23
diff changeset
   173
    
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   174
    <target name="sf-compile">    
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
   175
    
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
   176
    	<!-- TODO: add here assigments to raptor-related ant references -->
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
   177
 	
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
   178
    	<!-- hlm:argSet id="sbs.tools.var">
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
   179
			<hlm:arg name="config" value="${sf.spec.sbs.config}" />
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
   180
			<hlm:arg name="singlejob" value="..." />
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
   181
			<hlm:arg name="enable-filter" value="..." />
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
   182
		</hlm:argSet -->
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
   183
    	
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   184
        <!-- target name="compile-main-prebuild" -->
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   185
        <antcall target="compile-main" inheritAll="false">
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
   186
            <param name="build.system" value="${sf.spec.build.system}"/>
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
   187
            <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   188
            <!--<reference refid="sf.system.definition.files" torefid="system.definition.files" />-->
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   189
        </antcall>    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   190
    </target>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   191
    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   192
    <target name="sf-get-source" depends="sf-generate-source-spec">
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   193
        <ant antfile="${sf.common.config.dir}/generated/source-spec.ant.xml" />
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   194
    </target>
18
9f36ff790ea7 Reorganized property/reference importing structure
dariosestito@L063522.prod.ad.symbian.intra
parents: 13
diff changeset
   195
37
00208f982d58 Add sf-zip-logs target to be run before sf-postbuild. Packages logs in zipfile for easy transfer.
ShabeR@UK-SHABER
parents: 30
diff changeset
   196
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
   197
</project>
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
   198
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
   199