aboutsummaryrefslogtreecommitdiff
path: root/backend/x11/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'backend/x11/meson.build')
-rw-r--r--backend/x11/meson.build34
1 files changed, 17 insertions, 17 deletions
diff --git a/backend/x11/meson.build b/backend/x11/meson.build
index 19e873ab..40530bb0 100644
--- a/backend/x11/meson.build
+++ b/backend/x11/meson.build
@@ -6,8 +6,19 @@ x11_required = [
'xcb-xfixes',
]
+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.'
+endif
+
foreach lib : x11_required
- dep = dependency(lib, required: get_option('x11-backend'))
+ dep = dependency(lib,
+ required: get_option('x11-backend'),
+ not_found_message: '\n'.join(msg).format(lib),
+ )
if not dep.found()
subdir_done()
endif
@@ -15,21 +26,10 @@ foreach lib : x11_required
x11_libs += dep
endforeach
-lib_wlr_backend_x11 = static_library(
- 'wlr_backend_x11',
- files(
- 'backend.c',
- 'input_device.c',
- 'output.c',
- ),
- include_directories: wlr_inc,
- dependencies: [
- wayland_server,
- pixman,
- xkbcommon,
- x11_libs,
- ],
+wlr_files += files(
+ 'backend.c',
+ 'input_device.c',
+ 'output.c',
)
-
-backend_parts += lib_wlr_backend_x11
+wlr_deps += x11_libs
conf_data.set10('WLR_HAS_X11_BACKEND', true)