make symlinks to replacement libs for uninstalled script

This commit is contained in:
Wim Taymans 2020-01-16 13:26:47 +01:00
parent ded3a2a58f
commit bac6bf090c
2 changed files with 12 additions and 2 deletions

View file

@ -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)])

View file

@ -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}"