|
1 #ifndef __GRAPHICS_ADAPTATION_HBY__ |
|
2 #define __GRAPHICS_ADAPTATION_HBY__ |
|
3 |
|
4 REM Graphics Adaptation Selection |
|
5 |
|
6 // Supported Graphics Adaptations |
|
7 #define SGA_CLASSIC 0x1000 // Pre-NGA |
|
8 #define SGA_SW 0x1001 // NGA Pure software |
|
9 #define SGA_MBX 0x1002 // NGA Fully MBX-accelerated |
|
10 #define SGA_SW_NO_GRAPHICSRESOURCE 0x1003 // Software NGA without Graphics Resource and DirectGDI |
|
11 |
|
12 // Apply defaults |
|
13 #ifndef SYMBIAN_GRAPHICS_ADAPTATION |
|
14 # ifndef SYMBIAN_GRAPHICS_USE_GCE |
|
15 # define SYMBIAN_GRAPHICS_ADAPTATION SGA_CLASSIC |
|
16 # else |
|
17 # define SYMBIAN_GRAPHICS_ADAPTATION SGA_SW |
|
18 # endif |
|
19 #endif |
|
20 |
|
21 // Validate user choices |
|
22 #if !defined(SYMBIAN_GRAPHICS_USE_GCE) && SYMBIAN_GRAPHICS_ADAPTATION != SGA_CLASSIC |
|
23 # error Invalid adaptation choice. Pre-NGA must use SGA_CLASSIC. |
|
24 #endif |
|
25 #if defined(SYMBIAN_GRAPHICS_USE_GCE) && SYMBIAN_GRAPHICS_ADAPTATION == SGA_CLASSIC |
|
26 # error Invalid adaptation choice. NGA must not use SGA_CLASSIC. |
|
27 #endif |
|
28 #if defined(SYMBIAN_GRAPHICS_DIRECTGDI_USE_OPENVG) && SYMBIAN_GRAPHICS_ADAPTATION == SGA_CLASSIC |
|
29 # error Invalid adaptation choice. Pre-NGA must not use DirectGDI. |
|
30 #endif |
|
31 #if defined(SYMBIAN_GRAPHICS_USE_OPENWF_MIGRATION) && SYMBIAN_GRAPHICS_ADAPTATION != SGA_SW && SYMBIAN_GRAPHICS_ADAPTATION != SGA_SW_NO_GRAPHICSRESOURCE |
|
32 # error Invalid adaptation choice. NGA-OPENWF (GCE migration) must only use basic NGA configuration SGA_SW. |
|
33 #endif |
|
34 |
|
35 |
|
36 // Apply over-rides here so that no redefining warnings are given |
|
37 #if defined(SYMBIAN_GRAPHICS_DIRECTGDI_USE_OPENVG) |
|
38 # define DIRECTGDI_DRV <directgdiadapter_vg.iby> |
|
39 #endif |
|
40 |
|
41 #if defined(MBXBACKEND) |
|
42 WARNING MBXBACKEND is deprecated. |
|
43 # define GCE_DRV <compositionbackend_mbx.iby> |
|
44 #endif |
|
45 |
|
46 #if defined(SGXBACKEND) |
|
47 WARNING SGXBACKEND is deprecated. |
|
48 # define GRAPHICSRESOURCE_DRV <graphicsresourceadapter_sgx.iby> |
|
49 # define SGRESOURCE_DRV <sgresource_sgx.iby> |
|
50 #endif |
|
51 |
|
52 // Select default drivers |
|
53 #if SYMBIAN_GRAPHICS_ADAPTATION == SGA_CLASSIC |
|
54 #ifndef OPENGLES_DRV |
|
55 # define OPENGLES_DRV <opengles_sw.iby> |
|
56 #endif |
|
57 |
|
58 #ifndef OPENVG_DRV |
|
59 # define OPENVG_DRV <openvg_sw.iby> |
|
60 #endif |
|
61 |
|
62 #ifndef EGL_DRV |
|
63 # define EGL_DRV <egl_hg_nongce.iby> |
|
64 #endif |
|
65 |
|
66 #ifndef FBSRASTERIZER_DRV |
|
67 # define FBSRASTERIZER_DRV <fbsrasterizer_stub.iby> |
|
68 #endif |
|
69 |
|
70 #if defined(GRAPHICS_TEST_GCE) |
|
71 // In order to run tests on the GCE a non-NGA environment is required |
|
72 #ifndef GCE_DRV |
|
73 # define GCE_DRV <compositionbackend_arm.iby> |
|
74 #endif |
|
75 |
|
76 #ifndef SURFACEMANAGER_DRV |
|
77 # define SURFACEMANAGER_DRV <surfacemanager_ref.iby> |
|
78 #endif |
|
79 |
|
80 #ifndef SURFACEUPDATE_DRV |
|
81 # define SURFACEUPDATE_DRV <surfaceupdate_ref.iby> |
|
82 #endif |
|
83 #endif |
|
84 #elif SYMBIAN_GRAPHICS_ADAPTATION == SGA_SW |
|
85 #ifndef OPENGLES_DRV |
|
86 # define OPENGLES_DRV <opengles_sw.iby> |
|
87 #endif |
|
88 |
|
89 #ifndef OPENVG_DRV |
|
90 # define OPENVG_DRV <openvg_sw.iby> |
|
91 #endif |
|
92 |
|
93 #ifndef EGL_DRV |
|
94 # ifdef SYMBIAN_GRAPHICS_USE_EGL_REF |
|
95 # define EGL_DRV <egl_ref.iby> |
|
96 # else |
|
97 # define EGL_DRV <egl_hg_gce.iby> |
|
98 # endif |
|
99 #endif |
|
100 |
|
101 #ifndef GCE_DRV |
|
102 # define GCE_DRV <compositionbackend_arm.iby> |
|
103 #endif |
|
104 |
|
105 #ifndef SURFACEMANAGER_DRV |
|
106 # define SURFACEMANAGER_DRV <surfacemanager_ref.iby> |
|
107 #endif |
|
108 |
|
109 #ifndef SURFACEUPDATE_DRV |
|
110 # define SURFACEUPDATE_DRV <surfaceupdate_ref.iby> |
|
111 #endif |
|
112 |
|
113 #define INCLUDE_GRAPHICSRESOURCEADAPTER |
|
114 |
|
115 #ifndef GRAPHICSRESOURCE_DRV |
|
116 # define GRAPHICSRESOURCE_DRV <graphicsresourceadapter_sw.iby> |
|
117 #endif |
|
118 |
|
119 #ifndef SGRESOURCE_DRV |
|
120 # define SGRESOURCE_DRV <sgresource_sw.iby> |
|
121 #endif |
|
122 |
|
123 #ifndef DIRECTGDI_DRV |
|
124 # define DIRECTGDI_DRV <directgdiadapter_sw.iby> |
|
125 #endif |
|
126 |
|
127 #ifndef FBSRASTERIZER_DRV |
|
128 # define FBSRASTERIZER_DRV <fbsrasterizer_stub.iby> |
|
129 #endif |
|
130 |
|
131 #ifdef SYMBIAN_GRAPHICS_USE_OPENWF_MIGRATION |
|
132 # ifndef OPENWFCLIB_DRV |
|
133 # define OPENWFCLIB_DRV <openwfc_ref.iby> |
|
134 # endif |
|
135 #endif |
|
136 |
|
137 #elif SYMBIAN_GRAPHICS_ADAPTATION == SGA_MBX |
|
138 // Imagination's MBX drivers used as default |
|
139 #ifndef OPENGLES_DRV |
|
140 # define OPENGLES_DRV <img_opengles.iby> |
|
141 #endif |
|
142 |
|
143 #ifndef OPENVG_DRV |
|
144 # define OPENVG_DRV <img_openvg.iby> |
|
145 #endif |
|
146 |
|
147 #ifndef EGL_DRV |
|
148 # define EGL_DRV <img_egl.iby> |
|
149 #endif |
|
150 |
|
151 #ifndef GCE_DRV |
|
152 # define GCE_DRV <compositionbackend_mbx.iby> |
|
153 #endif |
|
154 |
|
155 #ifndef SURFACEMANAGER_DRV |
|
156 # define SURFACEMANAGER_DRV <surfacemanager_ref.iby> |
|
157 #endif |
|
158 |
|
159 #ifndef SURFACEUPDATE_DRV |
|
160 # define SURFACEUPDATE_DRV <surfaceupdate_ref.iby> |
|
161 #endif |
|
162 |
|
163 #define INCLUDE_GRAPHICSRESOURCEADAPTER |
|
164 |
|
165 #ifndef GRAPHICSRESOURCE_DRV |
|
166 # define GRAPHICSRESOURCE_DRV <graphicsresourceadapter_mbx.iby> |
|
167 #endif |
|
168 |
|
169 #ifndef SGRESOURCE_DRV |
|
170 # define SGRESOURCE_DRV <sgresource_mbx.iby> |
|
171 #endif |
|
172 |
|
173 #ifndef DIRECTGDI_DRV |
|
174 # define DIRECTGDI_DRV <directgdiadapter_vg.iby> |
|
175 #endif |
|
176 |
|
177 #ifndef FBSRASTERIZER_DRV |
|
178 # define FBSRASTERIZER_DRV <fbsrasterizer_stub.iby> |
|
179 #endif |
|
180 |
|
181 #elif SYMBIAN_GRAPHICS_ADAPTATION == SGA_SW_NO_GRAPHICSRESOURCE |
|
182 #ifndef OPENGLES_DRV |
|
183 # define OPENGLES_DRV <opengles_sw.iby> |
|
184 #endif |
|
185 |
|
186 #ifndef OPENVG_DRV |
|
187 # define OPENVG_DRV <openvg_sw.iby> |
|
188 #endif |
|
189 |
|
190 #ifndef EGL_DRV |
|
191 # ifdef SYMBIAN_GRAPHICS_USE_EGL_REF |
|
192 # define EGL_DRV <egl_ref.iby> |
|
193 # else |
|
194 # define EGL_DRV <egl_hg_gce.iby> |
|
195 # endif |
|
196 #endif |
|
197 |
|
198 #ifndef GCE_DRV |
|
199 # define GCE_DRV <compositionbackend_arm.iby> |
|
200 #endif |
|
201 |
|
202 #ifndef SURFACEMANAGER_DRV |
|
203 # define SURFACEMANAGER_DRV <surfacemanager_ref.iby> |
|
204 #endif |
|
205 |
|
206 #ifndef SURFACEUPDATE_DRV |
|
207 # define SURFACEUPDATE_DRV <surfaceupdate_ref.iby> |
|
208 #endif |
|
209 |
|
210 #ifndef FBSRASTERIZER_DRV |
|
211 # define FBSRASTERIZER_DRV <fbsrasterizer_stub.iby> |
|
212 #endif |
|
213 |
|
214 #ifndef SGRESOURCE_DRV |
|
215 # define SGRESOURCE_DRV <sgresource_sw.iby> |
|
216 #endif |
|
217 |
|
218 #ifdef SYMBIAN_GRAPHICS_USE_OPENWF_MIGRATION |
|
219 # ifndef OPENWFCLIB_DRV |
|
220 # define OPENWFCLIB_DRV <openwfc_ref.iby> |
|
221 # endif |
|
222 #endif |
|
223 |
|
224 #else |
|
225 # error "Unsupported Graphics adaptation selected" |
|
226 #endif |
|
227 |
|
228 |
|
229 // Log selections to the generated OBY file |
|
230 REM "OPENGLES DRV" : OPENGLES_DRV |
|
231 REM "OPENVG DRV" : OPENVG_DRV |
|
232 REM "EGL DRV" : EGL_DRV |
|
233 REM "GCE DRV" : GCE_DRV |
|
234 REM "GRAPHICSRESOURCE DRV" : GRAPHICSRESOURCE_DRV |
|
235 REM "SURFACEMANAGER DRV" : SURFACEMANAGER_DRV |
|
236 REM "SURFACEUPDATE DRV" : SURFACEUPDATE_DRV |
|
237 REM "DIRECTGDI DRV" : DIRECTGDI_DRV |
|
238 REM "FBSRASTERIZER DRV" : FBSRASTERIZER_DRV |
|
239 REM "SRGREOURCE DRV" : SGRESOURCE_DRV |
|
240 |
|
241 #endif // __GRAPHICS_ADAPTATION_HBY__ |