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 |
Bob Badour | 6189768 | 2021-02-12 19:52:52 -0800 | [diff] [blame^] | 34 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT |
| 35 | LOCAL_LICENSE_CONDITIONS := notice |
Niranjan Yadla | cee816e | 2018-04-19 12:03:47 -0700 | [diff] [blame] | 36 | LOCAL_MODULE_TAGS := optional |
| 37 | |
| 38 | include $(BUILD_STATIC_LIBRARY) |
| 39 | |
| 40 | ################################################################################ |
| 41 | # xaf-dec-test: fileinput->ogg/pcm decoder->speaker output |
| 42 | ################################################################################ |
| 43 | include $(CLEAR_VARS) |
Niranjan Yadla | f1d64a8 | 2018-09-19 10:30:49 -0700 | [diff] [blame] | 44 | LOCAL_VENDOR_MODULE := true |
Niranjan Yadla | cee816e | 2018-04-19 12:03:47 -0700 | [diff] [blame] | 45 | LOCAL_MODULE := xaf-dec-test |
Bob Badour | 6189768 | 2021-02-12 19:52:52 -0800 | [diff] [blame^] | 46 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT |
| 47 | LOCAL_LICENSE_CONDITIONS := notice |
Niranjan Yadla | cee816e | 2018-04-19 12:03:47 -0700 | [diff] [blame] | 48 | |
| 49 | LOCAL_SRC_FILES := \ |
| 50 | utest/xaf-dec-test.c |
| 51 | |
| 52 | LOCAL_C_INCLUDES := $(common_C_INCLUDES) |
| 53 | LOCAL_CFLAGS := $(C_FLAGS) |
| 54 | LOCAL_STATIC_LIBRARIES := libxtensa_proxy |
| 55 | LOCAL_SHARED_LIBRARIES := liblog libcutils |
| 56 | LOCAL_MODULE_TAGS := optional |
| 57 | include $(BUILD_EXECUTABLE) |
| 58 | |
| 59 | ################################################################################ |
| 60 | # xaf-dec-mix-test: fileinput->ogg orpcm decoder->Mixer->speaker output |
| 61 | ################################################################################ |
| 62 | include $(CLEAR_VARS) |
Niranjan Yadla | f1d64a8 | 2018-09-19 10:30:49 -0700 | [diff] [blame] | 63 | LOCAL_VENDOR_MODULE := true |
Niranjan Yadla | cee816e | 2018-04-19 12:03:47 -0700 | [diff] [blame] | 64 | LOCAL_MODULE := xaf-dec-mix-test |
Bob Badour | 6189768 | 2021-02-12 19:52:52 -0800 | [diff] [blame^] | 65 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT |
| 66 | LOCAL_LICENSE_CONDITIONS := notice |
Niranjan Yadla | cee816e | 2018-04-19 12:03:47 -0700 | [diff] [blame] | 67 | |
| 68 | LOCAL_SRC_FILES := \ |
| 69 | utest/xaf-dec-mix-test.c |
| 70 | |
| 71 | LOCAL_C_INCLUDES := $(common_C_INCLUDES) |
| 72 | LOCAL_CFLAGS := $(C_FLAGS) |
| 73 | LOCAL_STATIC_LIBRARIES := libxtensa_proxy |
| 74 | LOCAL_SHARED_LIBRARIES := liblog libcutils |
| 75 | LOCAL_MODULE_TAGS := optional |
| 76 | include $(BUILD_EXECUTABLE) |