From 3df8fcda3a53a98ba9060562fb2466fb655f4fb9 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Sun, 29 Mar 2026 20:54:13 +0200 Subject: [PATCH] meson.build: make libinput and libdrm depend on wlroots feature flags --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index de73e8ea..2c2d8e57 100644 --- a/meson.build +++ b/meson.build @@ -65,13 +65,13 @@ xkbcommon = dependency('xkbcommon') xcb = dependency('xcb', required: get_option('xwayland')) xcb_ewmh = dependency('xcb-ewmh', required: get_option('xwayland')) xcb_icccm = dependency('xcb-icccm', required: get_option('xwayland')) -drm_full = dependency('libdrm') +drm_full = dependency('libdrm', required: wlroots.get_variable('have_drm_backend') == 'true') drm = drm_full.partial_dependency(compile_args: true, includes: true) xml2 = dependency('libxml-2.0') glib = dependency('glib-2.0') cairo = dependency('cairo') pangocairo = dependency('pangocairo') -input = dependency('libinput', version: '>=1.26') +input = dependency('libinput', version: '>=1.26', required: wlroots.get_variable('have_libinput_backend') == 'true') pixman = dependency('pixman-1') math = cc.find_library('m') png = dependency('libpng')