From 70fb21c35ba432bec86b61ef6e938d65629fde31 Mon Sep 17 00:00:00 2001 From: ayaka Date: Fri, 26 Mar 2021 23:28:37 +0800 Subject: backend: make DRM and libinput backends optional Co-authored-by: Simon Ser --- backend/x11/meson.build | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'backend/x11') diff --git a/backend/x11/meson.build b/backend/x11/meson.build index 0c6ea73b..97b6d540 100644 --- a/backend/x11/meson.build +++ b/backend/x11/meson.build @@ -10,17 +10,14 @@ x11_required = [ 'xcb-xinput', ] -msg = [] -if get_option('x11-backend').enabled() - msg += 'Install "@0@" or pass "-Dx11-backend=disabled" to disable it.' -endif -if not get_option('x11-backend').disabled() - msg += 'Required for X11 backend support.' +msg = ['Required for X11 backend support.'] +if 'x11' in backends + msg += 'Install "@0@" or disable the X11 backend.' endif foreach lib : x11_required dep = dependency(lib, - required: get_option('x11-backend'), + required: 'x11' in backends, not_found_message: '\n'.join(msg).format(lib), ) if not dep.found() -- cgit v1.2.3