Niranjan Yadla | cee816e | 2018-04-19 12:03:47 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | ################################################################################ |
| 3 | # libxtensa_proxy library building |
| 4 | ################################################################################ |
| 5 | |
| 6 | include $(CLEAR_VARS) |
| 7 | common_C_INCLUDES := \ |
| 8 | $(LOCAL_PATH)/include \ |
| 9 | $(LOCAL_PATH)/include/audio \ |
| 10 | $(LOCAL_PATH)/include/os/android \ |
| 11 | $(LOCAL_PATH)/include/sys/fio \ |
| 12 | $(LOCAL_PATH)/playback \ |
| 13 | $(LOCAL_PATH)/playback/tinyalsa \ |
| 14 | $(LOCAL_PATH)/utest/include |
| 15 | |
| 16 | LOCAL_SRC_FILES := \ |
| 17 | proxy/xf-proxy.c \ |
| 18 | proxy/xaf-api.c \ |
| 19 | proxy/xf-trace.c \ |
| 20 | proxy/xf-fio.c \ |
| 21 | playback/xa_playback.c \ |
| 22 | playback/tinyalsa/pcm.c \ |
| 23 | utest/xaf-utils-test.c \ |
| 24 | utest/xaf-mem-test.c |
| 25 | |
Niranjan Yadla | 672a346 | 2018-05-08 16:27:06 -0700 | [diff] [blame^] | 26 | C_FLAGS := -DXF_TRACE=0 -Wall -Werror -Wno-everything |
Niranjan Yadla | cee816e | 2018-04-19 12:03:47 -0700 | [diff] [blame] | 27 | |
| 28 | LOCAL_C_INCLUDES := $(common_C_INCLUDES) |
| 29 | LOCAL_CFLAGS := $(C_FLAGS) |
| 30 | LOCAL_MODULE := libxtensa_proxy |
| 31 | LOCAL_MODULE_TAGS := optional |
| 32 | |
| 33 | include $(BUILD_STATIC_LIBRARY) |
| 34 | |
| 35 | ################################################################################ |
| 36 | # xaf-dec-test: fileinput->ogg/pcm decoder->speaker output |
| 37 | ################################################################################ |
| 38 | include $(CLEAR_VARS) |
| 39 | LOCAL_MODULE := xaf-dec-test |
| 40 | |
| 41 | LOCAL_SRC_FILES := \ |
| 42 | utest/xaf-dec-test.c |
| 43 | |
| 44 | LOCAL_C_INCLUDES := $(common_C_INCLUDES) |
| 45 | LOCAL_CFLAGS := $(C_FLAGS) |
| 46 | LOCAL_STATIC_LIBRARIES := libxtensa_proxy |
| 47 | LOCAL_SHARED_LIBRARIES := liblog libcutils |
| 48 | LOCAL_MODULE_TAGS := optional |
| 49 | include $(BUILD_EXECUTABLE) |
| 50 | |
| 51 | ################################################################################ |
| 52 | # xaf-dec-mix-test: fileinput->ogg orpcm decoder->Mixer->speaker output |
| 53 | ################################################################################ |
| 54 | include $(CLEAR_VARS) |
| 55 | LOCAL_MODULE := xaf-dec-mix-test |
| 56 | |
| 57 | LOCAL_SRC_FILES := \ |
| 58 | utest/xaf-dec-mix-test.c |
| 59 | |
| 60 | LOCAL_C_INCLUDES := $(common_C_INCLUDES) |
| 61 | LOCAL_CFLAGS := $(C_FLAGS) |
| 62 | LOCAL_STATIC_LIBRARIES := libxtensa_proxy |
| 63 | LOCAL_SHARED_LIBRARIES := liblog libcutils |
| 64 | LOCAL_MODULE_TAGS := optional |
| 65 | include $(BUILD_EXECUTABLE) |
| 66 | |