8 local green
="\033[1;32m"
10 echo "[${green}build${normal}] $1"
18 Build vlc in the current directory
22 -r Release mode (default is debug)
23 -a <arch> Use the specified arch (default: x86_64, possible i686)
24 -p Use a Prebuilt contrib package (speeds up compilation)
25 -c Create a Prebuilt contrib package (rarely used)
26 -l Enable translations (can be slow)
27 -i <n|r> Create an Installer (n: nightly, r: release)
32 while getopts "hra:pcli:" OPTION
60 shift $
(($OPTIND - 1))
62 if [ "x$1" != "x" ]; then
82 TRIPLET
=$ARCH-w64-mingw32
84 info
"Building extra tools"
88 export PATH
=$PWD/build
/bin
:$PATH
91 info
"Building contribs"
93 mkdir
-p contrib
/contrib-
$SHORTARCH && cd contrib
/contrib-
$SHORTARCH
94 ..
/bootstrap
--host=$TRIPLET
96 # Rebuild the contribs or use the prebuilt ones
97 if [ "$PREBUILT" != "yes" ]; then
101 if [ "$PACKAGE" == "yes" ]; then
111 export PKG_CONFIG_LIBDIR
=$PWD/vlc
/contrib
/$TRIPLET/lib
/pkgconfig
112 export PATH
=$PWD/vlc
/contrib
/$TRIPLET/bin
:$PATH
117 info
"Configuring VLC"
118 mkdir
$SHORTARCH || true
122 if [ "$RELEASE" != "yes" ]; then
123 CONFIGFLAGS
="$CONFIGFLAGS --enable-debug"
125 if [ "$I18N" != "yes" ]; then
126 CONFIGFLAGS
="$CONFIGFLAGS --disable-nls"
128 ..
/extras
/package
/win32
/configure.sh
--host=$TRIPLET $CONFIGFLAGS
133 if [ "$INSTALLER" == "n" ]; then
134 make package-win32-debug package-win32
135 elif [ "$INSTALLER" == "r" ]; then