mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 05:38:22 +01:00
Android.mk: SSE2 & NEON updates
patch by pepijn vaneeckhoudt - Android.mk should include dec/enc/upsampling sse2 variants. This provides sse2 optimizations when compiling for Android/x86 - LOCAL_ARM_NEON should be set to true when compiling for armeabi-v7a. Otherwise __ARM_NEON__ is not defined and all neon code is removed by the preprocessor. Change-Id: I54f3505757fc5d2d63cca4b64d61be34a0b34eb8
This commit is contained in:
parent
0a49e3f3da
commit
7ae225218d
@ -16,9 +16,12 @@ LOCAL_SRC_FILES := \
|
||||
src/dsp/cpu.c \
|
||||
src/dsp/dec.c \
|
||||
src/dsp/dec_neon.c \
|
||||
src/dsp/dec_sse2.c \
|
||||
src/dsp/enc.c \
|
||||
src/dsp/enc_sse2.c \
|
||||
src/dsp/lossless.c \
|
||||
src/dsp/upsampling.c \
|
||||
src/dsp/upsampling_sse2.c \
|
||||
src/dsp/yuv.c \
|
||||
src/enc/alpha.c \
|
||||
src/enc/analysis.c \
|
||||
@ -54,6 +57,10 @@ LOCAL_CFLAGS := -Wall -DANDROID -DHAVE_MALLOC_H -DHAVE_PTHREAD \
|
||||
|
||||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
|
||||
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
LOCAL_ARM_NEON := true
|
||||
endif
|
||||
|
||||
LOCAL_MODULE:= webp
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
Loading…
Reference in New Issue
Block a user