blob: 811c2c99b94d2460e67beb4dc92d16097ba49102 [file] [log] [blame]
Ravi Kumar Alamanda1cf2a592014-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
Sharad Sangle36781612015-05-28 16:15:16 +05308LOCAL_C_INCLUDES := $(TOPDIR)frameworks/av/services \
9 $(TOPDIR)frameworks/av/services/audioflinger \
10 $(call include-path-for, audio-effects) \
11 $(call include-path-for, audio-utils) \
12 $(TOPDIR)frameworks/av/services/audiopolicy/common/include \
13 $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \
14 $(TOPDIR)frameworks/av/services/audiopolicy \
15 $(TOPDIR)frameworks/av/services/audiopolicy/common/managerdefinitions/include \
16 $(call include-path-for, avextension)
17
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070018
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070019LOCAL_SHARED_LIBRARIES := \
20 libcutils \
21 libutils \
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070022 liblog \
23 libsoundtrigger \
Sharad Sangle36781612015-05-28 16:15:16 +053024 libaudiopolicymanagerdefault \
25 libserviceutility
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070026
27LOCAL_STATIC_LIBRARIES := \
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070028 libmedia_helper \
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070029
Alexy Josephb1379942016-01-29 15:49:38 -080030LOCAL_CFLAGS += -Wall -Werror
31
Sharad Sanglec5766ff2015-06-04 20:24:10 +053032ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY)),true)
33LOCAL_CFLAGS += -DVOICE_CONCURRENCY
34endif
35
36ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true)
37LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY
38endif
39
Preetam Singh Ranawat8152ab42015-07-21 19:30:09 +053040ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true)
41 LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED
42endif
43
44ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24)),true)
45 LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED_24
46endif
47
Satya Krishna Pindiproli5d82d012015-08-12 18:21:25 +053048ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true)
49 LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED
50endif
51
Manish Dewangana6fc5442015-08-24 20:30:31 +053052ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD)),true)
53 LOCAL_CFLAGS += -DAAC_ADTS_OFFLOAD_ENABLED
54endif
55
Sharad Sangle4509cef2015-08-19 20:47:12 +053056ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_SPK)),true)
57 LOCAL_CFLAGS += -DAUDIO_EXTN_HDMI_SPK_ENABLED
58endif
59
60ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
61 LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED
62endif
63
Dhananjay Kumar8ccb8312015-10-21 12:36:19 +053064ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true)
65LOCAL_CFLAGS += -DFM_POWER_OPT
66endif
67
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070068LOCAL_MODULE := libaudiopolicymanager
Mingming Yin0ae14ea2014-07-09 17:55:56 -070069
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070070include $(BUILD_SHARED_LIBRARY)
71
72endif
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070073endif