[vlc-devel] [PATCH 3/4] package/win32: build.sh: add an option to build documentation samples
Steve Lhomme
robux4 at ycbcr.xyz
Fri Feb 26 15:17:54 UTC 2021
---
extras/package/win32/build.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh
index dbc458eee20..3c2121c2898 100755
--- a/extras/package/win32/build.sh
+++ b/extras/package/win32/build.sh
@@ -35,11 +35,12 @@ OPTIONS:
-w Restrict to Windows Store APIs
-z Build without GUI (libvlc only)
-o <path> Install the built binaries in the absolute path
+ -m Build documentation sample apps (off)
EOF
}
ARCH="x86_64"
-while getopts "hra:pcli:sb:dD:xuwzo:" OPTION
+while getopts "hra:pcli:sb:dD:xuwzo:m" OPTION
do
case $OPTION in
h)
@@ -93,6 +94,9 @@ do
o)
INSTALL_PATH=$OPTARG
;;
+ m)
+ BUILD_SAMPLES="yes"
+ ;;
esac
done
shift $(($OPTIND - 1))
@@ -376,6 +380,9 @@ fi
if [ ! -z "$INSTALL_PATH" ]; then
CONFIGFLAGS="$CONFIGFLAGS --prefix=$INSTALL_PATH"
fi
+if [ ! -z "$BUILD_SAMPLES" ]; then
+ CONFIGFLAGS="$CONFIGFLAGS --enable-doc-samples"
+fi
${SCRIPT_PATH}/configure.sh --host=$TRIPLET --with-contrib=../contrib/$CONTRIB_PREFIX $CONFIGFLAGS
--
2.29.2
More information about the vlc-devel
mailing list