install.sh 698 Bytes
Newer Older
ivoire's avatar
ivoire committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh

GIT=git

if [ -z "$ANDROID_NDK" -o -z "$ANDROID_SDK" ]; then
   echo "You must define ANDROID_NDK and ANDROID_SDK before starting";
   exit 1;
fi;

echo "Cloning and updating VLC"
$GIT clone git://git.videolan.org/vlc.git

echo "Applying the patches"
cd vlc
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
15
$GIT am ../patches/*.patch || $GIT am --abort
ivoire's avatar
ivoire committed
16
17
18
19
20
21

echo "Building the contribs"
cd extras/contrib && ./bootstrap -t arm-eabi -d android && make

cd ../.. && mkdir -p android && cd android

Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
22
23
if test ! -s "../configure"
then
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
24
25
26
    echo "Bootstraping"
    ../bootstrap
fi;
ivoire's avatar
ivoire committed
27
28
29
30

echo "Configuring"
sh ../extras/package/android/configure.sh

Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
31
echo "Building"
ivoire's avatar
ivoire committed
32
make
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
33
34
35
36
37

echo "Building Android"
cd ../../
make distclean
VLC_BUILD_DIR=vlc/android make