[mutter/bilelmoussaoui/meson-without-x11] cogl: Unify HAS_X11/HAS_XLIB build configs



commit 9c4594d06cefd5e8f6061a58e9ab6a279662f913
Author: Bilal Elmoussaoui <belmouss redhat com>
Date:   Tue May 3 12:53:45 2022 +0200

    cogl: Unify HAS_X11/HAS_XLIB build configs

 cogl/cogl/cogl-defines.h.meson      | 2 --
 cogl/cogl/cogl-renderer.c           | 8 ++++----
 cogl/cogl/deprecated/cogl-clutter.c | 2 +-
 cogl/cogl/meson.build               | 2 --
 4 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/cogl/cogl/cogl-defines.h.meson b/cogl/cogl/cogl-defines.h.meson
index 911b0abdd4..0e80f1282c 100644
--- a/cogl/cogl/cogl-defines.h.meson
+++ b/cogl/cogl/cogl-defines.h.meson
@@ -42,8 +42,6 @@
 #mesondefine COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT
 #mesondefine COGL_HAS_EGL_SUPPORT
 #mesondefine COGL_HAS_X11
-#mesondefine COGL_HAS_X11_SUPPORT
 #mesondefine COGL_HAS_XLIB
-#mesondefine COGL_HAS_XLIB_SUPPORT
 
 #mesondefine COGL_HAS_TRACING
diff --git a/cogl/cogl/cogl-renderer.c b/cogl/cogl/cogl-renderer.c
index 38f7a36d77..ccf3b766e0 100644
--- a/cogl/cogl/cogl-renderer.c
+++ b/cogl/cogl/cogl-renderer.c
@@ -55,7 +55,7 @@
 #include "winsys/cogl-winsys-glx-private.h"
 #endif
 
-#ifdef COGL_HAS_XLIB_SUPPORT
+#ifdef COGL_HAS_XLIB
 #include "cogl-xlib-renderer.h"
 #endif
 
@@ -202,14 +202,14 @@ cogl_renderer_new (void)
 
   _cogl_list_init (&renderer->idle_closures);
 
-#ifdef COGL_HAS_XLIB_SUPPORT
+#ifdef COGL_HAS_XLIB
   renderer->xlib_enable_event_retrieval = TRUE;
 #endif
 
   return _cogl_renderer_object_new (renderer);
 }
 
-#ifdef COGL_HAS_XLIB_SUPPORT
+#ifdef COGL_HAS_XLIB
 void
 cogl_xlib_renderer_set_foreign_display (CoglRenderer *renderer,
                                         Display *xdisplay)
@@ -243,7 +243,7 @@ cogl_xlib_renderer_request_reset_on_video_memory_purge (CoglRenderer *renderer,
 
   renderer->xlib_want_reset_on_video_memory_purge = enable;
 }
-#endif /* COGL_HAS_XLIB_SUPPORT */
+#endif /* COGL_HAS_XLIB */
 
 gboolean
 cogl_renderer_check_onscreen_template (CoglRenderer *renderer,
diff --git a/cogl/cogl/deprecated/cogl-clutter.c b/cogl/cogl/deprecated/cogl-clutter.c
index a2528c8be1..9bbdf1717b 100644
--- a/cogl/cogl/deprecated/cogl-clutter.c
+++ b/cogl/cogl/deprecated/cogl-clutter.c
@@ -40,7 +40,7 @@
 #include "cogl-context-private.h"
 #include "cogl-framebuffer-private.h"
 #include "cogl-onscreen-private.h"
-#ifdef COGL_HAS_XLIB_SUPPORT
+#ifdef COGL_HAS_XLIB
 #include "cogl-xlib-renderer.h"
 #endif
 #include "winsys/cogl-winsys-private.h"
diff --git a/cogl/cogl/meson.build b/cogl/cogl/meson.build
index d5da0151ea..fa34eac52d 100644
--- a/cogl/cogl/meson.build
+++ b/cogl/cogl/meson.build
@@ -8,9 +8,7 @@ cdata.set('COGL_HAS_GLX_SUPPORT', have_glx)
 cdata.set('COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT', have_egl_xlib)
 cdata.set('COGL_HAS_EGL_SUPPORT', have_egl)
 cdata.set('COGL_HAS_X11', have_x11)
-cdata.set('COGL_HAS_X11_SUPPORT', have_x11)
 cdata.set('COGL_HAS_XLIB', have_x11_client)
-cdata.set('COGL_HAS_XLIB_SUPPORT', have_x11_client)
 cdata.set('COGL_HAS_TRACING', have_profiler)
 
 cogl_defines_h = configure_file(


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