mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
make symlinks to replacement libs for uninstalled script
This commit is contained in:
parent
ded3a2a58f
commit
bac6bf090c
2 changed files with 12 additions and 2 deletions
|
|
@ -250,4 +250,5 @@ if get_option('man')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
setenv = find_program('pw-uninstalled.sh')
|
setenv = find_program('pw-uninstalled.sh')
|
||||||
run_target('uninstalled', command : [setenv, '-b@0@'.format(meson.build_root())])
|
run_target('uninstalled', command : [setenv,
|
||||||
|
'-b@0@'.format(meson.build_root()), '-v@0@'.format(pipewire_version)])
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,14 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
while getopts ":b:" opt; do
|
while getopts ":b:v:" opt; do
|
||||||
case ${opt} in
|
case ${opt} in
|
||||||
b)
|
b)
|
||||||
BUILDDIR=${OPTARG}
|
BUILDDIR=${OPTARG}
|
||||||
;;
|
;;
|
||||||
|
v)
|
||||||
|
VERSION=${OPTARG}
|
||||||
|
;;
|
||||||
\?)
|
\?)
|
||||||
echo "Invalid option: -${OPTARG}"
|
echo "Invalid option: -${OPTARG}"
|
||||||
exit -1
|
exit -1
|
||||||
|
|
@ -18,6 +21,12 @@ while getopts ":b:" opt; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ ! -z "${VERSION}" ]; then
|
||||||
|
ln -frs ${BUILDDIR}/pipewire-pulseaudio/src/libpulse-pw.so.${VERSION} ${BUILDDIR}/pipewire-pulseaudio/src/libpulse.so.0
|
||||||
|
ln -frs ${BUILDDIR}/pipewire-pulseaudio/src/libpulse-mainloop-glib-pw.so.${VERSION} ${BUILDDIR}/pipewire-pulseaudio/src/libpulse-mainloop-glib.so.0
|
||||||
|
ln -frs ${BUILDDIR}/pipewire-jack/src/libjack-pw.so.${VERSION} ${BUILDDIR}/pipewire-jack/src/libjack.so.0
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "${BUILDDIR}" ]; then
|
if [ -z "${BUILDDIR}" ]; then
|
||||||
BUILDDIR=${PWD}/build
|
BUILDDIR=${PWD}/build
|
||||||
echo "Using default build directory: ${BUILDDIR}"
|
echo "Using default build directory: ${BUILDDIR}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue