mirror of https://code.videolan.org/videolan/vlc
package/win32: add an option to select the (lib)VLC license
Some contribs may be disabled depending on the license chosen. By default we build with GPLv3 compatibility. libvlc-only builds may want to restrict to LGPL v3 with ad-clause or LGPL v2.1 with ad-clause.
This commit is contained in:
parent
756bd8f250
commit
90bfcecd2e
|
@ -38,11 +38,15 @@ OPTIONS:
|
|||
-z Build without GUI (libvlc only)
|
||||
-o <path> Install the built binaries in the absolute path
|
||||
-m Build with Meson rather than autotools
|
||||
-g <g|l|a> Select the license of contribs
|
||||
g: GPLv3 (default)
|
||||
l: LGPLv3 + ad-clauses
|
||||
a: LGPLv2 + ad-clauses
|
||||
EOF
|
||||
}
|
||||
|
||||
ARCH="x86_64"
|
||||
while getopts "hra:pcli:W:sb:dD:xS:uwzo:m" OPTION
|
||||
while getopts "hra:pcli:W:sb:dD:xS:uwzo:mg:" OPTION
|
||||
do
|
||||
case $OPTION in
|
||||
r)
|
||||
|
@ -101,6 +105,9 @@ do
|
|||
m)
|
||||
BUILD_MESON="yes"
|
||||
;;
|
||||
g)
|
||||
LICENSE=$OPTARG
|
||||
;;
|
||||
h|*)
|
||||
usage
|
||||
exit 1
|
||||
|
@ -220,6 +227,23 @@ if [ ! -z "$WIXPATH" ]; then
|
|||
CONTRIBFLAGS="$CONTRIBFLAGS --enable-wix"
|
||||
fi
|
||||
|
||||
case $LICENSE in
|
||||
l)
|
||||
# LGPL v3 + ad-clauses
|
||||
CONTRIBFLAGS="$CONTRIBFLAGS --disable-gpl --enable-ad-clauses"
|
||||
CONFIGFLAGS="$CONFIGFLAGS --disable-a52 --enable-live555"
|
||||
;;
|
||||
a)
|
||||
# LGPL v2.1 + ad-clauses
|
||||
CONTRIBFLAGS="$CONTRIBFLAGS --disable-gpl --disable-gnuv3 --enable-ad-clauses"
|
||||
CONFIGFLAGS="$CONFIGFLAGS --disable-a52"
|
||||
;;
|
||||
g|*)
|
||||
# GPL v3
|
||||
CONFIGFLAGS="$CONFIGFLAGS --enable-live555"
|
||||
;;
|
||||
esac
|
||||
|
||||
export PATH="$PWD/contrib/$CONTRIB_PREFIX/bin":"$PATH"
|
||||
|
||||
if [ "$INTERACTIVE" = "yes" ]; then
|
||||
|
|
|
@ -9,7 +9,6 @@ OPTIONS="
|
|||
--enable-dca
|
||||
--enable-libass
|
||||
--enable-schroedinger
|
||||
--enable-live555
|
||||
--enable-shout
|
||||
--enable-goom
|
||||
--enable-sse
|
||||
|
|
Loading…
Reference in New Issue