From ba709ee7d4f9f81af638a3d3c640b7152bbe32bc Mon Sep 17 00:00:00 2001 From: Adrian Scarlat Date: Fri, 22 May 2015 14:16:45 +0000 Subject: This Routing Interface is needed for any application that will be developed on top of AM and will use PulseAudio Sound Server to control the sources and sinks present on the system. It must be loaded by AM; The interface can be built by supplying cmake with the -DWITH_PULSE_ROUTING_PLUGIN=ON; After building one configuration file will be available: 1. libPluginRoutingInterfacePULSE.conf - configuration file for Pulse Routing Plugin; it will be loaded at runtime by the Pulse Routing Interface; Changed files: CMakeLists.txt Added new folders: PluginRoutingInterfacePulse/ Added new files: PluginRoutingInterfacePulse/CMakeLists.txt PluginRoutingInterfacePulse/README PluginRoutingInterfacePulse/data/libPluginRoutingInterfacePULSE.conf PluginRoutingInterfacePulse/include/RoutingSenderMainloopPULSE.h PluginRoutingInterfacePulse/include/RoutingSenderPULSE.h PluginRoutingInterfacePulse/src/RoutingSenderMainloopPULSE.cpp PluginRoutingInterfacePulse/src/RoutingSenderPULSE.cpp Signed-off-by: Adrian Scarlat --- CMakeLists.txt | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index abf2a20..be3ed83 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,7 +98,15 @@ OPTION ( WITH_NSM OPTION( WITH_PULSE_CONTROL_PLUGIN "Enable PULSE Audio control plugin interface" OFF) +OPTION( WITH_PULSE_ROUTING_PLUGIN + "Enable PULSE Audio routing plugin interface" OFF ) + SET (WITH_COMMON_API_GEN ON CACHE INTERNAL "hide this!" FORCE) + +IF (WITH_PULSE_ROUTING_PLUGIN) + SET (WITH_DBUS_WRAPPER ON CACHE INTERNAL "hide this!" FORCE) + SET (WITH_CAPI_WRAPPER OFF CACHE INTERNAL "hide this!" FORCE) +ENDIF (WITH_PULSE_ROUTING_PLUGIN) IF (WITH_ENABLED_IPC STREQUAL "DBUS") SET (WITH_DBUS_WRAPPER ON CACHE INTERNAL "hide this!" FORCE) @@ -242,12 +250,16 @@ if(WITH_PLUGIN_COMMAND) endif(WITH_PLUGIN_COMMAND) if(WITH_PLUGIN_ROUTING) - add_subdirectory (PluginRoutingInterfaceAsync) - if(WITH_DBUS_WRAPPER) - add_subdirectory (PluginRoutingInterfaceDbus) - elseif(WITH_CAPI_WRAPPER) - add_subdirectory (PluginRoutingInterfaceCAPI) - endif() + if (WITH_PULSE_ROUTING_PLUGIN) + add_subdirectory (PluginRoutingInterfacePulse) + else () + add_subdirectory (PluginRoutingInterfaceAsync) + if(WITH_DBUS_WRAPPER) + add_subdirectory (PluginRoutingInterfaceDbus) + elseif(WITH_CAPI_WRAPPER) + add_subdirectory (PluginRoutingInterfaceCAPI) + endif() + endif() endif(WITH_PLUGIN_ROUTING) if(WITH_PLUGIN_CONTROL) -- cgit v1.2.1