|
1 /* |
|
2 * ============================================================================ |
|
3 * Name : S60Macros.iby |
|
4 * Part of : ROM Build Process |
|
5 * |
|
6 * Description: |
|
7 * Build ROM Information |
|
8 * |
|
9 * Version: |
|
10 * |
|
11 * Copyright (C) 2002 Nokia Corporation. |
|
12 * This material, including documentation and any related |
|
13 * computer programs, is protected by copyright controlled by |
|
14 * Nokia Corporation. All rights are reserved. Copying, |
|
15 * including reproducing, storing, adapting or translating, any |
|
16 * or all of this material requires the prior written consent of |
|
17 * Nokia Corporation. This material also contains confidential |
|
18 * information which may not be disclosed to others without the |
|
19 * prior written consent of Nokia Corporation. |
|
20 * |
|
21 * ============================================================================ |
|
22 */ |
|
23 |
|
24 #ifndef __S60MACROS_IBY__ |
|
25 #define __S60MACROS_IBY__ |
|
26 |
|
27 // Scalable image |
|
28 #ifdef RD_SCALABLE_UI |
|
29 #define SCALABLE_IMAGE(path,target,name) __SCALABLE_IMAGE(DATAZ_,path,target,name) |
|
30 #else |
|
31 #define SCALABLE_IMAGE(path,target,name) AUTO-BITMAP=DATAZ_\ ## path ## \ ## name ## .mbm target ## \ ## name ## .mbm |
|
32 #endif |
|
33 |
|
34 |
|
35 |
|
36 // App files |
|
37 #ifndef RD_APPS_TO_EXES |
|
38 #define S60_APP_EXE(NAME) file=ABI_DIR\BUILD_DIR\ ## NAME ## .app System\Apps\ ## NAME ## \ ## NAME ## .app |
|
39 #define S60_APP_EXE_UDEB(NAME) file=ABI_DIR\UDEB\ ## NAME ## .app System\Apps\ ## NAME ## \ ## NAME ## .app |
|
40 #else // RD_APPS_TO_EXES |
|
41 #define S60_APP_EXE(NAME) file=ABI_DIR\BUILD_DIR\ ## NAME ## .exe PROGRAMS_DIR\ ## NAME ## .exe |
|
42 #define S60_APP_EXE_UDEB(NAME) file=ABI_DIR\UDEB\ ## NAME ## .exe PROGRAMS_DIR\ ## NAME ## .exe |
|
43 #endif // RD_APPS_TO_EXES |
|
44 |
|
45 |
|
46 |
|
47 // App bitmap |
|
48 #ifdef RD_APPS_TO_EXES |
|
49 #ifdef RD_SCALABLE_UI |
|
50 #define S60_APP_BITMAP(NAME) __SCALABLE_IMAGE(DATAZ_,APP_BITMAP_DIR,APP_BITMAP_DIR, ## NAME ## ) |
|
51 #define S60_APP_BITMAP2(DIR,NAME) __SCALABLE_IMAGE(DATAZ_,APP_BITMAP_DIR,APP_BITMAP_DIR, ## NAME ## ) |
|
52 #else // RD_SCALABLE_UI |
|
53 #define S60_APP_BITMAP(NAME) AUTO-BITMAP=DATAZ_\APP_BITMAP_DIR\ ## NAME ## .mbm APP_BITMAP_DIR\ ## NAME ## .mbm |
|
54 #define S60_APP_BITMAP2(DIR,NAME) AUTO-BITMAP=DATAZ_\APP_BITMAP_DIR\ ## NAME ## .mbm APP_BITMAP_DIR\ ## NAME ## .mbm |
|
55 #endif // RD_SCALABLE_UI |
|
56 #else // RD_APPS_TO_EXES |
|
57 #ifdef RD_SCALABLE_UI |
|
58 #define S60_APP_BITMAP(NAME) __SCALABLE_IMAGE(DATAZ_,System\Apps\ ## NAME ## ,System\Apps\ ## NAME ## , ## NAME ## ) |
|
59 #define S60_APP_BITMAP2(DIR,NAME) __SCALABLE_IMAGE(DATAZ_,System\Apps\ ## DIR ## ,System\Apps\ ## DIR ## , ## NAME ## ) |
|
60 #else // RD_SCALABLE_UI |
|
61 #define S60_APP_BITMAP(NAME) AUTO-BITMAP=DATAZ_\System\Apps\ ## NAME ## \ ## NAME ## .mbm System\Apps\ ## NAME ## \ ## NAME ## .mbm |
|
62 #define S60_APP_BITMAP2(DIR,NAME) AUTO-BITMAP=DATAZ_\System\Apps\ ## DIR ## \ ## NAME ## .mbm System\Apps\ ## DIR ## \ ## NAME ## .mbm |
|
63 #endif // RD_SCALABLE_UI |
|
64 #endif // RD_APPS_TO_EXES |
|
65 |
|
66 |
|
67 |
|
68 // AIF icons/files |
|
69 #ifdef RD_SCALABLE_UI // New app framework used |
|
70 #ifdef RD_APPS_TO_EXES |
|
71 #ifdef __SCALABLE_ICONS |
|
72 #define S60_APP_AIF_ICONS(NAME) data=DATAZ_\APP_BITMAP_DIR\ ## NAME ## _AIF.MIF APP_BITMAP_DIR\ ## NAME ## _aif.mif |
|
73 #else |
|
74 #define S60_APP_AIF_ICONS(NAME) AUTO-BITMAP=DATAZ_\APP_BITMAP_DIR\ ## NAME ## _AIF.MBM APP_BITMAP_DIR\ ## NAME ## _aif.mbm |
|
75 #endif |
|
76 #else // RD_APPS_TO_EXES |
|
77 #ifdef __SCALABLE_ICONS |
|
78 #define S60_APP_AIF_ICONS(NAME) data=ZSYSTEM\APPS\ ## NAME ## \ ## NAME ## _AIF.MIF System\Apps\ ## NAME ## \ ## NAME ## _aif.mif |
|
79 #else |
|
80 #define S60_APP_AIF_ICONS(NAME) AUTO-BITMAP=ZSYSTEM\APPS\ ## NAME ## \ ## NAME ## _AIF.MBM System\Apps\ ## NAME ## \ ## NAME ## _aif.mbm |
|
81 #endif |
|
82 #endif // RD_APPS_TO_EXES |
|
83 #define S60_APP_AIF_RSC(NAME) data=DATAZ_\PRIVATE\10003A3F\APPS\ ## NAME ## _reg.rsc Private\10003a3f\apps\ ## NAME ## _reg.rsc |
|
84 #define S60_UPGRADABLE_APP_REG_RSC(NAME) data=DATAZ_\PRIVATE\10003A3F\APPS\ ## NAME ## _reg.rsc Private\10003a3f\import\apps\ ## NAME ## _reg.rsc |
|
85 |
|
86 #else // RD_SCALABLE_UI Old app framework used |
|
87 #define S60_APP_AIF_ICONS(NAME) AIF=ZSYSTEM\APPS\ ## NAME ## \ ## NAME ## .AIF System\Apps\ ## NAME ## \ ## NAME ## .aif |
|
88 #define S60_APP_AIF_RSC(NAME) |
|
89 #define S60_UPGRADABLE_APP_REG_RSC(NAME) |
|
90 #endif |
|
91 |
|
92 |
|
93 |
|
94 //Resource file(s) |
|
95 #ifdef RD_APPS_TO_EXES |
|
96 #define S60_APP_RESOURCE(NAME) data=DATAZ_\APP_RESOURCE_DIR\ ## NAME ## .RSC APP_RESOURCE_DIR\ ## NAME ## .rsc |
|
97 #define S60_APP_RESOURCE2(APPNAME,RESNAME) data=DATAZ_\APP_RESOURCE_DIR\ ## RESNAME ## .RSC APP_RESOURCE_DIR\ ## RESNAME ## .rsc |
|
98 #ifndef RD_SCALABLE_UI // Old app framework used |
|
99 #define S60_APP_CAPTION(NAME) data=DATAZ_\APP_RESOURCE_DIR\ ## NAME ## _CAPTION.RSC APP_RESOURCE_DIR\ ## NAME ## _caption.rsc |
|
100 #else |
|
101 #define S60_APP_CAPTION(NAME) |
|
102 #endif // RD_SCALABLE_UI |
|
103 #else // RD_APPS_TO_EXES |
|
104 #define S60_APP_RESOURCE(NAME) data=ZSYSTEM\APPS\ ## NAME ## \ ## NAME ## .RSC System\Apps\ ## NAME ## \ ## NAME ## .rsc |
|
105 #define S60_APP_RESOURCE2(APPNAME,RESNAME) data=ZSYSTEM\APPS\ ## APPNAME ## \ ## RESNAME ## .RSC System\Apps\ ## APPNAME ## \ ## RESNAME ## .rsc |
|
106 #ifndef RD_SCALABLE_UI // Old app framework used |
|
107 #define S60_APP_CAPTION(NAME) data=ZSYSTEM\APPS\ ## NAME ## \ ## NAME ## _CAPTION.RSC System\Apps\ ## NAME ## \ ## NAME ## _caption.rsc |
|
108 #else |
|
109 #define S60_APP_CAPTION(NAME) |
|
110 #endif // RD_SCALABLE_UI |
|
111 #endif // RD_APPS_TO_EXES |
|
112 |
|
113 |
|
114 #endif //__S60MACROS_IBY__ |