mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
meson: Add pulsedspdir option
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
parent
adef9a4421
commit
13202eb9ed
3 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue