blob: 3f2911ece84e7e6cfd55d6775859c31d13f25548 [file] [log] [blame]
Alexandre Lision950e9d62013-12-02 15:09:01 -05001include $(CLEAR_VARS)
Emeric Vigiereebea672012-08-06 17:36:30 -04002
Alexandre Lision950e9d62013-12-02 15:09:01 -05003MY_LIBSAMPLE := libsamplerate/sources
4
5# We need to build this for both the device (as a shared library)
6# and the host (as a static library for tools to use).
7
8common_SRC_FILES := $(MY_LIBSAMPLE)/src/samplerate.c \
9 $(MY_LIBSAMPLE)/src/src_sinc.c \
10 $(MY_LIBSAMPLE)/src/src_zoh.c \
11 $(MY_LIBSAMPLE)/src/src_linear.c
12
13# For the device
14# =====================================================
15
16# Device shared library
17include $(CLEAR_VARS)
18
19LOCAL_SRC_FILES := $(common_SRC_FILES)
20
21LOCAL_CFLAGS += -Werror -g
22
23LOCAL_C_INCLUDES += $(MY_LIBSAMPLE)
24
25LOCAL_MODULE:= libsamplerate
26
27include $(BUILD_SHARED_LIBRARY)