bootstrap.xml
author Simon Howkins <simonh@symbian.org>
Fri, 11 Dec 2009 16:07:54 +0000
changeset 62 2797c7d55e8b
parent 26 4f2349a6289f
child 63 be578de158ab
permissions -rw-r--r--
Removed drivce space check for platform builds, as there's already one in the FBF anyway, and platform builds are not generally expected to run concurrently (which was the rationale for the check in the bootstrap.)
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">
7
e042f0022639 Fixed to enable the temp directory to be created in the right place, and avoid cluttering up the CWD.
Simon Howkins <simonh@symbian.org>
parents: 4
diff changeset
     3
    
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
     4
  <property environment="env"/>
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     5
    
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
     6
  <dirname property="sf.bootstrap.dir" file="${ant.file.SF-CONFIG}"/>
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
     7
  
10
c1cbd33e46c0 reintroduced import of helium.ant.xml as it was generating diamonds warnings
BuildAdmin@LON-ENGBUILD89
parents: 9
diff changeset
     8
  <import file="${helium.dir}/helium.ant.xml" /> 
c1cbd33e46c0 reintroduced import of helium.ant.xml as it was generating diamonds warnings
BuildAdmin@LON-ENGBUILD89
parents: 9
diff changeset
     9
  
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    10
  <!-- target dir -->
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    11
  <property name="bootstrap.base.dir" value="D:\fbf_project"/> <!-- old name -->
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    12
  <property name="sf.target.dir" value="${bootstrap.base.dir}"/>
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    13
  
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    14
  <!-- config -->
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    15
  <property name="sf.config.repo" value="${sf.config.repository}"/> <!-- old name -->
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    16
  <property name="sf.config.rev" value="tip"/>
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    17
  <echo message="config: repo=${sf.config.repo} rev=${sf.config.rev}"/>
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    18
  
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    19
  <!-- project -->
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    20
  <property name="sf.project.repo" value="${platform.config.repository}"/> <!-- old name -->
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    21
  <property name="sf.project.rev" value="tip"/>
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    22
  <echo message="project: repo=${sf.project.repo} rev=${sf.project.rev}"/>
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    23
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    24
  <target name="bootstrap" depends="init,get-sf-config,get-sf-project" />
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    25
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    26
  <target name="init">
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    27
    <mkdir dir="${sf.target.dir}" />
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    28
    <mkdir dir="${sf.target.dir}/build" />
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    29
    <mkdir dir="${sf.target.dir}/build/config" />
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    30
  </target>
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    31
    
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    32
  <target name="clean-env">
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    33
    <echo message="cleaning up the environment" />
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    34
    <delete dir="${sf.target.dir}/" />
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    35
  </target>
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    36
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    37
  <target name="get-sf-config">
16
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    38
    <if>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    39
      <isset property="sf.config.dir"/>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    40
      <then>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    41
        <echo message="Getting FBF configuration from dir ${sf.config.dir}"/>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    42
        <copy todir="${sf.target.dir}/sf-config">
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    43
          <fileset dir="${sf.config.dir}"/>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    44
        </copy>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    45
      </then>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    46
      <else>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    47
        <echo message="Getting FBF configuration from repository ${sf.config.repo}"/>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    48
        <hlm:scm verbose="true" scmUrl="scm:hg:${sf.config.repo}">
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    49
          <hlm:checkout basedir="${sf.target.dir}/sf-config"/>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    50
          <hlm:update basedir="${sf.target.dir}/sf-config">
26
4f2349a6289f Fixed stray curly bracket
Dario Sestito <darios@symbian.org>
parents: 24
diff changeset
    51
            <hlm:tag name="${sf.config.rev}"/>
16
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    52
          </hlm:update>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    53
        </hlm:scm>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    54
      </else>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    55
    </if>
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    56
  </target>
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    57
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    58
  <target name="get-sf-project">
16
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    59
    <if>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    60
      <isset property="sf.project.dir"/>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    61
      <then>
20
78c3f68f39f1 Fixed misspelled var for project.dir
Dario Sestito <darios@symbian.org>
parents: 16
diff changeset
    62
        <echo message="Getting FBF project from dir ${sf.project.dir}"/>
16
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    63
        <copy todir="${sf.target.dir}/build/config">
20
78c3f68f39f1 Fixed misspelled var for project.dir
Dario Sestito <darios@symbian.org>
parents: 16
diff changeset
    64
          <fileset dir="${sf.project.dir}"/>
16
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    65
        </copy>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    66
      </then>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    67
      <else>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    68
        <echo message="Getting FBF project from repository ${sf.project.repo}"/>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    69
        <hlm:scm verbose="true" scmUrl="scm:hg:${sf.project.repo}">
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    70
          <hlm:checkout basedir="${sf.target.dir}/build/config"/>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    71
          <hlm:update basedir="${sf.target.dir}/build/config">
24
ed4e68942437 Allow revisions for projects and configs
Dario Sestito <darios@symbian.org>
parents: 21
diff changeset
    72
            <hlm:tag name="${sf.project.rev}"/>
16
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    73
          </hlm:update>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    74
        </hlm:scm>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    75
      </else>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    76
    </if>
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    77
  </target>
1
ebb0926c7024 Update with latest changes
shaberazvi@L063442.prod.ad.symbian.intra
parents: 0
diff changeset
    78
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
    79
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    80
</project>