mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
add pw-jack and pw-pulse to set the library path
pw-pulse and pw-jack set the replacement library path correctly so that pulse and jack apps run on top of PipeWire.
This commit is contained in:
parent
293386c21a
commit
9f810d1bbc
4 changed files with 135 additions and 0 deletions
|
|
@ -18,6 +18,15 @@ if libjack_path == ''
|
||||||
libjack_path = join_paths(modules_install_dir, 'jack')
|
libjack_path = join_paths(modules_install_dir, 'jack')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
tools_config = configuration_data()
|
||||||
|
tools_config.set('LIBJACK_PATH', libjack_path)
|
||||||
|
|
||||||
|
configure_file(input : 'pw-jack.in',
|
||||||
|
output : 'pw-jack',
|
||||||
|
configuration : tools_config,
|
||||||
|
install: true,
|
||||||
|
install_dir : pipewire_bindir)
|
||||||
|
|
||||||
pipewire_jack = shared_library('jack',
|
pipewire_jack = shared_library('jack',
|
||||||
pipewire_jack_sources,
|
pipewire_jack_sources,
|
||||||
soversion : soversion,
|
soversion : soversion,
|
||||||
|
|
|
||||||
59
pipewire-jack/src/pw-jack.in
Executable file
59
pipewire-jack/src/pw-jack.in
Executable file
|
|
@ -0,0 +1,59 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# This file is part of PipeWire.
|
||||||
|
#
|
||||||
|
# Copyright © 2020 Wim Taymans
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
# copy of this software and associated documentation files (the "Software"),
|
||||||
|
# to deal in the Software without restriction, including without limitation
|
||||||
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
# and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
# Software is furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice (including the next
|
||||||
|
# paragraph) shall be included in all copies or substantial portions of the
|
||||||
|
# Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
# DEALINGS IN THE SOFTWARE.
|
||||||
|
#
|
||||||
|
while getopts 'hr:v' param ; do
|
||||||
|
case $param in
|
||||||
|
r)
|
||||||
|
PIPEWIRE_REMOTE="$OPTARG"
|
||||||
|
export PIPEWIRE_REMOTE
|
||||||
|
;;
|
||||||
|
v)
|
||||||
|
if [ x"$PIPEWIRE_DEBUG" = x ]; then
|
||||||
|
PIPEWIRE_DEBUG=3
|
||||||
|
else
|
||||||
|
PIPEWIRE_DEBUG=$(( $PIPEWIRE_DEBUG + 1 ))
|
||||||
|
fi
|
||||||
|
export PIPEWIRE_DEBUG
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "$0 - run JACK applications on PipeWire"
|
||||||
|
echo " "
|
||||||
|
echo "$0 [options] application [arguments]"
|
||||||
|
echo " "
|
||||||
|
echo "options:"
|
||||||
|
echo " -h show brief help"
|
||||||
|
echo " -r <remote> remote daemon name"
|
||||||
|
echo " -v verbose debug info"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
shift $(( $OPTIND - 1 ))
|
||||||
|
|
||||||
|
LD_LIBRARY_PATH=@LIBJACK_PATH@:$LD_LIBRARY_PATH
|
||||||
|
export LD_LIBRARY_PATH
|
||||||
|
|
||||||
|
exec "$@"
|
||||||
|
|
@ -53,6 +53,14 @@ if libpulse_path == ''
|
||||||
libpulse_path = join_paths(modules_install_dir, 'pulse')
|
libpulse_path = join_paths(modules_install_dir, 'pulse')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
tools_config = configuration_data()
|
||||||
|
tools_config.set('LIBPULSE_PATH', libpulse_path)
|
||||||
|
|
||||||
|
configure_file(input : 'pw-pulse.in',
|
||||||
|
output : 'pw-pulse',
|
||||||
|
configuration : tools_config,
|
||||||
|
install: true,
|
||||||
|
install_dir : pipewire_bindir)
|
||||||
|
|
||||||
pipewire_pulseaudio = shared_library('pulse',
|
pipewire_pulseaudio = shared_library('pulse',
|
||||||
pipewire_pulseaudio_sources,
|
pipewire_pulseaudio_sources,
|
||||||
|
|
|
||||||
59
pipewire-pulseaudio/src/pw-pulse.in
Executable file
59
pipewire-pulseaudio/src/pw-pulse.in
Executable file
|
|
@ -0,0 +1,59 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# This file is part of PipeWire.
|
||||||
|
#
|
||||||
|
# Copyright © 2020 Wim Taymans
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
# copy of this software and associated documentation files (the "Software"),
|
||||||
|
# to deal in the Software without restriction, including without limitation
|
||||||
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
# and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
# Software is furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice (including the next
|
||||||
|
# paragraph) shall be included in all copies or substantial portions of the
|
||||||
|
# Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
# DEALINGS IN THE SOFTWARE.
|
||||||
|
#
|
||||||
|
while getopts 'hr:v' param ; do
|
||||||
|
case $param in
|
||||||
|
r)
|
||||||
|
PIPEWIRE_REMOTE="$OPTARG"
|
||||||
|
export PIPEWIRE_REMOTE
|
||||||
|
;;
|
||||||
|
v)
|
||||||
|
if [ x"$PIPEWIRE_DEBUG" = x ]; then
|
||||||
|
PIPEWIRE_DEBUG=3
|
||||||
|
else
|
||||||
|
PIPEWIRE_DEBUG=$(( $PIPEWIRE_DEBUG + 1 ))
|
||||||
|
fi
|
||||||
|
export PIPEWIRE_DEBUG
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "$0 - run PulseAudio applications on PipeWire"
|
||||||
|
echo " "
|
||||||
|
echo "$0 [options] application [arguments]"
|
||||||
|
echo " "
|
||||||
|
echo "options:"
|
||||||
|
echo " -h show brief help"
|
||||||
|
echo " -r <remote> remote daemon name"
|
||||||
|
echo " -v verbose debug info"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
shift $(( $OPTIND - 1 ))
|
||||||
|
|
||||||
|
LD_LIBRARY_PATH=@LIBPULSE_PATH@:$LD_LIBRARY_PATH
|
||||||
|
export LD_LIBRARY_PATH
|
||||||
|
|
||||||
|
exec "$@"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue