bootstrap.xml
author shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
Thu, 05 Mar 2009 18:00:27 +0000
changeset 4 5a8eb3466f9f
parent 3 c360fdfe164c
child 7 e042f0022639
permissions -rw-r--r--
Remove template and fmmp generation from bootstrap. Use sourcefile definition from project spec.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     2
<project name="SF-BOOTSTRAP" default="bootstrap" xmlns:hlm="http://www.nokia.com/helium">
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     3
1
ebb0926c7024 Update with latest changes
shaberazvi@L063442.prod.ad.symbian.intra
parents: 0
diff changeset
     4
    <dirname property="sf.bootstrap.dir" file="${ant.file.SF-CONFIG}"/>
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     5
    
1
ebb0926c7024 Update with latest changes
shaberazvi@L063442.prod.ad.symbian.intra
parents: 0
diff changeset
     6
    <import file="bootstrap.properties.ant.xml" />
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     7
    <import file="${helium.dir}/helium.ant.xml" />    
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     8
4
5a8eb3466f9f Remove template and fmmp generation from bootstrap. Use sourcefile definition from project spec.
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 3
diff changeset
     9
    <target name="bootstrap" depends="init,get-sf-config,get-project-config" />
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    10
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    11
    <target name="init">
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    12
        <mkdir dir="${bootstrap.base.dir}" />
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    13
        <mkdir dir="${bootstrap.base.dir}/build" />
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    14
        <mkdir dir="${bootstrap.base.dir}/build/config" />
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    15
    </target>
4
5a8eb3466f9f Remove template and fmmp generation from bootstrap. Use sourcefile definition from project spec.
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 3
diff changeset
    16
    
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    17
    <target name="clean-env">
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    18
        <echo message="cleaning up the environment" />
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    19
        <delete dir="${bootstrap.base.dir}/" />
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    20
    </target>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    21
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    22
    <target name="get-sf-config">
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    23
        <echo message="Getting sf helium configuration from repository ${sf.config.repository}" />
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    24
        <hlm:scm verbose="true" scmUrl="scm:hg:${sf.config.repository}">
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    25
            <hlm:checkout basedir="${bootstrap.base.dir}/sf-config"/>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    26
        </hlm:scm>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    27
    </target>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    28
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    29
    <target name="get-sbs-tools">
1
ebb0926c7024 Update with latest changes
shaberazvi@L063442.prod.ad.symbian.intra
parents: 0
diff changeset
    30
        <!-- Todo: Move this to helium config or after parsing platform build configuration 
ebb0926c7024 Update with latest changes
shaberazvi@L063442.prod.ad.symbian.intra
parents: 0
diff changeset
    31
        to install the tools from there  -->
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    32
    	<if>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    33
    		<not><available file="${bootstrap.base.dir}/sbs"/></not>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    34
    		<then>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    35
                <echo message="Extracting sbs tools ${sbs.tools.src.path}/${sbs.zip.file}" />
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    36
    			<unzip src="${sbs.tools.src.path}/${sbs.zip.file}" dest="${bootstrap.base.dir}" />
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    37
                <echo message="Updating sbs tools path to batch file" />
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    38
        	    <echo file="${bootstrap.base.dir}/build/env.bat" append="true" >set SBS_HOME=${bootstrap.base.dir}\sbs
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    39
set PATH=${bootstrap.base.dir}\sbs\bin;${bootstrap.base.dir}\sbs\win32\mingw\bin;${bootstrap.base.dir}\sbs\win32\cygwin\bin;%PATH%
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    40
        	    </echo>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    41
    		</then>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    42
   	    </if>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    43
    </target>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    44
4
5a8eb3466f9f Remove template and fmmp generation from bootstrap. Use sourcefile definition from project spec.
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 3
diff changeset
    45
    <target name="get-project-config">
5a8eb3466f9f Remove template and fmmp generation from bootstrap. Use sourcefile definition from project spec.
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 3
diff changeset
    46
        <echo message="Getting project configuration${platform.config.repository}" />
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    47
        <hlm:scm verbose="true" scmUrl="scm:hg:${platform.config.repository}">
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    48
            <hlm:checkout basedir="${bootstrap.base.dir}/build/config"/>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    49
        </hlm:scm>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    50
    </target>
1
ebb0926c7024 Update with latest changes
shaberazvi@L063442.prod.ad.symbian.intra
parents: 0
diff changeset
    51
4
5a8eb3466f9f Remove template and fmmp generation from bootstrap. Use sourcefile definition from project spec.
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 3
diff changeset
    52
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    53
</project>