[vlc-commits] commit: Android: add a configure script. ( =?UTF-8?Q?R=C3=A9mi=20Duraffort=20?=)
git at videolan.org
git at videolan.org
Sun Jan 9 17:20:05 CET 2011
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jan 9 16:48:45 2011 +0100| [aae2eb94ba7a229ebae879c5ca818799f46503b0] | committer: Rémi Duraffort
Android: add a configure script.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aae2eb94ba7a229ebae879c5ca818799f46503b0
---
extras/package/android/configure.sh | 47 +++++++++++++++++++++++++++++++++++
1 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/extras/package/android/configure.sh b/extras/package/android/configure.sh
new file mode 100755
index 0000000..35e760f
--- /dev/null
+++ b/extras/package/android/configure.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+if [ -z "$ANDROID_NDK" ]; then
+ echo "Please set the ANDROID_NDK environment variable with its path."
+ exit 1
+fi
+
+ANDROID_BIN=$ANDROID_NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/
+ANDROID_INCLUDE=$ANDROID_NDK/platforms/android-9/arch-arm/usr/include
+ANDROID_LIB=$ANDROID_NDK/platforms/android-9/arch-arm/usr/lib
+
+VLC_SOURCEDIR="`pwd`/.."
+
+# needed for old ndk: change all the arm-linux-androideabi to arm-eabi
+# the --host is kept on purpose because otherwise libtool complains..
+
+PATH="$ANDROID_BIN":$PATH \
+CPPFLAGS="-I$ANDROID_INCLUDE" \
+LDFLAGS="-Wl,-rpath-link=$ANDROID_LIB,-Bdynamic,-dynamic-linker=/system/bin/linker -Wl,--no-undefined -Wl,-shared -L$ANDROID_LIB" \
+CFLAGS="" \
+LIBS="-lc -ldl -lgcc" \
+CC="arm-linux-androideabi-gcc -nostdlib" CXX="arm-linux-androideabi-g++ -nostdlib" \
+NM="arm-linux-androideabi-nm" STRIP="arm-linux-androideabi-strip" \
+PKG_CONFIG_LIBDIR="$VLC_SOURCEDIR/extras/contrib/hosts/arm-eabi/lib/pkgconfig" \
+sh ../configure --host=arm-eabi-linux --build=x86_64-unknown-linux \
+ --enable-static-modules \
+ --enable-debug \
+ --disable-qt4 \
+ --disable-skins2 \
+ --disable-mad \
+ --disable-mkv \
+ --disable-live555 \
+ --disable-libgcrypt \
+ --disable-remoteosd \
+ --disable-lua \
+ --enable-swscale \
+ --enable-avcodec \
+ --enable-avformat \
+ --disable-xcb \
+ --disable-dbus \
+ --disable-vcd \
+ --disable-v4l2 \
+ --disable-atmo \
+ --disable-vlc \
+ --enable-opensles \
+ --enable-android \
+ --enable-egl-android
More information about the vlc-commits
mailing list