Commit c78b25c9 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf Committed by Hugo Beauzée-Luyssen

Win32: contribs building script

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent e15ca613
......@@ -5,7 +5,6 @@
/qtc-gdbmacros
Makefile*
/include
/contribs
.DS_Store
Thumbs.db
......
#! /bin/sh
QT4_FILE="qt4-4.6.2-win32-bin.tar.bz2"
QT4_URL="http://download.videolan.org/pub/videolan/contrib/qt4-4.6.2-win32-bin.tar.bz2"
VLC_FILE="vlc-1.1.5-git-win32.7z"
VLC_VERSION_PREFIX="vlc-1.1.5-git"
VLC_URL="http://nightlies.videolan.org/build/win32/branch-20100917-0203/vlc-1.1.5-git-win32.7z"
FREI0R_FILE="frei0r-latest.tar.gz"
FREI0R_URL="http://www.piksel.no/frei0r/snapshot/frei0r-latest.tar.gz"
ROOT_FOLDER=`pwd`
# Get the dependencies, aka VLC+Qt
mkdir -p src-dl/
cd src-dl/
if [ ! -f $QT4_FILE ]; then
wget $QT4_URL ;
else
echo "Qt4 OK";
fi
if [ ! -f $VLC_FILE ]; then
wget $VLC_URL ;
else
echo "VLC OK";
fi
if [ ! -f $FREI0R_FILE ]; then
wget $FREI0R_URL ;
else
echo "FREI0R OK";
fi
cd $ROOT_FOLDER
# bin and dlls
mkdir bin && mkdir include && mkdir temp
7z e src-dl/$VLC_FILE "$VLC_VERSION_PREFIX/libvlc.dll" -otemp
7z e src-dl/$VLC_FILE "$VLC_VERSION_PREFIX/libvlccore.dll" -otemp
7z e src-dl/$VLC_FILE "$VLC_VERSION_PREFIX/plugins/" -otemp/plugins
cd temp
for i in libvlc.dll libvlccore.dll; do
cp -v $i $ROOT_FOLDER/bin/
done
cd plugins
for i in libqt4_plugin.dll libskins2_plugin.dll libstream_out_raop_plugin.dll libvout_sdl_plugin.dll libaout_sdl_plugin.dll; do
rm $i
done
cd ..
cd ..
cp -r temp/plugins/ $ROOT_FOLDER/bin/
rm -rf temp
cd $ROOT_FOLDER
#VLC sdk
7z x src-dl/$VLC_FILE "$VLC_VERSION_PREFIX/sdk"
mv -fuv $VLC_VERSION_PREFIX/sdk/include/vlc $ROOT_FOLDER/include/vlc
mv -fuv $VLC_VERSION_PREFIX/sdk/lib/ $ROOT_FOLDER/
# Qt
tar xvf src-dl/$QT4_FILE -C . --strip-components=1
cd include && ln -sf qt4/src && cd ..
#frei0r
tar xvf src-dl/$FREI0R_FILE --wildcards --no-anchored 'frei0r.h' --strip-components=1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment