meson: Enable oss module and padsp util

Regarding the module:

This is unlike the autotools where liboss-util is built as a library,
here we build everything in the oss module, as apparently there's no
other consumer for liboss-util.

Regarding padsp:

Setting the install mode for padsp requires meson 0.47, so instead we
set padsp.in as executable in the git repository (which is what glib
does for gdbus-codegen btw).

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-09-27 15:39:21 +07:00 committed by Arun Raghavan
parent 0d6ea15eea
commit 5b0a1df228
4 changed files with 36 additions and 1 deletions

View file

@ -65,3 +65,27 @@ executable('pax11publish',
dependencies : [x11_dep],
c_args : pa_c_args,
)
if cc.has_header('sys/soundcard.h')
libpulsecommon_sources = [
'padsp.c',
]
libpulsedsp = shared_library('pulsedsp',
libpulsecommon_sources,
install: true,
include_directories : [configinc, topinc],
link_with : [libpulsecommon, libpulse],
link_args : ['-ldl'],
dependencies: [thread_dep],
c_args : [pa_c_args, '-Wno-nonnull-compare']
)
configure_file(
input : 'padsp.in',
output : 'padsp',
configuration : cdata,
install : true,
install_dir : join_paths(prefix, get_option('bindir')),
)
endif