|
|
@@ -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 ;;
|