meson: make wpipc optional and disabled by default
This is only intended to be used with specific embedded applications. There is no good reason to use it on a standard desktop environment.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
if get_option('wpipc').disabled()
|
||||||
|
wpipc_dep = disabler()
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
|
||||||
wpipc_lib_sources = files(
|
wpipc_lib_sources = files(
|
||||||
'utils.c',
|
'utils.c',
|
||||||
'protocol.c',
|
'protocol.c',
|
||||||
|
@@ -19,3 +19,5 @@ option('systemd-system-unit-dir',
|
|||||||
option('systemd-user-unit-dir',
|
option('systemd-user-unit-dir',
|
||||||
type : 'string',
|
type : 'string',
|
||||||
description : 'Directory for user systemd units')
|
description : 'Directory for user systemd units')
|
||||||
|
option('wpipc', type : 'feature', value : 'disabled',
|
||||||
|
description: 'Build the wpipc library and module-ipc')
|
||||||
|
@@ -177,13 +177,15 @@ shared_library(
|
|||||||
dependencies : [wp_dep, pipewire_dep, mathlib],
|
dependencies : [wp_dep, pipewire_dep, mathlib],
|
||||||
)
|
)
|
||||||
|
|
||||||
shared_library(
|
if wpipc_dep.found()
|
||||||
'wireplumber-module-ipc',
|
shared_library(
|
||||||
[
|
'wireplumber-module-ipc',
|
||||||
'module-ipc.c',
|
[
|
||||||
],
|
'module-ipc.c',
|
||||||
c_args : [common_c_args, '-DG_LOG_DOMAIN="m-ipc"'],
|
],
|
||||||
install : true,
|
c_args : [common_c_args, '-DG_LOG_DOMAIN="m-ipc"'],
|
||||||
install_dir : wireplumber_module_dir,
|
install : true,
|
||||||
dependencies : [wp_dep, pipewire_dep, wpipc_dep],
|
install_dir : wireplumber_module_dir,
|
||||||
)
|
dependencies : [wp_dep, pipewire_dep, wpipc_dep],
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
@@ -9,13 +9,15 @@ executable('audiotestsrc-play',
|
|||||||
dependencies : [giounix_dep, wp_dep, pipewire_dep],
|
dependencies : [giounix_dep, wp_dep, pipewire_dep],
|
||||||
)
|
)
|
||||||
|
|
||||||
executable('wpipc-client',
|
if wpipc_dep.found()
|
||||||
'wpipc-client.c',
|
executable('wpipc-client',
|
||||||
c_args : [
|
'wpipc-client.c',
|
||||||
'-D_GNU_SOURCE',
|
c_args : [
|
||||||
'-DG_LOG_USE_STRUCTURED',
|
'-D_GNU_SOURCE',
|
||||||
'-DG_LOG_DOMAIN="wpipc-client"',
|
'-DG_LOG_USE_STRUCTURED',
|
||||||
],
|
'-DG_LOG_DOMAIN="wpipc-client"',
|
||||||
install: false,
|
],
|
||||||
dependencies : [wpipc_dep],
|
install: false,
|
||||||
)
|
dependencies : [wpipc_dep],
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
subdir('wp')
|
subdir('wp')
|
||||||
subdir('wplua')
|
subdir('wplua')
|
||||||
subdir('wpipc')
|
subdir('wpipc', if_found: wpipc_dep)
|
||||||
subdir('modules')
|
subdir('modules')
|
||||||
subdir('examples')
|
subdir('examples')
|
||||||
|
Reference in New Issue
Block a user