mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -05:00
module-spa: make separate monitor and node module
Make it possible to load monitors and nodes separately by specifying the plugin and factory of the node/monitor to load. Add argument parsing for properties and configure them in the node when possible.
This commit is contained in:
parent
4a6b1b42bc
commit
bc22c58435
8 changed files with 229 additions and 154 deletions
|
|
@ -1,20 +1,20 @@
|
|||
pipewire_module_spa_headers = [
|
||||
'spa-node.h',
|
||||
'spa-monitor.h',
|
||||
]
|
||||
|
||||
pipewire_module_spa_sources = [
|
||||
'module.c',
|
||||
'spa-node.c',
|
||||
'spa-monitor.c',
|
||||
]
|
||||
|
||||
pipewire_module_spa_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
'-D_GNU_SOURCE',
|
||||
]
|
||||
|
||||
pipewire_module_spa = shared_library('pipewire-module-spa', pipewire_module_spa_sources,
|
||||
pipewire_module_spa_monitor = shared_library('pipewire-module-spa-monitor',
|
||||
[ 'module-monitor.c', 'spa-monitor.c' ],
|
||||
c_args : pipewire_module_spa_c_args,
|
||||
include_directories : [configinc, spa_inc],
|
||||
link_with : spalib,
|
||||
install : true,
|
||||
install_dir : '@0@/pipewire-0.1'.format(get_option('libdir')),
|
||||
dependencies : [mathlib, dl_lib, pipewire_dep, pipewirecore_dep],
|
||||
)
|
||||
|
||||
pipewire_module_spa_node = shared_library('pipewire-module-spa-node',
|
||||
[ 'module-node.c', 'spa-node.c' ],
|
||||
c_args : pipewire_module_spa_c_args,
|
||||
include_directories : [configinc, spa_inc],
|
||||
link_with : spalib,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue