blob: 28e71011500632549d6e33e110d58a57efe1648d [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)
7common_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
16LOCAL_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 Yadla672a3462018-05-08 16:27:06 -070026C_FLAGS := -DXF_TRACE=0 -Wall -Werror -Wno-everything
Niranjan Yadlacee816e2018-04-19 12:03:47 -070027
28LOCAL_C_INCLUDES := $(common_C_INCLUDES)
29LOCAL_CFLAGS := $(C_FLAGS)
30LOCAL_MODULE := libxtensa_proxy
31LOCAL_MODULE_TAGS := optional
32
33include $(BUILD_STATIC_LIBRARY)
34
35################################################################################
36# xaf-dec-test: fileinput->ogg/pcm decoder->speaker output
37################################################################################
38include $(CLEAR_VARS)
39LOCAL_MODULE := xaf-dec-test
40
41LOCAL_SRC_FILES := \
42 utest/xaf-dec-test.c
43
44LOCAL_C_INCLUDES := $(common_C_INCLUDES)
45LOCAL_CFLAGS := $(C_FLAGS)
46LOCAL_STATIC_LIBRARIES := libxtensa_proxy
47LOCAL_SHARED_LIBRARIES := liblog libcutils
48LOCAL_MODULE_TAGS := optional
49include $(BUILD_EXECUTABLE)
50
51################################################################################
52# xaf-dec-mix-test: fileinput->ogg orpcm decoder->Mixer->speaker output
53################################################################################
54include $(CLEAR_VARS)
55LOCAL_MODULE := xaf-dec-mix-test
56
57LOCAL_SRC_FILES := \
58 utest/xaf-dec-mix-test.c
59
60LOCAL_C_INCLUDES := $(common_C_INCLUDES)
61LOCAL_CFLAGS := $(C_FLAGS)
62LOCAL_STATIC_LIBRARIES := libxtensa_proxy
63LOCAL_SHARED_LIBRARIES := liblog libcutils
64LOCAL_MODULE_TAGS := optional
65include $(BUILD_EXECUTABLE)
66