AudioHardware: Dispatch setParameters to input and output
[tinyalsa-audio.git] / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 ifeq  ($(strip $(BOARD_USES_TINYALSA_LIBAUDIO)),true)
4
5 include $(CLEAR_VARS)
6
7 LOCAL_SRC_FILES := \
8         AudioHardware.cpp \
9         AudioResampler.cpp \
10         AudioStreamOut.cpp \
11         AudioStreamIn.cpp \
12         AudioRILInterface.cpp \
13         Mixer.cpp
14
15 LOCAL_C_INCLUDES += \
16         external/expat/lib \
17         external/tinyalsa/include \
18         external/speex/include \
19         hardware/tinyalsa-audio/include
20
21 LOCAL_STATIC_LIBRARIES += libaudiointerface
22 LOCAL_SHARED_LIBRARIES := \
23         libspeexresampler \
24         libtinyalsa \
25         libexpat \
26         libcutils \
27         libutils \
28         libmedia \
29         libhardware \
30         libhardware_legacy \
31         libdl \
32         libc
33
34 LOCAL_PRELINK_MODULE := false
35 LOCAL_MODULE_TAGS := optional
36
37 LOCAL_MODULE := libaudio
38
39 include $(BUILD_SHARED_LIBRARY)
40
41 include $(CLEAR_VARS)
42
43 LOCAL_SRC_FILES := \
44         AudioPolicyManager.cpp
45
46 LOCAL_WHOLE_STATIC_LIBRARIES += libaudiopolicybase
47 LOCAL_SHARED_LIBRARIES := \
48         libcutils \
49         libutils \
50         libmedia
51
52 LOCAL_MODULE_TAGS := optional
53 LOCAL_MODULE := libaudiopolicy
54
55 include $(BUILD_SHARED_LIBRARY)
56
57 endif