From bf43b55d168e37f534eb94390dc17300605de718 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 27 Nov 2018 17:19:32 +0100 Subject: [PATCH] bluez: check for bluez deps --- spa/meson.build | 1 + spa/plugins/bluez5/meson.build | 2 +- spa/plugins/meson.build | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spa/meson.build b/spa/meson.build index dd7e70d4f..400fe48a9 100644 --- a/spa/meson.build +++ b/spa/meson.build @@ -13,6 +13,7 @@ libudev_dep = dependency('libudev') threads_dep = dependency('threads') speexdsp_dep = dependency('speexdsp') sdl_dep = dependency('sdl2', required : false) +bluez_dep = dependency('bluez', version : '>= 4.101', required : false) #cc = meson.get_compiler('c') #dl_lib = cc.find_library('dl', required : false) diff --git a/spa/plugins/bluez5/meson.build b/spa/plugins/bluez5/meson.build index 08f4719ab..0b0fce0f0 100644 --- a/spa/plugins/bluez5/meson.build +++ b/spa/plugins/bluez5/meson.build @@ -7,6 +7,6 @@ bluez5_sources = ['plugin.c', bluez5lib = shared_library('spa-bluez5', bluez5_sources, include_directories : [ spa_inc ], - dependencies : [ dbus_dep, sbc_dep ], + dependencies : [ dbus_dep, sbc_dep, bluez_dep ], install : true, install_dir : '@0@/spa/bluez5'.format(get_option('libdir'))) diff --git a/spa/plugins/meson.build b/spa/plugins/meson.build index 70dc24828..aa79bd48a 100644 --- a/spa/plugins/meson.build +++ b/spa/plugins/meson.build @@ -10,7 +10,7 @@ endif if get_option('audiotestsrc') subdir('audiotestsrc') endif -if get_option('bluez5') and sbc_dep.found() +if get_option('bluez5') and sbc_dep.found() and bluez_dep.found() subdir('bluez5') endif if get_option('ffmpeg') and avcodec_dep.found()