common/build.xml
author shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
Tue, 10 Mar 2009 19:05:52 +0000
changeset 14 d40c87fa5c20
parent 13 046dbf1ae2da
child 19 3bb3e0eff093
permissions -rw-r--r--
Restore properties.default.ant.xml and allow projec spec to be 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 -->
046dbf1ae2da Progress in moving old vars to new formats
dejianmeng@d070750.prod.ad.symbian.intra
parents: 11
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
    
11
5a54277d3867 Enabled sf properties: sf.baseline.location and sf.baseline.getenv_options
dejianmeng@d070750.prod.ad.symbian.intra
parents: 9
diff changeset
     8
    <!-- import common properties/spec -->
5a54277d3867 Enabled sf properties: sf.baseline.location and sf.baseline.getenv_options
dejianmeng@d070750.prod.ad.symbian.intra
parents: 9
diff changeset
     9
    <loadproperties srcFile="${sf.common.config.dir}/common.properties"/>
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
    10
    <import file="${sf.common.config.dir}/common_spec.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
    11
    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    12
    <!-- import all core HELIUM targets -->
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    13
    <import file="${helium.dir}/helium.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
    14
             
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    15
    <!-- 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
    16
    <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
    17
        <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
    18
            <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
    19
    				<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
    20
    		</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
    21
    </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
    22
    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    23
    <!--
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    24
    ** TARGET DEFINITIONS
9
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    25
    -->   
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    26
    
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    27
    <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
    28
        <echo>[SF-PREP]</echo>
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    29
        <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
    30
    </target>
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    31
        
9
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    32
    <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
    33
        <echo>[SF-BUILD-ALL]</echo>
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    34
    </target>
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    35
    
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    36
    <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
    37
        <echo>[SF-BUILD]</echo>
29394d95b3e1 Merge all changes
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 8 6
diff changeset
    38
    </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
    39
    
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
    <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
    41
    <!-- 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
    42
    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
    43
        <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
    44
    </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
    45
    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    46
    <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
    47
        <!-- 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
    48
        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
    49
        <!-- 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
    50
        
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
    51
        <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
    52
              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
    53
              <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
    54
                    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
    55
                    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
    56
              </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
    57
        </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
    58
    </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
    59
    
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
    <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
    61
        <echo>[SF-PREBUILD]</echo>
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    62
        
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
    63
        <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
    64
            <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
    65
            <then>
11
5a54277d3867 Enabled sf properties: sf.baseline.location and sf.baseline.getenv_options
dejianmeng@d070750.prod.ad.symbian.intra
parents: 9
diff changeset
    66
                <property name="base_release.path" value="${sf.spec.baseline.location}"/>
5a54277d3867 Enabled sf properties: sf.baseline.location and sf.baseline.getenv_options
dejianmeng@d070750.prod.ad.symbian.intra
parents: 9
diff changeset
    67
                <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
5a54277d3867 Enabled sf properties: sf.baseline.location and sf.baseline.getenv_options
dejianmeng@d070750.prod.ad.symbian.intra
parents: 9
diff changeset
    68
                <echo>base_release.path=${base_release.path}, base_release.getenv_options=${base_release.getenv_options}</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
    69
                <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
    70
            </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
    71
        </if>
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    72
        
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
    73
        <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
    74
            <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
    75
            <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
    76
                <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
    77
            </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
    78
        </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
    79
    </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
    80
    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    81
    <target name="sf-postbuild">
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
        <echo>[SF-POSTBUILD]</echo>
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
    </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
    84
    
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
    85
    <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
    86
        <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
    87
    </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
    88
    
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
    <target name="sf-compile">    
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
        <!-- 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
    91
        <antcall target="compile-main" inheritAll="false">
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
            <param name="build.system" value="sbs" />
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
            <param name="sysdef.configurations.list" value="s60_build_clean,s60_build" />
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
            <!--<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
    95
        </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
    96
    </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
    97
    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    98
    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
    99
    <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
   100
        <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
   101
    </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
   102
    
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 5
diff changeset
   103
    
0
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
   104
</project>
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
   105
571f289c60b8 Initial drop of FBF Helium configuration
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
   106