[Mesa-dev] [PATCH v4 04/10] configure.ac: Add tizen to supported platforms (v2)

Gwan-gyeong Mun elongbug at gmail.com
Fri Oct 6 22:03:21 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'

v2: Fixes from Emil's review:
  - Add require_libdrm to tizen platform

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

diff --git a/configure.ac b/configure.ac
index 903a3979d4..f350d3caa9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1695,7 +1695,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])
 
@@ -1755,13 +1755,18 @@ 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])
         ;;
     esac
 
     case "$plat" in
-    wayland|drm|surfaceless)
+    wayland|drm|surfaceless|tizen)
         require_libdrm "Platform $plat"
         ;;
     esac
@@ -1785,6 +1790,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.2



More information about the mesa-dev mailing list