mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
meson: Enable bluetooth modules, add bluez_util lib, add bluez and sbc dependencies
Please notice that the bluez5 version seems wrong in the dependency declaration: `>= 4.x`, while we're talking about version 5. The ofono part will need to be made optional when we start to work on the meson_options file. I follow the current configure.ac to define 'HAVE_BLUEZ', but it looks like this part would benefit from a bit of rework. Setting HAVE_BLUEZ when we have dbus+sbc sounds weird, there's probably a better name for this variable. Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
parent
147462b276
commit
0d6ea15eea
3 changed files with 54 additions and 4 deletions
25
src/modules/bluetooth/meson.build
Normal file
25
src/modules/bluetooth/meson.build
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
libbluez5_util_sources = [
|
||||
'bluez5-util.c',
|
||||
]
|
||||
|
||||
libbluez5_util_headers = [
|
||||
'a2dp-codecs.h',
|
||||
'bluez5-util.h',
|
||||
'rtp.h',
|
||||
]
|
||||
|
||||
if bluez_dep.found()
|
||||
libbluez5_util_sources += [ 'backend-native.c' ]
|
||||
endif
|
||||
|
||||
# TODO This should be optional
|
||||
libbluez5_util_sources += [ 'backend-ofono.c' ]
|
||||
|
||||
libbluez5_util = shared_library('libbluez5_util',
|
||||
libbluez5_util_sources,
|
||||
libbluez5_util_headers,
|
||||
c_args : [pa_c_args, server_c_args],
|
||||
include_directories : [configinc, topinc],
|
||||
dependencies : [libpulse_dep, libpulsecommon_dep, libpulsecore_dep, dbus_dep],
|
||||
install : true
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue