[clutter/wip/cogl-winsys-egl: 28/37] Adds --enable-wayland-egl-platform option



commit 675f0d0e1603652c640fb1069866b808165339b0
Author: Robert Bragg <robert linux intel com>
Date:   Thu Mar 17 19:31:34 2011 +0000

    Adds --enable-wayland-egl-platform option

 clutter/cogl/configure.ac |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/clutter/cogl/configure.ac b/clutter/cogl/configure.ac
index bad9701..0fc376b 100644
--- a/clutter/cogl/configure.ac
+++ b/clutter/cogl/configure.ac
@@ -454,6 +454,30 @@ AS_IF([test "x$enable_gdl_egl_platform" == "xyes"],
 AM_CONDITIONAL(SUPPORT_EGL_PLATFORM_GDL,
                [test "x$enable_gdl_egl_platform" = "xyes"])
 
+AC_ARG_ENABLE(
+  [wayland-egl-platform],
+  [AC_HELP_STRING([--enable-waylsn-egl-platform=@<:@no/yes@:>@], [Enable support for the Wayland egl platform @<:@default=no@:>@])],
+  [],
+  enable_wayland_egl_platform=no
+)
+AS_IF([test "x$enable_wayland_egl_platform" == "xyes"],
+      [
+        EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
+        NEED_EGL=yes
+        EGL_PLATFORMS="$EGL_PLATFORMS wayland"
+
+        PKG_CHECK_EXISTS([wayland-egl],
+                         [
+                           COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES wayland-egl"
+                           COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES wayland-client"
+                         ],
+                         [AC_MSG_ERROR([Unable to locate required wayland libraries])])
+
+      ])
+AM_CONDITIONAL(SUPPORT_EGL_PLATFORM_WAYLAND,
+               [test "x$enable_wayland_egl_platform" = "xyes"])
+
+
 dnl This should go last, since it's the default fallback and we need
 dnl to check the value of $EGL_PLATFORM_COUNT here.
 AC_ARG_ENABLE(



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]