author | Bob Rosenberg <bob.rosenberg@nokia.com> |
Mon, 20 Sep 2010 10:55:43 +0100 | |
changeset 658 | cab9da9b71bb |
parent 628 | 7c4a911dc066 |
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}"/> |
|
628 | 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 | 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 | 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 | 86 |
</target> |
87 |
||
88 |
||
89 |
<!-- The createDeltaZipMacro enables to create regional variant like china and japan. |
|
588 | 90 |
|
217 | 91 |
e.g: |
588 | 92 |
|
93 |
<hlm:createDeltaZipMacro variant="china" type="armv5" ctool="true"/> |
|
217 | 94 |
--> |
95 |
<macrodef name="createDeltaZipMacro" uri="http://www.nokia.com/helium"> |
|
96 |
<attribute name="variant"/> |
|
97 |
<attribute name="type" default=""/> |
|
98 |
<attribute name="ctool" default="false"/> |
|
99 |
<attribute name="force" default="false"/> |
|
100 |
<sequential> |
|
101 |
<mkdir dir="${build.log.dir}"/> |
|
102 |
<mkdir dir="${localisation.log.dir}"/> |
|
103 |
<if> |
|
104 |
<and> |
|
105 |
<available file="${zips.loc.dir}/delta_@{variant}_package.zip" /> |
|
106 |
<isfalse value="@{force}"/> |
|
107 |
</and> |
|
108 |
<then> |
|
109 |
<echo>Unzipping ${zips.loc.dir}/delta_@{variant}_package.zip</echo> |
|
110 |
<unzip src="${zips.loc.dir}/delta_@{variant}_package.zip" dest="${build.drive}/" overwrite="true" /> |
|
111 |
</then> |
|
112 |
<else> |
|
113 |
<if> |
|
114 |
<equals arg1="@{type}" arg2=""/> |
|
115 |
<then> |
|
116 |
<var name="internal.variant.type" value="@{type}"/> |
|
117 |
</then> |
|
118 |
<else> |
|
119 |
<var name="internal.variant.type" value="_@{type}"/> |
|
120 |
</else> |
|
121 |
</if> |
|
122 |
<echo>Generating ${build.drive}\epoc32\tools\s60tools\variant_build_@{variant}${internal.variant.type}.xml</echo> |
|
123 |
<hlm:compileGenxmlMacro input="-x ${canonical.sysdef.file}" |
|
124 |
configuration="${s60.delta.config.prefix}@{variant}${internal.variant.type}" |
|
125 |
output="${build.drive}\epoc32\tools\s60tools\variant_build_@{variant}${internal.variant.type}.xml" |
|
126 |
log="${localisation.log.dir}/${build.id}.variant_build_@{variant}${internal.variant.type}_genxml.log"/> |
|
127 |
||
128 |
<echo>Building ${build.drive}\epoc32\tools\s60tools\variant_build_@{variant}${internal.variant.type}.xml</echo> |
|
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" /> |
|
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" /> |
|
131 |
||
132 |
<if> |
|
133 |
<istrue value="@{ctool}"/> |
|
134 |
<then> |
|
135 |
<property name="ctool.region.@{variant}" value="@{variant}"/> |
|
136 |
<echo>Region ctool: ${ctool.region.@{variant}} (@{variant}).</echo> |
|
137 |
<preset.exec executable="cmd" dir="${ctool.dir}/" failonerror="true" output="${localisation.log.dir}/${build.id}.configtool_@{variant}_log.txt"> |
|
138 |
<arg line="/c cli_build.cmd ${ctool.@{variant}.conf} -report ${localisation.log.dir}/${build.id}.configtool_@{variant}_delta.txt -ignore_errors"/> |
|
139 |
</preset.exec> |
|
140 |
</then> |
|
141 |
</if> |
|
142 |
<preset.exec executable="perl" dir="${build.drive}/" failonerror="true"> |
|
143 |
<arg value="${parse_abld_what.tool}"/> |
|
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"/> |
|
145 |
</preset.exec> |
|
146 |
<if> |
|
147 |
<istrue value="@{ctool}"/> |
|
148 |
<then> |
|
149 |
<preset.exec executable="${build.drive}\epoc32\tools\zip.exe" dir="${build.drive}/" input="${localisation.log.dir}/${build.id}.configtool_@{variant}_delta.txt"> |
|
150 |
<arg line="-r -u ${zips.loc.dir}/delta_@{variant}_package -@"/> |
|
151 |
</preset.exec> |
|
152 |
</then> |
|
153 |
</if> |
|
154 |
<var name="internal.variant.type" unset="true"/> |
|
155 |
</else> |
|
156 |
</if> |
|
157 |
</sequential> |
|
158 |
</macrodef> |
|
159 |
||
160 |
||
588 | 161 |
<!-- The createDeltaWesternZipMacro enables to create western regional variant. |
162 |
||
217 | 163 |
e.g: build western variation using the results from S60_postbuild config |
588 | 164 |
and enabling configuration tool support. |
165 |
||
166 |
<hlm:createDeltaWesternZipMacro configs="S60_postbuild" ctool="true"/> |
|
217 | 167 |
--> |
168 |
<macrodef name="createDeltaWesternZipMacro" uri="http://www.nokia.com/helium"> |
|
169 |
<attribute name="configs"/> |
|
170 |
<attribute name="ctool" default="false"/> |
|
171 |
<sequential> |
|
172 |
<mkdir dir="${zips.loc.dir}"/> |
|
173 |
<mkdir dir="${localisation.log.dir}"/> |
|
174 |
<for list="@{configs}" delimiter="," param="conf" > |
|
175 |
<sequential> |
|
176 |
<if> |
|
177 |
<istrue value="@{ctool}"/> |
|
178 |
<then> |
|
179 |
<preset.exec executable="cmd" dir="${ctool.dir}/" failonerror="true" output="${localisation.log.dir}/${build.id}.configtool_western_log.txt"> |
|
180 |
<arg line="/c cli_build.cmd ${ctool.western.conf} -report ${localisation.log.dir}/${build.id}.configtool_western_delta.txt -ignore_errors"/> |
|
181 |
</preset.exec> |
|
182 |
</then> |
|
183 |
</if> |
|
184 |
<preset.exec executable="perl" dir="${build.drive}/" failonerror="true"> |
|
185 |
<arg value="${parse_abld_what.tool}"/> |
|
186 |
<arg line="-i ${compile.log.dir}/${build.id}.@{conf}_compile.log -filter \epoc32 -zip ${zips.loc.dir}/delta_western_package -ex productvariant.hrh"/> |
|
187 |
</preset.exec> |
|
188 |
<if> |
|
189 |
<istrue value="@{ctool}"/> |
|
190 |
<then> |
|
191 |
<preset.exec executable="${build.drive}\epoc32\tools\zip.exe" dir="${build.drive}/" input="${localisation.log.dir}/${build.id}.configtool_western_delta.txt"> |
|
192 |
<arg line="-r -u ${zips.loc.dir}/delta_western_package -@"/> |
|
193 |
</preset.exec> |
|
194 |
</then> |
|
195 |
</if> |
|
196 |
</sequential> |
|
197 |
</for> |
|
198 |
</sequential> |
|
199 |
</macrodef> |
|
200 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
201 |
</project> |