sf-platform/build.xml
author brendand@symbian.org
Wed, 30 Jun 2010 09:50:02 +0100
changeset 1125 347520d321d4
parent 1116 029af3c09d9d
child 1169 5fafe4f9fda8
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
38
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
     2
<project name="SF-PLATFORM-CONFIG" xmlns:hlm="http://www.nokia.com/helium">
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
     3
  <!-- location of this config -->
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
     4
  <dirname property="sf.platform.config.dir" file="${ant.file.SF-PLATFORM-CONFIG}"/>
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
     5
367
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
     6
  <!-- import package properties -->
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
     7
  <import file="${sf.platform.config.dir}/platform_props.ant.xml" optional="true"/>
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
     8
  
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
     9
  <!-- import common properties/targets/references -->
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
    10
  <import file="../common/build.xml" />
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
    11
  
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
    12
  <!-- import package references -->
bed8f6bc974b Added disk space check for all builds.
Simon Howkins <simonh@symbian.org>
parents: 359
diff changeset
    13
  <import file="${sf.platform.config.dir}/platform_refs.ant.xml"  optional="true"/>
914
e4c5389160b3 Fix scan_antlogs.pl execution plus fix ConE calls to use PDT_HOME env variable
Shabe Razvi <shaber@symbian.org>
parents: 913
diff changeset
    14
  
e4c5389160b3 Fix scan_antlogs.pl execution plus fix ConE calls to use PDT_HOME env variable
Shabe Razvi <shaber@symbian.org>
parents: 913
diff changeset
    15
    <!-- pre helium 7+ should import compile targets from compile-hlm-5.ant.xml -->
913
eeffe74cd1b2 Add initial support for Helium7 for the platform.
Shabe Razvi <shaber@symbian.org>
parents: 899
diff changeset
    16
    <if>
eeffe74cd1b2 Add initial support for Helium7 for the platform.
Shabe Razvi <shaber@symbian.org>
parents: 899
diff changeset
    17
        <or>
914
e4c5389160b3 Fix scan_antlogs.pl execution plus fix ConE calls to use PDT_HOME env variable
Shabe Razvi <shaber@symbian.org>
parents: 913
diff changeset
    18
          <equals arg1="${helium.version}" arg2="5.0"/>
e4c5389160b3 Fix scan_antlogs.pl execution plus fix ConE calls to use PDT_HOME env variable
Shabe Razvi <shaber@symbian.org>
parents: 913
diff changeset
    19
          <equals arg1="${last.major.helium.version}" arg2="5.0"/>
913
eeffe74cd1b2 Add initial support for Helium7 for the platform.
Shabe Razvi <shaber@symbian.org>
parents: 899
diff changeset
    20
        </or>
eeffe74cd1b2 Add initial support for Helium7 for the platform.
Shabe Razvi <shaber@symbian.org>
parents: 899
diff changeset
    21
        <then>
914
e4c5389160b3 Fix scan_antlogs.pl execution plus fix ConE calls to use PDT_HOME env variable
Shabe Razvi <shaber@symbian.org>
parents: 913
diff changeset
    22
            <echo>INFO Importing HLM5 compile targets</echo>
e4c5389160b3 Fix scan_antlogs.pl execution plus fix ConE calls to use PDT_HOME env variable
Shabe Razvi <shaber@symbian.org>
parents: 913
diff changeset
    23
            <import file="${sf.platform.config.dir}/compile-hlm-5.ant.xml"/>          
913
eeffe74cd1b2 Add initial support for Helium7 for the platform.
Shabe Razvi <shaber@symbian.org>
parents: 899
diff changeset
    24
        </then>
eeffe74cd1b2 Add initial support for Helium7 for the platform.
Shabe Razvi <shaber@symbian.org>
parents: 899
diff changeset
    25
        <else>
914
e4c5389160b3 Fix scan_antlogs.pl execution plus fix ConE calls to use PDT_HOME env variable
Shabe Razvi <shaber@symbian.org>
parents: 913
diff changeset
    26
             <echo>INFO Importing HLM7 compile targets</echo>
e4c5389160b3 Fix scan_antlogs.pl execution plus fix ConE calls to use PDT_HOME env variable
Shabe Razvi <shaber@symbian.org>
parents: 913
diff changeset
    27
             <import file="${sf.platform.config.dir}/compile.ant.xml"/>
913
eeffe74cd1b2 Add initial support for Helium7 for the platform.
Shabe Razvi <shaber@symbian.org>
parents: 899
diff changeset
    28
        </else>
914
e4c5389160b3 Fix scan_antlogs.pl execution plus fix ConE calls to use PDT_HOME env variable
Shabe Razvi <shaber@symbian.org>
parents: 913
diff changeset
    29
    </if>
38
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
    30
359
16775fa40f8c Moved comments around to be adjacent to the thing that they're describing.
Simon Howkins <simonh@symbian.org>
parents: 357
diff changeset
    31
  <!-- MattD - workaround until generating a model from package definitions works-->
899
d80a65072ed8 Add Helium 7 support for package builds.
Shabe Razvi <shaber@symbian.org>
parents: 870
diff changeset
    32
  <target name="sf-build-noprep" depends="sf-platform-bootstrap,sf-compile,sf-postbuild">
359
16775fa40f8c Moved comments around to be adjacent to the thing that they're describing.
Simon Howkins <simonh@symbian.org>
parents: 357
diff changeset
    33
    <echo>[SF-BUILD-NOPREP] (platform)</echo>
16775fa40f8c Moved comments around to be adjacent to the thing that they're describing.
Simon Howkins <simonh@symbian.org>
parents: 357
diff changeset
    34
    <echo>[SF-BUILD-NOPREP] WARNING: Not generating model from packages</echo>
16775fa40f8c Moved comments around to be adjacent to the thing that they're describing.
Simon Howkins <simonh@symbian.org>
parents: 357
diff changeset
    35
  </target>
16775fa40f8c Moved comments around to be adjacent to the thing that they're describing.
Simon Howkins <simonh@symbian.org>
parents: 357
diff changeset
    36
482
81211967e594 Generate BuildInfo.txt based upon new sf.spec.sbs.variant property
Shabe Razvi <shaber@symbian.org>
parents: 453
diff changeset
    37
  <target name="sf-platform-bootstrap" depends="sf-gen-buildinfo-txt,sf-platform-bootstrap-gt,sf-platform-bootstrap-s60"/>
81211967e594 Generate BuildInfo.txt based upon new sf.spec.sbs.variant property
Shabe Razvi <shaber@symbian.org>
parents: 453
diff changeset
    38
81211967e594 Generate BuildInfo.txt based upon new sf.spec.sbs.variant property
Shabe Razvi <shaber@symbian.org>
parents: 453
diff changeset
    39
  <target name="sf-gen-buildinfo-txt">
81211967e594 Generate BuildInfo.txt based upon new sf.spec.sbs.variant property
Shabe Razvi <shaber@symbian.org>
parents: 453
diff changeset
    40
    <mkdir dir="${build.drive}/epoc32/data/"/> 
645
212217a07072 sf-gen-buildinfo-txt target in platform build - De-CamelCasing buildinfo.txt deletion and creation to fix zip inclusion/exclusion problems.
MattD <mattd@symbian.org>
parents: 637
diff changeset
    41
    <delete file="${build.drive}/epoc32/data/buildinfo.txt"/>
212217a07072 sf-gen-buildinfo-txt target in platform build - De-CamelCasing buildinfo.txt deletion and creation to fix zip inclusion/exclusion problems.
MattD <mattd@symbian.org>
parents: 637
diff changeset
    42
    <echo file="${build.drive}/epoc32/data/buildinfo.txt" append="true" message="DeviceFamily               100 ${line.separator}"/>
212217a07072 sf-gen-buildinfo-txt target in platform build - De-CamelCasing buildinfo.txt deletion and creation to fix zip inclusion/exclusion problems.
MattD <mattd@symbian.org>
parents: 637
diff changeset
    43
    <echo file="${build.drive}/epoc32/data/buildinfo.txt" append="true" message="DeviceFamilyRev            0x900 ${line.separator}"/>
212217a07072 sf-gen-buildinfo-txt target in platform build - De-CamelCasing buildinfo.txt deletion and creation to fix zip inclusion/exclusion problems.
MattD <mattd@symbian.org>
parents: 637
diff changeset
    44
    <echo file="${build.drive}/epoc32/data/buildinfo.txt" append="true" message="ManufacturerSoftwareBuild  ${build.id}_Symbian_OS_v${sf.spec.sbs.variant} ${line.separator}"/>
482
81211967e594 Generate BuildInfo.txt based upon new sf.spec.sbs.variant property
Shabe Razvi <shaber@symbian.org>
parents: 453
diff changeset
    45
  </target>
375
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    46
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    47
  <target name="sf-platform-bootstrap-gt" >
391
bb7bd27a0a82 bldmefirst fix for symbian^2 symbian^3 builds - getting location of symbian_OS.hrh and variant.cfg from the project config.
MattD <mattd@symbian.org>
parents: 375
diff changeset
    48
    <echo>[SF-platform-bootstrap-gt]</echo>
375
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    49
    <!-- do initial stuff to get raptor working -->
453
ab0e196dc2a6 Export all required .hrh files
Shabe Razvi <shaber@symbian.org>
parents: 394
diff changeset
    50
    <copy todir="${build.drive}/epoc32/include/variant/" failonerror="true" verbose="true">
ab0e196dc2a6 Export all required .hrh files
Shabe Razvi <shaber@symbian.org>
parents: 394
diff changeset
    51
        <fileset dir="${build.drive}/${sf.spec.bldmefirst.gt.hrh}" includes="*.hrh"/>
ab0e196dc2a6 Export all required .hrh files
Shabe Razvi <shaber@symbian.org>
parents: 394
diff changeset
    52
    </copy>
619
5a46e24ea747 Fixed md5 zipping in case no publish is requested.
ThomasE
parents: 598
diff changeset
    53
    <copy file="${build.drive}/${sf.spec.bldmefirst.gt.variant}" tofile="${build.drive}/epoc32/tools/variant/variant.cfg" failonerror="true" verbose="true" overwrite="true" preservelastmodified="true" />
1116
029af3c09d9d Add bldmefirst export for s60_sbs_config.xml to allow use of custom sbs targets
Shabe Razvi <shaber@symbian.org>
parents: 1100
diff changeset
    54
    <copy file="${build.drive}/${sf.spec.bldmefirst.sbs.config.xml}" tofile="${build.drive}/epoc32/sbs_config/s60_sbs_config.xml" failonerror="false" verbose="true" overwrite="true" preservelastmodified="true" />
532
082968cf2c9e Updated mechanism to manage Symbian_OS.hrh file to be inline with latest Nokia drop.
ThomasE
parents: 482
diff changeset
    55
	<if><isset property="sf.spec.bldmefirst.gt.hrh.os"/>
082968cf2c9e Updated mechanism to manage Symbian_OS.hrh file to be inline with latest Nokia drop.
ThomasE
parents: 482
diff changeset
    56
	 <then>
598
8d55bb26ab6f Copy Symbian_OS.HRH to required location
Shabe Razvi <shaber@symbian.org>
parents: 539
diff changeset
    57
	  <copy file="${build.drive}/${sf.spec.bldmefirst.gt.hrh.os}" tofile="${build.drive}/epoc32/include/variant/Symbian_OS.hrh" failonerror="false" overwrite="true" verbose="true" preservelastmodified="true" />
532
082968cf2c9e Updated mechanism to manage Symbian_OS.hrh file to be inline with latest Nokia drop.
ThomasE
parents: 482
diff changeset
    58
	 </then>
082968cf2c9e Updated mechanism to manage Symbian_OS.hrh file to be inline with latest Nokia drop.
ThomasE
parents: 482
diff changeset
    59
	</if>
375
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    60
  </target>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    61
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    62
  <target name="sf-platform-bootstrap-s60" >    
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    63
    <!-- Do touch on S60 variant.cfg to force raptor to export -->
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    64
    <touch file="${build.drive}/${sf.spec.bldmefirst.s60.sbs.variant.cfg}" />
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    65
    <delete file="${build.log.dir}/${build.id}_bldmefirst-s60.log"/>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    66
1100
561033b10e0f Major rework to enable rebuilds of the platform from single sf-build call
Shabe Razvi <shaber@symbian.org>
parents: 1080
diff changeset
    67
    <!-- turn comma separated list into sbs friendly -c list, and _ separated list for friendly log names -->
561033b10e0f Major rework to enable rebuilds of the platform from single sf-build call
Shabe Razvi <shaber@symbian.org>
parents: 1080
diff changeset
    68
    <propertyregex property="i.sf.spec.sbs.config.expanded"         override="true" input="${sf.spec.sbs.config}" regexp="(,)" replace=" -c " defaultValue="${sf.spec.sbs.config}" global="true"  casesensitive="false"/>
561033b10e0f Major rework to enable rebuilds of the platform from single sf-build call
Shabe Razvi <shaber@symbian.org>
parents: 1080
diff changeset
    69
    <propertyregex property="i.sf.spec.sbs.tools.config.expanded"   override="true" input="${sf.spec.sbs.tools.config}" regexp="(,)" replace=" -c " defaultValue="${sf.spec.sbs.config}" global="true"  casesensitive="false"/>
561033b10e0f Major rework to enable rebuilds of the platform from single sf-build call
Shabe Razvi <shaber@symbian.org>
parents: 1080
diff changeset
    70
561033b10e0f Major rework to enable rebuilds of the platform from single sf-build call
Shabe Razvi <shaber@symbian.org>
parents: 1080
diff changeset
    71
    <echo message="INFO Target : ${i.sf.spec.sbs.config.expanded} ${i.sf.spec.sbs.tools.config.expanded}"/>
561033b10e0f Major rework to enable rebuilds of the platform from single sf-build call
Shabe Razvi <shaber@symbian.org>
parents: 1080
diff changeset
    72
561033b10e0f Major rework to enable rebuilds of the platform from single sf-build call
Shabe Razvi <shaber@symbian.org>
parents: 1080
diff changeset
    73
    <property name="sf.compile.bldmefirst.command.sbsexport" value="sbs EXPORT --ignore-os-detection --export-only -c ${i.sf.spec.sbs.config.expanded} -c ${i.sf.spec.sbs.tools.config.expanded}"/>
375
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    74
    <!-- do bldmefirst stage 1-->
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    75
    <for list="${sf.spec.bldmefirst.s60.exports}" delimiter="," param="sf.spec.bldmefirst.s60.export">
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    76
      <sequential>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    77
          <echo message="Performing bldmefirst export on @{sf.spec.bldmefirst.s60.export}"/>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    78
          <exec executable="cmd" dir="${build.drive}" failonerror="true" append="true" output="${build.log.dir}/${build.id}_bldmefirst-s60.log">
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    79
            <arg value="/c"/>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    80
            <arg value="${sf.compile.bldmefirst.command.sbsexport}" />
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    81
            <arg value="-b"/>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    82
            <arg value="${build.drive}/@{sf.spec.bldmefirst.s60.export}/bld.inf"/>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    83
          </exec>  
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    84
      </sequential>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    85
    </for>  
700
660b634546aa If makefile_template copy fails then ignore, as its no longer needed for S^3.
Shabe Razvi <shaber@symbian.org>
parents: 645
diff changeset
    86
    <!-- needed for s^2 but not s^3 - so ignore if not present -->
660b634546aa If makefile_template copy fails then ignore, as its no longer needed for S^3.
Shabe Razvi <shaber@symbian.org>
parents: 645
diff changeset
    87
    <copy todir="${build.drive}/epoc32/tools/makefile_templates/s60" failonerror="false">
375
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    88
        <fileset dir="${build.drive}/sf/tools/makefile_templates">
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    89
          <exclude name=".hg*"/>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    90
          <exclude name=".hg/**"/>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    91
          <exclude name="layers.sysdef.xml"/>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    92
        </fileset>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    93
    </copy>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    94
  </target>
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    95
            
65e81f48fe17 platform build - first cut of 'bldmefirst' stage to get rid of bldmefirst repo. Should probably add a check to see if it's enabled.
MattD <mattd@symbian.org>
parents: 367
diff changeset
    96
38
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
    97
  <!-- workaround until GenXML can merge v2.0.0 fragments -->
348
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
    98
  <!--
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
    99
    This target is effectively a callback, called from compile-main.
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   100
    Its responsibility is to convert the set of peices in ref "system.definition.files" into one sys def with absolute paths
38
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   101
348
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   102
    However, in our builds, we know that there will only be one sysdef peice passed in, so that makes things a lot simpler
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   103
  -->
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   104
  <target name="create-canonical-sysdef-file">
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   105
    <fail message="Symbian builds create a canonical system definition from exactly one peice">
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   106
      <condition>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   107
        <resourcecount refid="system.definition.files" when="ne" count="1"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   108
      </condition>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   109
    </fail>
38
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   110
348
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   111
    <!-- Locate the first/only item referenced -->
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   112
    <for param="file">
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   113
      <resources refid="system.definition.files"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   114
      <sequential>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   115
        <echo message="@{file}"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   116
        <!-- Once a property is set, it stays set - bingo! -->
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   117
        <property name="sf.first.system.definition" value="@{file}"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   118
      </sequential>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   119
    </for>
38
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   120
348
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   121
    <!-- Having located the file, copy it to the final desired location, absoluting tha paths as we go -->
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   122
    <copy tofile="${canonical.sysdef.file}" file="${sf.first.system.definition}" overwrite="true" verbose="true">
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   123
      <filterchain>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   124
        <replaceregex pattern="bldFile=&quot;os" replace="bldFile=&quot;/sf/os" flags="gi"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   125
        <replaceregex pattern="mrp=&quot;os" replace="mrp=&quot;/sf/os" flags="gi"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   126
        <replaceregex pattern="bldFile=&quot;mw" replace="bldFile=&quot;/sf/mw" flags="gi"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   127
        <replaceregex pattern="mrp=&quot;mw" replace="mrp=&quot;/sf/mw" flags="gi"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   128
        <replaceregex pattern="bldFile=&quot;app" replace="bldFile=&quot;/sf/app" flags="gi"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   129
        <replaceregex pattern="mrp=&quot;app" replace="mrp=&quot;/sf/app" flags="gi"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   130
        <replaceregex pattern="bldFile=&quot;tools" replace="bldFile=&quot;/sf/tools" flags="gi"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   131
        <replaceregex pattern="mrp=&quot;tools" replace="mrp=&quot;/sf/tools" flags="gi"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   132
        <replaceregex pattern="bldFile=&quot;adaptation" replace="bldFile=&quot;/sf/adaptation" flags="gi"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   133
        <replaceregex pattern="mrp=&quot;adaptation" replace="mrp=&quot;/sf/adaptation" flags="gi"/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   134
        <expandproperties/>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   135
      </filterchain>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   136
    </copy>
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   137
1079
6677e2cb0850 Added call to produce package definition peices from system definition(s).
Simon Howkins <simonh@symbian.org>
parents: 933
diff changeset
   138
    <!-- Now also break up the system definition into a set of package definitions that it corresponds to -->
6677e2cb0850 Added call to produce package definition peices from system definition(s).
Simon Howkins <simonh@symbian.org>
parents: 933
diff changeset
   139
    <exec executable="perl.exe">
6677e2cb0850 Added call to produce package definition peices from system definition(s).
Simon Howkins <simonh@symbian.org>
parents: 933
diff changeset
   140
        <arg value="${sf.common.config.dir}/tools/split_sysdef.pl"/>
6677e2cb0850 Added call to produce package definition peices from system definition(s).
Simon Howkins <simonh@symbian.org>
parents: 933
diff changeset
   141
        <arg value="--sysdef=${canonical.sysdef.file}"/>
1080
35aea233d3f7 Changed locations of package_definitions to make the files a little bit more usable
Dario Sestito <darios@symbian.org>
parents: 1079
diff changeset
   142
        <arg value="--outdir=${build.log.dir}/package_definitions"/>
1079
6677e2cb0850 Added call to produce package definition peices from system definition(s).
Simon Howkins <simonh@symbian.org>
parents: 933
diff changeset
   143
    </exec>
6677e2cb0850 Added call to produce package definition peices from system definition(s).
Simon Howkins <simonh@symbian.org>
parents: 933
diff changeset
   144
348
bf437da77ab4 Simplify the create-canonical-sysdef-file target as we can depend on there only being a single sysdef in the supplied reference.
Simon Howkins <simonh@symbian.org>
parents: 311
diff changeset
   145
 </target>
38
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   146
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   147
  <!--
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   148
    == Name: SF-COMPILE
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   149
    ==
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   150
    == Desc: Override of common sf-compile target defined in
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   151
    ==       common\build.xml
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   152
    ==
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   153
    ==       os  build will be skipped if sf.spec.os.skipbuild=true
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   154
    ==       s60 build will be skipped if sf.spec.s60.skipbuild=true
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   155
    ==
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   156
    -->
1079
6677e2cb0850 Added call to produce package definition peices from system definition(s).
Simon Howkins <simonh@symbian.org>
parents: 933
diff changeset
   157
  <target name="sf-compile">
861
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   158
    <stopwatch name="sf-compile"/>
38
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   159
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   160
    <!-- TODO clean up to single target once genxml v2.0.0 merge is fixed -->
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   161
    <if><istrue value="${sf.spec.splitbuild}"/>
861
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   162
      <then>
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   163
        <if><istrue value="${sf.spec.os.skipbuild}" />
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   164
          <then><echo message="Skipping OS build"/></then>
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   165
          <else><runtarget target="sf-os-compile"/></else>
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   166
        </if>
38
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   167
861
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   168
        <if><istrue value="${sf.spec.s60.skipbuild}" />
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   169
          <then><echo message="Skipping S60 build"/></then>
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   170
          <else><runtarget target="sf-s60-compile"/></else>
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   171
        </if>
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   172
      </then>
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   173
      <else>
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   174
        <!-- TODO targets for single sysdef build -->
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   175
        <runtarget target="sf-os-compile"/>
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   176
      </else>
238
43d4995ff976 Move runtarget outside if conditional
Shabe Razvi <shaber@symbian.org>
parents: 237
diff changeset
   177
    </if>
43d4995ff976 Move runtarget outside if conditional
Shabe Razvi <shaber@symbian.org>
parents: 237
diff changeset
   178
861
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   179
    <!-- always run cenrep -->
869
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   180
    <if><equals arg1="${sf.spec.job.name}" arg2="symbian2"/>
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   181
    <then>
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   182
        <runtarget target="sf-s60-create-cenrep"/>
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   183
    </then>
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   184
    <else>
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   185
        <!-- symbian3+ should use ConE -->
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   186
        <runtarget target="sf-s60-cone-cenrep"/>
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   187
    </else>
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   188
    </if>
861
caa0601f50c5 Added stopwatch tasks through most of the code hit during a platform build.
Simon Howkins <simonh@symbian.org>
parents: 830
diff changeset
   189
    <stopwatch name="sf-compile" action="elapsed"/>
38
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   190
  </target>
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   191
932
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   192
  <target name="sf-s60-create-cenrep">
785
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   193
    <echo message="INFO Generating CenRep"/>
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   194
    <echo message="Move 'sf.spec.s60.cenrep.export.location' out of the build..."/>
804
4d736e733cd5 Fix cenrep export location
Shabe Razvi <shaber@symbian.org>
parents: 785
diff changeset
   195
    <property name="sf.spec.s60.cenrep.export.location.1" value="/epoc32/rom/config/confml_data/s60"/>
808
8f386eeff5ad Remove s60 postfix from sf-s60-create-cenrep for Symbian^3
Shabe Razvi <shaber@symbian.org>
parents: 804
diff changeset
   196
    <property name="sf.spec.s60.cenrep.export.location.2" value="/epoc32/rom/config/assets"/>
785
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   197
932
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   198
    <if><available file="${build.drive}/${sf.spec.s60.cenrep.export.location.1}" type="dir"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   199
      <then>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   200
        <property name="sf.spec.s60.cenrep.export.location" value="${sf.spec.s60.cenrep.export.location.1}"/>
785
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   201
      </then>
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   202
      <else>
932
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   203
        <property name="sf.spec.s60.cenrep.export.location" value="${sf.spec.s60.cenrep.export.location.2}"/>
785
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   204
      </else>
932
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   205
    </if>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   206
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   207
    <echo message="${helium.dir}/../ConfigurationTool/cli_build.cmd -master_conf s60 -impl ${sf.spec.s60.cenrep.export.location} -confml ${sf.spec.s60.cenrep.export.location} -ignore_errors" />
785
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   208
    <exec executable="${helium.dir}/../ConfigurationTool/cli_build.cmd" dir="${build.drive}" failonerror="false" output="${build.log.dir}/${build.id}_create_cenrep.log">
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   209
      <arg value="-master_conf"/>
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   210
      <arg value="s60"/>
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   211
      <arg value="-impl"/>
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   212
      <arg value="${sf.spec.s60.cenrep.export.location}"/>
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   213
      <arg value="-confml"/>
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   214
      <arg value="${sf.spec.s60.cenrep.export.location}"/>
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   215
      <arg value="-ignore_errors"/>
cf98fb6a1da9 Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
MattD <mattd@symbian.org>
parents: 700
diff changeset
   216
    </exec>
932
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   217
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   218
    <if><available  file="${build.drive}/cli_build_error.log" />
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   219
      <then>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   220
        <echo message="INFO CenRep error log found, moving to ${build.log.dir}" />
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   221
        <move file="${build.drive}/cli_build_error.log" todir="${build.log.dir}" failonerror="false"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   222
      </then>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   223
    </if>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   224
  </target>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   225
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   226
  <target name="sf-s60-cone-cenrep">
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   227
    <!-- TODO: Make this better, as multiple exec calls are a bit clunky -->
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   228
    <if>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   229
      <available file="${env.PDT_HOME}/ConE/" type="dir"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   230
      <then>
869
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   231
        <echo message="INFO Generating ConE CenRep"/>
71
cc9038ba0f21 Remove old s60 bldmelast step and replace with call to generate cenrep files.
shaber@UK-SHABER
parents: 70
diff changeset
   232
933
b1c372bfef95 Adjusted invocation of ConE so it doesn't completely fail if /epoc32/rom/config/ does not exist.
Simon Howkins <simonh@symbian.org>
parents: 932
diff changeset
   233
        <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" output="${build.log.dir}/${build.id}_cenrep.log">
932
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   234
          <arg value="/c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   235
          <arg value="${env.PDT_HOME}/ConE/cone.cmd"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   236
          <arg value="generate"/>
933
b1c372bfef95 Adjusted invocation of ConE so it doesn't completely fail if /epoc32/rom/config/ does not exist.
Simon Howkins <simonh@symbian.org>
parents: 932
diff changeset
   237
          <arg value="-p"/>
b1c372bfef95 Adjusted invocation of ConE so it doesn't completely fail if /epoc32/rom/config/ does not exist.
Simon Howkins <simonh@symbian.org>
parents: 932
diff changeset
   238
          <arg value="\epoc32\rom\config"/>
932
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   239
          <arg value="-c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   240
          <arg value="convert.confml"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   241
          <arg value="-o"/>
933
b1c372bfef95 Adjusted invocation of ConE so it doesn't completely fail if /epoc32/rom/config/ does not exist.
Simon Howkins <simonh@symbian.org>
parents: 932
diff changeset
   242
          <arg value="${build.drive}/epoc32/rom/config"/>
932
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   243
        </exec>
869
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   244
932
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   245
        <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log">
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   246
          <arg value="/c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   247
          <arg value="${env.PDT_HOME}/ConE/cone.cmd"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   248
          <arg value="generate"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   249
          <arg value="-p"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   250
          <arg value="\epoc32\rom\config"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   251
          <arg value="-o"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   252
          <arg value="\epoc32\release\winscw\udeb\z"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   253
          <arg value="-c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   254
          <arg value="s60_root.confml"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   255
          <arg value="-v"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   256
          <arg value="5"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   257
        </exec>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   258
        
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   259
        <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log">
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   260
          <arg value="/c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   261
          <arg value="${env.PDT_HOME}/ConE/cone.cmd"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   262
          <arg value="generate"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   263
          <arg value="-p"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   264
          <arg value="\epoc32\rom\config"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   265
          <arg value="-o"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   266
          <arg value="\epoc32\release\winscw\urel\z"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   267
          <arg value="-c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   268
          <arg value="s60_root.confml"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   269
          <arg value="-v"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   270
          <arg value="5"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   271
        </exec>
870
62d784756974 sf-s60-cone-cenrep - S60 config with epoc32/data/z combintation was missing.
MattD <mattd@symbian.org>
parents: 869
diff changeset
   272
932
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   273
        <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log">
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   274
          <arg value="/c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   275
          <arg value="${env.PDT_HOME}/ConE/cone.cmd"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   276
          <arg value="generate"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   277
          <arg value="-p"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   278
          <arg value="\epoc32\rom\config"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   279
          <arg value="-o"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   280
          <arg value="\epoc32\data\z"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   281
          <arg value="-c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   282
          <arg value="s60_root.confml"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   283
          <arg value="-v"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   284
          <arg value="5"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   285
        </exec>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   286
        
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   287
        <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log">
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   288
          <arg value="/c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   289
          <arg value="${env.PDT_HOME}/ConE/cone.cmd"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   290
          <arg value="generate"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   291
          <arg value="-p"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   292
          <arg value="\epoc32\rom\config"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   293
          <arg value="-o"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   294
          <arg value="\epoc32\release\winscw\udeb\z"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   295
          <arg value="-c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   296
          <arg value="symbianos_root.confml"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   297
          <arg value="-v"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   298
          <arg value="5"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   299
        </exec>
869
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   300
        
932
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   301
        <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log">
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   302
          <arg value="/c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   303
          <arg value="${env.PDT_HOME}/ConE/cone.cmd"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   304
          <arg value="generate"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   305
          <arg value="-p"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   306
          <arg value="\epoc32\rom\config"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   307
          <arg value="-o"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   308
          <arg value="\epoc32\release\winscw\urel\z"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   309
          <arg value="-c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   310
          <arg value="symbianos_root.confml"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   311
          <arg value="-v"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   312
          <arg value="5"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   313
        </exec>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   314
        
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   315
        <exec executable="cmd" dir="${build.drive}/epoc32/tools" failonerror="false" append="true" output="${build.log.dir}/${build.id}_cenrep.log">
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   316
          <arg value="/c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   317
          <arg value="${env.PDT_HOME}/ConE/cone.cmd"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   318
          <arg value="generate"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   319
          <arg value="-p"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   320
          <arg value="\epoc32\rom\config"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   321
          <arg value="-o"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   322
          <arg value="\epoc32\data\z"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   323
          <arg value="-c"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   324
          <arg value="symbianos_root.confml"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   325
          <arg value="-v"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   326
          <arg value="5"/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   327
        </exec>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   328
        
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   329
      </then>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   330
      <else>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   331
        <echo message="WARNING ConE is required to run this target. ConE not found in ${env.PDT_HOME}/ConE/, please update your PDT."/>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   332
      </else>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   333
    </if>
55bdb7c60aa9 Regularised indentation
Simon Howkins <simonh@symbian.org>
parents: 914
diff changeset
   334
  </target>
869
11f6b5e5cd2d Add ConE or ConfigurationTool support. ConfigurationTool is used for Symbian2 only.
Shabe Razvi <shaber@symbian.org>
parents: 861
diff changeset
   335
    
38
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   336
</project>
c7be4c65f97e Update to allow foundation model build in single step
ShabeR@UK-SHABER
parents: 36
diff changeset
   337