wireplumber/src/meson.build
Tom A. Wagner 7586d4d858 meson: Add options to configure whether to build daemon, tools and modules.
This adds three meson options to enable or disable building daemon, tools, and modules.

Building the daemon or tools depends on building the modules, and disabling modules without disabling
the other two will result in meson giving an appropriate error.

These new options will let users skip building and installing unneeded items when they are not needed,
e.g. when only using the C API in another application.
2022-11-23 10:06:11 +00:00

31 lines
577 B
Meson

if build_tools
subdir('tools')
endif
if build_daemon
subdir('systemd')
install_subdir('config',
install_dir: wireplumber_data_dir,
strip_directory : true
)
install_subdir('scripts',
install_dir: wireplumber_data_dir,
strip_directory : false
)
wp_sources = [
'main.c',
]
wireplumber = executable('wireplumber',
wp_sources,
c_args : [
'-D_GNU_SOURCE',
'-DG_LOG_USE_STRUCTURED',
'-DG_LOG_DOMAIN="wireplumber"',
],
install: true,
dependencies : [gobject_dep, gio_dep, wp_dep, pipewire_dep],
)
endif