diff --git a/CI/freebsd/01_install_dependencies.sh b/CI/freebsd/01_install_dependencies.sh index 203ebbea5..bfd0252e7 100644 --- a/CI/freebsd/01_install_dependencies.sh +++ b/CI/freebsd/01_install_dependencies.sh @@ -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 diff --git a/CI/freebsd/02_build_obs.sh b/CI/freebsd/02_build_obs.sh index 162aff8e0..8563cefea 100644 --- a/CI/freebsd/02_build_obs.sh +++ b/CI/freebsd/02_build_obs.sh @@ -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 ;;