blob: 26ee63cf9a5482f292092304fcf4a32c9d6b8292 [file] [log] [blame]
Ravi Kumar Alamandac95fd322014-10-29 20:31:15 -07001ifneq ($(USE_LEGACY_AUDIO_POLICY), 1)
2ifeq ($(USE_CUSTOM_AUDIO_POLICY), 1)
Mingming Yin0ae14ea2014-07-09 17:55:56 -07003LOCAL_PATH := $(call my-dir)
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -07004include $(CLEAR_VARS)
5
Mingming Yin0ae14ea2014-07-09 17:55:56 -07006LOCAL_SRC_FILES := AudioPolicyManager.cpp
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -07007
Ravi Kumar Alamandac95fd322014-10-29 20:31:15 -07008LOCAL_C_INCLUDES := $(TOPDIR)frameworks/av/services
9
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070010LOCAL_SHARED_LIBRARIES := \
11 libcutils \
12 libutils \
Ravi Kumar Alamandac95fd322014-10-29 20:31:15 -070013 liblog \
14 libsoundtrigger \
15 libaudiopolicymanagerdefault
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070016
17LOCAL_STATIC_LIBRARIES := \
Ravi Kumar Alamandac95fd322014-10-29 20:31:15 -070018 libmedia_helper \
19 libserviceutility
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070020
Ravi Kumar Alamandac95fd322014-10-29 20:31:15 -070021LOCAL_MODULE := libaudiopolicymanager
Mingming Yin0ae14ea2014-07-09 17:55:56 -070022
Ravi Kumar Alamandac95fd322014-10-29 20:31:15 -070023ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_VOIP)),true)
24LOCAL_CFLAGS += -DAUDIO_EXTN_COMPRESS_VOIP_ENABLED
25endif
26
27ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true)
28LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED
29endif
Mingming Yin0ae14ea2014-07-09 17:55:56 -070030
31ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM)),true)
32LOCAL_CFLAGS += -DAUDIO_EXTN_FM_ENABLED
33endif
Ravi Kumar Alamandac95fd322014-10-29 20:31:15 -070034
Mingming Yin0ae14ea2014-07-09 17:55:56 -070035ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_SPK)),true)
36LOCAL_CFLAGS += -DAUDIO_EXTN_HDMI_SPK_ENABLED
37endif
38
Ravi Kumar Alamandac95fd322014-10-29 20:31:15 -070039ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INCALL_MUSIC)),true)
40LOCAL_CFLAGS += -DAUDIO_EXTN_INCALL_MUSIC_ENABLED
Mingming Yin0ae14ea2014-07-09 17:55:56 -070041endif
42
43ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MULTIPLE_TUNNEL)), true)
44LOCAL_CFLAGS += -DMULTIPLE_OFFLOAD_ENABLED
45endif
46
Ravi Kumar Alamandac95fd322014-10-29 20:31:15 -070047ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true)
48 LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED
49endif
50
51ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
52LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED
53endif
54
55ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SSR)),true)
56LOCAL_CFLAGS += -DAUDIO_EXTN_SSR_ENABLED
57endif
58
59ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY)),true)
60LOCAL_CFLAGS += -DVOICE_CONCURRENCY
61endif
62
63ifeq ($(strip $(AUDIO_FEATURE_ENABLED_WFD_CONCURRENCY)),true)
64LOCAL_CFLAGS += -DWFD_CONCURRENCY
65endif
66
67ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true)
68LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY
69endif
70
71ifeq ($(strip $(DOLBY_UDC)),true)
72 LOCAL_CFLAGS += -DDOLBY_UDC
73endif #DOLBY_UDC
74ifeq ($(strip $(DOLBY_DDP)),true)
75 LOCAL_CFLAGS += -DDOLBY_DDP
76endif #DOLBY_DDP
77ifeq ($(strip $(DOLBY_DAP)),true)
78 ifdef DOLBY_DAP_OPENSLES
79 LOCAL_CFLAGS += -DDOLBY_DAP_OPENSLES
80 endif
81endif #DOLBY_END
82
Naresh Tanniru36c08932014-01-27 18:40:53 +053083
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070084include $(BUILD_SHARED_LIBRARY)
85
86endif
Ravi Kumar Alamandac95fd322014-10-29 20:31:15 -070087endif