blob: 270c9aab424c81dd1de802eeae46b62466a34cb5 [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
Bob Badour61897682021-02-12 19:52:52 -080034LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT
35LOCAL_LICENSE_CONDITIONS := notice
Niranjan Yadlacee816e2018-04-19 12:03:47 -070036LOCAL_MODULE_TAGS := optional
37
38include $(BUILD_STATIC_LIBRARY)
39
40################################################################################
41# xaf-dec-test: fileinput->ogg/pcm decoder->speaker output
42################################################################################
43include $(CLEAR_VARS)
Niranjan Yadlaf1d64a82018-09-19 10:30:49 -070044LOCAL_VENDOR_MODULE := true
Niranjan Yadlacee816e2018-04-19 12:03:47 -070045LOCAL_MODULE := xaf-dec-test
Bob Badour61897682021-02-12 19:52:52 -080046LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT
47LOCAL_LICENSE_CONDITIONS := notice
Niranjan Yadlacee816e2018-04-19 12:03:47 -070048
49LOCAL_SRC_FILES := \
50 utest/xaf-dec-test.c
51
52LOCAL_C_INCLUDES := $(common_C_INCLUDES)
53LOCAL_CFLAGS := $(C_FLAGS)
54LOCAL_STATIC_LIBRARIES := libxtensa_proxy
55LOCAL_SHARED_LIBRARIES := liblog libcutils
56LOCAL_MODULE_TAGS := optional
57include $(BUILD_EXECUTABLE)
58
59################################################################################
60# xaf-dec-mix-test: fileinput->ogg orpcm decoder->Mixer->speaker output
61################################################################################
62include $(CLEAR_VARS)
Niranjan Yadlaf1d64a82018-09-19 10:30:49 -070063LOCAL_VENDOR_MODULE := true
Niranjan Yadlacee816e2018-04-19 12:03:47 -070064LOCAL_MODULE := xaf-dec-mix-test
Bob Badour61897682021-02-12 19:52:52 -080065LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT
66LOCAL_LICENSE_CONDITIONS := notice
Niranjan Yadlacee816e2018-04-19 12:03:47 -070067
68LOCAL_SRC_FILES := \
69 utest/xaf-dec-mix-test.c
70
71LOCAL_C_INCLUDES := $(common_C_INCLUDES)
72LOCAL_CFLAGS := $(C_FLAGS)
73LOCAL_STATIC_LIBRARIES := libxtensa_proxy
74LOCAL_SHARED_LIBRARIES := liblog libcutils
75LOCAL_MODULE_TAGS := optional
76include $(BUILD_EXECUTABLE)