[vlmc-devel] commit: Win32: contribs building script (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Fri Sep 17 16:02:46 CEST 2010


vlmc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Sep 17 15:15:35 2010 +0200| [c78b25c91789e3e81f10c8b03c753475d800bd3e] | committer: Hugo Beauzée-Luyssen 

Win32: contribs building script

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
Signed-off-by: Hugo Beauzée-Luyssen <beauze.h at gmail.com>

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=c78b25c91789e3e81f10c8b03c753475d800bd3e
---

 .gitignore           |    1 -
 contribs/contribs.sh |   65 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+), 1 deletions(-)

diff --git a/.gitignore b/.gitignore
index 20826d7..5ecfa73 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,7 +5,6 @@
 /qtc-gdbmacros
 Makefile*
 /include
-/contribs
 
 .DS_Store
 Thumbs.db
diff --git a/contribs/contribs.sh b/contribs/contribs.sh
new file mode 100644
index 0000000..850d6e9
--- /dev/null
+++ b/contribs/contribs.sh
@@ -0,0 +1,65 @@
+#! /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



More information about the Vlmc-devel mailing list