mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
Android: limit use of cpufeatures
cpufeatures is only used with armeabi-v7a.* Change-Id: I80284061d71d9defa50d139c7f1bda67c00f567e
This commit is contained in:
parent
7b83adbee6
commit
14efabbf1c
@ -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
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#include "./dsp.h"
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
#if defined(WEBP_ANDROID_NEON)
|
||||
#include <cpu-features.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user