12 # Contributors: |
12 # Contributors: |
13 # |
13 # |
14 # Description: |
14 # Description: |
15 # |
15 # |
16 |
16 |
17 include layoutConfig.mk |
17 include LayoutConfig.mk |
18 |
18 |
19 layout_gen_dir = $(gen_dir)\$(name)$(delivery)_akn_app |
19 layout_gen_dir = $(gen_dir)/$(name)$(delivery)_akn_app |
20 common_dll = -x .. 101fe2aa.dll |
20 common_dll = -x .. 101fe2aa.dll |
21 |
21 |
22 Elaf_Portrait_Pack_Contents=\ |
22 Elaf_Portrait_Pack_Contents=\ |
23 EAknLayoutIdELAF \ |
23 EAknLayoutIdELAF \ |
24 AknLayoutScalable_Elaf_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_$$ZOOM \ |
24 AknLayoutScalable_Elaf_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_ZOOM \ |
25 AknLayoutScalable_Elaf_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_$$ZOOM \ |
25 AknLayoutScalable_Elaf_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_ZOOM \ |
26 |
26 |
27 Abrw_Portrait_Pack_Contents=\ |
27 Abrw_Portrait_Pack_Contents=\ |
28 EAknLayoutIdABRW \ |
28 EAknLayoutIdABRW \ |
29 AknLayoutScalable_Abrw_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_$$ZOOM \ |
29 AknLayoutScalable_Abrw_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_ZOOM \ |
30 AknLayoutScalable_Abrw_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_$$ZOOM |
30 AknLayoutScalable_Abrw_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_ZOOM |
31 |
31 |
32 Apac_Portrait_Pack_Contents=\ |
32 Apac_Portrait_Pack_Contents=\ |
33 EAknLayoutIdAPAC \ |
33 EAknLayoutIdAPAC \ |
34 AknLayoutScalable_Elaf_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_$$ZOOM \ |
34 AknLayoutScalable_Elaf_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_ZOOM \ |
35 AknLayoutScalable_Elaf_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_$$ZOOM |
35 AknLayoutScalable_Elaf_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_ZOOM |
36 |
36 |
37 Elaf_Landscape_Pack_Contents=\ |
37 Elaf_Landscape_Pack_Contents=\ |
38 EAknLayoutIdELAF \ |
38 EAknLayoutIdELAF \ |
39 AknLayoutScalable_Elaf_p$(land_code)_av_$(short)_lsc$(touch)$(delivery)_$$ZOOM \ |
39 AknLayoutScalable_Elaf_p$(land_code)_av_$(short)_lsc$(touch)$(delivery)_ZOOM \ |
40 AknLayoutScalable_Elaf_p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)_$$ZOOM |
40 AknLayoutScalable_Elaf_p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)_ZOOM |
41 |
41 |
42 Abrw_Landscape_Pack_Contents=\ |
42 Abrw_Landscape_Pack_Contents=\ |
43 EAknLayoutIdABRW \ |
43 EAknLayoutIdABRW \ |
44 AknLayoutScalable_Abrw_p$(land_code)_av_$(short)_lsc$(touch)$(delivery)_$$ZOOM \ |
44 AknLayoutScalable_Abrw_p$(land_code)_av_$(short)_lsc$(touch)$(delivery)_ZOOM \ |
45 AknLayoutScalable_Abrw_p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)_$$ZOOM |
45 AknLayoutScalable_Abrw_p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)_ZOOM |
46 |
46 |
47 Apac_Landscape_Pack_Contents=\ |
47 Apac_Landscape_Pack_Contents=\ |
48 EAknLayoutIdAPAC \ |
48 EAknLayoutIdAPAC \ |
49 AknLayoutScalable_Elaf_p$(land_code)_av_$(short)_lsc$(touch)$(delivery)_$$ZOOM \ |
49 AknLayoutScalable_Elaf_p$(land_code)_av_$(short)_lsc$(touch)$(delivery)_ZOOM \ |
50 AknLayoutScalable_Elaf_p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)_$$ZOOM |
50 AknLayoutScalable_Elaf_p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)_ZOOM |
51 |
51 |
52 ifndef delivery |
52 ifndef delivery |
53 Elaf_Portrait_Pack_Contents := $(Elaf_Portrait_Pack_Contents) \ |
53 Elaf_Portrait_Pack_Contents := $(Elaf_Portrait_Pack_Contents) \ |
54 CdlFontInst_$(font_name) \ |
54 CdlFontInst_$(font_name) \ |
55 displaylayoutmetricsinst_$(name) \ |
55 displaylayoutmetricsinst_$(name) \ |
184 Elaf_landscape \ |
184 Elaf_landscape \ |
185 Abrw_landscape \ |
185 Abrw_landscape \ |
186 Apac_landscape |
186 Apac_landscape |
187 |
187 |
188 do_nothing : |
188 do_nothing : |
189 @rem do_nothing |
189 |
190 |
190 |
191 standard_flags = -p$(layout_gen_dir) MLCompCdl2InstO -i$(layout_gen_dir)\instances.txt -z..\generated\LayoutZoomFactorConfig.txt -allparams -d$(delivery) |
191 standard_flags = -p$(layout_gen_dir) MLCompCdl2InstO -i$(layout_gen_dir)/instances.txt -z../generated/LayoutZoomFactorConfig.txt -allparams -d$(delivery) |
192 |
192 |
193 make_layout_gen_dir : make_gen_dir |
193 make_layout_gen_dir : make_gen_dir |
194 @-md $(layout_gen_dir) > nul 2>&1 |
194 @python -c "import os,os.path; os.path.exists('$(layout_gen_dir)') or os.mkdir('$(layout_gen_dir)')" |
195 |
195 |
196 |
196 |
197 # Note: AknLayoutScalable_Elaf_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_normal.cpp |
197 |
198 # acts as a proxy for all avkon scalable instance source code |
198 |
199 avkon_scalable_instances_cpp=\ |
199 avkon_scalable_instances_cpp=\ |
200 $(layout_gen_dir)\AknLayoutScalable_Elaf_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_normal.cpp |
200 $(layout_gen_dir)/aknlayoutscalable_elaf_p$(prt_code)_av_$(short)_prt$(touch)$(delivery)_normal.cpp |
201 |
201 |
202 # Note: AknLayoutScalable_Elaf_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_normal.cpp |
202 |
203 # acts as a proxy for all app scalable instance source code |
203 |
204 app_scalable_instances_cpp=\ |
204 app_scalable_instances_cpp=\ |
205 $(layout_gen_dir)\AknLayoutScalable_Elaf_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_normal.cpp |
205 $(layout_gen_dir)/aknlayoutscalable_elaf_p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)_normal.cpp |
206 |
206 |
207 ifndef delivery |
207 ifndef delivery |
208 delivery_dir=_all |
208 delivery_dir=_all |
209 endif |
209 endif |
210 ifdef delivery |
210 ifdef delivery |
211 delivery_dir=$(delivery) |
211 delivery_dir=$(delivery) |
212 endif |
212 endif |
213 |
213 |
214 avkon_scalable_instances_dep=\ |
214 avkon_scalable_instances_dep=\ |
215 ..\generated\LayoutZoomFactorConfig.txt \ |
215 ../generated/LayoutZoomFactorConfig.txt \ |
216 ..\cdl\AknLayoutScalable_Avkon.cdl \ |
216 ../cdl/AknLayoutScalable_Avkon.cdl \ |
217 ..\xml\av\$(delivery_dir)\p$(prt_code)_av_$(short)_prt$(touch)$(delivery)\display_eur_compData.xml \ |
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 \ |
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 \ |
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 \ |
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 \ |
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 \ |
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 \ |
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 |
224 ../xml/av/$(delivery_dir)/p$(land_code)_av_$(short)_lsc$(touch)$(delivery)/display_arabic_hebrew_attributes.xml |
225 |
225 |
226 app_scalable_instances_dep=\ |
226 app_scalable_instances_dep=\ |
227 ..\generated\LayoutZoomFactorConfig.txt \ |
227 ../generated/LayoutZoomFactorConfig.txt \ |
228 ..\cdl\AknLayoutScalable_Apps.cdl \ |
228 ../cdl/AknLayoutScalable_Apps.cdl \ |
229 ..\xml\apps\$(delivery_dir)\p$(prt_code)_apps_$(short)_prt$(touch)$(delivery)\display_eur_compData.xml \ |
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 \ |
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 \ |
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 \ |
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 \ |
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 \ |
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 \ |
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 |
236 ../xml/apps/$(delivery_dir)/p$(land_code)_apps_$(short)_lsc$(touch)$(delivery)/display_arabic_hebrew_attributes.xml |
237 |
237 |
238 $(avkon_scalable_instances_cpp): $(avkon_scalable_instances_dep) |
238 $(avkon_scalable_instances_cpp): $(avkon_scalable_instances_dep) |
239 @rem |
239 |
240 @rem instance source for avkon scalable layout APIs |
240 @python -c "import os,os.path; os.path.exists('$(avkon_scalable_instances_cpp)') and os.remove('$(avkon_scalable_instances_cpp)')" |
241 @rem |
241 @AknLayoutCompiler $(standard_flags) ../cdl/AknLayoutScalable_Avkon.cdl \ |
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 \ |
242 -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) \ |
243 ../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) \ |
244 -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) \ |
245 ../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) |
246 -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) |
247 $(app_scalable_instances_cpp): $(app_scalable_instances_dep) |
252 @rem |
248 @python -c "import os,os.path; os.path.exists('$(app_scalable_instances_cpp)') and os.remove('$(app_scalable_instances_cpp)')" |
253 @rem instance source for app scalable layout APIs |
249 @AknLayoutCompiler $(standard_flags) ../cdl/AknLayoutScalable_Apps.cdl \ |
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 \ |
250 -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) \ |
251 ../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) \ |
252 -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) \ |
253 ../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) |
254 -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 |
255 |
264 |
256 |
265 INSTANCES: \ |
257 INSTANCES: \ |
266 $(avkon_scalable_instances_cpp) \ |
258 $(avkon_scalable_instances_cpp) \ |
267 $(app_scalable_instances_cpp) |
259 $(app_scalable_instances_cpp) |
268 |
|
269 COPY: |
260 COPY: |
270 @rem |
261 @python -c "import glob,shutil; filelist=glob.glob('../HandCodedFonts/cdlfont.*');\ |
271 @rem copy |
262 map((lambda f: shutil.copy(f, '$(layout_gen_dir)')), filelist)" |
272 @rem |
263 |
273 @call copy ..\HandCodedFonts\CdlFont.* $(layout_gen_dir) > nul 2>&1 |
264 @python -c "import glob,shutil; fontname='$(font_name)'; filelist=glob.glob('../HandCodedFonts/cdlfontinst_'+fontname.lower()+'.*');\ |
274 @call copy ..\HandCodedFonts\CdlFontInst_$(font_name).* $(layout_gen_dir) > nul 2>&1 |
265 map((lambda f: shutil.copy(f, '$(layout_gen_dir)')), filelist)" |
275 @call copy ..\displaylayoutmetrics\displaylayoutmetrics.* $(layout_gen_dir) > nul 2>&1 |
266 |
276 @call copy ..\displaylayoutmetrics\displaylayoutmetricsinst_$(name).* $(layout_gen_dir) > nul 2>&1 |
267 @python -c "import glob,shutil; filelist=glob.glob('../displaylayoutmetrics/displaylayoutmetrics.*');\ |
|
268 map((lambda f: shutil.copy(f, '$(layout_gen_dir)')), filelist)" |
|
269 |
|
270 @python -c "import glob,shutil; filelist=glob.glob('../displaylayoutmetrics/displaylayoutmetricsinst_$(name).*');\ |
|
271 map((lambda f: shutil.copy(f, '$(layout_gen_dir)')), filelist)" |
277 |
272 |
278 DLL: |
273 DLL: |
279 @rem |
274 |
280 @rem the DLL |
275 |
281 @rem |
276 |
282 @CdlCompiler dll \ |
277 @CdlCompiler dll \ |
283 -n$(dllversion) \ |
278 -n$(dllversion) \ |
284 \ |
279 \ |
285 -p$(layout_gen_dir) \ |
280 -p$(layout_gen_dir) \ |
286 \ |
281 \ |
287 -laknlayout2scalable.lib \ |
282 -lAknLayout2Scalable.lib \ |
288 -lcdlengine.lib \ |
283 -lCdlEngine.lib \ |
289 \ |
284 \ |
290 -s..\..\decodelib\Aknlayout2scalabledecode.cpp \ |
285 -s../../Decodelib/AknLayout2ScalableDecode.cpp \ |
291 \ |
286 \ |
292 "-esysteminclude .."\ |
287 "-esysteminclude .."\ |
293 \ |
288 \ |
294 LayoutInst_$(name)$(delivery) $(uid) \ |
289 LayoutInst_$(name)$(delivery) $(uid) \ |
295 \ |
290 \ |
296 @$(layout_gen_dir)\instances.txt |
291 @$(layout_gen_dir)/instances.txt |
297 |
292 |
298 MAKMAKE : \ |
293 MAKMAKE : \ |
299 make_layout_gen_dir \ |
294 make_layout_gen_dir \ |
300 layout_packages \ |
295 layout_packages \ |
301 INSTANCES \ |
296 INSTANCES \ |
302 COPY \ |
297 COPY \ |
303 DLL |
298 DLL |
304 |
|
305 BLD : do_nothing |
299 BLD : do_nothing |
306 |
300 |
307 CLEAN : |
301 CLEAN : |
308 |
302 |
309 LIB : do_nothing |
303 LIB : do_nothing |