build-sys: meson: Generate version.h

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-09-15 22:10:43 +07:00
parent 3e36c28e23
commit 012dfc4631
2 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,10 @@ cdata.set_quoted('PACKAGE', 'pulseaudio')
cdata.set_quoted('PACKAGE_NAME', 'pulseaudio') cdata.set_quoted('PACKAGE_NAME', 'pulseaudio')
cdata.set_quoted('PACKAGE_VERSION', pa_version) cdata.set_quoted('PACKAGE_VERSION', pa_version)
cdata.set_quoted('CANONICAL_HOST', host_machine.cpu()) cdata.set_quoted('CANONICAL_HOST', host_machine.cpu())
cdata.set('PA_MAJOR', pa_version_major)
cdata.set('PA_MINOR', pa_version_minor)
cdata.set('PA_API_VERSION', pa_api_version)
cdata.set('PA_PROTOCOL_VERSION', pa_protocol_version)
cdata.set_quoted('PA_MACHINE_ID', join_paths(sysconfdir, 'machine-id')) cdata.set_quoted('PA_MACHINE_ID', join_paths(sysconfdir, 'machine-id'))
cdata.set_quoted('PA_MACHINE_ID_FALLBACK', join_paths(localstatedir, 'lib', 'dbus', 'machine-id')) cdata.set_quoted('PA_MACHINE_ID_FALLBACK', join_paths(localstatedir, 'lib', 'dbus', 'machine-id'))
cdata.set_quoted('PA_SRCDIR', join_paths(meson.current_source_dir(), 'src')) cdata.set_quoted('PA_SRCDIR', join_paths(meson.current_source_dir(), 'src'))

View File

@ -1,3 +1,5 @@
configure_file(input : 'version.h.in', output : 'version.h', configuration : cdata)
libpulse_sources = [ libpulse_sources = [
'channelmap.c', 'channelmap.c',
'context.c', 'context.c',