blob: 2bce8cf0823e76d1254a397d6aa78f622d52c942 [file] [log] [blame]
Niranjan Yadlacee816e2018-04-19 12:03:47 -07001LOCAL_PATH := $(call my-dir)
2################################################################################
3# libxtensa_proxy library building
4################################################################################
5
6include $(CLEAR_VARS)
Niranjan Yadlaf1d64a82018-09-19 10:30:49 -07007LOCAL_VENDOR_MODULE := true
Niranjan Yadlacee816e2018-04-19 12:03:47 -07008common_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
17LOCAL_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 Yadla672a3462018-05-08 16:27:06 -070027C_FLAGS := -DXF_TRACE=0 -Wall -Werror -Wno-everything
Niranjan Yadlacee816e2018-04-19 12:03:47 -070028
Niranjan Yadlaf1d64a82018-09-19 10:30:49 -070029LOCAL_SHARED_LIBRARIES := liblog
Niranjan Yadlacee816e2018-04-19 12:03:47 -070030LOCAL_C_INCLUDES := $(common_C_INCLUDES)
Niranjan Yadlaf1d64a82018-09-19 10:30:49 -070031LOCAL_C_INCLUDES += external/expat/lib
Niranjan Yadlacee816e2018-04-19 12:03:47 -070032LOCAL_CFLAGS := $(C_FLAGS)
33LOCAL_MODULE := libxtensa_proxy
34LOCAL_MODULE_TAGS := optional
35
36include $(BUILD_STATIC_LIBRARY)
37
38################################################################################
39# xaf-dec-test: fileinput->ogg/pcm decoder->speaker output
40################################################################################
41include $(CLEAR_VARS)
Niranjan Yadlaf1d64a82018-09-19 10:30:49 -070042LOCAL_VENDOR_MODULE := true
Niranjan Yadlacee816e2018-04-19 12:03:47 -070043LOCAL_MODULE := xaf-dec-test
44
45LOCAL_SRC_FILES := \
46 utest/xaf-dec-test.c
47
48LOCAL_C_INCLUDES := $(common_C_INCLUDES)
49LOCAL_CFLAGS := $(C_FLAGS)
50LOCAL_STATIC_LIBRARIES := libxtensa_proxy
51LOCAL_SHARED_LIBRARIES := liblog libcutils
52LOCAL_MODULE_TAGS := optional
53include $(BUILD_EXECUTABLE)
54
55################################################################################
56# xaf-dec-mix-test: fileinput->ogg orpcm decoder->Mixer->speaker output
57################################################################################
58include $(CLEAR_VARS)
Niranjan Yadlaf1d64a82018-09-19 10:30:49 -070059LOCAL_VENDOR_MODULE := true
Niranjan Yadlacee816e2018-04-19 12:03:47 -070060LOCAL_MODULE := xaf-dec-mix-test
61
62LOCAL_SRC_FILES := \
63 utest/xaf-dec-mix-test.c
64
65LOCAL_C_INCLUDES := $(common_C_INCLUDES)
66LOCAL_CFLAGS := $(C_FLAGS)
67LOCAL_STATIC_LIBRARIES := libxtensa_proxy
68LOCAL_SHARED_LIBRARIES := liblog libcutils
69LOCAL_MODULE_TAGS := optional
70include $(BUILD_EXECUTABLE)
71