From 290fc88e3f375a2b5054780bd797be11ad526d90 Mon Sep 17 00:00:00 2001 From: Nicolas Aguirre Date: Fri, 18 Mar 2016 08:56:59 +0100 Subject: evas: add eglfs evas module. EGL Fullscreen is a module intended to support many proprietary GL driver that come with custom API to create framebuffer/window. This one is starting by covering Android with libhybris/hwcomposer. Later on, it should be able to support easily the Raspberry Pi driver. At this moment this does not work properly. Activate it at your own risk ! Do not report bug if you don't know what you are doing :-) A backend for Ecore_Evas will come later on along with a patch for Ecore_FB to use libinput. Finally a few patch should hopefully enable this backend to work and compile more easily (relying on proper header detection and dlopen/dlsym for access to proprietary function). You can read more about the goal of this patch by reading our wiki at : https://phab.enlightenment.org/w/boot2efl/ Signed-off-by: Cedric Bail --- m4/evas_check_engine.m4 | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'm4') diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4 index 42ecc892d8..e38589c48a 100644 --- a/m4/evas_check_engine.m4 +++ b/m4/evas_check_engine.m4 @@ -661,6 +661,49 @@ AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5]) ]) +dnl use: EVAS_CHECK_ENGINE_DEP_EGLFS(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) + +AC_DEFUN([EVAS_CHECK_ENGINE_DEP_EGLFS], +[ + +requirement="" +have_dep="no" +have_hw_dep="no" +evas_engine_[]$1[]_cflags="" +evas_engine_[]$1[]_libs="" + +if test "x${with_opengl}" = "xes" ; then + gl_library="glesv2" +else + AC_MSG_ERROR([We do not support Eglfs without OpenGL ES. Please consider OpenGL ES if you want to use it.]) +fi + +PKG_CHECK_EXISTS([egl >= 7.10 ${gl_library}], + [ + have_dep="yes" + requirement="egl >= 7.10 ${gl_library}" + ], + [have_dep="no"]) + +if test "x${have_dep}" = "xyes" ; then + if test "x$3" = "xstatic" ; then + requirements_pc_evas="${requirement} ${requirements_pc_evas}" + requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}" + else + PKG_CHECK_MODULES([EGLFS], [${requirement}]) + evas_engine_[]$1[]_cflags="${EGLFS_CFLAGS}" + evas_engine_[]$1[]_libs="${EGLFS_LIBS}" + evas_engine_gl_common_libs="$evas_engine_[]$1[]_libdirs -lGLESv2 -lm -lEGL" + fi +fi + +AC_SUBST([evas_engine_$1_cflags]) +AC_SUBST([evas_engine_$1_libs]) + +AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5]) + +]) + dnl use: EVAS_ENGINE(name, want_engine, [DEPENDENCY-CHECK-CODE]) dnl -- cgit v1.2.1