meson: make ‘xwindow’ plugin compile time optional

This commit is contained in:
Daniel Eklöf 2022-12-14 10:02:13 +01:00
parent a14d38b0cb
commit 1a81255579
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 14 additions and 8 deletions

View file

@ -45,6 +45,8 @@ plugin_sway_xkb_enabled = json_sway_xkb.found()
xcb_xkb = dependency('xcb-xkb', required: get_option('plugin-xkb'))
plugin_xkb_enabled = backend_x11 and xcb_xkb.found()
plugin_xwindow_enabled = backend_x11 and get_option('plugin-xwindow').allowed()
# Module name -> (source-list, dep-list)
mod_data = {}
@ -120,10 +122,8 @@ if plugin_xkb_enabled
mod_data += {'xkb': [[], [xcb_stuff, xcb_xkb]]}
endif
if backend_x11
mod_data += {
'xwindow': [[], [xcb_stuff]],
}
if plugin_xwindow_enabled
mod_data += {'xwindow': [[], [xcb_stuff]]}
endif
if backend_wayland