summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas_module.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-12-13 00:55:53 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-12-13 00:55:53 +0000
commit5898909947400a82a9e96ad9ac509f00be77d2a7 (patch)
tree38d1cd08fd4dcddf6285fe839a9a14fd12b6d1c3 /src/lib/ecore_evas/ecore_evas_module.c
parent42f3769bca6d728a5d7aee792b0a29bf82c1c183 (diff)
ecore-evas moduels broke listing of modules... names all changed!
fix... the long ugly way! :( SVN revision: 80788
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas_module.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas_module.c83
1 files changed, 81 insertions, 2 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_module.c b/src/lib/ecore_evas/ecore_evas_module.c
index c4e960910c..3abbbf3209 100644
--- a/src/lib/ecore_evas/ecore_evas_module.c
+++ b/src/lib/ecore_evas/ecore_evas_module.c
@@ -132,8 +132,87 @@ _ecore_evas_available_engines_get(void)
132 info->path, MODULE_ARCH); 132 info->path, MODULE_ARCH);
133 133
134 if (_file_exists(tmp)) 134 if (_file_exists(tmp))
135 result = eina_list_append(result, 135 {
136 eina_stringshare_add(info->path + info->name_start)); 136 const char *name;
137
138 name = strrchr(info->path, '/');
139 if (name) name++;
140 else name = info->path;
141#define ADDENG(x) result = eina_list_append(result, eina_stringshare_add(x))
142 if (!strcmp(name, "fb"))
143 {
144#ifdef BUILD_ECORE_EVAS_FB
145 ADDENG("fb");
146#endif
147 }
148 else if (!strcmp(name, "x"))
149 {
150#ifdef BUILD_ECORE_EVAS_OPENGL_X11
151 ADDENG("opengl_x11");
152#endif
153#ifdef BUILD_ECORE_EVAS_SOFTWARE_XLIB
154 ADDENG("software_x11");
155#else
156# ifdef BUILD_ECORE_EVAS_SOFTWARE_XCB
157 ADDENG("software_x11");
158# endif
159#endif
160 }
161 else if (!strcmp(name, "buffer"))
162 {
163#ifdef BUILD_ECORE_EVAS_BUFFER
164 ADDENG("buffer");
165#endif
166#ifdef BUILD_ECORE_EVAS_EWS
167 ADDENG("ews");
168#endif
169 }
170 else if (!strcmp(name, "cocoa"))
171 {
172#ifdef BUILD_ECORE_EVAS_OPENGL_COCOA
173 ADDENG("opengl_cocoa");
174#endif
175 }
176 else if (!strcmp(name, "psl1ght"))
177 {
178#ifdef BUILD_ECORE_EVAS_PSL1GHT
179 ADDENG("psl1ght");
180#endif
181 }
182 else if (!strcmp(name, "sdl"))
183 {
184#ifdef BUILD_ECORE_EVAS_OPENGL_SDL
185 ADDENG("opengl_sdl");
186#endif
187#ifdef BUILD_ECORE_EVAS_SOFTWARE_SDL
188 ADDENG("sdl");
189#endif
190 }
191 else if (!strcmp(name, "wayland"))
192 {
193#ifdef BUILD_ECORE_EVAS_WAYLAND_SHM
194 ADDENG("wayland_shm");
195#endif
196#ifdef BUILD_ECORE_EVAS_WAYLAND_EGL
197 ADDENG("wayland_egl");
198#endif
199 }
200 else if (!strcmp(name, "win32"))
201 {
202#ifdef BUILD_ECORE_EVAS_SOFTWARE_GDI
203 ADDENG("software_gdi");
204#endif
205#ifdef BUILD_ECORE_EVAS_SOFTWARE_DDRAW
206 ADDENG("software_ddraw");
207#endif
208#ifdef BUILD_ECORE_EVAS_DIRECT3D
209 ADDENG("direct3d");
210#endif
211#ifdef BUILD_ECORE_EVAS_OPENGL_GLEW
212 ADDENG("opengl_glew");
213#endif
214 }
215 }
137 } 216 }
138 eina_iterator_free(it); 217 eina_iterator_free(it);
139 } 218 }