[Android] Define ARCH in jni

Edward Wang git at videolan.org
Wed Jun 27 23:47:13 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Wed Jun 27 15:14:54 2012 -0400| [55829a67b69a8f1e1c290cf6b611de949a37574b] | committer: Edward Wang

Define ARCH in jni

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=55829a67b69a8f1e1c290cf6b611de949a37574b
---

 vlc-android/jni/Android.mk |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/vlc-android/jni/Android.mk b/vlc-android/jni/Android.mk
index fb72a64..7c05cb5 100644
--- a/vlc-android/jni/Android.mk
+++ b/vlc-android/jni/Android.mk
@@ -12,6 +12,12 @@ ARCH=$(ANDROID_ABI)
 CPP_STATIC=$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/$(ARCH)/libgnustl_static.a
 
 LOCAL_CFLAGS := -std=gnu99
+ifeq ($(ARCH), "armeabi")
+	LOCAL_CFLAGS += -DHAVE_ARMEABI
+endif
+ifeq ($(ARCH), "armeabi-v7a")
+	LOCAL_CFLAGS += -DHAVE_ARMEABI_V7A
+endif
 LOCAL_LDLIBS := -L$(VLC_CONTRIB)/lib \
 	$(VLC_MODULES) \
 	$(VLC_BUILD_DIR)/lib/.libs/libvlc.a \



More information about the Android mailing list