author | Dean Draper <dean.draper@nokia.com> |
Fri, 30 Apr 2010 10:19:33 +0100 | |
branch | fix |
changeset 491 | f60c4282816c |
parent 217 | 0f5e3a7fb6af |
child 588 | c7c26511138f |
permissions | -rw-r--r-- |
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 | 23 |
<!--* @package localisation --> |
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 | 31 |
|
32 |
<!-- Regional variation support for 5.0 --> |
|
33 |
<!-- Location of the parse_what_log.pl tool. |
|
34 |
@type string |
|
35 |
--> |
|
36 |
<property name="parse_abld_what.tool" location="${build.drive}\s60\tools\build_platforms\build\tools\parse_what_log.pl" /> |
|
37 |
<!-- Location of the configuration tool. |
|
38 |
@type string |
|
39 |
--> |
|
40 |
<property name="ctool.dir" location="${build.drive}/s60/tools/toolsextensions/ConfigurationTool" /> |
|
41 |
<!-- configuration for the western variant. |
|
42 |
@type string |
|
43 |
--> |
|
44 |
<property name="ctool.western.conf" value="-master_conf s60 -impl \epoc32\rom\config\confml_data\s60 -confml \epoc32\rom\config\confml_data\s60" /> |
|
45 |
<!-- configuration for the chinese variant. |
|
46 |
@type string |
|
47 |
--> |
|
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}" /> |
|
49 |
<!-- configuration for the japanese variant. |
|
50 |
@type string |
|
51 |
--> |
|
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}" /> |
|
53 |
<!-- Define the prefix part of the configuration name that builds delta variant. |
|
54 |
@type string |
|
55 |
--> |
|
56 |
<property name="s60.delta.config.prefix" value="S60_variant_"/> |
|
57 |
||
58 |
<!-- ctool translation --> |
|
59 |
<!-- . |
|
60 |
@type string |
|
61 |
@scope private |
|
62 |
--> |
|
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 | 69 |
<target name="localisation-dtd"> |
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 | 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 | 86 |
</target> |
87 |
||
88 |
||
89 |
<!-- The createDeltaZipMacro enables to create regional variant like china and japan. |
|
90 |
e.g: |
|
91 |
<pre><hlm:createDeltaZipMacro variant="china" type="armv5" ctool="true"/></pre> |
|
92 |
--> |
|
93 |
<macrodef name="createDeltaZipMacro" uri="http://www.nokia.com/helium"> |
|
94 |
<attribute name="variant"/> |
|
95 |
<attribute name="type" default=""/> |
|
96 |
<attribute name="ctool" default="false"/> |
|
97 |
<attribute name="force" default="false"/> |
|
98 |
<sequential> |
|
99 |
<mkdir dir="${build.log.dir}"/> |
|
100 |
<mkdir dir="${localisation.log.dir}"/> |
|
101 |
<if> |
|
102 |
<and> |
|
103 |
<available file="${zips.loc.dir}/delta_@{variant}_package.zip" /> |
|
104 |
<isfalse value="@{force}"/> |
|
105 |
</and> |
|
106 |
<then> |
|
107 |
<echo>Unzipping ${zips.loc.dir}/delta_@{variant}_package.zip</echo> |
|
108 |
<unzip src="${zips.loc.dir}/delta_@{variant}_package.zip" dest="${build.drive}/" overwrite="true" /> |
|
109 |
</then> |
|
110 |
<else> |
|
111 |
<if> |
|
112 |
<equals arg1="@{type}" arg2=""/> |
|
113 |
<then> |
|
114 |
<var name="internal.variant.type" value="@{type}"/> |
|
115 |
</then> |
|
116 |
<else> |
|
117 |
<var name="internal.variant.type" value="_@{type}"/> |
|
118 |
</else> |
|
119 |
</if> |
|
120 |
<echo>Generating ${build.drive}\epoc32\tools\s60tools\variant_build_@{variant}${internal.variant.type}.xml</echo> |
|
121 |
<hlm:compileGenxmlMacro input="-x ${canonical.sysdef.file}" |
|
122 |
configuration="${s60.delta.config.prefix}@{variant}${internal.variant.type}" |
|
123 |
output="${build.drive}\epoc32\tools\s60tools\variant_build_@{variant}${internal.variant.type}.xml" |
|
124 |
log="${localisation.log.dir}/${build.id}.variant_build_@{variant}${internal.variant.type}_genxml.log"/> |
|
125 |
||
126 |
<echo>Building ${build.drive}\epoc32\tools\s60tools\variant_build_@{variant}${internal.variant.type}.xml</echo> |
|
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" /> |
|
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" /> |
|
129 |
||
130 |
<if> |
|
131 |
<istrue value="@{ctool}"/> |
|
132 |
<then> |
|
133 |
<property name="ctool.region.@{variant}" value="@{variant}"/> |
|
134 |
<echo>Region ctool: ${ctool.region.@{variant}} (@{variant}).</echo> |
|
135 |
<preset.exec executable="cmd" dir="${ctool.dir}/" failonerror="true" output="${localisation.log.dir}/${build.id}.configtool_@{variant}_log.txt"> |
|
136 |
<arg line="/c cli_build.cmd ${ctool.@{variant}.conf} -report ${localisation.log.dir}/${build.id}.configtool_@{variant}_delta.txt -ignore_errors"/> |
|
137 |
</preset.exec> |
|
138 |
</then> |
|
139 |
</if> |
|
140 |
<preset.exec executable="perl" dir="${build.drive}/" failonerror="true"> |
|
141 |
<arg value="${parse_abld_what.tool}"/> |
|
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"/> |
|
143 |
</preset.exec> |
|
144 |
<if> |
|
145 |
<istrue value="@{ctool}"/> |
|
146 |
<then> |
|
147 |
<preset.exec executable="${build.drive}\epoc32\tools\zip.exe" dir="${build.drive}/" input="${localisation.log.dir}/${build.id}.configtool_@{variant}_delta.txt"> |
|
148 |
<arg line="-r -u ${zips.loc.dir}/delta_@{variant}_package -@"/> |
|
149 |
</preset.exec> |
|
150 |
</then> |
|
151 |
</if> |
|
152 |
<var name="internal.variant.type" unset="true"/> |
|
153 |
</else> |
|
154 |
</if> |
|
155 |
</sequential> |
|
156 |
</macrodef> |
|
157 |
||
158 |
||
159 |
<!-- The createDeltaWesternZipMacro enables to create western regional variant |
|
160 |
e.g: build western variation using the results from S60_postbuild config |
|
161 |
and enabling configuration tool support. |
|
162 |
<pre><hlm:createDeltaWesternZipMacro configs="S60_postbuild" ctool="true"/></pre> |
|
163 |
--> |
|
164 |
<macrodef name="createDeltaWesternZipMacro" uri="http://www.nokia.com/helium"> |
|
165 |
<attribute name="configs"/> |
|
166 |
<attribute name="ctool" default="false"/> |
|
167 |
<sequential> |
|
168 |
<mkdir dir="${zips.loc.dir}"/> |
|
169 |
<mkdir dir="${localisation.log.dir}"/> |
|
170 |
<for list="@{configs}" delimiter="," param="conf" > |
|
171 |
<sequential> |
|
172 |
<if> |
|
173 |
<istrue value="@{ctool}"/> |
|
174 |
<then> |
|
175 |
<preset.exec executable="cmd" dir="${ctool.dir}/" failonerror="true" output="${localisation.log.dir}/${build.id}.configtool_western_log.txt"> |
|
176 |
<arg line="/c cli_build.cmd ${ctool.western.conf} -report ${localisation.log.dir}/${build.id}.configtool_western_delta.txt -ignore_errors"/> |
|
177 |
</preset.exec> |
|
178 |
</then> |
|
179 |
</if> |
|
180 |
<preset.exec executable="perl" dir="${build.drive}/" failonerror="true"> |
|
181 |
<arg value="${parse_abld_what.tool}"/> |
|
182 |
<arg line="-i ${compile.log.dir}/${build.id}.@{conf}_compile.log -filter \epoc32 -zip ${zips.loc.dir}/delta_western_package -ex productvariant.hrh"/> |
|
183 |
</preset.exec> |
|
184 |
<if> |
|
185 |
<istrue value="@{ctool}"/> |
|
186 |
<then> |
|
187 |
<preset.exec executable="${build.drive}\epoc32\tools\zip.exe" dir="${build.drive}/" input="${localisation.log.dir}/${build.id}.configtool_western_delta.txt"> |
|
188 |
<arg line="-r -u ${zips.loc.dir}/delta_western_package -@"/> |
|
189 |
</preset.exec> |
|
190 |
</then> |
|
191 |
</if> |
|
192 |
</sequential> |
|
193 |
</for> |
|
194 |
</sequential> |
|
195 |
</macrodef> |
|
196 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
197 |
</project> |