diff --git a/include/xdpw.h b/include/xdpw.h index 2408a5e..2d556d7 100644 --- a/include/xdpw.h +++ b/include/xdpw.h @@ -6,6 +6,8 @@ #include #elif HAVE_LIBELOGIND #include +#elif HAVE_BASU +#include #endif #include "screencast_common.h" diff --git a/meson.build b/meson.build index 14d6f3c..e1d5e3c 100644 --- a/meson.build +++ b/meson.build @@ -36,10 +36,16 @@ if get_option('sd-bus-provider') == 'auto' if not sdbus.found() sdbus = dependency('libelogind', required: false, + not_found_message: 'libelogind not found, trying basu', ) endif if not sdbus.found() - error('Neither libsystemd, nor libelogind was found') + sdbus = dependency('basu', + required: false, + ) + endif + if not sdbus.found() + error('Neither libsystemd, nor libelogind, nor basu was found') endif else sdbus = dependency(get_option('sd-bus-provider')) diff --git a/meson_options.txt b/meson_options.txt index 0021a1b..d7ae3ab 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,2 +1,2 @@ -option('sd-bus-provider', type: 'combo', choices: ['auto', 'libsystemd', 'libelogind'], value: 'auto', description: 'Provider of the sd-bus library') +option('sd-bus-provider', type: 'combo', choices: ['auto', 'libsystemd', 'libelogind', 'basu'], value: 'auto', description: 'Provider of the sd-bus library') option('systemd', type: 'feature', value: 'auto', description: 'Install systemd user service unit')