diff options
-rw-r--r-- | m4/evas_check_engine.m4 | 1 | ||||
-rw-r--r-- | src/Makefile_Evas.am | 14 | ||||
-rw-r--r-- | src/modules/evas/engines/wayland_egl/evas_engine.c | 3 |
3 files changed, 7 insertions, 11 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4 index dd7030e5cf..6c8ed81d8c 100644 --- a/m4/evas_check_engine.m4 +++ b/m4/evas_check_engine.m4 | |||
@@ -575,6 +575,7 @@ if test "x${have_dep}" = "xyes" ; then | |||
575 | PKG_CHECK_MODULES([WAYLAND_EGL], [${requirement}]) | 575 | PKG_CHECK_MODULES([WAYLAND_EGL], [${requirement}]) |
576 | evas_engine_[]$1[]_cflags="${WAYLAND_EGL_CFLAGS}" | 576 | evas_engine_[]$1[]_cflags="${WAYLAND_EGL_CFLAGS}" |
577 | evas_engine_[]$1[]_libs="${WAYLAND_EGL_LIBS}" | 577 | evas_engine_[]$1[]_libs="${WAYLAND_EGL_LIBS}" |
578 | evas_engine_gl_common_libs="$evas_engine_[]$1[]_libdirs -lGLESv2 -lm -lEGL" | ||
578 | fi | 579 | fi |
579 | fi | 580 | fi |
580 | 581 | ||
diff --git a/src/Makefile_Evas.am b/src/Makefile_Evas.am index 78d9be722d..ceb5f6c9d2 100644 --- a/src/Makefile_Evas.am +++ b/src/Makefile_Evas.am | |||
@@ -883,6 +883,9 @@ modules_evas_engines_gl_generic_module_la_LIBTOOLFLAGS = --tag=disable-static | |||
883 | if BUILD_ENGINE_GL_X11 | 883 | if BUILD_ENGINE_GL_X11 |
884 | modules_evas_engines_gl_common_libevas_engine_gl_common_la_CPPFLAGS += @evas_engine_gl_xlib_cflags@ @evas_engine_gl_xcb_cflags@ | 884 | modules_evas_engines_gl_common_libevas_engine_gl_common_la_CPPFLAGS += @evas_engine_gl_xlib_cflags@ @evas_engine_gl_xcb_cflags@ |
885 | endif | 885 | endif |
886 | if BUILD_ENGINE_WAYLAND_EGL | ||
887 | modules_evas_engines_gl_common_libevas_engine_gl_common_la_CPPFLAGS += @evas_engine_wayland_egl_cflags@ | ||
888 | endif | ||
886 | modules_evas_engines_gl_common_libevas_engine_gl_common_la_LIBADD = @USE_EVAS_LIBS@ | 889 | modules_evas_engines_gl_common_libevas_engine_gl_common_la_LIBADD = @USE_EVAS_LIBS@ |
887 | modules_evas_engines_gl_common_libevas_engine_gl_common_la_DEPENDENCIES = @USE_EVAS_INTERNAL_LIBS@ | 890 | modules_evas_engines_gl_common_libevas_engine_gl_common_la_DEPENDENCIES = @USE_EVAS_INTERNAL_LIBS@ |
888 | modules_evas_engines_gl_common_libevas_engine_gl_common_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ | 891 | modules_evas_engines_gl_common_libevas_engine_gl_common_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ |
@@ -1149,9 +1152,7 @@ modules/evas/engines/wayland_egl/evas_wl_main.c \ | |||
1149 | modules/evas/engines/wayland_egl/evas_engine.h | 1152 | modules/evas/engines/wayland_egl/evas_engine.h |
1150 | if EVAS_STATIC_BUILD_WAYLAND_EGL | 1153 | if EVAS_STATIC_BUILD_WAYLAND_EGL |
1151 | lib_evas_libevas_la_SOURCES += $(WAYLAND_EGL_SOURCES) | 1154 | lib_evas_libevas_la_SOURCES += $(WAYLAND_EGL_SOURCES) |
1152 | lib_evas_libevas_la_CPPFLAGS += \ | 1155 | lib_evas_libevas_la_CPPFLAGS += @evas_engine_wayland_egl_cflags@ |
1153 | -I$(top_srcdir)/src/modules/evas/engines/gl_common \ | ||
1154 | @evas_engine_wayland_egl_cflags@ | ||
1155 | lib_evas_libevas_la_LIBADD += @evas_engine_wayland_egl_libs@ | 1156 | lib_evas_libevas_la_LIBADD += @evas_engine_wayland_egl_libs@ |
1156 | else | 1157 | else |
1157 | enginewaylandeglpkgdir = $(libdir)/evas/modules/engines/wayland_egl/$(MODULE_ARCH) | 1158 | enginewaylandeglpkgdir = $(libdir)/evas/modules/engines/wayland_egl/$(MODULE_ARCH) |
@@ -1160,16 +1161,13 @@ modules_evas_engines_wayland_egl_module_la_SOURCES = $(WAYLAND_EGL_SOURCES) | |||
1160 | modules_evas_engines_wayland_egl_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \ | 1161 | modules_evas_engines_wayland_egl_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \ |
1161 | -I$(top_srcdir)/src/lib/evas/include \ | 1162 | -I$(top_srcdir)/src/lib/evas/include \ |
1162 | -I$(top_srcdir)/src/lib/evas/cserve2 \ | 1163 | -I$(top_srcdir)/src/lib/evas/cserve2 \ |
1163 | -I$(top_srcdir)/src/modules/evas/engines/gl_common \ | 1164 | -I$(top_srcdir)/src/modules/evas/engines/wayland_egl \ |
1164 | @EVAS_CFLAGS@ \ | 1165 | @EVAS_CFLAGS@ \ |
1165 | @evas_engine_wayland_egl_cflags@ | 1166 | @evas_engine_wayland_egl_cflags@ |
1166 | modules_evas_engines_wayland_egl_module_la_LIBADD = \ | 1167 | modules_evas_engines_wayland_egl_module_la_LIBADD = \ |
1167 | @USE_EVAS_LIBS@ \ | 1168 | @USE_EVAS_LIBS@ \ |
1168 | modules/evas/engines/gl_common/libevas_engine_gl_common.la \ | ||
1169 | @evas_engine_wayland_egl_libs@ | 1169 | @evas_engine_wayland_egl_libs@ |
1170 | modules_evas_engines_wayland_egl_module_la_DEPENDENCIES = \ | 1170 | modules_evas_engines_wayland_egl_module_la_DEPENDENCIES = @USE_EVAS_INTERNAL_LIBS@ |
1171 | @USE_EVAS_INTERNAL_LIBS@ \ | ||
1172 | modules/evas/engines/gl_common/libevas_engine_gl_common.la | ||
1173 | modules_evas_engines_wayland_egl_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ | 1171 | modules_evas_engines_wayland_egl_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ |
1174 | modules_evas_engines_wayland_egl_module_la_LIBTOOLFLAGS = --tag=disable-static | 1172 | modules_evas_engines_wayland_egl_module_la_LIBTOOLFLAGS = --tag=disable-static |
1175 | endif | 1173 | endif |
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c index 0a133ba19f..bd5b72e50e 100644 --- a/src/modules/evas/engines/wayland_egl/evas_engine.c +++ b/src/modules/evas/engines/wayland_egl/evas_engine.c | |||
@@ -1043,9 +1043,6 @@ module_open(Evas_Module *em) | |||
1043 | /* check for valid module */ | 1043 | /* check for valid module */ |
1044 | if (!em) return 0; | 1044 | if (!em) return 0; |
1045 | 1045 | ||
1046 | /* try to init evas_gl_common */ | ||
1047 | if (!evas_gl_common_module_open()) return 0; | ||
1048 | |||
1049 | /* get whatever engine module we inherit from */ | 1046 | /* get whatever engine module we inherit from */ |
1050 | if (!_evas_module_engine_inherit(&pfunc, "gl_generic")) return 0; | 1047 | if (!_evas_module_engine_inherit(&pfunc, "gl_generic")) return 0; |
1051 | 1048 | ||