24 */ |
24 */ |
25 |
25 |
26 #ifndef BROWSER_PLATFORM_VARIANT_HRH |
26 #ifndef BROWSER_PLATFORM_VARIANT_HRH |
27 #define BROWSER_PLATFORM_VARIANT_HRH |
27 #define BROWSER_PLATFORM_VARIANT_HRH |
28 |
28 |
29 /* NOTE: |
29 |
30 |
30 /* |
31 Format of browser domain feature flags: |
31 * Establish which platform we are building on. |
32 |
32 * If required, un-comment correct platform macro as |
33 "BRDO_" | feature/component name | "_FF" |
33 * described below |
34 |
34 * |
|
35 */ |
|
36 |
|
37 #if defined(__S60_32__) |
|
38 // |
|
39 // this is the only supported platform that comes with unambiguous platform version flag |
|
40 #define __PLATFORM_VERSION_32__ |
|
41 // |
|
42 #else |
|
43 // manually edit the following lines to enable definition for |
|
44 // whichever platform is in use |
|
45 // |
|
46 // un-comment following line for 5.0/5250 platforms |
|
47 //#define __PLATFORM_VERSION_50__ |
|
48 // |
|
49 // un-comment following line for 5.1/TB9.1 platforms |
|
50 #define __PLATFORM_VERSION_51__ |
|
51 // |
|
52 // un-comment following line for 5.2/TB9.2 platforms |
|
53 //#define __PLATFORM_VERSION_52__ |
|
54 // |
|
55 #endif |
|
56 |
|
57 |
|
58 /* |
|
59 * |
|
60 * Define Browser Version |
|
61 * |
|
62 */ |
|
63 |
|
64 #define BRDO_APP_VERSION_MAJOR 7 |
|
65 #define BRDO_APP_VERSION_MINOR 2 |
|
66 #define BRDO_APP_VERSION BRDO_APP_VERSION_MAJOR##_##BRDO_APP_VERSION_MINOR |
|
67 |
|
68 |
|
69 /* |
|
70 * |
|
71 * Define feature flags |
|
72 * |
|
73 * Format of browser domain feature flags: |
|
74 * |
|
75 * "BRDO_" | feature/component name | "_FF" |
|
76 * |
|
77 * Define default value of the flag in section below, and then modify it |
|
78 * by platform as it varies from that default. |
|
79 * |
35 */ |
80 */ |
36 |
81 |
37 // Defines Language InterWork and SAPI availability |
82 // Defines Language InterWork and SAPI availability |
38 #define BRDO_LIW_FF |
83 #define BRDO_LIW_FF |
39 |
84 |
66 // Defines WRT widgets feature to publish on homescreen |
111 // Defines WRT widgets feature to publish on homescreen |
67 #define BRDO_WRT_HS_FF |
112 #define BRDO_WRT_HS_FF |
68 |
113 |
69 // Gallery App is not present |
114 // Gallery App is not present |
70 #undef BRDO_APP_GALLERY_SUPPORTED_FF |
115 #undef BRDO_APP_GALLERY_SUPPORTED_FF |
|
116 |
|
117 // Defines if MultipartParser should be built |
|
118 #define BRDO_MULTIPART_PARSER_FF |
|
119 |
|
120 // Additional export location - to adapt to new header export location |
|
121 #undef BRDO_ADDED_EXPORT_LOCATION |
|
122 |
|
123 |
71 /* |
124 /* |
72 * =================== |
125 * =================== |
73 * S60 3.23 |
126 * S60 3.23 |
74 * =================== |
127 * =================== |
75 */ |
128 */ |
76 #if defined(__S60_32__) |
129 #if defined(__PLATFORM_VERSION_32__) |
77 |
130 |
78 // Defines Language InterWork and SAPI availability |
131 // Defines Language InterWork and SAPI availability |
79 #undef BRDO_LIW_FF |
132 #undef BRDO_LIW_FF |
80 |
133 |
81 // Defines if SecurityManager component is present |
134 // Defines if SecurityManager component is present |
93 |
146 |
94 #undef BRDO_WRT_HS_FF |
147 #undef BRDO_WRT_HS_FF |
95 |
148 |
96 // Gallery App is present |
149 // Gallery App is present |
97 #define BRDO_APP_GALLERY_SUPPORTED_FF |
150 #define BRDO_APP_GALLERY_SUPPORTED_FF |
98 // Missing from ProductVariant.hrh |
|
99 #ifndef LANGUAGE_IDS |
|
100 #define LANGUAGE_IDS LANG sc |
|
101 #endif |
|
102 |
|
103 #define BRDO_APP_VERSION_MAJOR 7 |
|
104 #define BRDO_APP_VERSION_MINOR 1 |
|
105 |
151 |
106 // Missing from 3.23 platform_paths.hrh |
152 // Missing from 3.23 platform_paths.hrh |
107 |
153 |
108 // Location, where the middleware layer localization .loc file should be exported |
154 // Location, where the middleware layer localization .loc file should be exported |
109 #define MW_LAYER_LOC_EXPORT_PATH(exported) MW_LAYER_PUBLIC_EXPORT_PATH(##exported) |
155 #define MW_LAYER_LOC_EXPORT_PATH(exported) MW_LAYER_PUBLIC_EXPORT_PATH(##exported) |
110 |
156 |
111 // Location, where the middleware layer localization .loc file should be exported |
157 // Location, where the middleware layer localization .loc file should be exported |
112 #define APP_LAYER_LOC_EXPORT_PATH(exported) APP_LAYER_PUBLIC_EXPORT_PATH(##exported) |
158 #define APP_LAYER_LOC_EXPORT_PATH(exported) APP_LAYER_PUBLIC_EXPORT_PATH(##exported) |
113 |
159 |
114 |
160 |
115 |
|
116 |
|
117 /* |
161 /* |
118 * =================== |
162 * =================== |
119 * S60 5.0 |
163 * S60 5.0 |
120 * =================== |
164 * =================== |
121 */ |
165 */ |
122 #elif defined(__S60_50__) |
166 #elif defined(__PLATFORM_VERSION_50__) |
123 |
167 |
124 // Defines must accumulate versions. ie for 5.01 you must define BRDO_BROWSER_50_FF and BRDO_BROWSER_501_FF(To be reviewed) |
168 // Defines must accumulate versions. ie for 5.01 you must define BRDO_BROWSER_50_FF and BRDO_BROWSER_501_FF(To be reviewed) |
125 // The assumption is that anything that worked in 3.2 will work in 5.0 and 5.01. For anything doesn't work |
169 // The assumption is that anything that worked in 3.2 will work in 5.0 and 5.01. For anything doesn't work |
126 // in 3.2 but works in 5.0 and above, that code should be behind the BRDO_BROWSER_50_FF flag. |
170 // in 3.2 but works in 5.0 and above, that code should be behind the BRDO_BROWSER_50_FF flag. |
127 #define BRDO_BROWSER_50_FF |
171 #define BRDO_BROWSER_50_FF |
128 |
172 |
129 #define BRDO_APP_VERSION_MAJOR 7 |
173 #if __GNUC__ >= 3 |
130 #define BRDO_APP_VERSION_MINOR 0 |
174 #define BRDO_ADDED_EXPORT_LOCATION(exported) MW_LAYER_DOMAIN_EXPORT_PATH(../../platform/mw/exported) |
|
175 #else |
|
176 #define BRDO_ADDED_EXPORT_LOCATION(exported) MW_LAYER_DOMAIN_EXPORT_PATH(../../platform/mw/##exported) |
|
177 #endif |
|
178 |
|
179 #define APP_LAYER_LIBC_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../libc) |
|
180 #define APP_LAYER_ECOM_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../ecom) |
|
181 #define APP_LAYER_HTTP_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../http) |
|
182 #define APP_LAYER_CONNECT_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../connect) |
|
183 #define APP_LAYER_SWI_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../swi) |
|
184 #define APP_LAYER_OSKERNEL_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../kernel) |
|
185 #define APP_LAYER_PUSH_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../push) |
|
186 #define APP_LAYER_STDAPIS_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../stdapis) |
|
187 |
|
188 #define MW_LAYER_LIBC_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../libc) |
|
189 #define MW_LAYER_ECOM_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../ecom) |
|
190 #define MW_LAYER_HTTP_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../http) |
|
191 #define MW_LAYER_CONNECT_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../connect) |
|
192 #define MW_LAYER_SWI_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../swi) |
|
193 #define MW_LAYER_OSKERNEL_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../kernel) |
|
194 #define MW_LAYER_PUSH_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../push) |
|
195 #define MW_LAYER_STDAPIS_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../stdapis) |
|
196 |
131 |
197 |
132 /* |
198 /* |
133 * =================== |
199 * =================== |
134 * S60 5.1 |
200 * S60 5.1 |
135 * =================== |
201 * =================== |
136 */ |
202 */ |
137 #else // until __S60_51__ is defined |
203 #elif defined(__PLATFORM_VERSION_51__) |
138 |
204 |
139 #define BRDO_BROWSER_50_FF |
205 #define BRDO_BROWSER_50_FF |
140 |
206 #define BRDO_BROWSER_51_FF |
141 #define BRDO_APP_VERSION_MAJOR 7 |
|
142 #define BRDO_APP_VERSION_MINOR 2 |
|
143 |
|
144 #endif // S60 VERSION ID's |
|
145 |
|
146 |
|
147 #define BRDO_APP_VERSION BRDO_APP_VERSION_MAJOR##_##BRDO_APP_VERSION_MINOR |
|
148 |
|
149 // Generic run-time definitions -- see WmlBrowserBuild.h for similar feature related definitions |
|
150 |
|
151 // Browser Update - Independent Application Delivery |
|
152 #if defined( KFeatureIdIAUpdate ) |
|
153 // Defines flag for activating changes to update Browser application - from the Browser application |
|
154 #define BRDO_BROWSER_UPDATE_UI_FF FeatureManager::FeatureSupported( KFeatureIdIAUpdate ) |
|
155 #else |
|
156 #define BRDO_BROWSER_UPDATE_UI_FF 0 |
|
157 #endif // KFeatureIdIAUpdate |
|
158 |
|
159 |
207 |
160 #define APP_LAYER_LIBC_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(libc) |
208 #define APP_LAYER_LIBC_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(libc) |
161 #define APP_LAYER_ECOM_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(ecom) |
209 #define APP_LAYER_ECOM_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(ecom) |
162 #define APP_LAYER_HTTP_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(http) |
210 #define APP_LAYER_HTTP_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(http) |
163 #define APP_LAYER_CONNECT_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(connect) |
211 #define APP_LAYER_CONNECT_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(connect) |
173 #define MW_LAYER_SWI_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(swi) |
221 #define MW_LAYER_SWI_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(swi) |
174 #define MW_LAYER_OSKERNEL_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(kernel) |
222 #define MW_LAYER_OSKERNEL_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(kernel) |
175 #define MW_LAYER_PUSH_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(push) |
223 #define MW_LAYER_PUSH_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(push) |
176 #define MW_LAYER_STDAPIS_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(stdapis) |
224 #define MW_LAYER_STDAPIS_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(stdapis) |
177 |
225 |
|
226 |
|
227 /* |
|
228 * =================== |
|
229 * S60 5.2 |
|
230 * =================== |
|
231 */ |
|
232 #elif defined(__PLATFORM_VERSION_52__) |
|
233 |
|
234 #define BRDO_BROWSER_50_FF |
|
235 #define BRDO_BROWSER_51_FF |
|
236 #define BRDO_BROWSER_52_FF |
|
237 |
|
238 // BrDo MultipartParser not used from S60 5.2 onward |
|
239 //#undef BRDO_MULTIPART_PARSER_FF - TODO: un-comment this line for week21 release |
|
240 |
|
241 #define APP_LAYER_LIBC_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(libc) |
|
242 #define APP_LAYER_ECOM_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(ecom) |
|
243 #define APP_LAYER_HTTP_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(http) |
|
244 #define APP_LAYER_CONNECT_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(connect) |
|
245 #define APP_LAYER_SWI_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(swi) |
|
246 #define APP_LAYER_OSKERNEL_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(kernel) |
|
247 #define APP_LAYER_PUSH_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(push) |
|
248 #define APP_LAYER_STDAPIS_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(stdapis) |
|
249 |
|
250 #define MW_LAYER_LIBC_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(libc) |
|
251 #define MW_LAYER_ECOM_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(ecom) |
|
252 #define MW_LAYER_HTTP_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(http) |
|
253 #define MW_LAYER_CONNECT_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(connect) |
|
254 #define MW_LAYER_SWI_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(swi) |
|
255 #define MW_LAYER_OSKERNEL_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(kernel) |
|
256 #define MW_LAYER_PUSH_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(push) |
|
257 #define MW_LAYER_STDAPIS_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(stdapis) |
|
258 |
|
259 |
|
260 #endif // PLATFORM VERSION ID's |
|
261 |
|
262 |
|
263 |
|
264 // Generic run-time definitions -- see WmlBrowserBuild.h for similar feature related definitions |
|
265 |
|
266 // Browser Update - Independent Application Delivery |
|
267 #if defined( KFeatureIdIAUpdate ) |
|
268 // Defines flag for activating changes to update Browser application - from the Browser application |
|
269 #define BRDO_BROWSER_UPDATE_UI_FF FeatureManager::FeatureSupported( KFeatureIdIAUpdate ) |
|
270 #else |
|
271 #define BRDO_BROWSER_UPDATE_UI_FF 0 |
|
272 #endif // KFeatureIdIAUpdate |
|
273 |
|
274 |
178 #endif // BROWSER_PLATFORM_VARIANT_HRH |
275 #endif // BROWSER_PLATFORM_VARIANT_HRH |