mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson: Add an uninstalled target and script
This makes it easier to run PipeWire from the build environment
This commit is contained in:
parent
456c01afbc
commit
dcfe1ac613
2 changed files with 40 additions and 0 deletions
37
pw-uninstalled.sh
Executable file
37
pw-uninstalled.sh
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
while getopts ":b:" opt; do
|
||||
case ${opt} in
|
||||
b)
|
||||
BUILDDIR=${OPTARG}
|
||||
;;
|
||||
\?)
|
||||
echo "Invalid option: -${OPTARG}"
|
||||
exit -1
|
||||
;;
|
||||
:)
|
||||
echo "Option -${OPTARG} requires an argument"
|
||||
exit -1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ -z "${BUILDDIR}" ]; then
|
||||
BUILDDIR=${PWD}/build
|
||||
echo "Using default build directory: ${BUILDDIR}"
|
||||
fi
|
||||
|
||||
if [ ! -d ${BUILDDIR} ]; then
|
||||
echo "Invalid build directory: ${BUILDDIR}"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
export PIPEWIRE_CONFIG_FILE="${BUILDDIR}/src/daemon/pipewire.conf"
|
||||
export SPA_PLUGIN_DIR="${BUILDDIR}/spa/plugins"
|
||||
export PIPEWIRE_MODULE_DIR="${BUILDDIR}/src/modules"
|
||||
export PATH="${BUILDDIR}/src/daemon:${PATH}"
|
||||
|
||||
# FIXME: find a nice, shell-neutral way to specify a prompt
|
||||
${SHELL}
|
||||
Loading…
Add table
Add a link
Reference in a new issue