blob: 50d516b5616c5f9f84cadfc5308ae819526917e5 [file] [log] [blame]
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -08001LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES:= \
6 AudioHardwareGeneric.cpp \
7 AudioHardwareStub.cpp \
8 AudioDumpInterface.cpp \
9 AudioHardwareInterface.cpp
10
11LOCAL_SHARED_LIBRARIES := \
12 libcutils \
13 libutils \
14 libmedia \
15 libhardware_legacy
16
17ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true)
18 LOCAL_CFLAGS += -DGENERIC_AUDIO
19endif
20
21LOCAL_MODULE:= libaudiointerface
22
23include $(BUILD_STATIC_LIBRARY)
24
25include $(CLEAR_VARS)
26
27LOCAL_SRC_FILES:= \
28 AudioFlinger.cpp \
29 AudioMixer.cpp.arm \
30 AudioResampler.cpp.arm \
31 AudioResamplerSinc.cpp.arm \
32 AudioResamplerCubic.cpp.arm
33
34LOCAL_SHARED_LIBRARIES := \
35 libcutils \
36 libutils \
37 libmedia \
38 libhardware_legacy
39
40ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true)
41 LOCAL_STATIC_LIBRARIES += libaudiointerface
42else
43 LOCAL_SHARED_LIBRARIES += libaudio
44endif
45
46LOCAL_MODULE:= libaudioflinger
47
48ifeq ($(BOARD_HAVE_BLUETOOTH),true)
49 LOCAL_SRC_FILES += A2dpAudioInterface.cpp
50 LOCAL_SHARED_LIBRARIES += liba2dp
51 LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP
52 LOCAL_C_INCLUDES += $(call include-path-for, bluez-libs)
53 LOCAL_C_INCLUDES += $(call include-path-for, bluez-utils)
54endif
55
56include $(BUILD_SHARED_LIBRARY)