bluez: check for bluez deps

This commit is contained in:
Wim Taymans 2018-11-27 17:19:32 +01:00
parent 249a12ee69
commit bf43b55d16
3 changed files with 3 additions and 2 deletions

View file

@ -13,6 +13,7 @@ libudev_dep = dependency('libudev')
threads_dep = dependency('threads') threads_dep = dependency('threads')
speexdsp_dep = dependency('speexdsp') speexdsp_dep = dependency('speexdsp')
sdl_dep = dependency('sdl2', required : false) sdl_dep = dependency('sdl2', required : false)
bluez_dep = dependency('bluez', version : '>= 4.101', required : false)
#cc = meson.get_compiler('c') #cc = meson.get_compiler('c')
#dl_lib = cc.find_library('dl', required : false) #dl_lib = cc.find_library('dl', required : false)

View file

@ -7,6 +7,6 @@ bluez5_sources = ['plugin.c',
bluez5lib = shared_library('spa-bluez5', bluez5lib = shared_library('spa-bluez5',
bluez5_sources, bluez5_sources,
include_directories : [ spa_inc ], include_directories : [ spa_inc ],
dependencies : [ dbus_dep, sbc_dep ], dependencies : [ dbus_dep, sbc_dep, bluez_dep ],
install : true, install : true,
install_dir : '@0@/spa/bluez5'.format(get_option('libdir'))) install_dir : '@0@/spa/bluez5'.format(get_option('libdir')))

View file

@ -10,7 +10,7 @@ endif
if get_option('audiotestsrc') if get_option('audiotestsrc')
subdir('audiotestsrc') subdir('audiotestsrc')
endif endif
if get_option('bluez5') and sbc_dep.found() if get_option('bluez5') and sbc_dep.found() and bluez_dep.found()
subdir('bluez5') subdir('bluez5')
endif endif
if get_option('ffmpeg') and avcodec_dep.found() if get_option('ffmpeg') and avcodec_dep.found()