blob: 9df7f9380ce747c008d8f7c568bc6aa8cb12ef25 [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
Sharad Sanglec5766ff2015-06-04 20:24:10 +053030ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY)),true)
31LOCAL_CFLAGS += -DVOICE_CONCURRENCY
32endif
33
34ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true)
35LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY
36endif
37
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070038LOCAL_MODULE := libaudiopolicymanager
Mingming Yin0ae14ea2014-07-09 17:55:56 -070039
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070040include $(BUILD_SHARED_LIBRARY)
41
42endif
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070043endif