meson: Add pulsedspdir option

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-09 10:26:57 +07:00 committed by Arun Raghavan
parent adef9a4421
commit 13202eb9ed
3 changed files with 10 additions and 1 deletions

View file

@ -33,6 +33,11 @@ datadir = join_paths(prefix, get_option('datadir'))
localstatedir = join_paths(prefix, get_option('localstatedir'))
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
pulsedspdir = get_option('pulsedspdir')
if pulsedspdir == ''
join_paths(prefix, get_option('libdir'), 'pulseaudio')
endif
cc = meson.get_compiler('c')
cdata = configuration_data()
@ -238,7 +243,7 @@ cdata.set('DISABLE_ORC', 1)
if cc.has_header('sys/soundcard.h')
cdata.set('HAVE_OSS_OUTPUT', 1)
cdata.set('HAVE_OSS_WRAPPER', 1)
cdata.set_quoted('PULSEDSP_LOCATION', join_paths(prefix, get_option('libdir'), 'pulseaudio'))
cdata.set_quoted('PULSEDSP_LOCATION', pulsedspdir)
endif
# X11 deps, we don't define any HAVE_XXX for these one

View file

@ -11,3 +11,6 @@ option('database',
type : 'combo', value : 'tdb',
choices : [ 'gdbm', 'tdb', 'simple' ],
description : 'Database backend')
option('pulsedspdir',
type : 'string',
description : 'Specify location where OSS wrapper will be installed')

View file

@ -69,6 +69,7 @@ if cc.has_header('sys/soundcard.h')
libpulsedsp = shared_library('pulsedsp',
libpulsecommon_sources,
install: true,
install_dir : pulsedspdir,
include_directories : [configinc, topinc],
link_with : [libpulsecommon, libpulse],
link_args : ['-ldl'],