|
1 # |
|
2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # |
|
16 |
|
17 include layoutConfig.mk |
|
18 |
|
19 layout_gen_dir = $(gen_dir)\$(name)$(delivery)_akn_app |
|
20 common_dll = -x .. 101fe2aa.dll |
|
21 |
|
22 Elaf_Portrait_Pack_Contents=\ |
|
23 EAknLayoutIdELAF \ |
|
24 AknLayoutScalable_Elaf_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_$$ZOOM \ |
|
25 AknLayoutScalable_Elaf_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_$$ZOOM \ |
|
26 |
|
27 Abrw_Portrait_Pack_Contents=\ |
|
28 EAknLayoutIdABRW \ |
|
29 AknLayoutScalable_Abrw_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_$$ZOOM \ |
|
30 AknLayoutScalable_Abrw_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_$$ZOOM |
|
31 |
|
32 Apac_Portrait_Pack_Contents=\ |
|
33 EAknLayoutIdAPAC \ |
|
34 AknLayoutScalable_Elaf_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_$$ZOOM \ |
|
35 AknLayoutScalable_Elaf_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_$$ZOOM |
|
36 |
|
37 Elaf_Landscape_Pack_Contents=\ |
|
38 EAknLayoutIdELAF \ |
|
39 AknLayoutScalable_Elaf_p$(land_code)_av_$(short)_lsc$(touch)$(delivery)_$$ZOOM \ |
|
40 AknLayoutScalable_Elaf_p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)_$$ZOOM |
|
41 |
|
42 Abrw_Landscape_Pack_Contents=\ |
|
43 EAknLayoutIdABRW \ |
|
44 AknLayoutScalable_Abrw_p$(land_code)_av_$(short)_lsc$(touch)$(delivery)_$$ZOOM \ |
|
45 AknLayoutScalable_Abrw_p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)_$$ZOOM |
|
46 |
|
47 Apac_Landscape_Pack_Contents=\ |
|
48 EAknLayoutIdAPAC \ |
|
49 AknLayoutScalable_Elaf_p$(land_code)_av_$(short)_lsc$(touch)$(delivery)_$$ZOOM \ |
|
50 AknLayoutScalable_Elaf_p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)_$$ZOOM |
|
51 |
|
52 ifndef delivery |
|
53 Elaf_Portrait_Pack_Contents := $(Elaf_Portrait_Pack_Contents) \ |
|
54 CdlFontInst_$(font_name) \ |
|
55 displaylayoutmetricsinst_$(name) \ |
|
56 $(common_dll) Adaptation_Layer_AknLayout_Elaf \ |
|
57 $(common_dll) Adaptation_Layer_AppLayout_Elaf \ |
|
58 $(common_dll) Adaptation_Layer_SkinLayout \ |
|
59 $(common_dll) LayoutMetaData_defaults \ |
|
60 $(common_dll) LayoutMetaData_scrollbar \ |
|
61 |
|
62 Abrw_Portrait_Pack_Contents := $(Abrw_Portrait_Pack_Contents) \ |
|
63 CdlFontInst_$(font_name) \ |
|
64 displaylayoutmetricsinst_$(name) \ |
|
65 $(common_dll) Adaptation_Layer_AknLayout_Elaf \ |
|
66 $(common_dll) Adaptation_Layer_AppLayout_Elaf \ |
|
67 $(common_dll) Adaptation_Layer_SkinLayout \ |
|
68 $(common_dll) LayoutMetaData_defaults \ |
|
69 $(common_dll) LayoutMetaData_abrw \ |
|
70 $(common_dll) LayoutMetaData_scrollbar |
|
71 |
|
72 Apac_Portrait_Pack_Contents := $(Apac_Portrait_Pack_Contents) \ |
|
73 CdlFontInst_$(font_name) \ |
|
74 displaylayoutmetricsinst_$(name) \ |
|
75 $(common_dll) Adaptation_Layer_AknLayout_Elaf \ |
|
76 $(common_dll) Adaptation_Layer_AknApacLayout \ |
|
77 $(common_dll) Adaptation_Layer_AppLayout_Elaf \ |
|
78 $(common_dll) Adaptation_Layer_AppApacLayout \ |
|
79 $(common_dll) Adaptation_Layer_SkinLayout \ |
|
80 $(common_dll) LayoutMetaData_defaults \ |
|
81 $(common_dll) LayoutMetaData_scrollbar \ |
|
82 $(common_dll) LayoutMetaData_APAC |
|
83 |
|
84 Elaf_Landscape_Pack_Contents := $(Elaf_Landscape_Pack_Contents) \ |
|
85 CdlFontInst_$(font_name) \ |
|
86 displaylayoutmetricsinst_$(name) \ |
|
87 $(common_dll) Adaptation_Layer_AknLayout_Elaf \ |
|
88 $(common_dll) Adaptation_Layer_AppLayout_Elaf \ |
|
89 $(common_dll) Adaptation_Layer_SkinLayout \ |
|
90 $(common_dll) LayoutMetaData_defaults \ |
|
91 $(common_dll) LayoutMetaData_scrollbar \ |
|
92 $(common_dll) LayoutMetaData_land |
|
93 |
|
94 Abrw_Landscape_Pack_Contents := $(Abrw_Landscape_Pack_Contents) \ |
|
95 CdlFontInst_$(font_name) \ |
|
96 displaylayoutmetricsinst_$(name) \ |
|
97 $(common_dll) Adaptation_Layer_AknLayout_Elaf \ |
|
98 $(common_dll) Adaptation_Layer_AppLayout_Elaf \ |
|
99 $(common_dll) Adaptation_Layer_SkinLayout \ |
|
100 $(common_dll) LayoutMetaData_defaults \ |
|
101 $(common_dll) LayoutMetaData_abrw \ |
|
102 $(common_dll) LayoutMetaData_scrollbar \ |
|
103 $(common_dll) LayoutMetaData_land |
|
104 |
|
105 Apac_Landscape_Pack_Contents := $(Apac_Landscape_Pack_Contents) \ |
|
106 CdlFontInst_$(font_name) \ |
|
107 displaylayoutmetricsinst_$(name) \ |
|
108 $(common_dll) Adaptation_Layer_AknLayout_Elaf \ |
|
109 $(common_dll) Adaptation_Layer_AknApacLayout \ |
|
110 $(common_dll) Adaptation_Layer_AppLayout_Elaf \ |
|
111 $(common_dll) Adaptation_Layer_AppApacLayout \ |
|
112 $(common_dll) Adaptation_Layer_SkinLayout \ |
|
113 $(common_dll) LayoutMetaData_defaults \ |
|
114 $(common_dll) LayoutMetaData_scrollbar \ |
|
115 $(common_dll) LayoutMetaData_land \ |
|
116 $(common_dll) LayoutMetaData_APAC |
|
117 |
|
118 ifdef touch |
|
119 Elaf_Portrait_Pack_Contents := $(Elaf_Portrait_Pack_Contents) $(common_dll) LayoutMetaData_pensupport |
|
120 Abrw_Portrait_Pack_Contents := $(Abrw_Portrait_Pack_Contents) $(common_dll) LayoutMetaData_pensupport |
|
121 Apac_Portrait_Pack_Contents := $(Apac_Portrait_Pack_Contents) $(common_dll) LayoutMetaData_pensupport |
|
122 Elaf_Landscape_Pack_Contents := $(Elaf_Landscape_Pack_Contents) $(common_dll) LayoutMetaData_pensupport |
|
123 Abrw_Landscape_Pack_Contents := $(Abrw_Landscape_Pack_Contents) $(common_dll) LayoutMetaData_pensupport |
|
124 Apac_Landscape_Pack_Contents := $(Apac_Landscape_Pack_Contents) $(common_dll) LayoutMetaData_pensupport |
|
125 endif |
|
126 |
|
127 ifdef liststretching |
|
128 Elaf_Portrait_Pack_Contents := $(Elaf_Portrait_Pack_Contents) $(common_dll) LayoutMetaData_liststretching |
|
129 Abrw_Portrait_Pack_Contents := $(Abrw_Portrait_Pack_Contents) $(common_dll) LayoutMetaData_liststretching |
|
130 Apac_Portrait_Pack_Contents := $(Apac_Portrait_Pack_Contents) $(common_dll) LayoutMetaData_liststretching |
|
131 Elaf_Landscape_Pack_Contents := $(Elaf_Landscape_Pack_Contents) $(common_dll) LayoutMetaData_liststretching |
|
132 Abrw_Landscape_Pack_Contents := $(Abrw_Landscape_Pack_Contents) $(common_dll) LayoutMetaData_liststretching |
|
133 Apac_Landscape_Pack_Contents := $(Apac_Landscape_Pack_Contents) $(common_dll) LayoutMetaData_liststretching |
|
134 endif |
|
135 |
|
136 ifeq ($(msk), yes) |
|
137 Elaf_Portrait_Pack_Contents := $(Elaf_Portrait_Pack_Contents) $(common_dll) LayoutMetaData_MSK |
|
138 Abrw_Portrait_Pack_Contents := $(Abrw_Portrait_Pack_Contents) $(common_dll) LayoutMetaData_MSK |
|
139 Apac_Portrait_Pack_Contents := $(Apac_Portrait_Pack_Contents) $(common_dll) LayoutMetaData_MSK |
|
140 Elaf_Landscape_Pack_Contents := $(Elaf_Landscape_Pack_Contents) $(common_dll) LayoutMetaData_MSK |
|
141 Abrw_Landscape_Pack_Contents := $(Abrw_Landscape_Pack_Contents) $(common_dll) LayoutMetaData_MSK |
|
142 Apac_Landscape_Pack_Contents := $(Apac_Landscape_Pack_Contents) $(common_dll) LayoutMetaData_MSK |
|
143 endif |
|
144 |
|
145 ifeq ($(touchpane), yes) |
|
146 Elaf_Portrait_Pack_Contents := $(Elaf_Portrait_Pack_Contents) $(common_dll) LayoutMetaData_touchpane |
|
147 Abrw_Portrait_Pack_Contents := $(Abrw_Portrait_Pack_Contents) $(common_dll) LayoutMetaData_touchpane |
|
148 Apac_Portrait_Pack_Contents := $(Apac_Portrait_Pack_Contents) $(common_dll) LayoutMetaData_touchpane |
|
149 Elaf_Landscape_Pack_Contents := $(Elaf_Landscape_Pack_Contents) $(common_dll) LayoutMetaData_touchpane |
|
150 Abrw_Landscape_Pack_Contents := $(Abrw_Landscape_Pack_Contents) $(common_dll) LayoutMetaData_touchpane |
|
151 Apac_Landscape_Pack_Contents := $(Apac_Landscape_Pack_Contents) $(common_dll) LayoutMetaData_touchpane |
|
152 endif |
|
153 |
|
154 endif |
|
155 |
|
156 pkg = @AknLayoutCompiler -p$(layout_gen_dir) LayPkg -z..\generated\LayoutZoomFactorConfig.txt -d$(delivery) -p$(priority) -a$(appUid) |
|
157 |
|
158 Elaf_portrait : |
|
159 $(pkg) Elaf_$(name)_$$ZOOM$(delivery)_Pack $(dim1) $(dim2) -s$(style_name) $(Elaf_Portrait_Pack_Contents) >> $(layout_gen_dir)\instances.txt |
|
160 |
|
161 Abrw_portrait : |
|
162 $(pkg) Abrw_$(name)_$$ZOOM$(delivery)_Pack $(dim1) $(dim2) -s$(style_name) $(Abrw_Portrait_Pack_Contents) >> $(layout_gen_dir)\instances.txt |
|
163 |
|
164 Apac_portrait : |
|
165 $(pkg) Apac_$(name)_$$ZOOM$(delivery)_Pack $(dim1) $(dim2) -s$(style_name) $(Apac_Portrait_Pack_Contents) >> $(layout_gen_dir)\instances.txt |
|
166 |
|
167 Elaf_landscape : |
|
168 $(pkg) Elaf_$(name)_land_$$ZOOM$(delivery)_Pack $(dim2) $(dim1) -s$(style_name) $(Elaf_Landscape_Pack_Contents) >> $(layout_gen_dir)\instances.txt |
|
169 |
|
170 Abrw_landscape : |
|
171 $(pkg) Abrw_$(name)_land_$$ZOOM$(delivery)_Pack $(dim2) $(dim1) -s$(style_name) $(Abrw_Landscape_Pack_Contents) >> $(layout_gen_dir)\instances.txt |
|
172 |
|
173 Apac_landscape : |
|
174 $(pkg) Apac_$(name)_land_$$ZOOM$(delivery)_Pack $(dim2) $(dim1) -s$(style_name) $(Apac_Landscape_Pack_Contents) >> $(layout_gen_dir)\instances.txt |
|
175 |
|
176 clean_inst_list : |
|
177 @-del /q $(layout_gen_dir)\instances.txt > nul 2>&1 |
|
178 |
|
179 layout_packages : \ |
|
180 clean_inst_list \ |
|
181 Elaf_portrait \ |
|
182 Abrw_portrait \ |
|
183 Apac_portrait \ |
|
184 Elaf_landscape \ |
|
185 Abrw_landscape \ |
|
186 Apac_landscape |
|
187 |
|
188 do_nothing : |
|
189 @rem do_nothing |
|
190 |
|
191 standard_flags = -p$(layout_gen_dir) MLCompCdl2InstO -i$(layout_gen_dir)\instances.txt -z..\generated\LayoutZoomFactorConfig.txt -allparams -d$(delivery) |
|
192 |
|
193 make_layout_gen_dir : make_gen_dir |
|
194 @-md $(layout_gen_dir) > nul 2>&1 |
|
195 |
|
196 |
|
197 # Note: AknLayoutScalable_Elaf_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_normal.cpp |
|
198 # acts as a proxy for all avkon scalable instance source code |
|
199 avkon_scalable_instances_cpp=\ |
|
200 $(layout_gen_dir)\AknLayoutScalable_Elaf_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_normal.cpp |
|
201 |
|
202 # Note: AknLayoutScalable_Elaf_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_normal.cpp |
|
203 # acts as a proxy for all app scalable instance source code |
|
204 app_scalable_instances_cpp=\ |
|
205 $(layout_gen_dir)\AknLayoutScalable_Elaf_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_normal.cpp |
|
206 |
|
207 ifndef delivery |
|
208 delivery_dir=_all |
|
209 endif |
|
210 ifdef delivery |
|
211 delivery_dir=$(delivery) |
|
212 endif |
|
213 |
|
214 avkon_scalable_instances_dep=\ |
|
215 ..\generated\LayoutZoomFactorConfig.txt \ |
|
216 ..\cdl\AknLayoutScalable_Avkon.cdl \ |
|
217 ..\xml\av\$(delivery_dir)\p$(prt_code)_av_$(short)_prt$(touch)$(delivery)\display_eur_compData.xml \ |
|
218 ..\xml\av\$(delivery_dir)\p$(prt_code)_av_$(short)_prt$(touch)$(delivery)\display_arabic_hebrew_compData.xml \ |
|
219 ..\xml\av\$(delivery_dir)\p$(land_code)_av_$(short)_lsc$(touch)$(delivery)\display_eur_compData.xml \ |
|
220 ..\xml\av\$(delivery_dir)\p$(land_code)_av_$(short)_lsc$(touch)$(delivery)\display_arabic_hebrew_compData.xml \ |
|
221 ..\xml\av\$(delivery_dir)\p$(prt_code)_av_$(short)_prt$(touch)$(delivery)\display_eur_attributes.xml \ |
|
222 ..\xml\av\$(delivery_dir)\p$(prt_code)_av_$(short)_prt$(touch)$(delivery)\display_arabic_hebrew_attributes.xml \ |
|
223 ..\xml\av\$(delivery_dir)\p$(land_code)_av_$(short)_lsc$(touch)$(delivery)\display_eur_attributes.xml \ |
|
224 ..\xml\av\$(delivery_dir)\p$(land_code)_av_$(short)_lsc$(touch)$(delivery)\display_arabic_hebrew_attributes.xml |
|
225 |
|
226 app_scalable_instances_dep=\ |
|
227 ..\generated\LayoutZoomFactorConfig.txt \ |
|
228 ..\cdl\AknLayoutScalable_Apps.cdl \ |
|
229 ..\xml\apps\$(delivery_dir)\p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)\display_eur_compData.xml \ |
|
230 ..\xml\apps\$(delivery_dir)\p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)\display_arabic_hebrew_compData.xml \ |
|
231 ..\xml\apps\$(delivery_dir)\p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)\display_eur_compData.xml \ |
|
232 ..\xml\apps\$(delivery_dir)\p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)\display_arabic_hebrew_compData.xml \ |
|
233 ..\xml\apps\$(delivery_dir)\p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)\display_eur_attributes.xml \ |
|
234 ..\xml\apps\$(delivery_dir)\p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)\display_arabic_hebrew_attributes.xml \ |
|
235 ..\xml\apps\$(delivery_dir)\p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)\display_eur_attributes.xml \ |
|
236 ..\xml\apps\$(delivery_dir)\p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)\display_arabic_hebrew_attributes.xml |
|
237 |
|
238 $(avkon_scalable_instances_cpp): $(avkon_scalable_instances_dep) |
|
239 @rem |
|
240 @rem instance source for avkon scalable layout APIs |
|
241 @rem |
|
242 @rem force rebuild of target cpp file |
|
243 @-del /q $(avkon_scalable_instances_cpp) > nul 2>&1 |
|
244 @AknLayoutCompiler $(standard_flags) ..\cdl\AknLayoutScalable_Avkon.cdl \ |
|
245 -a \ |
|
246 ..\xml\av\$(delivery_dir)\p$(prt_code)_av_$(short)_prt$(touch)$(delivery)\display_eur_compData.xml AknLayoutScalable_Elaf_p$(prt_code)_av_$(short)_prt$(touch)$(delivery) \ |
|
247 -m..\xml\av\$(delivery_dir)\p$(prt_code)_av_$(short)_prt$(touch)$(delivery)\display_arabic_hebrew_compData.xml AknLayoutScalable_Abrw_p$(prt_code)_av_$(short)_prt$(touch)$(delivery) \ |
|
248 ..\xml\av\$(delivery_dir)\p$(land_code)_av_$(short)_lsc$(touch)$(delivery)\display_eur_compData.xml AknLayoutScalable_Elaf_p$(land_code)_av_$(short)_lsc$(touch)$(delivery) \ |
|
249 -m..\xml\av\$(delivery_dir)\p$(land_code)_av_$(short)_lsc$(touch)$(delivery)\display_arabic_hebrew_compData.xml AknLayoutScalable_Abrw_p$(land_code)_av_$(short)_lsc$(touch)$(delivery) |
|
250 |
|
251 $(app_scalable_instances_cpp): $(app_scalable_instances_dep) |
|
252 @rem |
|
253 @rem instance source for app scalable layout APIs |
|
254 @rem |
|
255 @rem force rebuild of target cpp file |
|
256 @-del /q $(app_scalable_instances_cpp) > nul 2>&1 |
|
257 @AknLayoutCompiler $(standard_flags) ..\cdl\AknLayoutScalable_Apps.cdl \ |
|
258 -a \ |
|
259 ..\xml\apps\$(delivery_dir)\p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)\display_eur_compData.xml AknLayoutScalable_Elaf_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery) \ |
|
260 -m..\xml\apps\$(delivery_dir)\p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)\display_arabic_hebrew_compData.xml AknLayoutScalable_Abrw_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery) \ |
|
261 ..\xml\apps\$(delivery_dir)\p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)\display_eur_compData.xml AknLayoutScalable_Elaf_p$(land_code)_apps_$(short)_lsc$(touch)$(delivery) \ |
|
262 -m..\xml\apps\$(delivery_dir)\p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)\display_arabic_hebrew_compData.xml AknLayoutScalable_Abrw_p$(land_code)_apps_$(short)_lsc$(touch)$(delivery) |
|
263 |
|
264 |
|
265 INSTANCES: \ |
|
266 $(avkon_scalable_instances_cpp) \ |
|
267 $(app_scalable_instances_cpp) |
|
268 |
|
269 COPY: |
|
270 @rem |
|
271 @rem copy |
|
272 @rem |
|
273 @call copy ..\HandCodedFonts\CdlFont.* $(layout_gen_dir) > nul 2>&1 |
|
274 @call copy ..\HandCodedFonts\CdlFontInst_$(font_name).* $(layout_gen_dir) > nul 2>&1 |
|
275 @call copy ..\displaylayoutmetrics\displaylayoutmetrics.* $(layout_gen_dir) > nul 2>&1 |
|
276 @call copy ..\displaylayoutmetrics\displaylayoutmetricsinst_$(name).* $(layout_gen_dir) > nul 2>&1 |
|
277 |
|
278 DLL: |
|
279 @rem |
|
280 @rem the DLL |
|
281 @rem |
|
282 @CdlCompiler dll \ |
|
283 -n$(dllversion) \ |
|
284 \ |
|
285 -p$(layout_gen_dir) \ |
|
286 \ |
|
287 -laknlayout2scalable.lib \ |
|
288 -lcdlengine.lib \ |
|
289 \ |
|
290 -s..\..\decodelib\Aknlayout2scalabledecode.cpp \ |
|
291 \ |
|
292 "-esysteminclude .."\ |
|
293 \ |
|
294 LayoutInst_$(name)$(delivery) $(uid) \ |
|
295 \ |
|
296 @$(layout_gen_dir)\instances.txt |
|
297 |
|
298 MAKMAKE : \ |
|
299 make_layout_gen_dir \ |
|
300 layout_packages \ |
|
301 INSTANCES \ |
|
302 COPY \ |
|
303 DLL |
|
304 |
|
305 BLD : do_nothing |
|
306 |
|
307 CLEAN : |
|
308 |
|
309 LIB : do_nothing |
|
310 |
|
311 CLEANLIB : do_nothing |
|
312 |
|
313 RESOURCE : do_nothing |
|
314 |
|
315 FREEZE : do_nothing |
|
316 |
|
317 SAVESPACE : do_nothing |
|
318 |
|
319 RELEASABLES : do_nothing |
|
320 |
|
321 FINAL : do_nothing |
|
322 |
|
323 |