mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-15 08:56:34 -05:00
meson: Add optional GSettings support
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
parent
639c54546d
commit
35bd2e70f9
5 changed files with 66 additions and 0 deletions
|
|
@ -39,10 +39,13 @@ assert(prefix.startswith('/'), 'Prefix is not absolute: "@0@"'.format(prefix))
|
|||
|
||||
bindir = join_paths(prefix, get_option('bindir'))
|
||||
libdir = join_paths(prefix, get_option('libdir'))
|
||||
libexecdir = join_paths(prefix, get_option('libexecdir'))
|
||||
datadir = join_paths(prefix, get_option('datadir'))
|
||||
localstatedir = join_paths(prefix, get_option('localstatedir'))
|
||||
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
|
||||
|
||||
pulselibexecdir = join_paths(libexecdir, 'pulse')
|
||||
|
||||
pulsedspdir = get_option('pulsedspdir')
|
||||
if pulsedspdir == ''
|
||||
join_paths(libdir, 'pulseaudio')
|
||||
|
|
@ -230,6 +233,11 @@ if dbus_dep.found()
|
|||
cdata.set('HAVE_DBUS', 1)
|
||||
endif
|
||||
|
||||
gio_dep = dependency('gio-2.0', version : '>= 2.26.0', required : get_option('gsettings'))
|
||||
if gio_dep.found()
|
||||
cdata.set('HAVE_GSETTINGS', 1)
|
||||
endif
|
||||
|
||||
glib_dep = dependency('glib-2.0', version : '>= 2.4.0', required: get_option('glib'))
|
||||
if glib_dep.found()
|
||||
cdata.set('HAVE_GLIB', 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue