blob: 015ab7f103a43305182d50faef73682242cb0970 [file] [log] [blame]
Mingming Yin67e34512014-04-03 17:47:22 -07001ifneq ($(strip $(BOARD_USES_AOSP_AUDIO_POLICY_MANAGER)),true)
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -07002
3LOCAL_PATH := $(call my-dir)
4include $(CLEAR_VARS)
5
6LOCAL_SRC_FILES := AudioPolicyManager.cpp
7
8LOCAL_SHARED_LIBRARIES := \
9 libcutils \
10 libutils \
11 liblog
12
13LOCAL_STATIC_LIBRARIES := \
14 libmedia_helper
15
16LOCAL_WHOLE_STATIC_LIBRARIES := \
17 libaudiopolicy_legacy
18
19LOCAL_MODULE := audio_policy.$(TARGET_BOARD_PLATFORM)
Apoorv Raghuvanshi1b555f72014-05-29 12:48:15 -070020LOCAL_MODULE_RELATIVE_PATH := hw
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070021LOCAL_MODULE_TAGS := optional
22
Ravi Kumar Alamanda88d28cb2013-10-15 16:59:57 -070023ifneq ($(strip $(AUDIO_FEATURE_DISABLED_FM)),true)
24LOCAL_CFLAGS += -DAUDIO_EXTN_FM_ENABLED
25endif
26ifneq ($(strip $(AUDIO_FEATURE_DISABLED_PROXY_DEVICE)),true)
27LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED
28endif
29ifneq ($(strip $(AUDIO_FEATURE_DISABLED_INCALL_MUSIC)),true)
30LOCAL_CFLAGS += -DAUDIO_EXTN_INCALL_MUSIC_ENABLED
31endif
Tanya Finkelde496d82014-03-05 23:59:45 +020032ifneq ($(strip $(AUDIO_FEATURE_DISABLED_HDMI_SPK)),true)
33LOCAL_CFLAGS += -DAUDIO_EXTN_HDMI_SPK_ENABLED
34endif
Ravi Kumar Alamanda88d28cb2013-10-15 16:59:57 -070035
Naresh Tanniru36c08932014-01-27 18:40:53 +053036
37ifeq ($(strip $(TARGET_BOARD_PLATFORM)),msm8916)
38LOCAL_CFLAGS += -DVOICE_CONCURRENCY
39LOCAL_CFLAGS += -DWFD_CONCURRENCY
40endif
41
Subhash Chandra Bose Naripeddy5eb02f72014-04-11 17:54:09 -070042ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MULTIPLE_TUNNEL)), true)
43LOCAL_CFLAGS += -DMULTIPLE_OFFLOAD_ENABLED
44endif
Naresh Tanniru36c08932014-01-27 18:40:53 +053045
46
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070047include $(BUILD_SHARED_LIBRARY)
48
49endif