summaryrefslogtreecommitdiff
path: root/m4/evas_check_engine.m4
diff options
context:
space:
mode:
authorMun, Gwan-gyeong <kk.moon@samsung.com>2014-08-21 11:22:16 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-08-21 12:04:53 +0200
commitf5b81093978fbbe411f9fb509617b6f4081f8da8 (patch)
tree7c6ad1c9bea56711ce23467bcd95c2b5168b3af1 /m4/evas_check_engine.m4
parent23892343cce3b561e98dd050821cad0bed1ce887 (diff)
evas: add evas gl-drm engine
Summary: This is the first step to introduce a gl-drm backend. Test Plan: "ecore evas" create with ecore_evas_gl_drm_new(). It creates "ecore evas" with gl_drm evas backend. @feature Reviewers: raster, Hermet, cedric, devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1187 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'm4/evas_check_engine.m4')
-rw-r--r--m4/evas_check_engine.m439
1 files changed, 39 insertions, 0 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
index fd29393096..6b2ca60335 100644
--- a/m4/evas_check_engine.m4
+++ b/m4/evas_check_engine.m4
@@ -641,6 +641,45 @@ AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
641 641
642]) 642])
643 643
644dnl use: EVAS_CHECK_ENGINE_DEP_GL_DRM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
645
646AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_DRM],
647[
648
649requirement=""
650have_dep="no"
651have_hw_dep="no"
652evas_engine_[]$1[]_cflags=""
653evas_engine_[]$1[]_libs=""
654
655gl_library="glesv2"
656
657PKG_CHECK_EXISTS([egl >= 7.10 ${gl_library} gbm],
658 [
659 have_dep="yes"
660 requirement="egl >= 7.10 ${gl_library} gbm"
661 ],
662 [have_dep="no"])
663
664if test "x${have_dep}" = "xyes" ; then
665 if test "x$3" = "xstatic" ; then
666 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
667 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
668 else
669 PKG_CHECK_MODULES([GL_DRM], [${requirement}])
670 evas_engine_[]$1[]_cflags="${GL_DRM_CFLAGS}"
671 evas_engine_[]$1[]_libs="${GL_DRM_LIBS}"
672 evas_engine_gl_common_libs="$evas_engine_[]$1[]_libdirs -lGLESv2 -lm -lEGL"
673 fi
674fi
675
676AC_SUBST([evas_engine_$1_cflags])
677AC_SUBST([evas_engine_$1_libs])
678
679AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
680
681])
682
644 683
645dnl use: EVAS_ENGINE(name, want_engine, [DEPENDENCY-CHECK-CODE]) 684dnl use: EVAS_ENGINE(name, want_engine, [DEPENDENCY-CHECK-CODE])
646dnl 685dnl