cogl: Fix build without X11

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2354>
This commit is contained in:
Christian Rauch 2022-04-05 15:01:29 +02:00 committed by Bilal Elmoussaoui
parent a81b2a49ed
commit 9ba510646c
4 changed files with 7 additions and 2 deletions

View File

@ -36,6 +36,7 @@
#include "cogl-framebuffer-private.h"
#include "cogl-attribute-private.h"
#include "cogl-sampler-cache-private.h"
#include "cogl-texture-private.h"
typedef struct _CoglDriverVtable CoglDriverVtable;

View File

@ -29,9 +29,9 @@
#include "cogl-config.h"
#include "cogl-context-private.h"
#include "cogl-fence.h"
#include "cogl-fence-private.h"
#include "cogl-context-private.h"
#include "winsys/cogl-winsys-private.h"
#define FENCE_CHECK_TIMEOUT 5000 /* microseconds */

View File

@ -99,7 +99,7 @@ create_onscreen (CoglContext *cogl_context,
break;
#endif
case COGL_WINSYS_ID_EGL_XLIB:
#ifdef COGL_HAS_EGL_SUPPORT
#ifdef COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT
return COGL_ONSCREEN (cogl_onscreen_xlib_new (cogl_context,
width, height));
#else

View File

@ -135,6 +135,10 @@ if have_xwayland and not have_wayland
error('XWayland support requires Wayland support enabled')
endif
if not have_wayland and not have_x11
error('A Wayland/X11 backend must be enabled')
endif
if have_x11_client
x11_dep = dependency('x11')
xcomposite_dep = dependency('xcomposite', version: xcomposite_req)