chromium: enable WebRTC screen sharing via PipeWire
This commit is contained in:
parent
ef3c556ae9
commit
0d8d4862ce
|
@ -16,12 +16,13 @@ lib32disabled=yes
|
|||
nodebug=yes
|
||||
nopie=yes # contains tools that are not PIE, enables PIE itself
|
||||
|
||||
build_options="clang js_optimize vaapi pulseaudio sndio"
|
||||
build_options="clang js_optimize vaapi pulseaudio sndio pipewire"
|
||||
desc_option_clang="Use clang to build"
|
||||
desc_option_js_optimize="Optimize the JS used for Chromium's UI"
|
||||
desc_option_vaapi="Enable support for VA-API"
|
||||
desc_option_pulseaudio="Enable support for PulseAudio"
|
||||
desc_option_sndio="Enable support for sndio"
|
||||
desc_option_pipewire="Enable support for screen sharing for WebRTC via PipeWire"
|
||||
|
||||
hostmakedepends="$(vopt_if clang clang) python pkgconf perl gperf bison ninja nodejs hwids
|
||||
libatomic-devel libevent-devel libglib-devel $(vopt_if js_optimize openjdk)"
|
||||
|
@ -35,14 +36,14 @@ makedepends="libpng-devel gtk+-devel gtk+3-devel nss-devel pciutils-devel
|
|||
minizip-devel jsoncpp-devel zlib-devel libcap-devel libXdamage-devel
|
||||
re2-devel fontconfig-devel freetype-devel opus-devel
|
||||
ffmpeg-devel libva-devel python-setuptools xcb-proto
|
||||
$(vopt_if sndio sndio-devel)"
|
||||
$(vopt_if pipewire libpipewire0.2-devel) $(vopt_if sndio sndio-devel)"
|
||||
depends="libexif hwids desktop-file-utils hicolor-icon-theme xdg-utils"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
ppc64*-musl) makedepends+=" libucontext-devel" ;;
|
||||
esac
|
||||
|
||||
build_options_default="clang js_optimize vaapi pulseaudio"
|
||||
build_options_default="clang js_optimize vaapi pulseaudio pipewire"
|
||||
|
||||
post_patch() {
|
||||
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||
|
@ -196,6 +197,10 @@ do_configure() {
|
|||
"use_pulseaudio=$(vopt_if pulseaudio true false)"
|
||||
)
|
||||
|
||||
conf+=(
|
||||
"rtc_use_pipewire=$(vopt_if pipewire true false)"
|
||||
)
|
||||
|
||||
# Use explicit library dependencies instead of dlopen.
|
||||
# GN only has "link_pulseaudio", the other options used before are not available atm
|
||||
# linux_link_cups=true
|
||||
|
|
Loading…
Reference in New Issue