[Mesa-dev] [PATCH 2/2] configure.ac: Add tizen to supported egl platforms

Mun Gwan-gyeong elongbug at gmail.com
Wed Apr 12 00:48:09 UTC 2017


From: "Mun, Gwan-gyeong" <kk.moon at samsung.com>

It checks tpl-egl/libtbm/libtdm packages and defines HAVE_EGL_PLATFORM_TIZEN.
This feature is enabled by the config option '--with-egl-platforms=tizen'

Signed-off-by: Mun Gwan-gyeong <kk.moon at samsung.com>
---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index 7246c6017a..e8c3151809 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2175,6 +2175,10 @@ for plat in $egl_platforms; do
 		PKG_CHECK_MODULES([ANDROID], [cutils hardware sync])
 		;;
 
+	tizen)
+		PKG_CHECK_MODULES([TIZEN], [tpl-egl libtbm libtdm])
+		;;
+
 	*)
 		AC_MSG_ERROR([EGL platform '$plat' does not exist])
 		;;
@@ -2201,6 +2205,7 @@ AM_CONDITIONAL(HAVE_PLATFORM_WAYLAND, echo "$egl_platforms" | grep -q 'wayland')
 AM_CONDITIONAL(HAVE_EGL_PLATFORM_DRM, echo "$egl_platforms" | grep -q 'drm')
 AM_CONDITIONAL(HAVE_EGL_PLATFORM_SURFACELESS, echo "$egl_platforms" | grep -q 'surfaceless')
 AM_CONDITIONAL(HAVE_EGL_PLATFORM_ANDROID, echo "$egl_platforms" | grep -q 'android')
+AM_CONDITIONAL(HAVE_EGL_PLATFORM_TIZEN, echo "$egl_platforms" | grep -q 'tizen')
 
 AC_SUBST([EGL_NATIVE_PLATFORM])
 AC_SUBST([EGL_CFLAGS])
-- 
2.12.2



More information about the mesa-dev mailing list