mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
build-sys: meson: fix meson dist version
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/516>
This commit is contained in:
parent
f4bce0bb98
commit
a82e019de9
3 changed files with 12 additions and 0 deletions
|
|
@ -101,8 +101,10 @@ build-meson:
|
||||||
- meson build
|
- meson build
|
||||||
- cd build
|
- cd build
|
||||||
- ninja
|
- ninja
|
||||||
|
- ulimit -c 0 # don't dump core files on tests that are supposed to assert
|
||||||
- ninja test
|
- ninja test
|
||||||
- ninja test-daemon
|
- ninja test-daemon
|
||||||
|
- ninja dist
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- build/
|
- build/
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@ project('pulseaudio', 'c', 'cpp',
|
||||||
default_options : [ 'c_std=gnu11', 'cpp_std=c++11' ]
|
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()
|
pa_version_str = meson.project_version()
|
||||||
# For tarballs, the first split will do nothing, but for builds in git, we
|
# 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
|
# split out suffixes when there are commits since the last tag
|
||||||
|
|
|
||||||
8
scripts/save-tarball-version.sh
Executable file
8
scripts/save-tarball-version.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "x${1}" == "x" ]; then
|
||||||
|
echo "Package version must be specified to generate tarball version"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "${1}" > "$MESON_DIST_ROOT/.tarball-version"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue