diff options
author | Simon Ser <contact@emersion.fr> | 2022-11-23 16:04:43 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-11-25 16:15:29 +0000 |
commit | f0375eed24276e27e036f724c9fde5d344fc140a (patch) | |
tree | 32732996951bd290acd3ba12084ab42778134073 /include | |
parent | 21254737bf97e5be44071063c14fce5a403a9a22 (diff) | |
download | wlroots-f0375eed24276e27e036f724c9fde5d344fc140a.tar.xz |
backend/session: make optional
Some compositors are not interested in wlr_session, for instance
nested compositors.
Disabling wlr_session removes the udev dependency.
Diffstat (limited to 'include')
-rw-r--r-- | include/meson.build | 3 | ||||
-rw-r--r-- | include/wlr/config.h.in | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/meson.build b/include/meson.build index 3aa5955e..69a6d0e0 100644 --- a/include/meson.build +++ b/include/meson.build @@ -21,6 +21,9 @@ endif if not features.get('vulkan-renderer') exclude_files += 'render/vulkan.h' endif +if not features.get('session') + exclude_files += 'backend/session.h' +endif install_subdir('wlr', install_dir: get_option('includedir'), diff --git a/include/wlr/config.h.in b/include/wlr/config.h.in index 0b612271..6a53d217 100644 --- a/include/wlr/config.h.in +++ b/include/wlr/config.h.in @@ -12,4 +12,6 @@ #mesondefine WLR_HAS_XWAYLAND +#mesondefine WLR_HAS_SESSION + #endif |