mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson.build: Install conf file under ${sysconfdir}
Base conf file path on sysconfdir. sysconfdir can be specified with an absolute or relative path. To ensure PINOS_CONFIG_DIR is set correctly, use join_paths() to prepend prefix when sysconfdir is relative. Meson added support for sysconfdir in version 0.34.0 and join_paths() in version 0.36.0.
This commit is contained in:
parent
04ffc679fc
commit
740125a12e
2 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
project('pinos', 'c',
|
||||
version : '0.0.1.1',
|
||||
meson_version : '>= 0.33.0',
|
||||
meson_version : '>= 0.36.0',
|
||||
default_options : [ 'warning_level=1',
|
||||
'c_std=gnu99',
|
||||
'buildtype=debugoptimized' ])
|
||||
|
|
@ -50,7 +50,7 @@ cdata.set('PACKAGE_TARNAME', '"pinos"')
|
|||
cdata.set('PACKAGE_URL', '""')
|
||||
cdata.set('PACKAGE_VERSION', '"@0@"'.format(pinos_version))
|
||||
cdata.set('MODULEDIR', '"@0@/@1@/pinos-@2@"'.format(get_option('prefix'),get_option('libdir'),apiversion))
|
||||
cdata.set('PINOS_CONFIG_DIR', '"@0@/etc/pinos"'.format(get_option('prefix')))
|
||||
cdata.set('PINOS_CONFIG_DIR', '"@0@/pinos"'.format(join_paths(get_option('prefix'), get_option('sysconfdir'))))
|
||||
cdata.set('VERSION', '"@0@"'.format(pinos_version))
|
||||
# FIXME: --with-memory-alignment],[8,N,malloc,pagesize (default is 32)]) option
|
||||
cdata.set('MEMORY_ALIGNMENT_MALLOC', 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue