mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
CI: Enable PipeWire on FreeBSD similar to Linux
This commit is contained in:
parent
0a257a71e8
commit
60d20d4618
@ -24,7 +24,11 @@ install_obs-deps() {
|
||||
status "Install OBS dependencies"
|
||||
trap "caught_error 'install_obs-deps'" ERR
|
||||
|
||||
sudo pkg install -U -y $@
|
||||
if [ -z "${DISABLE_PIPEWIRE}" ]; then
|
||||
sudo pkg install -U -y $@ pipewire
|
||||
else
|
||||
sudo pkg install -U -y $@
|
||||
fi
|
||||
}
|
||||
|
||||
install_qt-deps() {
|
||||
@ -79,6 +83,7 @@ print_usage() {
|
||||
"-h, --help : Print this help\n" \
|
||||
"-q, --quiet : Suppress most build process output\n" \
|
||||
"-v, --verbose : Enable more verbose build process output\n"
|
||||
"--disable-pipewire : Disable building with PipeWire support (default: off)\n"
|
||||
}
|
||||
|
||||
install-dependencies-main() {
|
||||
@ -88,6 +93,7 @@ install-dependencies-main() {
|
||||
-h | --help ) print_usage; exit 0 ;;
|
||||
-q | --quiet ) export QUIET=TRUE; shift ;;
|
||||
-v | --verbose ) export VERBOSE=TRUE; shift ;;
|
||||
--disable-pipewire ) DISABLE_PIPEWIRE=TRUE; shift ;;
|
||||
-- ) shift; break ;;
|
||||
* ) break ;;
|
||||
esac
|
||||
|
@ -48,10 +48,14 @@ _configure_obs() {
|
||||
PORTABLE_BUILD="ON"
|
||||
fi
|
||||
|
||||
if [ "${DISABLE_PIPEWIRE}" ]; then
|
||||
PIPEWIRE_OPTION="-DENABLE_PIPEWIRE=OFF"
|
||||
fi
|
||||
|
||||
cmake -S . -B ${BUILD_DIR} -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=${BUILD_CONFIG} \
|
||||
-DLINUX_PORTABLE=${PORTABLE_BUILD:-OFF} \
|
||||
-DENABLE_PIPEWIRE=OFF \
|
||||
${PIPEWIRE_OPTION} \
|
||||
${CCACHE_OPTIONS} \
|
||||
${TWITCH_OPTIONS} \
|
||||
${YOUTUBE_OPTIONS} \
|
||||
@ -96,6 +100,7 @@ print_usage() {
|
||||
"-q, --quiet : Suppress most build process output\n" \
|
||||
"-v, --verbose : Enable more verbose build process output\n" \
|
||||
"-p, --portable : Create portable build (default: off)\n" \
|
||||
"--disable-pipewire : Disable building with PipeWire support (default: off)\n" \
|
||||
"--build-dir : Specify alternative build directory (default: build)\n"
|
||||
}
|
||||
|
||||
@ -107,6 +112,7 @@ build-obs-main() {
|
||||
-q | --quiet ) export QUIET=TRUE; shift ;;
|
||||
-v | --verbose ) export VERBOSE=TRUE; shift ;;
|
||||
-p | --portable ) export PORTABLE=TRUE; shift ;;
|
||||
--disable-pipewire ) DISABLE_PIPEWIRE=TRUE; shift ;;
|
||||
--build-dir ) BUILD_DIR="${2}"; shift 2 ;;
|
||||
-- ) shift; break ;;
|
||||
* ) break ;;
|
||||
|
Loading…
Reference in New Issue
Block a user