1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_SRC_FILES:= AudioPolicyManager.cpp 6 7LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 8 9LOCAL_SHARED_LIBRARIES := \ 10 libcutils \ 11 libutils \ 12 liblog \ 13 libaudiopolicy \ 14 libsoundtrigger 15 16ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1) 17 18ifneq ($(USE_XML_AUDIO_POLICY_CONF), 1) 19$(error Configurable policy does not support legacy conf file) 20endif #ifneq ($(USE_XML_AUDIO_POLICY_CONF), 1) 21 22LOCAL_SHARED_LIBRARIES += libaudiopolicyengineconfigurable 23 24else 25 26LOCAL_SHARED_LIBRARIES += libaudiopolicyenginedefault 27 28endif # ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1) 29 30LOCAL_C_INCLUDES += \ 31 $(call include-path-for, audio-utils) 32 33LOCAL_HEADER_LIBRARIES := \ 34 libaudiopolicycommon \ 35 libaudiopolicyengine_interface_headers \ 36 libaudiopolicymanager_interface_headers 37 38LOCAL_STATIC_LIBRARIES := \ 39 libaudiopolicycomponents 40 41LOCAL_SHARED_LIBRARIES += libmedia_helper 42LOCAL_SHARED_LIBRARIES += libmediametrics 43 44LOCAL_SHARED_LIBRARIES += libbinder libhidlbase libxml2 45 46ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) 47LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF 48endif #ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) 49 50LOCAL_CFLAGS += -Wall -Werror 51 52LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) 53 54LOCAL_MODULE:= libaudiopolicymanagerdefault 55 56include $(BUILD_SHARED_LIBRARY) 57