mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
autogen.sh: Check for meson
If meson is not installed, at least an error message should be printed. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
This commit is contained in:
parent
62afada593
commit
768b082834
1 changed files with 12 additions and 1 deletions
13
autogen.sh
13
autogen.sh
|
|
@ -17,6 +17,17 @@
|
||||||
|
|
||||||
# Only there to make jhbuild happy
|
# Only there to make jhbuild happy
|
||||||
|
|
||||||
|
if [ -z $MESON ]; then
|
||||||
|
MESON=`which meson`
|
||||||
|
fi
|
||||||
|
if [ -z $MESON ]; then
|
||||||
|
echo "error: Meson not found."
|
||||||
|
echo "Install meson to configure and build Pipewire. If meson" \
|
||||||
|
"is already installed, set the environment variable MESON" \
|
||||||
|
"to the binary's path."
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
meson setup "$@" build # use 'autogen.sh --reconfigure' to update
|
$MESON setup "$@" build # use 'autogen.sh --reconfigure' to update
|
||||||
ln -sf build/Makefile Makefile
|
ln -sf build/Makefile Makefile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue