buildframework/helium/tools/localisation/localisation-50.ant.xml
author Ross Qin <ross.qin@nokia.com>
Fri, 29 Oct 2010 10:03:48 +0800
changeset 670 46ea84d14897
parent 628 7c4a911dc066
permissions -rw-r--r--
remove migrated template meta data files (in DFS_MCL wk42)
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}"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    71
        <exec dir="${build.drive}/" executable="perl" failonerror="false"> 
1
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"> 
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    83
        <exec dir="${build.drive}/" executable="perl" failonerror="false"> 
1
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.
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 217
diff changeset
    90
        
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    91
    e.g:
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 217
diff changeset
    92
         
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 217
diff changeset
    93
        <hlm:createDeltaZipMacro variant="china" type="armv5" ctool="true"/>
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    94
    -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    95
    <macrodef name="createDeltaZipMacro" uri="http://www.nokia.com/helium">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    96
        <attribute name="variant"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    97
        <attribute name="type" default=""/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    98
        <attribute name="ctool" default="false"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    99
        <attribute name="force" default="false"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   100
        <sequential>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   101
            <mkdir dir="${build.log.dir}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   102
            <mkdir dir="${localisation.log.dir}"/>            
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   103
            <if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   104
                <and>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   105
                    <available file="${zips.loc.dir}/delta_@{variant}_package.zip" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   106
                    <isfalse value="@{force}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   107
                </and>                    
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   108
                <then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   109
                    <echo>Unzipping ${zips.loc.dir}/delta_@{variant}_package.zip</echo>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   110
                    <unzip src="${zips.loc.dir}/delta_@{variant}_package.zip" dest="${build.drive}/" overwrite="true" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   111
                </then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   112
                <else>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   113
                    <if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   114
                        <equals arg1="@{type}" arg2=""/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   115
                        <then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   116
                            <var name="internal.variant.type" value="@{type}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   117
                        </then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   118
                        <else>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   119
                            <var name="internal.variant.type" value="_@{type}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   120
                        </else>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   121
                    </if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   122
                    <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
   123
                    <hlm:compileGenxmlMacro input="-x ${canonical.sysdef.file}"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   124
                                          configuration="${s60.delta.config.prefix}@{variant}${internal.variant.type}"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   125
                                          output="${build.drive}\epoc32\tools\s60tools\variant_build_@{variant}${internal.variant.type}.xml"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   126
                                          log="${localisation.log.dir}/${build.id}.variant_build_@{variant}${internal.variant.type}_genxml.log"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   127
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   128
                    <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
   129
                    <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
   130
                    <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
   131
                    
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   132
                    <if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   133
                        <istrue value="@{ctool}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   134
                        <then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   135
                            <property name="ctool.region.@{variant}" value="@{variant}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   136
                            <echo>Region ctool: ${ctool.region.@{variant}} (@{variant}).</echo>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   137
                            <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
   138
                                <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
   139
                            </preset.exec>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   140
                        </then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   141
                    </if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   142
                    <preset.exec executable="perl" dir="${build.drive}/" failonerror="true">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   143
                        <arg value="${parse_abld_what.tool}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   144
                        <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
   145
                    </preset.exec>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   146
                    <if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   147
                        <istrue value="@{ctool}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   148
                        <then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   149
                            <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
   150
                                <arg line="-r -u ${zips.loc.dir}/delta_@{variant}_package -@"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   151
                            </preset.exec>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   152
                        </then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   153
                    </if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   154
                    <var name="internal.variant.type" unset="true"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   155
                </else>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   156
            </if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   157
        </sequential>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   158
    </macrodef>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   159
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   160
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 217
diff changeset
   161
    <!-- The createDeltaWesternZipMacro enables to create western regional variant.
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 217
diff changeset
   162
        
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   163
    e.g: build western variation using the results from S60_postbuild config
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 217
diff changeset
   164
    and enabling configuration tool support.
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 217
diff changeset
   165
    
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 217
diff changeset
   166
        <hlm:createDeltaWesternZipMacro configs="S60_postbuild" ctool="true"/>
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   167
    -->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   168
    <macrodef name="createDeltaWesternZipMacro"  uri="http://www.nokia.com/helium">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   169
        <attribute name="configs"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   170
        <attribute name="ctool" default="false"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   171
        <sequential>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   172
            <mkdir dir="${zips.loc.dir}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   173
            <mkdir dir="${localisation.log.dir}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   174
            <for list="@{configs}" delimiter="," param="conf" >
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   175
                <sequential>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   176
                    <if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   177
                        <istrue value="@{ctool}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   178
                        <then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   179
                            <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
   180
                                <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
   181
                            </preset.exec>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   182
                        </then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   183
                    </if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   184
                    <preset.exec executable="perl" dir="${build.drive}/" failonerror="true">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   185
                        <arg value="${parse_abld_what.tool}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   186
                        <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
   187
                    </preset.exec>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   188
                    <if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   189
                        <istrue value="@{ctool}"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   190
                        <then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   191
                            <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
   192
                                <arg line="-r -u ${zips.loc.dir}/delta_western_package -@"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   193
                            </preset.exec>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   194
                        </then>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   195
                    </if>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   196
                </sequential>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   197
            </for>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   198
        </sequential>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   199
    </macrodef>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   200
    
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   201
</project>