Commit e34af1d6 authored by Rafaël Carré's avatar Rafaël Carré

Update doc

parent adeef81d
#! /bin/sh #! /bin/sh
GIT=git # Read the Android HOWTO and setup all that stuff correctly.
# Get the Android SDK Platform 2.1, 2.2 and 2.3 API : version 7, 8 and (9 or 10)
# or modify numbers in configure.sh and vlc-android/default.properties.
# Create an AVD with this platform.
# XXX : important!
# If you plan to use the emulator, you need a build without neon
# export NO_NEON=1
# make sure it is set for both the contribs bootstrap next and the configure.sh later.
if [ -z "$ANDROID_NDK" -o -z "$ANDROID_SDK" ]; then if [ -z "$ANDROID_NDK" -o -z "$ANDROID_SDK" ]; then
echo "You must define ANDROID_NDK and ANDROID_SDK before starting"; echo "You must define ANDROID_NDK and ANDROID_SDK before starting."
exit 1; echo "They must point to your NDK and SDK directories."
fi; exit 1
fi
# Using CyanogenMod headers instead of AOSP, since CyanogenMod # Using CyanogenMod headers instead of AOSP, since CyanogenMod
# has commit 1563f4aca88d354c502dba056d173cefc7c2ea7f, # has commit 1563f4aca88d354c502dba056d173cefc7c2ea7f,
...@@ -14,20 +23,20 @@ fi; ...@@ -14,20 +23,20 @@ fi;
# which adds some vtable entries needed on newer qualcomm devices. # which adds some vtable entries needed on newer qualcomm devices.
if [ ! -d "android-headers/frameworks/base" ]; then if [ ! -d "android-headers/frameworks/base" ]; then
echo "Fetching Android system headers (1/2)" echo "Fetching Android system headers (1/2)"
$GIT clone -b gingerbread --depth=1 git://github.com/CyanogenMod/android_frameworks_base.git android-headers/frameworks/base git clone -b gingerbread --depth=1 git://github.com/CyanogenMod/android_frameworks_base.git android-headers/frameworks/base
else else
echo "Updating Android system headers (1/2)" echo "Updating Android system headers (1/2)"
pushd android-headers/frameworks/base > /dev/null pushd android-headers/frameworks/base > /dev/null
$GIT pull origin gingerbread git pull origin gingerbread
popd > /dev/null popd > /dev/null
fi fi
if [ ! -d "android-headers/system/core" ]; then if [ ! -d "android-headers/system/core" ]; then
echo "Fetching Android system headers (2/2)" echo "Fetching Android system headers (2/2)"
$GIT clone -b gingerbread --depth=1 git://github.com/CyanogenMod/android_system_core.git android-headers/system/core git clone -b gingerbread --depth=1 git://github.com/CyanogenMod/android_system_core.git android-headers/system/core
else else
echo "Updating Android system headers (2/2)" echo "Updating Android system headers (2/2)"
pushd android-headers/system/core > /dev/null pushd android-headers/system/core > /dev/null
$GIT pull origin gingerbread git pull origin gingerbread
popd > /dev/null popd > /dev/null
fi fi
export ANDROID_SYS_HEADERS=${PWD}/android-headers export ANDROID_SYS_HEADERS=${PWD}/android-headers
...@@ -45,17 +54,17 @@ export ANDROID_LIBS=${PWD}/android-libs ...@@ -45,17 +54,17 @@ export ANDROID_LIBS=${PWD}/android-libs
if [ ! -d "vlc" ]; then if [ ! -d "vlc" ]; then
echo "VLC source not found, cloning" echo "VLC source not found, cloning"
$GIT clone git://git.videolan.org/vlc/vlc-1.2.git vlc git clone git://git.videolan.org/vlc/vlc-1.2.git vlc
else else
echo "VLC source found, pulling from remote master" echo "VLC source found, pulling from remote master"
pushd vlc > /dev/null pushd vlc > /dev/null
$GIT pull origin master git pull origin master
popd > /dev/null popd > /dev/null
fi fi
echo "Applying the patches" echo "Applying the patches"
cd vlc cd vlc
$GIT am ../patches/*.patch || $GIT am --abort git am ../patches/*.patch || git am --abort
echo "Building the contribs" echo "Building the contribs"
mkdir contrib/android; cd contrib/android mkdir contrib/android; cd contrib/android
...@@ -92,5 +101,6 @@ make ...@@ -92,5 +101,6 @@ make
echo "Building Android" echo "Building Android"
cd ../../ cd ../../
make distclean make distclean
VLC_BUILD_DIR=vlc/android make VLC_BUILD_DIR=vlc/android make
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