diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2015-11-05 15:25:52 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2016-01-08 04:06:50 +0000 |
commit | 32624777b845f24901aa4ae768a01bf3ef412e28 (patch) | |
tree | a2d854bda54bc25efeeced2f100b7209dc669699 | |
parent | 613f94db72ea295b8e7040f508ea0bbb782714a2 (diff) | |
download | libyuv-32624777b845f24901aa4ae768a01bf3ef412e28.tar.gz |
Android.mk: make 32bit binary use arm assembly code on 64bit platform
update to use "ifeq ($(ARCH_ARM_HAVE_NEON),true)" instead of
"ifeq ($(TARGET_ARCH_VARIANT),armv7-a-neon)" as condition check,
so that the 32bit binary or libray on arm64bit platform can use
the NEON implementation as well.
Change-Id: Ib632e823ed904dce82808fdb391b428bef07deb2
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r-- | Android.mk | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -21,15 +21,6 @@ common_SRC_FILES := \ common_CFLAGS := -Wall -fexceptions -ifeq ($(TARGET_ARCH_VARIANT),armv7-a-neon) - common_CFLAGS += -DLIBYUV_NEON - common_SRC_FILES += \ - files/source/compare_neon.cc \ - files/source/rotate_neon.cc \ - files/source/row_neon.cc \ - files/source/scale_neon.cc -endif - common_C_INCLUDES = $(LOCAL_PATH)/files/include # For the device @@ -47,6 +38,15 @@ LOCAL_SRC_FILES := $(common_SRC_FILES) LOCAL_CFLAGS += $(common_CFLAGS) LOCAL_C_INCLUDES += $(common_C_INCLUDES) +ifeq ($(ARCH_ARM_HAVE_NEON),true) + LOCAL_CFLAGS_arm += -DLIBYUV_NEON + LOCAL_SRC_FILES_arm += \ + files/source/compare_neon.cc \ + files/source/rotate_neon.cc \ + files/source/row_neon.cc \ + files/source/scale_neon.cc +endif + LOCAL_MODULE:= libyuv_static LOCAL_MODULE_TAGS := optional |