[vlc-commits] Contrib: Android simplifications

Jean-Baptiste Kempf git at videolan.org
Thu Mar 29 01:45:20 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Mar 29 00:24:44 2012 +0200| [d61052a0987d751ecda0b763c900f834f3358612] | committer: Jean-Baptiste Kempf

Contrib: Android simplifications

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d61052a0987d751ecda0b763c900f834f3358612
---

 contrib/src/main.mak |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 4035436..6c13589 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -102,15 +102,16 @@ endif
 ifdef HAVE_ANDROID
 CC :=  $(HOST)-gcc --sysroot=$(ANDROID_NDK)/platforms/android-9/arch-arm
 CXX := $(HOST)-g++ --sysroot=$(ANDROID_NDK)/platforms/android-9/arch-arm
-
-# Kludge for C++ prebuilt compiler
-EXTRA_CFLAGS += -D__STDC_VERSION__=199901L
-EXTRA_CFLAGS += -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/include
 ifdef HAVE_NEON
-    EXTRA_CFLAGS += -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a8
+    ANDROID_ABI = armeabi-v7a
+    ANDROID_CPU_FLAGS = -mfpu=neon -mcpu=cortex-a8
 else
-    EXTRA_CFLAGS += -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -mfloat-abi=softfp -mcpu=arm1136jf-s -mfpu=vfp
+    ANDROID_ABI = armeabi
+    ANDROID_CPU_FLAGS = -mcpu=arm1136jf-s -mfpu=vfp
 endif
+EXTRA_CFLAGS += -D__STDC_VERSION__=199901L -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/include
+EXTRA_CFLAGS += -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/$(ANDROID_ABI)/include
+EXTRA_CFLAGS += -mfloat-abi=softfp $(ANDROID_CPU_FLAGS)
 endif
 
 ifdef HAVE_MACOSX



More information about the vlc-commits mailing list