mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
meson: Process and install files: default.pa, system.pa, daemon.conf, client.conf
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
parent
bf3fbd5a8a
commit
12f0e9232f
3 changed files with 78 additions and 1 deletions
|
|
@ -45,6 +45,7 @@ localstatedir = join_paths(prefix, get_option('localstatedir'))
|
|||
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
|
||||
|
||||
pulselibexecdir = join_paths(libexecdir, 'pulse')
|
||||
pulsesysconfdir = join_paths(sysconfdir, 'pulse')
|
||||
|
||||
pulsedspdir = get_option('pulsedspdir')
|
||||
if pulsedspdir == ''
|
||||
|
|
@ -69,7 +70,7 @@ cdata.set_quoted('PA_MACHINE_ID_FALLBACK', join_paths(localstatedir, 'lib', 'dbu
|
|||
cdata.set_quoted('PA_SRCDIR', join_paths(meson.current_source_dir(), 'src'))
|
||||
cdata.set_quoted('PA_BUILDDIR', meson.current_build_dir())
|
||||
cdata.set_quoted('PA_SOEXT', '.so')
|
||||
cdata.set_quoted('PA_DEFAULT_CONFIG_DIR', join_paths(sysconfdir, 'pulse'))
|
||||
cdata.set_quoted('PA_DEFAULT_CONFIG_DIR', pulsesysconfdir)
|
||||
cdata.set_quoted('PA_BINARY', join_paths(bindir, 'pulseaudio'))
|
||||
cdata.set_quoted('PA_SYSTEM_RUNTIME_PATH', join_paths(localstatedir, 'run', 'pulse'))
|
||||
cdata.set_quoted('PA_SYSTEM_CONFIG_PATH', join_paths(localstatedir, 'lib', 'pulse'))
|
||||
|
|
|
|||
|
|
@ -45,3 +45,67 @@ if x11_dep.found()
|
|||
install_dir : bindir,
|
||||
)
|
||||
endif
|
||||
|
||||
# Configuration files
|
||||
|
||||
m4 = find_program('m4', required: true)
|
||||
|
||||
daemon_conf = configuration_data()
|
||||
daemon_conf.merge_from(cdata)
|
||||
daemon_conf.set('PA_DEFAULT_CONFIG_DIR', cdata.get_unquoted('PA_DEFAULT_CONFIG_DIR'))
|
||||
|
||||
daemon_template_file = configure_file(
|
||||
input : 'daemon.conf.in',
|
||||
output : 'daemon.conf.tmp',
|
||||
configuration : daemon_conf,
|
||||
)
|
||||
|
||||
custom_target('daemon.conf',
|
||||
input : daemon_template_file,
|
||||
output : 'daemon.conf',
|
||||
capture : true,
|
||||
command : [m4, '@INPUT@'],
|
||||
install : true,
|
||||
install_dir : pulsesysconfdir,
|
||||
)
|
||||
|
||||
default_conf = configuration_data()
|
||||
default_conf.merge_from(cdata)
|
||||
default_conf.set('PA_BINARY', cdata.get_unquoted('PA_BINARY'))
|
||||
default_conf.set('PA_SOEXT', cdata.get_unquoted('PA_SOEXT'))
|
||||
# TODO: OS_IS_WIN32, HAVE_MKFIFO, HAVE_AF_UNIX
|
||||
|
||||
default_template_file = configure_file(
|
||||
input : 'default.pa.in',
|
||||
output : 'default.pa.tmp',
|
||||
configuration : default_conf,
|
||||
)
|
||||
|
||||
custom_target('default.pa',
|
||||
input : default_template_file,
|
||||
output : 'default.pa',
|
||||
capture : true,
|
||||
command : [m4, '@INPUT@'],
|
||||
install : true,
|
||||
install_dir : pulsesysconfdir,
|
||||
)
|
||||
|
||||
system_conf = configuration_data()
|
||||
system_conf.merge_from(cdata)
|
||||
system_conf.set('PA_BINARY', cdata.get_unquoted('PA_BINARY'))
|
||||
system_conf.set('PA_SOEXT', cdata.get_unquoted('PA_SOEXT'))
|
||||
|
||||
system_template_file = configure_file(
|
||||
input : 'system.pa.in',
|
||||
output : 'system.pa.tmp',
|
||||
configuration : system_conf,
|
||||
)
|
||||
|
||||
custom_target('system.pa',
|
||||
input : system_template_file,
|
||||
output : 'system.pa',
|
||||
capture : true,
|
||||
command : [m4, '@INPUT@'],
|
||||
install : true,
|
||||
install_dir : pulsesysconfdir,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -90,3 +90,15 @@ if glib_dep.found()
|
|||
install : true,
|
||||
)
|
||||
endif
|
||||
|
||||
# Configuration files
|
||||
|
||||
client_conf = configuration_data()
|
||||
client_conf.set('PA_BINARY', cdata.get_unquoted('PA_BINARY'))
|
||||
|
||||
client_conf_file = configure_file(
|
||||
input : 'client.conf.in',
|
||||
output : 'client.conf',
|
||||
configuration : client_conf,
|
||||
install_dir : pulsesysconfdir,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue