meson: make it possible to compile without dbus

Make an option to disable dbus and all the code that depends on
it.

Fixes #1685
This commit is contained in:
Wim Taymans 2021-10-09 15:00:04 +02:00
parent caf0b2df19
commit 5f7c4dec34
8 changed files with 39 additions and 20 deletions

View file

@ -67,8 +67,10 @@ elif not sndfile_dep.found() and get_option('pw-cat').enabled()
endif
summary({'Build pw-cat tool': build_pw_cat}, bool_yn: true, section: 'pw-cat/pw-play/pw-dump tool')
executable('pw-reserve',
'pw-reserve.c',
install: true,
dependencies : [dbus_dep, pipewire_dep],
)
if dbus_dep.found()
executable('pw-reserve',
'pw-reserve.c',
install: true,
dependencies : [dbus_dep, pipewire_dep],
)
endif