buildframework/helium/tools/localisation/localisation-50.ant.xml
author Dean Draper <dean.draper@nokia.com>
Tue, 18 May 2010 20:04:14 +0100
branchfix
changeset 561 a50b8a8df628
parent 217 0f5e3a7fb6af
child 588 c7c26511138f
permissions -rw-r--r--
Fix for SF Bug 2562[Raptor]adds incorrect entries into .iby files w.r.t file paths
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     2
<!-- 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     3
============================================================================ 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     4
Name        : localisation-50.ant.xml 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     5
Part of     : Helium 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     6
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     7
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     8
All rights reserved.
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     9
This component and the accompanying materials are made available
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    10
under the terms of the License "Eclipse Public License v1.0"
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    11
which accompanies this distribution, and is available
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    12
at the URL "http://www.eclipse.org/legal/epl-v10.html".
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    13
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    14
Initial Contributors:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    15
Nokia Corporation - initial contribution.
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    16
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    17
Contributors:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    18
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    19
Description:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    20
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    21
============================================================================
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    22
-->
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    23
<!--* @package localisation -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    24
<project name="localisation-50" xmlns:hlm="http://www.nokia.com/helium">
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    25
    <description>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    26
        S60 5.0+ localisation.
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    27
    </description>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    28
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    29
    <!-- Main target for 5.0 build localisation process. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    30
    <target name="localisation-50-build" depends="localisation-switch-loc-generator,localisation-dtd"/> 
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    31
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    32
    <!-- Regional variation support for 5.0 -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    33
    <!-- Location of the parse_what_log.pl tool.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    34
    @type string
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    35
    -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    36
    <property name="parse_abld_what.tool" location="${build.drive}\s60\tools\build_platforms\build\tools\parse_what_log.pl" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    37
    <!-- Location of the configuration tool.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    38
    @type string
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    39
    -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    40
    <property name="ctool.dir" location="${build.drive}/s60/tools/toolsextensions/ConfigurationTool" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    41
    <!-- configuration for the western variant.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    42
    @type string
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    43
    -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    44
    <property name="ctool.western.conf" value="-master_conf s60 -impl \epoc32\rom\config\confml_data\s60 -confml \epoc32\rom\config\confml_data\s60" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    45
    <!-- configuration for the chinese variant.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    46
    @type string
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    47
    -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    48
    <property name="ctool.china.conf" value="-master_conf china -impl \epoc32\rom\config\confml_data\s60 -confml \epoc32\rom\config\confml_data\${ctool.region.china}" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    49
    <!-- configuration for the japanese variant.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    50
    @type string
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    51
    -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    52
    <property name="ctool.japan.conf" value="-master_conf japan -impl \epoc32\rom\config\confml_data\s60 -confml \epoc32\rom\config\confml_data\${ctool.region.japan}" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    53
    <!-- Define the prefix part of the configuration name that builds delta variant.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    54
    @type string
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    55
    -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    56
    <property name="s60.delta.config.prefix" value="S60_variant_"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    57
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    58
    <!-- ctool translation -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    59
    <!-- .
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    60
    @type string
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    61
    @scope private
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    62
    -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    63
    <property name="ctool.region.china" value="apac"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    64
   
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    65
    <!-- 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    66
            This target launch the localisation of DTD files. 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    67
            This is handled by the DTDLocaliser.pl script from S60.  
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    68
    --> 
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    69
    <target name="localisation-dtd">
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    70
        <mkdir dir="${localisation.log.dir}"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    71
        <exec dir="${build.drive}/" executable="perl.exe" failonerror="false"> 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    72
            <arg value="${build.drive}/epoc32/tools/DTDLocaliser.pl"/> 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    73
            <arg value="-l"/> 
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    74
            <arg value="${localisation.log.dir}/${build.id}.dtd_localisation.log}"/> 
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    75
        </exec> 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    76
    </target> 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    77
     
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    78
     
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    79
    <!-- 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    80
            This target launch the switch_loc_generator (for 5.0 build only). 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    81
    --> 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    82
    <target name="localisation-switch-loc-generator"> 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    83
        <exec dir="${build.drive}/" executable="perl.exe" failonerror="false"> 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    84
            <arg line="${build.drive}/epoc32/tools/switch_loc_generator.pl"/> 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    85
        </exec> 
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    86
    </target>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    87
    
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    88
    
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    89
    <!-- The createDeltaZipMacro enables to create regional variant like china and japan.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    90
    e.g:
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    91
         <pre><hlm:createDeltaZipMacro variant="china" type="armv5" ctool="true"/></pre>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    92
    -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    93
    <macrodef name="createDeltaZipMacro" uri="http://www.nokia.com/helium">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    94
        <attribute name="variant"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    95
        <attribute name="type" default=""/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    96
        <attribute name="ctool" default="false"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    97
        <attribute name="force" default="false"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    98
        <sequential>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    99
            <mkdir dir="${build.log.dir}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   100
            <mkdir dir="${localisation.log.dir}"/>            
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   101
            <if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   102
                <and>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   103
                    <available file="${zips.loc.dir}/delta_@{variant}_package.zip" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   104
                    <isfalse value="@{force}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   105
                </and>                    
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   106
                <then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   107
                    <echo>Unzipping ${zips.loc.dir}/delta_@{variant}_package.zip</echo>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   108
                    <unzip src="${zips.loc.dir}/delta_@{variant}_package.zip" dest="${build.drive}/" overwrite="true" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   109
                </then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   110
                <else>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   111
                    <if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   112
                        <equals arg1="@{type}" arg2=""/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   113
                        <then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   114
                            <var name="internal.variant.type" value="@{type}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   115
                        </then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   116
                        <else>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   117
                            <var name="internal.variant.type" value="_@{type}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   118
                        </else>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   119
                    </if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   120
                    <echo>Generating ${build.drive}\epoc32\tools\s60tools\variant_build_@{variant}${internal.variant.type}.xml</echo>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   121
                    <hlm:compileGenxmlMacro input="-x ${canonical.sysdef.file}"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   122
                                          configuration="${s60.delta.config.prefix}@{variant}${internal.variant.type}"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   123
                                          output="${build.drive}\epoc32\tools\s60tools\variant_build_@{variant}${internal.variant.type}.xml"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   124
                                          log="${localisation.log.dir}/${build.id}.variant_build_@{variant}${internal.variant.type}_genxml.log"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   125
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   126
                    <echo>Building ${build.drive}\epoc32\tools\s60tools\variant_build_@{variant}${internal.variant.type}.xml</echo>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   127
                    <hlm:compileEbsMacro input="${build.drive}\epoc32\tools\s60tools\variant_build_@{variant}${internal.variant.type}.xml" log="${localisation.log.dir}/${build.id}.@{variant}${internal.variant.type}_compile.log" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   128
                    <hlm:compileHtmlscanlogMacro input="${localisation.log.dir}/${build.id}.@{variant}${internal.variant.type}_compile.log" output="${build.log.dir}/${build.id}.@{variant}${internal.variant.type}_scan2.html" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   129
                    
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   130
                    <if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   131
                        <istrue value="@{ctool}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   132
                        <then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   133
                            <property name="ctool.region.@{variant}" value="@{variant}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   134
                            <echo>Region ctool: ${ctool.region.@{variant}} (@{variant}).</echo>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   135
                            <preset.exec executable="cmd" dir="${ctool.dir}/" failonerror="true" output="${localisation.log.dir}/${build.id}.configtool_@{variant}_log.txt">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   136
                                <arg line="/c cli_build.cmd ${ctool.@{variant}.conf} -report ${localisation.log.dir}/${build.id}.configtool_@{variant}_delta.txt -ignore_errors"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   137
                            </preset.exec>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   138
                        </then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   139
                    </if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   140
                    <preset.exec executable="perl" dir="${build.drive}/" failonerror="true">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   141
                        <arg value="${parse_abld_what.tool}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   142
                        <arg line="-i ${localisation.log.dir}/${build.id}.@{variant}${internal.variant.type}_compile.log -filter \epoc32 -zip ${zips.loc.dir}/delta_@{variant}_package -ex productvariant.hrh"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   143
                    </preset.exec>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   144
                    <if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   145
                        <istrue value="@{ctool}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   146
                        <then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   147
                            <preset.exec executable="${build.drive}\epoc32\tools\zip.exe" dir="${build.drive}/" input="${localisation.log.dir}/${build.id}.configtool_@{variant}_delta.txt">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   148
                                <arg line="-r -u ${zips.loc.dir}/delta_@{variant}_package -@"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   149
                            </preset.exec>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   150
                        </then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   151
                    </if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   152
                    <var name="internal.variant.type" unset="true"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   153
                </else>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   154
            </if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   155
        </sequential>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   156
    </macrodef>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   157
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   158
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   159
    <!-- The createDeltaWesternZipMacro enables to create western regional variant
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   160
    e.g: build western variation using the results from S60_postbuild config
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   161
         and enabling configuration tool support.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   162
         <pre><hlm:createDeltaWesternZipMacro configs="S60_postbuild" ctool="true"/></pre>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   163
    -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   164
    <macrodef name="createDeltaWesternZipMacro"  uri="http://www.nokia.com/helium">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   165
        <attribute name="configs"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   166
        <attribute name="ctool" default="false"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   167
        <sequential>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   168
            <mkdir dir="${zips.loc.dir}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   169
            <mkdir dir="${localisation.log.dir}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   170
            <for list="@{configs}" delimiter="," param="conf" >
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   171
                <sequential>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   172
                    <if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   173
                        <istrue value="@{ctool}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   174
                        <then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   175
                            <preset.exec executable="cmd" dir="${ctool.dir}/" failonerror="true" output="${localisation.log.dir}/${build.id}.configtool_western_log.txt">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   176
                                <arg line="/c cli_build.cmd ${ctool.western.conf} -report ${localisation.log.dir}/${build.id}.configtool_western_delta.txt -ignore_errors"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   177
                            </preset.exec>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   178
                        </then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   179
                    </if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   180
                    <preset.exec executable="perl" dir="${build.drive}/" failonerror="true">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   181
                        <arg value="${parse_abld_what.tool}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   182
                        <arg line="-i ${compile.log.dir}/${build.id}.@{conf}_compile.log -filter \epoc32 -zip ${zips.loc.dir}/delta_western_package -ex productvariant.hrh"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   183
                    </preset.exec>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   184
                    <if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   185
                        <istrue value="@{ctool}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   186
                        <then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   187
                            <preset.exec executable="${build.drive}\epoc32\tools\zip.exe" dir="${build.drive}/" input="${localisation.log.dir}/${build.id}.configtool_western_delta.txt">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   188
                                <arg line="-r -u ${zips.loc.dir}/delta_western_package -@"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   189
                            </preset.exec>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   190
                        </then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   191
                    </if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   192
                </sequential>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   193
            </for>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   194
        </sequential>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   195
    </macrodef>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   196
    
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   197
</project>