mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-02 22:25:17 +00:00
make symlinks to replacement libs for uninstalled script
This commit is contained in:
parent
ded3a2a58f
commit
bac6bf090c
|
@ -250,4 +250,5 @@ if get_option('man')
|
|||
endif
|
||||
|
||||
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
|
||||
|
||||
while getopts ":b:" opt; do
|
||||
while getopts ":b:v:" opt; do
|
||||
case ${opt} in
|
||||
b)
|
||||
BUILDDIR=${OPTARG}
|
||||
;;
|
||||
v)
|
||||
VERSION=${OPTARG}
|
||||
;;
|
||||
\?)
|
||||
echo "Invalid option: -${OPTARG}"
|
||||
exit -1
|
||||
|
@ -18,6 +21,12 @@ while getopts ":b:" opt; do
|
|||
esac
|
||||
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
|
||||
BUILDDIR=${PWD}/build
|
||||
echo "Using default build directory: ${BUILDDIR}"
|
||||
|
|
Loading…
Reference in a new issue