aboutsummaryrefslogtreecommitdiffstats
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
parentAdd eo's datadir to efl and make edje's build depend on ephysics (so one gets... (diff)
downloadefl-5898909947400a82a9e96ad9ac509f00be77d2a7.tar.gz
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)
info->path, MODULE_ARCH);
if (_file_exists(tmp))
- result = eina_list_append(result,
- eina_stringshare_add(info->path + info->name_start));
+ {
+ const char *name;
+
+ name = strrchr(info->path, '/');
+ if (name) name++;
+ else name = info->path;
+#define ADDENG(x) result = eina_list_append(result, eina_stringshare_add(x))
+ if (!strcmp(name, "fb"))
+ {
+#ifdef BUILD_ECORE_EVAS_FB
+ ADDENG("fb");
+#endif
+ }
+ else if (!strcmp(name, "x"))
+ {
+#ifdef BUILD_ECORE_EVAS_OPENGL_X11
+ ADDENG("opengl_x11");
+#endif
+#ifdef BUILD_ECORE_EVAS_SOFTWARE_XLIB
+ ADDENG("software_x11");
+#else
+# ifdef BUILD_ECORE_EVAS_SOFTWARE_XCB
+ ADDENG("software_x11");
+# endif
+#endif
+ }
+ else if (!strcmp(name, "buffer"))
+ {
+#ifdef BUILD_ECORE_EVAS_BUFFER
+ ADDENG("buffer");
+#endif
+#ifdef BUILD_ECORE_EVAS_EWS
+ ADDENG("ews");
+#endif
+ }
+ else if (!strcmp(name, "cocoa"))
+ {
+#ifdef BUILD_ECORE_EVAS_OPENGL_COCOA
+ ADDENG("opengl_cocoa");
+#endif
+ }
+ else if (!strcmp(name, "psl1ght"))
+ {
+#ifdef BUILD_ECORE_EVAS_PSL1GHT
+ ADDENG("psl1ght");
+#endif
+ }
+ else if (!strcmp(name, "sdl"))
+ {
+#ifdef BUILD_ECORE_EVAS_OPENGL_SDL
+ ADDENG("opengl_sdl");
+#endif
+#ifdef BUILD_ECORE_EVAS_SOFTWARE_SDL
+ ADDENG("sdl");
+#endif
+ }
+ else if (!strcmp(name, "wayland"))
+ {
+#ifdef BUILD_ECORE_EVAS_WAYLAND_SHM
+ ADDENG("wayland_shm");
+#endif
+#ifdef BUILD_ECORE_EVAS_WAYLAND_EGL
+ ADDENG("wayland_egl");
+#endif
+ }
+ else if (!strcmp(name, "win32"))
+ {
+#ifdef BUILD_ECORE_EVAS_SOFTWARE_GDI
+ ADDENG("software_gdi");
+#endif
+#ifdef BUILD_ECORE_EVAS_SOFTWARE_DDRAW
+ ADDENG("software_ddraw");
+#endif
+#ifdef BUILD_ECORE_EVAS_DIRECT3D
+ ADDENG("direct3d");
+#endif
+#ifdef BUILD_ECORE_EVAS_OPENGL_GLEW
+ ADDENG("opengl_glew");
+#endif
+ }
+ }
}
eina_iterator_free(it);
}