From 4dbeaf3a0601a3a1e986379fea51b0fce9afaf6e Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 21 Dec 2020 11:25:47 +0000 Subject: [PATCH] build: add basu as sd-bus provider Based on https://github.com/emersion/mako/commit/805663cc76e0 --- include/xdpw.h | 2 ++ meson.build | 8 +++++++- meson_options.txt | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) 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')