2018-08-24 07:35:02 +00:00
|
|
|
x11_libs = []
|
|
|
|
x11_required = [
|
2018-11-10 23:30:37 +00:00
|
|
|
'xcb',
|
2020-11-18 18:21:03 +00:00
|
|
|
'xcb-dri3',
|
|
|
|
'xcb-present',
|
2021-01-21 01:06:28 +00:00
|
|
|
'xcb-render',
|
|
|
|
'xcb-renderutil',
|
2021-04-19 18:52:31 +00:00
|
|
|
'xcb-shm',
|
2019-11-19 04:37:43 +00:00
|
|
|
'xcb-xfixes',
|
2020-11-18 18:21:03 +00:00
|
|
|
'xcb-xinput',
|
2018-08-24 07:35:02 +00:00
|
|
|
]
|
|
|
|
|
2021-03-26 15:28:37 +00:00
|
|
|
msg = ['Required for X11 backend support.']
|
|
|
|
if 'x11' in backends
|
|
|
|
msg += 'Install "@0@" or disable the X11 backend.'
|
2019-11-22 07:11:15 +00:00
|
|
|
endif
|
|
|
|
|
2018-08-24 07:35:02 +00:00
|
|
|
foreach lib : x11_required
|
2019-11-22 07:11:15 +00:00
|
|
|
dep = dependency(lib,
|
2021-03-26 15:28:37 +00:00
|
|
|
required: 'x11' in backends,
|
2019-11-22 07:11:15 +00:00
|
|
|
not_found_message: '\n'.join(msg).format(lib),
|
|
|
|
)
|
2018-08-24 07:35:02 +00:00
|
|
|
if not dep.found()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
x11_libs += dep
|
|
|
|
endforeach
|
|
|
|
|
2019-11-22 07:11:15 +00:00
|
|
|
wlr_files += files(
|
|
|
|
'backend.c',
|
|
|
|
'input_device.c',
|
|
|
|
'output.c',
|
2018-08-24 07:35:02 +00:00
|
|
|
)
|
2019-11-22 07:11:15 +00:00
|
|
|
wlr_deps += x11_libs
|
2021-02-08 14:16:10 +00:00
|
|
|
features += { 'x11-backend': true }
|