[Mesa-dev] [PATCH v2 4/9] configure.ac: Add tizen to supported platforms

Gwan-gyeong Mun elongbug at gmail.com
Sun Sep 17 18:01:02 UTC 2017


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

Signed-off-by: Mun Gwan-gyeong <elongbug at gmail.com>
---
 configure.ac | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index d0d4c0dfd1..04f6a4b165 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1677,7 +1677,7 @@ dnl
 AC_ARG_WITH([platforms],
     [AS_HELP_STRING([--with-platforms@<:@=DIRS...@:>@],
         [comma delimited native platforms libEGL/Vulkan/other supports, e.g.
-        "x11,drm,wayland,surfaceless..." @<:@default=auto@:>@])],
+        "x11,drm,wayland,surfaceless,tizen..." @<:@default=auto@:>@])],
     [with_platforms="$withval"],
     [with_platforms=auto])
 
@@ -1736,6 +1736,11 @@ for plat in $platforms; do
         DEFINES="$DEFINES -DHAVE_ANDROID_PLATFORM"
         ;;
 
+    tizen)
+        PKG_CHECK_MODULES([TIZEN], [tpl-egl libtbm libtdm])
+        DEFINES="$DEFINES -DHAVE_TIZEN_PLATFORM"
+        ;;
+
     *)
         AC_MSG_ERROR([platform '$plat' does not exist])
         ;;
@@ -1766,6 +1771,7 @@ AM_CONDITIONAL(HAVE_PLATFORM_WAYLAND, echo "$platforms" | grep -q 'wayland')
 AM_CONDITIONAL(HAVE_PLATFORM_DRM, echo "$platforms" | grep -q 'drm')
 AM_CONDITIONAL(HAVE_PLATFORM_SURFACELESS, echo "$platforms" | grep -q 'surfaceless')
 AM_CONDITIONAL(HAVE_PLATFORM_ANDROID, echo "$platforms" | grep -q 'android')
+AM_CONDITIONAL(HAVE_PLATFORM_TIZEN, echo "$platforms" | grep -q 'tizen')
 
 dnl
 dnl More DRI setup
-- 
2.14.1



More information about the mesa-dev mailing list