equal
deleted
inserted
replaced
|
1 Precacher tool |
|
2 ------------------------------------------------------------------- |
|
3 Step 1: |
|
4 Ensure the skins folder has series60skin_MIFList.txt. Compile \s60\mw\uiresources\skins\AknSkinContent to generate if its not present |
|
5 |
|
6 Step 2: |
|
7 Run IconId.pl |
|
8 usage: IconId.pl MIFList-file build-path out-file |
|
9 |
|
10 Example |
|
11 Y:\>IconId.pl Y:\s60\mw\uiresources\skins\AknSkinContent\generated\scalableseries60skin\data\series60skin_MIFList.txt y: iconlist.csv |
|
12 |
|
13 This generates the icon enum, major, minor number, icon id in iconlist.csv |
|
14 |
|
15 Step 3: |
|
16 Define the MACRO's for precacher, |
|
17 Macro PRECACHE2 should be defined to enable the precacher. |
|
18 Macro PRECACHELOG should be defined to get the traces generated |
|
19 To define the macro put the below code in AknIcon.mmp(in folder \s60\mw\uiresources\uigraphics\AknIcon\group) |
|
20 |
|
21 MACRO PRECACHE2 |
|
22 MACRO PRECACHELOG |
|
23 #define PRECACHELOG |
|
24 |
|
25 Generate the build, flash the phone |
|
26 Now start the phone open all the applications whose icons you wish to precache |
|
27 This creates the trace file logs\AknIconPreCacher\Traces.txt (create the folder AknIconPreCacher if not already present) |
|
28 |
|
29 |
|
30 Step 4: |
|
31 Run IconLoads.pl |
|
32 usage: iconlist iconloads out-file |
|
33 |
|
34 Example |
|
35 Y:\>IconLoads.pl iconlist.csv Y:\epoc32\winscw\c\logs\AknIconPreCacher\Traces.txt resources.rss |
|
36 |
|
37 This generates the resource file in the required format |
|
38 |
|
39 Step 5: |
|
40 Copy the contents of the resource file (resources.rss in this case) into AknIconSrv.rss. |
|
41 it will be in the folder \s60\mw\uiresources\uigraphics\AknIcon\srvsrc. |
|
42 |
|
43 RESOURCE ARRAY r_precache_list2 |
|
44 { |
|
45 items = |
|
46 { |
|
47 // copy the icon list here |
|
48 }; |
|
49 } |
|
50 |
|
51 Step 6: |
|
52 Compile the AknIcon code, the macro PRECACHE2 should be defined (if not already done)to enable precaching |
|
53 uncomment (or remove ) the macro definition for PRECACHELOG. |