Commit ac8805c2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Add new compile-simple.sh with minimal buildsystem

It just:
 - clones VLC
 - compile libvlc and jni libraries through compile-libvlc.sh

And will bootstrap and compile with gradle
parent 0a74cb33
......@@ -15,7 +15,6 @@ checkfail()
#############
# ARGUMENTS #
#############
if [ -z "$ANDROID_NDK" ]; then
echo "Please set the ANDROID_NDK environment variable with its path."
exit 1
......@@ -114,6 +113,11 @@ esac
SYSROOT=$ANDROID_NDK/platforms/$ANDROID_API/arch-$PLATFORM_SHORT_ARCH
SRC_DIR=$PWD
# Add the NDK toolchain to the PATH, needed both for contribs and for building
# stub libraries
NDK_TOOLCHAIN_PATH=`echo ${ANDROID_NDK}/toolchains/${PATH_HOST}-${GCCVER}/prebuilt/\`uname|tr A-Z a-z\`-*/bin`
export PATH=${NDK_TOOLCHAIN_PATH}:${PATH}
###############
# DISPLAY ABI #
......@@ -128,7 +132,7 @@ fi
if [ ! -z "$ARMV5" ]; then
echo "ARMv5: YES"
fi
echo "PATH: $PATH"
# Make in //
if [ -z "$MAKEFLAGS" ]; then
......
#! /bin/sh
set -e
# Read the Android Wiki http://wiki.videolan.org/AndroidCompile
# Setup all that stuff correctly.
# Get the latest Android SDK Platform or modify numbers in configure.sh and libvlc/default.properties.
if [ -z "$ANDROID_NDK" -o -z "$ANDROID_SDK" ]; then
echo "You must define ANDROID_NDK, ANDROID_SDK before starting."
echo "They must point to your NDK and SDK directories.\n"
exit 1
fi
if [ -z "$ANDROID_ABI" ]; then
echo "*** No ANDROID_ABI defined architecture: using ARMv7"
ANDROID_ABI="armeabi-v7a"
fi
# Fetch VLC source
# 1/ libvlc, libvlccore and its plugins
TESTED_HASH=18e445a
if [ ! -d "vlc" ]; then
echo "VLC source not found, cloning"
git clone git://git.videolan.org/vlc.git vlc
else
echo "VLC source found"
cd vlc
if ! git cat-file -e ${TESTED_HASH}; then
cat << EOF
***
*** Error: Your vlc checkout does not contain the latest tested commit: ${TESTED_HASH}
***
EOF
exit 1
fi
cd ..
fi
############
# Make VLC #
############
echo "Configuring"
./compile-libvlc.sh $*
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