install.sh 672 Bytes
Newer Older
ivoire's avatar
ivoire committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /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
$GIT am ../patches/*.patch

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
24
25
if [ -e configure ]; then
    echo "Bootstraping"
    ../bootstrap
fi;
ivoire's avatar
ivoire committed
26
27
28
29

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

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

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