mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -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
37
src/modules/gsettings/meson.build
Normal file
37
src/modules/gsettings/meson.build
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# GSettings helper
|
||||
|
||||
gsettings_helper_sources = [
|
||||
'gsettings-helper.c',
|
||||
]
|
||||
|
||||
gsettings_helper = executable('gsettings-helper',
|
||||
gsettings_helper_sources,
|
||||
c_args : pa_c_args,
|
||||
include_directories : [configinc, topinc],
|
||||
link_with : [libpulsecommon, libpulse],
|
||||
dependencies : [gio_dep],
|
||||
install_dir : pulselibexecdir,
|
||||
install : true,
|
||||
)
|
||||
|
||||
# GSettings schemas
|
||||
|
||||
compile_schemas = find_program('glib-compile-schemas', required : false)
|
||||
if compile_schemas.found()
|
||||
test('Validate schema files in ' + meson.current_source_dir(),
|
||||
compile_schemas,
|
||||
args: ['--strict', '--dry-run', meson.current_source_dir()]
|
||||
)
|
||||
endif
|
||||
|
||||
install_data('org.freedesktop.pulseaudio.gschema.xml',
|
||||
install_dir : join_paths(datadir, 'glib-2.0', 'schemas')
|
||||
)
|
||||
|
||||
meson.add_install_script('post-install.sh', datadir)
|
||||
|
||||
# Conversion from GConf to GSettings
|
||||
|
||||
install_data('pulseaudio.convert',
|
||||
install_dir : join_paths(datadir, 'GConf', 'gsettings')
|
||||
)
|
||||
9
src/modules/gsettings/post-install.sh
Executable file
9
src/modules/gsettings/post-install.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
DATADIR="$1"
|
||||
|
||||
echo "Compiling GSettings schemas..."
|
||||
glib-compile-schemas "$DATADIR/glib-2.0/schemas"
|
||||
Loading…
Add table
Add a link
Reference in a new issue