blob: b68bfc1de29b416ac06cb6440a0c796aa72a54d4 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001LOCAL_PATH:= $(call my-dir)
2
Eric Laurenta553c252009-07-17 12:17:14 -07003#AUDIO_POLICY_TEST := true
4#ENABLE_AUDIO_DUMP := true
5
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08006include $(CLEAR_VARS)
7
Eric Laurenta553c252009-07-17 12:17:14 -07008
9ifeq ($(AUDIO_POLICY_TEST),true)
10 ENABLE_AUDIO_DUMP := true
11endif
12
13
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080014LOCAL_SRC_FILES:= \
15 AudioHardwareGeneric.cpp \
16 AudioHardwareStub.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080017 AudioHardwareInterface.cpp
18
Eric Laurenta553c252009-07-17 12:17:14 -070019ifeq ($(ENABLE_AUDIO_DUMP),true)
20 LOCAL_SRC_FILES += AudioDumpInterface.cpp
21 LOCAL_CFLAGS += -DENABLE_AUDIO_DUMP
22endif
23
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080024LOCAL_SHARED_LIBRARIES := \
25 libcutils \
26 libutils \
Mathias Agopian25ba5b62009-05-18 15:08:03 -070027 libbinder \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080028 libmedia \
29 libhardware_legacy
30
31ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true)
32 LOCAL_CFLAGS += -DGENERIC_AUDIO
33endif
34
35LOCAL_MODULE:= libaudiointerface
36
Eric Laurenta553c252009-07-17 12:17:14 -070037ifeq ($(BOARD_HAVE_BLUETOOTH),true)
38 LOCAL_SRC_FILES += A2dpAudioInterface.cpp
39 LOCAL_SHARED_LIBRARIES += liba2dp
40 LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP
41 LOCAL_C_INCLUDES += $(call include-path-for, bluez)
42endif
43
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080044include $(BUILD_STATIC_LIBRARY)
45
Eric Laurenta553c252009-07-17 12:17:14 -070046
47include $(CLEAR_VARS)
48
49LOCAL_SRC_FILES:= \
Eric Laurentcef3cd72009-12-10 01:03:50 -080050 AudioPolicyManagerBase.cpp
Eric Laurenta553c252009-07-17 12:17:14 -070051
52LOCAL_SHARED_LIBRARIES := \
53 libcutils \
54 libutils \
55 libmedia
56
Eric Laurent4192cce2009-07-24 06:58:44 -070057ifeq ($(TARGET_SIMULATOR),true)
58 LOCAL_LDLIBS += -ldl
59else
60 LOCAL_SHARED_LIBRARIES += libdl
61endif
62
Eric Laurentcef3cd72009-12-10 01:03:50 -080063LOCAL_MODULE:= libaudiopolicybase
Eric Laurenta553c252009-07-17 12:17:14 -070064
65ifeq ($(BOARD_HAVE_BLUETOOTH),true)
66 LOCAL_CFLAGS += -DWITH_A2DP
67endif
68
69ifeq ($(AUDIO_POLICY_TEST),true)
70 LOCAL_CFLAGS += -DAUDIO_POLICY_TEST
71endif
72
Eric Laurentcef3cd72009-12-10 01:03:50 -080073include $(BUILD_STATIC_LIBRARY)
Eric Laurenta553c252009-07-17 12:17:14 -070074
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080075include $(CLEAR_VARS)
76
77LOCAL_SRC_FILES:= \
78 AudioFlinger.cpp \
79 AudioMixer.cpp.arm \
80 AudioResampler.cpp.arm \
81 AudioResamplerSinc.cpp.arm \
Eric Laurenta553c252009-07-17 12:17:14 -070082 AudioResamplerCubic.cpp.arm \
83 AudioPolicyService.cpp
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080084
85LOCAL_SHARED_LIBRARIES := \
86 libcutils \
87 libutils \
Mathias Agopian25ba5b62009-05-18 15:08:03 -070088 libbinder \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080089 libmedia \
Eric Laurentcef3cd72009-12-10 01:03:50 -080090 libhardware_legacy
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080091
92ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true)
Eric Laurentcef3cd72009-12-10 01:03:50 -080093 LOCAL_STATIC_LIBRARIES += libaudiointerface libaudiopolicybase
Eric Laurenta553c252009-07-17 12:17:14 -070094 LOCAL_CFLAGS += -DGENERIC_AUDIO
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080095else
Eric Laurenta04aaff2009-07-25 01:41:52 -070096 LOCAL_SHARED_LIBRARIES += libaudio libaudiopolicy
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080097endif
98
Eric Laurenta553c252009-07-17 12:17:14 -070099ifeq ($(TARGET_SIMULATOR),true)
100 LOCAL_LDLIBS += -ldl
101else
102 LOCAL_SHARED_LIBRARIES += libdl
103endif
104
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800105LOCAL_MODULE:= libaudioflinger
106
107ifeq ($(BOARD_HAVE_BLUETOOTH),true)
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800108 LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP
Marco Nelissenee028d572009-07-29 09:47:23 -0700109 LOCAL_SHARED_LIBRARIES += liba2dp
Eric Laurenta553c252009-07-17 12:17:14 -0700110endif
111
112ifeq ($(AUDIO_POLICY_TEST),true)
113 LOCAL_CFLAGS += -DAUDIO_POLICY_TEST
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800114endif
115
Mathias Agopianfad6c942009-07-14 02:08:27 -0700116ifeq ($(TARGET_SIMULATOR),true)
117 ifeq ($(HOST_OS),linux)
118 LOCAL_LDLIBS += -lrt -lpthread
119 endif
120endif
121
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800122include $(BUILD_SHARED_LIBRARY)