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