File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -191,17 +191,26 @@ def options(opt):
191191 samplerate .check_cfg (
192192 package = 'samplerate' ,
193193 args = '--cflags --libs' )
194+
194195 sd = opt .add_auto_option (
195196 'systemd' ,
196197 help = 'Use systemd notify' )
197198 sd .check (header_name = 'systemd/sd-daemon.h' )
198199 sd .check (lib = 'systemd' )
200+
199201 db = opt .add_auto_option (
200202 'db' ,
201203 help = 'Use Berkeley DB (metadata)' )
202204 db .check (header_name = 'db.h' )
203205 db .check (lib = 'db' )
204206
207+ libdbus = opt .add_auto_option (
208+ 'libdbus' ,
209+ help = 'Build with DBus device reservation' )
210+ libdbus .check_cfg (
211+ package = 'dbus-1 >= 1.0.0' ,
212+ args = '--cflags --libs' )
213+
205214 # dbus options
206215 opt .recurse ('dbus' )
207216
@@ -531,7 +540,7 @@ def init(ctx):
531540
532541
533542def obj_add_includes (bld , obj ):
534- if bld .env ['BUILD_JACKDBUS' ]:
543+ if bld .env ['BUILD_JACKDBUS' ] or bld . env [ 'HAVE_DBUS_1' ] :
535544 obj .includes += ['dbus' ]
536545
537546 if bld .env ['IS_LINUX' ]:
@@ -561,7 +570,7 @@ def build_jackd(bld):
561570 use = ['serverlib' , 'SYSTEMD' ]
562571 )
563572
564- if bld .env ['BUILD_JACKDBUS' ]:
573+ if bld .env ['BUILD_JACKDBUS' ] or bld . env [ 'HAVE_DBUS_1' ] :
565574 jackd .source += ['dbus/audio_reserve.c' , 'dbus/reserve.c' ]
566575 jackd .use += ['DBUS-1' ]
567576
You can’t perform that action at this time.
0 commit comments