mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
conf: move config file to datadir
Install the config file in $PREFIX/share/pipewire so that a factory reset can be done by wiping /etc and /home. Add this new directory to the search path. System wide config can still be done in /etc, user config in $HOME/.config/pipewire/ by copying files from $PREFIX/share/pipewire Fixes #1191
This commit is contained in:
parent
d9240bb766
commit
1609126bcd
6 changed files with 25 additions and 15 deletions
21
meson.build
21
meson.build
|
|
@ -37,6 +37,7 @@ pipewire_localedir = prefix / get_option('localedir')
|
|||
pipewire_sysconfdir = prefix / get_option('sysconfdir')
|
||||
|
||||
pipewire_configdir = pipewire_sysconfdir / 'pipewire'
|
||||
pipewire_confdatadir = pipewire_datadir / 'pipewire'
|
||||
modules_install_dir = pipewire_libdir / pipewire_name
|
||||
|
||||
if host_machine.system() == 'linux'
|
||||
|
|
@ -182,11 +183,11 @@ cdata.set('PIPEWIRE_VERSION_MAJOR', pipewire_version_major)
|
|||
cdata.set('PIPEWIRE_VERSION_MINOR', pipewire_version_minor)
|
||||
cdata.set('PIPEWIRE_VERSION_MICRO', pipewire_version_micro)
|
||||
cdata.set('PIPEWIRE_VERSION_NANO', pipewire_version_nano)
|
||||
cdata.set('PIPEWIRE_API_VERSION', '"@0@"'.format(apiversion))
|
||||
cdata.set('PIPEWIRE_DATADIR', '"@0@"'.format(pipewire_datadir))
|
||||
cdata.set('LOCALEDIR', '"@0@"'.format(pipewire_localedir))
|
||||
cdata.set('LIBDIR', '"@0@"'.format(pipewire_libdir))
|
||||
cdata.set('GETTEXT_PACKAGE', '"@0@"'.format(meson.project_name()))
|
||||
cdata.set_quoted('PIPEWIRE_API_VERSION', apiversion)
|
||||
cdata.set_quoted('PIPEWIRE_CONFDATADIR', pipewire_confdatadir)
|
||||
cdata.set_quoted('LOCALEDIR', pipewire_localedir)
|
||||
cdata.set_quoted('LIBDIR', pipewire_libdir)
|
||||
cdata.set_quoted('GETTEXT_PACKAGE', meson.project_name())
|
||||
cdata.set('PIPEWIRE_LICENSE', '"MIT"')
|
||||
cdata.set('PIPEWIRE_PACKAGE_ORIGIN', '"Unknown package origin"')
|
||||
cdata.set('PIPEWIRE_PACKAGE_NAME', '"PipeWire source release"')
|
||||
|
|
@ -195,11 +196,11 @@ cdata.set('PACKAGE_NAME', '"PipeWire"')
|
|||
cdata.set('PACKAGE_STRING', '"PipeWire @0@"'.format(pipewire_version))
|
||||
cdata.set('PACKAGE_TARNAME', '"pipewire"')
|
||||
cdata.set('PACKAGE_URL', '"http://pipewire.org"')
|
||||
cdata.set('PACKAGE_VERSION', '"@0@"'.format(pipewire_version))
|
||||
cdata.set('MODULEDIR', '"@0@"'.format(modules_install_dir))
|
||||
cdata.set('PIPEWIRE_CONFIG_DIR', '"@0@"'.format(pipewire_configdir))
|
||||
cdata.set('VERSION', '"@0@"'.format(pipewire_version))
|
||||
cdata.set('PLUGINDIR', '"@0@"'.format(spa_plugindir))
|
||||
cdata.set_quoted('PACKAGE_VERSION', pipewire_version)
|
||||
cdata.set_quoted('MODULEDIR', modules_install_dir)
|
||||
cdata.set_quoted('PIPEWIRE_CONFIG_DIR', pipewire_configdir)
|
||||
cdata.set_quoted('VERSION', pipewire_version)
|
||||
cdata.set_quoted('PLUGINDIR', spa_plugindir)
|
||||
# FIXME: --with-memory-alignment],[8,N,malloc,pagesize (default is 32)]) option
|
||||
cdata.set('MEMORY_ALIGNMENT_MALLOC', 1)
|
||||
cdata.set_quoted('PA_ALSA_PATHS_DIR', alsadatadir / 'paths')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue