build-sys: meson: fix meson dist version

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/516>
This commit is contained in:
Igor V. Kovalenko 2021-03-02 08:22:22 +03:00 committed by PulseAudio Marge Bot
parent f4bce0bb98
commit a82e019de9
3 changed files with 12 additions and 0 deletions

View file

@ -4,6 +4,8 @@ project('pulseaudio', 'c', 'cpp',
default_options : [ 'c_std=gnu11', 'cpp_std=c++11' ]
)
meson.add_dist_script('scripts/save-tarball-version.sh', meson.project_version())
pa_version_str = meson.project_version()
# For tarballs, the first split will do nothing, but for builds in git, we
# split out suffixes when there are commits since the last tag