This relies on a change for the NDK build system to recognize and accept the neon tag in these builds as well. The intrinsics work just fine in these build configurations. Change-Id: Ib652ab69e822b56edaa9387400bad326fab10133
24 lines
486 B
Makefile
24 lines
486 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := helloneon
|
|
|
|
LOCAL_SRC_FILES := helloneon.c
|
|
|
|
ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI), armeabi-v7a x86 x86_64 arm64-v8a))
|
|
LOCAL_CFLAGS := -DHAVE_NEON=1
|
|
ifeq ($(TARGET_ARCH_ABI),x86)
|
|
LOCAL_CFLAGS += -mssse3
|
|
endif
|
|
LOCAL_SRC_FILES += helloneon-intrinsics.c.neon
|
|
endif
|
|
|
|
LOCAL_STATIC_LIBRARIES := cpufeatures
|
|
|
|
LOCAL_LDLIBS := -llog
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
$(call import-module,cpufeatures)
|