mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -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'))
|
localstatedir = join_paths(prefix, get_option('localstatedir'))
|
||||||
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
|
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')
|
cc = meson.get_compiler('c')
|
||||||
|
|
||||||
cdata = configuration_data()
|
cdata = configuration_data()
|
||||||
|
|
@ -238,7 +243,7 @@ cdata.set('DISABLE_ORC', 1)
|
||||||
if cc.has_header('sys/soundcard.h')
|
if cc.has_header('sys/soundcard.h')
|
||||||
cdata.set('HAVE_OSS_OUTPUT', 1)
|
cdata.set('HAVE_OSS_OUTPUT', 1)
|
||||||
cdata.set('HAVE_OSS_WRAPPER', 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
|
endif
|
||||||
|
|
||||||
# X11 deps, we don't define any HAVE_XXX for these one
|
# X11 deps, we don't define any HAVE_XXX for these one
|
||||||
|
|
|
||||||
|
|
@ -11,3 +11,6 @@ option('database',
|
||||||
type : 'combo', value : 'tdb',
|
type : 'combo', value : 'tdb',
|
||||||
choices : [ 'gdbm', 'tdb', 'simple' ],
|
choices : [ 'gdbm', 'tdb', 'simple' ],
|
||||||
description : 'Database backend')
|
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',
|
libpulsedsp = shared_library('pulsedsp',
|
||||||
libpulsecommon_sources,
|
libpulsecommon_sources,
|
||||||
install: true,
|
install: true,
|
||||||
|
install_dir : pulsedspdir,
|
||||||
include_directories : [configinc, topinc],
|
include_directories : [configinc, topinc],
|
||||||
link_with : [libpulsecommon, libpulse],
|
link_with : [libpulsecommon, libpulse],
|
||||||
link_args : ['-ldl'],
|
link_args : ['-ldl'],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue