[Android] Unexport ANDROID_ABI

Jean-Baptiste Kempf git at videolan.org
Thu Feb 5 17:34:38 CET 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Feb  5 17:19:39 2015 +0100| [40b566f584a6326cc4684e09b7669cd4398bf388] | committer: Jean-Baptiste Kempf

Unexport ANDROID_ABI

And be careful to use APP_PLATFORM in the .mk

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=40b566f584a6326cc4684e09b7669cd4398bf388
---

 compile.sh            |    5 -----
 libvlc/jni/Android.mk |    6 +++---
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/compile.sh b/compile.sh
index 4441b2b..83d32a4 100755
--- a/compile.sh
+++ b/compile.sh
@@ -79,10 +79,8 @@ case "$REL" in
     10*)
         if [ "${HAVE_64}" = 1 ];then
             GCCVER=4.9
-            ANDROID_API=android-21
         else
             GCCVER=4.8
-            ANDROID_API=android-9
         fi
     ;;
     *)
@@ -91,8 +89,6 @@ case "$REL" in
     ;;
 esac
 
-export ANDROID_API       # Android.mk for -21
-
 export TARGET_TUPLE      # Makefile for android-libs
 export HAVE_64           # Makefile for libiomx.so.*
 
@@ -196,7 +192,6 @@ cat <<EssentialsA >> env.sh
 export ANDROID_SDK=$ANDROID_SDK
 export ANDROID_NDK=$ANDROID_NDK
 export ANDROID_ABI=$ANDROID_ABI
-export ANDROID_API=$ANDROID_API
 export VLC_BUILD_DIR=$VLC_BUILD_DIR
 export TARGET_TUPLE=$TARGET_TUPLE
 export RELEASE=$RELEASE
diff --git a/libvlc/jni/Android.mk b/libvlc/jni/Android.mk
index 8ea6a57..699e371 100644
--- a/libvlc/jni/Android.mk
+++ b/libvlc/jni/Android.mk
@@ -10,7 +10,7 @@ LOCAL_SRC_FILES += libvlcjni-vlcobject.c
 LOCAL_SRC_FILES += java_event_thread.c
 LOCAL_SRC_FILES += libvlcjni-media.c libvlcjni-medialist.c libvlcjni-mediadiscoverer.c
 LOCAL_SRC_FILES += aout.c vout.c native_crash_handler.c thumbnailer.c
-ifneq ($(ANDROID_API),android-21)
+ifneq ($(APP_PLATFORM),android-21)
 # compat functions not needed after android-21
 LOCAL_SRC_FILES += compat/pthread-condattr.c compat/pthread-rwlocks.c
 LOCAL_SRC_FILES += compat/pthread-once.c compat/eventfd.c compat/sem.c compat/pipe2.c
@@ -158,7 +158,7 @@ LOCAL_MODULE := $(1)
 LOCAL_SRC_FILES  := ../$(VLC_SRC_DIR)/modules/codec/omxil/iomx.cpp
 LOCAL_C_INCLUDES := $(LIBIOMX_INCLUDES_$(2))
 LOCAL_LDLIBS     := -L$(ANDROID_PRIVATE_LIBDIR) -lgcc -lstagefright -lmedia -lutils -lbinder -llog -lcutils -lui
-LOCAL_CFLAGS     := -Wno-psabi -DANDROID_API=$(2)
+LOCAL_CFLAGS     := -Wno-psabi -DAPP_PLATFORM=$(2)
 $(TARGET_OUT)/$(1).so: $(ANDROID_PRIVATE_LIBS)
 include $(BUILD_SHARED_LIBRARY)
 endef
@@ -182,7 +182,7 @@ LOCAL_MODULE := $(1)
 LOCAL_SRC_FILES  := $(LIBANW_SRC_FILES_COMMON)
 LOCAL_C_INCLUDES := $(LIBIOMX_INCLUDES_$(2))
 LOCAL_LDLIBS     := -L$(ANDROID_PRIVATE_LIBDIR) -llog -lhardware
-LOCAL_CFLAGS     := $(LIBIOMX_CFLAGS_COMMON) -DANDROID_API=$(2)
+LOCAL_CFLAGS     := $(LIBIOMX_CFLAGS_COMMON) -DAPP_PLATFORM=$(2)
 $(TARGET_OUT)/$(1).so: $(ANDROID_PRIVATE_LIBS)
 include $(BUILD_SHARED_LIBRARY)
 endef



More information about the Android mailing list