android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := miae
LOCAL_SRC_FILES := miae.cpp allpass.cpp comb.cpp revmodel.cpp reverb-c.cpp
TARGET_ARCH_ABI := armeabi-v7a
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS := -DHAVE_NEON -mfloat-abi=softfp -mfpu=neon -march=armv7-a
LOCAL_SRC_FILES += allpass_n.cpp.neon \
comb_n.cpp.neon \
revmodel_n.cpp.neon
endif
LOCAL_STATIC_LIBRARIES := cpufeatures
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)
$(call import-module,cpufeatures)
两个版本
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := miae
### Add all source file names to be included in lib separated by a whitespace
LOCAL_SRC_FILES := miae.cpp allpass.cpp comb.cpp revmodel.cpp reverb-c.cpp
TARGET_ARCH_ABI := armeabi-v7a
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS := -DHAVE_NEON=1
LOCAL_ARM_NEON := true
LOCAL_SRC_FILES += allpass_n.cpp.neon \
comb_n.cpp.neon \
revmodel_n.cpp.neon
endif
LOCAL_STATIC_LIBRARIES := cpufeatures
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)
$(call import-module,cpufeatures)