From 7f320318ff23e9f61bdfbc0a4762702449b24e19 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Thu, 20 Sep 2018 16:36:34 +0700 Subject: [PATCH] meson: Enable dbus-protocol module This is similar to alsa and rtp modules. Signed-off-by: Arnaud Rebillout --- src/modules/dbus/meson.build | 34 ++++++++++++++++++++++++++++++++++ src/modules/meson.build | 8 +++++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 src/modules/dbus/meson.build diff --git a/src/modules/dbus/meson.build b/src/modules/dbus/meson.build new file mode 100644 index 000000000..57c212769 --- /dev/null +++ b/src/modules/dbus/meson.build @@ -0,0 +1,34 @@ +libdbus_util_sources = [ + 'iface-card.c', + 'iface-card-profile.c', + 'iface-client.c', + 'iface-core.c', + 'iface-device.c', + 'iface-device-port.c', + 'iface-memstats.c', + 'iface-module.c', + 'iface-sample.c', + 'iface-stream.c', +] + +libdbus_util_headers = [ + 'iface-card.h', + 'iface-card-profile.h', + 'iface-client.h', + 'iface-core.h', + 'iface-device.h', + 'iface-device-port.h', + 'iface-memstats.h', + 'iface-module.h', + 'iface-sample.h', + 'iface-stream.h', +] + +libdbus_util = shared_library('libdbus_util', + libdbus_util_sources, + libdbus_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 +) diff --git a/src/modules/meson.build b/src/modules/meson.build index 64ce2ba90..285667cd7 100644 --- a/src/modules/meson.build +++ b/src/modules/meson.build @@ -20,7 +20,6 @@ all_modules = [ # [ 'module-console-kit', 'module-console-kit.c' ], # [ 'module-coreaudio-detect', 'macosx/module-coreaudio-detect.c' ], # [ 'module-coreaudio-device', 'macosx/module-coreaudio-device.c' ], -# [ 'module-dbus-protocol', 'module-dbus-protocol.c' ] [ 'module-default-device-restore', 'module-default-device-restore.c', [], [], [], libprotocol_native ], [ 'module-detect', 'module-detect.c' ], [ 'module-device-manager', 'module-device-manager.c', [], [], [], libprotocol_native ], @@ -100,6 +99,13 @@ if alsa_dep.found() ] endif +if dbus_dep.found() + subdir('dbus') + all_modules += [ + [ 'module-dbus-protocol', 'dbus/module-dbus-protocol.c', [], [], [dbus_dep], libdbus_util ], + ] +endif + if fftw_dep.found() all_modules += [ [ 'module-equalizer-sink', 'module-equalizer-sink.c', [], [], [dbus_dep, fftw_dep, libm_dep] ], -- 2.34.1