speex: Build the resampler plugin on Android
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
diff --git a/Android.mk b/Android.mk
index 7a09505..1a44ebe 100644
--- a/Android.mk
+++ b/Android.mk
@@ -37,3 +37,25 @@
$(LOCAL_PATH)/include
include $(BUILD_STATIC_LIBRARY)
+
+include $(CLEAR_VARS)
+
+LOCAL_ARM_MODE := arm
+
+LOCAL_SRC_FILES := \
+ libspeex/resample.c
+
+LOCAL_MODULE:= libspeexresampler
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_CFLAGS += -DEXPORT= -DFIXED_POINT -DRESAMPLE_FORCE_FULL_SINC_TABLE
+LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays
+
+ifeq ($(ARCH_ARM_HAVE_NEON),true)
+LOCAL_CFLAGS += -D_USE_NEON
+endif
+
+LOCAL_C_INCLUDES += \
+ $(LOCAL_PATH)/include
+
+include $(BUILD_SHARED_LIBRARY)