Skip to content
Snippets Groups Projects
Commit 5efb46a3 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

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.
parent 272022b8
No related branches found
No related tags found
No related merge requests found
if get_option('wpipc').disabled()
wpipc_dep = disabler()
subdir_done()
endif
wpipc_lib_sources = files(
'utils.c',
'protocol.c',
......
......@@ -19,3 +19,5 @@ option('systemd-system-unit-dir',
option('systemd-user-unit-dir',
type : 'string',
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],
)
shared_library(
'wireplumber-module-ipc',
[
'module-ipc.c',
],
c_args : [common_c_args, '-DG_LOG_DOMAIN="m-ipc"'],
install : true,
install_dir : wireplumber_module_dir,
dependencies : [wp_dep, pipewire_dep, wpipc_dep],
)
if wpipc_dep.found()
shared_library(
'wireplumber-module-ipc',
[
'module-ipc.c',
],
c_args : [common_c_args, '-DG_LOG_DOMAIN="m-ipc"'],
install : true,
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],
)
executable('wpipc-client',
'wpipc-client.c',
c_args : [
'-D_GNU_SOURCE',
'-DG_LOG_USE_STRUCTURED',
'-DG_LOG_DOMAIN="wpipc-client"',
],
install: false,
dependencies : [wpipc_dep],
)
if wpipc_dep.found()
executable('wpipc-client',
'wpipc-client.c',
c_args : [
'-D_GNU_SOURCE',
'-DG_LOG_USE_STRUCTURED',
'-DG_LOG_DOMAIN="wpipc-client"',
],
install: false,
dependencies : [wpipc_dep],
)
endif
subdir('wp')
subdir('wplua')
subdir('wpipc')
subdir('wpipc', if_found: wpipc_dep)
subdir('modules')
subdir('examples')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment