blob: 07dabcf3a1bc9adef73db1618294d0372a665fd4 [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
Alexandre Lision48ae6af2013-12-03 11:21:52 -050027include $(BUILD_STATIC_LIBRARY)