diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-02-05 21:40:01 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2024-02-19 00:53:30 +0000 |
commit | 8d2117abebebd8e466662cbc24d7a644ccc8784c (patch) | |
tree | ed4ee45eb9fa734d8d967cbbc53ef5fd77cbaa3f /include | |
parent | 374ee7acd7caa2639cb124b1fb915307b8a19513 (diff) |
hw: xwayland: fix build if neither gbm nor eglstream available
glamor needs to be disabled if neither gbm nor eglstream is available,
otherwise build breaks.
Closes: xorg/xserver#1631
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/meson.build b/include/meson.build index 7799c61bc..8d0194fcb 100644 --- a/include/meson.build +++ b/include/meson.build @@ -414,8 +414,10 @@ configure_file(output : 'xwin-config.h', input : 'xwin-config.h.meson.in', configuration : xwin_data) +build_xwayland_glamor = build_glamor and (gbm_dep.found() or build_eglstream) + xwayland_data = configuration_data() -xwayland_data.set('XWL_HAS_GLAMOR', build_glamor and (gbm_dep.found() or build_eglstream) ? '1' : false) +xwayland_data.set('XWL_HAS_GLAMOR', build_xwayland_glamor ? '1' : false) xwayland_data.set('XWL_HAS_EGLSTREAM', build_eglstream ? '1' : false) xwayland_data.set('XWL_HAS_LIBDECOR', have_libdecor ? '1' : false) xwayland_data.set('XWL_HAS_XWAYLAND_EXTENSION', xwaylandproto_dep.found() ? '1' : false) |