Android: limit use of cpufeatures

cpufeatures is only used with armeabi-v7a.*

Change-Id: I80284061d71d9defa50d139c7f1bda67c00f567e
This commit is contained in:
James Zern 2015-08-20 01:25:37 +00:00
parent 7b83adbee6
commit 14efabbf1c
2 changed files with 8 additions and 3 deletions

View File

@ -15,6 +15,7 @@ ifneq ($(findstring armeabi-v7a, $(TARGET_ARCH_ABI)),)
# instructions to be generated for armv7a code. Instead target the neon code
# specifically.
NEON := c.neon
USE_CPUFEATURES := yes
else
NEON := c
endif
@ -149,7 +150,9 @@ LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
# prefer arm over thumb mode for performance gains
LOCAL_ARM_MODE := arm
LOCAL_STATIC_LIBRARIES := cpufeatures
ifeq ($(USE_CPUFEATURES),yes)
LOCAL_STATIC_LIBRARIES := cpufeatures
endif
LOCAL_MODULE := webpdecoder_static
@ -241,4 +244,6 @@ endif
include $(LOCAL_PATH)/examples/Android.mk
$(call import-module,android/cpufeatures)
ifeq ($(USE_CPUFEATURES),yes)
$(call import-module,android/cpufeatures)
endif

View File

@ -13,7 +13,7 @@
#include "./dsp.h"
#if defined(__ANDROID__)
#if defined(WEBP_ANDROID_NEON)
#include <cpu-features.h>
#endif