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 |
|
30 /* |
29 /* |
31 * Establish which platform we are building on. |
30 * Establish which platform we are building on. |
32 * If required, un-comment correct platform macro as |
31 * If required, un-comment correct platform macro as |
33 * described below |
32 * described below |
34 * |
33 * |
35 */ |
34 */ |
36 |
35 /* |
|
36 * =================== |
|
37 * S60 3.23 Gadget, etc.. |
|
38 * =================== |
|
39 */ |
37 #if defined(__S60_32__) |
40 #if defined(__S60_32__) |
38 // |
41 // |
39 // this is the only supported platform that comes with unambiguous platform version flag |
42 // this is the only supported platform that comes with unambiguous platform version flag |
40 #define __PLATFORM_VERSION_32__ |
43 #define __PLATFORM_VERSION_32__ |
41 // |
44 |
42 #else |
45 /* |
|
46 * =================== |
|
47 * S60 5.0 Tube, Alvin, Ivalo, Saga, etc. |
|
48 * 5.0/5250 platforms |
|
49 * =================== |
|
50 */ |
|
51 #elif defined(__S60_50__) |
43 // manually edit the following lines to enable definition for |
52 // manually edit the following lines to enable definition for |
44 // whichever platform is in use |
53 // whichever platform is in use |
|
54 // un-comment following line for 5.0/5250 platforms running on products similar on Tube and Alvin |
|
55 // #define __PLATFORM_VERSION_50_TUBE__ |
|
56 |
|
57 // un-comment following line for 5.0/5250 platforms for Ivalo and Saga |
|
58 // #define __PLATFORM_VERSION_50__ |
|
59 |
|
60 /* |
|
61 * =================== |
|
62 * S60 5.1 Corolla, etc. |
|
63 * =================== |
|
64 */ |
|
65 // #elif defined(__S60_51__) |
|
66 // un-comment following line for 5.1/TB9.1 platforms |
|
67 //#define __PLATFORM_VERSION_51__ |
|
68 |
|
69 /* |
|
70 * =================== |
|
71 * S60 5.2 Vasco, etc. |
|
72 * =================== |
|
73 */ |
|
74 // #elif defined(__S60_52__) |
|
75 |
|
76 // un-comment following line for 5.2/TB9.2 platforms |
|
77 #define __PLATFORM_VERSION_52__ |
45 // |
78 // |
46 // un-comment following line for 5.0/5250 platforms |
79 #endif |
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 |
80 |
58 /* |
81 /* |
59 * |
82 * |
60 * Define Browser Version |
83 * Define Browser Version |
61 * |
84 * |
118 #define BRDO_MULTIPART_PARSER_FF |
140 #define BRDO_MULTIPART_PARSER_FF |
119 |
141 |
120 // Additional export location - to adapt to new header export location |
142 // Additional export location - to adapt to new header export location |
121 #undef BRDO_ADDED_EXPORT_LOCATION |
143 #undef BRDO_ADDED_EXPORT_LOCATION |
122 |
144 |
|
145 // Platform contains new Symbian Libxml implementation |
|
146 #undef BRDO_SYMBIAN_LIBXML_FF |
|
147 |
|
148 // Enable/Disable compilation of some of Search Integration specific code |
|
149 #define BRDO_SEARCH_INTEGRATION_FF |
123 |
150 |
124 /* |
151 /* |
125 * =================== |
152 * =================== |
126 * S60 3.23 |
153 * S60 3.23 |
127 * =================== |
154 * =================== |
128 */ |
155 */ |
129 #if defined(__PLATFORM_VERSION_32__) |
156 #if defined(__PLATFORM_VERSION_32__) |
130 |
|
131 // Defines Language InterWork and SAPI availability |
|
132 #undef BRDO_LIW_FF |
|
133 |
|
134 // Defines if SecurityManager component is present |
|
135 #undef BRDO_WRT_SECURITY_MGR_FF |
|
136 |
157 |
137 // Defines touch screen capability |
158 // Defines touch screen capability |
138 #undef BRDO_TOUCH_ENABLED_FF |
159 #undef BRDO_TOUCH_ENABLED_FF |
139 |
160 |
140 // Defines Avkon extended toolbar support |
161 // Defines Avkon extended toolbar support |
141 #undef BRDO_AVKON_EXT_TB_FF |
162 #undef BRDO_AVKON_EXT_TB_FF |
142 |
163 |
143 // Defines Direct File IO support in RFile ( EFileWriteDirectIO ) |
164 // Defines Direct File IO support in RFile ( EFileWriteDirectIO ) |
144 #undef BRDO_RFILE_WRITE_DIRECT_IO_FF |
165 #undef BRDO_RFILE_WRITE_DIRECT_IO_FF |
|
166 |
|
167 // Defines use of GestureHelper library |
145 #undef BRDO_USE_GESTURE_HELPER |
168 #undef BRDO_USE_GESTURE_HELPER |
146 |
169 |
|
170 // Defines WRT widgets feature to publish on homescreen |
147 #undef BRDO_WRT_HS_FF |
171 #undef BRDO_WRT_HS_FF |
148 |
172 |
149 // Gallery App is present |
173 // Gallery App is present |
150 #define BRDO_APP_GALLERY_SUPPORTED_FF |
174 #define BRDO_APP_GALLERY_SUPPORTED_FF |
151 |
175 |
|
176 // Disable compilation of some of Search Integration specific code |
|
177 #undef BRDO_SEARCH_INTEGRATION_FF |
|
178 |
152 // Missing from 3.23 platform_paths.hrh |
179 // Missing from 3.23 platform_paths.hrh |
153 |
180 |
154 // Location, where the middleware layer localization .loc file should be exported |
181 // Location, where the middleware layer localization .loc file should be exported |
|
182 #if __GNUC__ >= 3 |
|
183 #define MW_LAYER_LOC_EXPORT_PATH(exported) MW_LAYER_PUBLIC_EXPORT_PATH(exported) |
|
184 #else |
155 #define MW_LAYER_LOC_EXPORT_PATH(exported) MW_LAYER_PUBLIC_EXPORT_PATH(##exported) |
185 #define MW_LAYER_LOC_EXPORT_PATH(exported) MW_LAYER_PUBLIC_EXPORT_PATH(##exported) |
|
186 #endif |
156 |
187 |
157 // Location, where the middleware layer localization .loc file should be exported |
188 // Location, where the middleware layer localization .loc file should be exported |
|
189 #if __GNUC__ >= 3 |
|
190 #define APP_LAYER_LOC_EXPORT_PATH(exported) APP_LAYER_PUBLIC_EXPORT_PATH(exported) |
|
191 #else |
158 #define APP_LAYER_LOC_EXPORT_PATH(exported) APP_LAYER_PUBLIC_EXPORT_PATH(##exported) |
192 #define APP_LAYER_LOC_EXPORT_PATH(exported) APP_LAYER_PUBLIC_EXPORT_PATH(##exported) |
159 |
193 #endif |
160 |
194 |
161 /* |
195 #if __GNUC__ >= 3 |
162 * =================== |
196 #define BRDO_ADDED_EXPORT_LOCATION(exported) MW_LAYER_DOMAIN_EXPORT_PATH(../platform/mw/exported) |
163 * S60 5.0 |
197 #else |
164 * =================== |
198 #define BRDO_ADDED_EXPORT_LOCATION(exported) MW_LAYER_DOMAIN_EXPORT_PATH(../platform/mw/##exported) |
165 */ |
199 #endif |
166 #elif defined(__PLATFORM_VERSION_50__) |
200 |
|
201 #define APP_LAYER_LIBC_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(libc) |
|
202 #define APP_LAYER_ECOM_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(ecom) |
|
203 #define APP_LAYER_HTTP_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(http) |
|
204 #define APP_LAYER_CONNECT_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(connect) |
|
205 #define APP_LAYER_SWI_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(swi) |
|
206 #define APP_LAYER_OSKERNEL_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(kernel) |
|
207 #define APP_LAYER_PUSH_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(push) |
|
208 #define APP_LAYER_STDAPIS_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(stdapis) |
|
209 |
|
210 #define MW_LAYER_LIBC_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(libc) |
|
211 #define MW_LAYER_ECOM_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(ecom) |
|
212 #define MW_LAYER_HTTP_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(http) |
|
213 #define MW_LAYER_CONNECT_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(connect) |
|
214 #define MW_LAYER_SWI_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(swi) |
|
215 #define MW_LAYER_OSKERNEL_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(kernel) |
|
216 #define MW_LAYER_PUSH_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(push) |
|
217 #define MW_LAYER_STDAPIS_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(stdapis) |
|
218 |
|
219 /* |
|
220 * =================== |
|
221 * S60 5.0 PF5250 / Tube / Alvin |
|
222 * =================== |
|
223 */ |
|
224 #elif defined(__PLATFORM_VERSION_50_TUBE__) |
167 |
225 |
168 // Defines must accumulate versions. ie for 5.01 you must define BRDO_BROWSER_50_FF and BRDO_BROWSER_501_FF(To be reviewed) |
226 // Defines must accumulate versions. ie for 5.01 you must define BRDO_BROWSER_50_FF and BRDO_BROWSER_501_FF(To be reviewed) |
169 // The assumption is that anything that worked in 3.2 will work in 5.0 and 5.01. For anything doesn't work |
227 // The assumption is that anything that worked in 3.2 will work in 5.0 and 5.01. For anything doesn't work |
170 // in 3.2 but works in 5.0 and above, that code should be behind the BRDO_BROWSER_50_FF flag. |
228 // in 3.2 but works in 5.0 and above, that code should be behind the BRDO_BROWSER_50_FF flag. |
171 #define BRDO_BROWSER_50_FF |
229 #define BRDO_BROWSER_50_FF |
|
230 |
|
231 // Defines WRT widgets feature to publish on homescreen |
|
232 #undef BRDO_WRT_HS_FF |
|
233 |
|
234 // Disable compilation of some of Search Integration specific code |
|
235 #undef BRDO_SEARCH_INTEGRATION_FF |
172 |
236 |
173 #if __GNUC__ >= 3 |
237 #if __GNUC__ >= 3 |
174 #define BRDO_ADDED_EXPORT_LOCATION(exported) MW_LAYER_DOMAIN_EXPORT_PATH(../../platform/mw/exported) |
238 #define BRDO_ADDED_EXPORT_LOCATION(exported) MW_LAYER_DOMAIN_EXPORT_PATH(../../platform/mw/exported) |
175 #else |
239 #else |
176 #define BRDO_ADDED_EXPORT_LOCATION(exported) MW_LAYER_DOMAIN_EXPORT_PATH(../../platform/mw/##exported) |
240 #define BRDO_ADDED_EXPORT_LOCATION(exported) MW_LAYER_DOMAIN_EXPORT_PATH(../../platform/mw/##exported) |
192 #define MW_LAYER_SWI_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../swi) |
256 #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) |
257 #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) |
258 #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) |
259 #define MW_LAYER_STDAPIS_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../stdapis) |
196 |
260 |
|
261 /* |
|
262 * =================== |
|
263 * S60 5.0 PF5250+ / Ivalo / Saga |
|
264 * =================== |
|
265 */ |
|
266 #elif defined(__PLATFORM_VERSION_50__) |
|
267 |
|
268 // Defines must accumulate versions. ie for 5.01 you must define BRDO_BROWSER_50_FF and BRDO_BROWSER_501_FF(To be reviewed) |
|
269 // The assumption is that anything that worked in 3.2 will work in 5.0 and 5.01. For anything doesn't work |
|
270 // in 3.2 but works in 5.0 and above, that code should be behind the BRDO_BROWSER_50_FF flag. |
|
271 #define BRDO_BROWSER_50_FF |
|
272 |
|
273 #if __GNUC__ >= 3 |
|
274 #define BRDO_ADDED_EXPORT_LOCATION(exported) MW_LAYER_DOMAIN_EXPORT_PATH(../../platform/mw/exported) |
|
275 #else |
|
276 #define BRDO_ADDED_EXPORT_LOCATION(exported) MW_LAYER_DOMAIN_EXPORT_PATH(../../platform/mw/##exported) |
|
277 #endif |
|
278 |
|
279 #define APP_LAYER_LIBC_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../libc) |
|
280 #define APP_LAYER_ECOM_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../ecom) |
|
281 #define APP_LAYER_HTTP_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../http) |
|
282 #define APP_LAYER_CONNECT_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../connect) |
|
283 #define APP_LAYER_SWI_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../swi) |
|
284 #define APP_LAYER_OSKERNEL_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../kernel) |
|
285 #define APP_LAYER_PUSH_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../push) |
|
286 #define APP_LAYER_STDAPIS_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../stdapis) |
|
287 |
|
288 #define MW_LAYER_LIBC_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../libc) |
|
289 #define MW_LAYER_ECOM_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../ecom) |
|
290 #define MW_LAYER_HTTP_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../http) |
|
291 #define MW_LAYER_CONNECT_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../connect) |
|
292 #define MW_LAYER_SWI_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../swi) |
|
293 #define MW_LAYER_OSKERNEL_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../kernel) |
|
294 #define MW_LAYER_PUSH_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../push) |
|
295 #define MW_LAYER_STDAPIS_SYSTEMINCLUDE SYSTEMINCLUDE OS_LAYER_PUBLIC_EXPORT_PATH(../stdapis) |
197 |
296 |
198 /* |
297 /* |
199 * =================== |
298 * =================== |
200 * S60 5.1 |
299 * S60 5.1 |
201 * =================== |
300 * =================== |