Home | History | Annotate | Download | only in jni
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE := helloneon
      6 
      7 LOCAL_SRC_FILES := helloneon.c
      8 
      9 ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI), armeabi-v7a x86 x86_64 arm64-v8a))
     10     LOCAL_CFLAGS := -DHAVE_NEON=1
     11 ifeq ($(TARGET_ARCH_ABI),x86)
     12     LOCAL_CFLAGS += -mssse3
     13 endif
     14     LOCAL_SRC_FILES += helloneon-intrinsics.c.neon
     15 endif
     16 
     17 LOCAL_STATIC_LIBRARIES := cpufeatures
     18 
     19 LOCAL_LDLIBS := -llog
     20 
     21 include $(BUILD_SHARED_LIBRARY)
     22 
     23 $(call import-module,cpufeatures)
     24