Alexandre Lision | 950e9d6 | 2013-12-02 15:09:01 -0500 | [diff] [blame] | 1 | include $(CLEAR_VARS) |
Emeric Vigier | eebea67 | 2012-08-06 17:36:30 -0400 | [diff] [blame] | 2 | |
Alexandre Lision | 950e9d6 | 2013-12-02 15:09:01 -0500 | [diff] [blame] | 3 | MY_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 | |
| 8 | common_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 |
| 17 | include $(CLEAR_VARS) |
| 18 | |
| 19 | LOCAL_SRC_FILES := $(common_SRC_FILES) |
| 20 | |
| 21 | LOCAL_CFLAGS += -Werror -g |
| 22 | |
| 23 | LOCAL_C_INCLUDES += $(MY_LIBSAMPLE) |
| 24 | |
| 25 | LOCAL_MODULE:= libsamplerate |
| 26 | |
Alexandre Lision | 48ae6af | 2013-12-03 11:21:52 -0500 | [diff] [blame] | 27 | include $(BUILD_STATIC_LIBRARY) |