summaryrefslogtreecommitdiffstats
path: root/src/modules/bluetooth/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/bluetooth/meson.build')
-rw-r--r--src/modules/bluetooth/meson.build33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/modules/bluetooth/meson.build b/src/modules/bluetooth/meson.build
new file mode 100644
index 0000000..9982cba
--- /dev/null
+++ b/src/modules/bluetooth/meson.build
@@ -0,0 +1,33 @@
+libbluez5_util_sources = [
+ 'a2dp-codec-sbc.c',
+ 'a2dp-codec-util.c',
+ 'bluez5-util.c',
+]
+
+libbluez5_util_headers = [
+ 'a2dp-codec-api.h',
+ 'a2dp-codecs.h',
+ 'a2dp-codec-util.h',
+ 'bluez5-util.h',
+ 'rtp.h',
+]
+
+if get_option('bluez5-native-headset')
+ libbluez5_util_sources += [ 'backend-native.c' ]
+endif
+
+if get_option('bluez5-ofono-headset')
+ libbluez5_util_sources += [ 'backend-ofono.c' ]
+endif
+
+libbluez5_util = shared_library('bluez5-util',
+ libbluez5_util_sources,
+ libbluez5_util_headers,
+ c_args : [pa_c_args, server_c_args],
+ link_args : [nodelete_link_args],
+ include_directories : [configinc, topinc],
+ dependencies : [libpulse_dep, libpulsecommon_dep, libpulsecore_dep, dbus_dep, sbc_dep, libintl_dep],
+ install : true,
+ install_rpath : privlibdir,
+ install_dir : modlibexecdir,
+)