dsp/cpu.c: Android: fix crash on non-neon arm builds

add proper cpu-detection for Android targets

Fixes issue #118 (and is a better solution for #117).

based on patch by pepijn vaneeckhoudt

Change-Id: I6b00ea6d51ca658ccf6a3d55b87b99c01c6805be
This commit is contained in:
James Zern
2012-05-04 12:34:53 -07:00
parent 9a214fa112
commit 834f937f3c
2 changed files with 18 additions and 0 deletions

View File

@ -60,7 +60,10 @@ LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_ARM_NEON := true
endif
LOCAL_STATIC_LIBRARIES := cpufeatures
LOCAL_MODULE:= webp
include $(BUILD_STATIC_LIBRARY)
$(call import-module,android/cpufeatures)