[Android] Move configure.sh from vlc.git
Rafaël Carré
git at videolan.org
Mon Apr 16 00:19:15 CEST 2012
android | branch: master | Rafaël Carré <funman at videolan.org> | Sun Apr 15 00:43:00 2012 -0400| [6ee67b838eb75f007e0a54c5cbc6c30d95f36ff1] | committer: Rafaël Carré
Move configure.sh from vlc.git
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=6ee67b838eb75f007e0a54c5cbc6c30d95f36ff1
---
compile.sh | 2 +-
configure.sh | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 107 insertions(+), 1 deletions(-)
diff --git a/compile.sh b/compile.sh
index 71a71ba..6650cce 100755
--- a/compile.sh
+++ b/compile.sh
@@ -93,7 +93,7 @@ if test ! -s "../configure" ; then
fi
echo "Configuring"
-sh ../extras/package/android/configure.sh
+../../configure.sh
echo "Building"
make
diff --git a/configure.sh b/configure.sh
new file mode 100755
index 0000000..6118da3
--- /dev/null
+++ b/configure.sh
@@ -0,0 +1,106 @@
+#!/bin/sh
+
+if [ -z "$ANDROID_NDK" ]; then
+ echo "Please set the ANDROID_NDK environment variable with its path."
+ exit 1
+fi
+
+ANDROID_API=android-9
+
+VLC_SOURCEDIR="`dirname $0`/../../.."
+
+CFLAGS="-g -O2 -mlong-calls -fstrict-aliasing -mfloat-abi=softfp -funsafe-math-optimizations"
+LDFLAGS="-Wl,-Bdynamic,-dynamic-linker=/system/bin/linker -Wl,--no-undefined"
+
+if [ -z "$NO_NEON" ]; then
+ CXX_TARGET="armeabi-v7a"
+ CFLAGS="$CFLAGS -mfpu=neon -mcpu=cortex-a8"
+ LDFLAGS="$LDFLAGS -Wl,--fix-cortex-a8"
+ EXTRA_PARAMS=" --enable-neon"
+elif [ -n "$TEGRA2" ]; then
+ CXX_TARGET="armeabi-v7a"
+ CFLAGS="$CFLAGS -mfpu=vfpv3-d16 -mcpu=cortex-a9"
+ EXTRA_PARAMS=" --disable-neon"
+else
+ CXX_TARGET="armeabi"
+ CFLAGS="$CFLAGS -mcpu=arm1136jf-s -mfpu=vfp"
+ EXTRA_PARAMS=" --disable-neon"
+fi
+
+
+CPPFLAGS="-I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/include -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/libs/${CXX_TARGET}/include"
+LDFLAGS="$LDFLAGS -L${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/libs/${CXX_TARGET}"
+
+SYSROOT=$ANDROID_NDK/platforms/$ANDROID_API/arch-arm
+ANDROID_BIN=$ANDROID_NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/*-x86/bin/
+CROSS_COMPILE=${ANDROID_BIN}/arm-linux-androideabi-
+
+CPPFLAGS="$CPPFLAGS" \
+CFLAGS="$CFLAGS" \
+CXXFLAGS="$CFLAGS" \
+LDFLAGS="$LDFLAGS" \
+CC="${CROSS_COMPILE}gcc --sysroot=${SYSROOT}" \
+CXX="${CROSS_COMPILE}g++ --sysroot=${SYSROOT}" \
+NM="${CROSS_COMPILE}nm" \
+STRIP="${CROSS_COMPILE}strip" \
+RANLIB="${CROSS_COMPILE}ranlib" \
+AR="${CROSS_COMPILE}ar" \
+sh $VLC_SOURCEDIR/configure --host=arm-linux-androideabi --build=x86_64-unknown-linux $EXTRA_PARAMS \
+ --enable-live555 --enable-realrtsp \
+ --enable-avformat \
+ --enable-swscale \
+ --enable-avcodec \
+ --enable-opensles \
+ --enable-android-surface \
+ --enable-debug \
+ --enable-mkv \
+ --enable-taglib \
+ --disable-vlc --disable-shared \
+ --disable-vlm --disable-sout \
+ --disable-dbus \
+ --disable-lua \
+ --disable-vcd \
+ --disable-v4l2 \
+ --disable-gnomevfs \
+ --disable-dvdread \
+ --disable-dvdnav \
+ --disable-bluray \
+ --disable-linsys \
+ --disable-decklink \
+ --disable-libva \
+ --disable-dv \
+ --disable-mod \
+ --disable-sid \
+ --disable-gme \
+ --disable-tremor --disable-vorbis \
+ --disable-x264 \
+ --disable-mad \
+ --disable-schroedinger --disable-dirac \
+ --disable-sdl-image \
+ --disable-zvbi \
+ --disable-fluidsynth \
+ --disable-jack \
+ --disable-pulse \
+ --disable-alsa \
+ --disable-samplerate \
+ --disable-sdl \
+ --disable-xcb \
+ --disable-atmo \
+ --disable-qt4 \
+ --disable-skins2 \
+ --disable-mtp \
+ --enable-taglib \
+ --disable-notify \
+ --disable-freetype \
+ --disable-libass \
+ --disable-svg \
+ --disable-sqlite \
+ --disable-udev \
+ --disable-libxml2 \
+ --disable-caca \
+ --disable-glx \
+ --disable-egl \
+ --disable-goom \
+ --disable-projectm \
+ --enable-iomx \
+ $*
More information about the Android
mailing list