summaryrefslogtreecommitdiff
path: root/m4/evas_check_engine.m4
diff options
context:
space:
mode:
authorNicolas Aguirre <aguirre.nicolas@gmail.com>2016-03-18 08:56:59 +0100
committerCedric Bail <cedric@osg.samsung.com>2016-03-18 10:17:49 -0700
commit290fc88e3f375a2b5054780bd797be11ad526d90 (patch)
tree447cbf9236d7639bf7306acdd2302ce10b785cca /m4/evas_check_engine.m4
parent652895ad4ab33be714152adee85eeb7883c06593 (diff)
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 <cedric@osg.samsung.com>
Diffstat (limited to 'm4/evas_check_engine.m4')
-rw-r--r--m4/evas_check_engine.m443
1 files changed, 43 insertions, 0 deletions
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])
661 661
662]) 662])
663 663
664dnl use: EVAS_CHECK_ENGINE_DEP_EGLFS(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
665
666AC_DEFUN([EVAS_CHECK_ENGINE_DEP_EGLFS],
667[
668
669requirement=""
670have_dep="no"
671have_hw_dep="no"
672evas_engine_[]$1[]_cflags=""
673evas_engine_[]$1[]_libs=""
674
675if test "x${with_opengl}" = "xes" ; then
676 gl_library="glesv2"
677else
678 AC_MSG_ERROR([We do not support Eglfs without OpenGL ES. Please consider OpenGL ES if you want to use it.])
679fi
680
681PKG_CHECK_EXISTS([egl >= 7.10 ${gl_library}],
682 [
683 have_dep="yes"
684 requirement="egl >= 7.10 ${gl_library}"
685 ],
686 [have_dep="no"])
687
688if test "x${have_dep}" = "xyes" ; then
689 if test "x$3" = "xstatic" ; then
690 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
691 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
692 else
693 PKG_CHECK_MODULES([EGLFS], [${requirement}])
694 evas_engine_[]$1[]_cflags="${EGLFS_CFLAGS}"
695 evas_engine_[]$1[]_libs="${EGLFS_LIBS}"
696 evas_engine_gl_common_libs="$evas_engine_[]$1[]_libdirs -lGLESv2 -lm -lEGL"
697 fi
698fi
699
700AC_SUBST([evas_engine_$1_cflags])
701AC_SUBST([evas_engine_$1_libs])
702
703AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
704
705])
706
664 707
665dnl use: EVAS_ENGINE(name, want_engine, [DEPENDENCY-CHECK-CODE]) 708dnl use: EVAS_ENGINE(name, want_engine, [DEPENDENCY-CHECK-CODE])
666dnl 709dnl