1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_SRC_FILES:= \ 6 service/AudioPolicyService.cpp \ 7 service/AudioPolicyEffects.cpp \ 8 service/AudioPolicyInterfaceImpl.cpp \ 9 service/AudioPolicyClientImpl.cpp 10 11LOCAL_C_INCLUDES := \ 12 $(TOPDIR)frameworks/av/services/audioflinger \ 13 $(call include-path-for, audio-utils) \ 14 $(TOPDIR)frameworks/av/services/audiopolicy/common/include \ 15 $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \ 16 $(TOPDIR)frameworks/av/services/audiopolicy/utilities 17 18LOCAL_SHARED_LIBRARIES := \ 19 libcutils \ 20 libutils \ 21 liblog \ 22 libbinder \ 23 libaudioclient \ 24 libhardware_legacy \ 25 libserviceutility \ 26 libaudiopolicymanager \ 27 libmedia_helper 28 29LOCAL_STATIC_LIBRARIES := \ 30 libaudiopolicycomponents 31 32LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) 33 34LOCAL_MODULE:= libaudiopolicyservice 35 36LOCAL_CFLAGS += -fvisibility=hidden 37LOCAL_CFLAGS += -Wall -Werror 38 39include $(BUILD_SHARED_LIBRARY) 40 41include $(CLEAR_VARS) 42 43LOCAL_SRC_FILES:= managerdefault/AudioPolicyManager.cpp 44 45LOCAL_SHARED_LIBRARIES := \ 46 libcutils \ 47 libutils \ 48 liblog \ 49 libsoundtrigger 50 51ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1) 52 53ifneq ($(USE_XML_AUDIO_POLICY_CONF), 1) 54$(error Configurable policy does not support legacy conf file) 55endif #ifneq ($(USE_XML_AUDIO_POLICY_CONF), 1) 56 57LOCAL_REQUIRED_MODULES := \ 58 parameter-framework.policy \ 59 audio_policy_criteria.conf \ 60 61LOCAL_C_INCLUDES += $(TOPDIR)frameworks/av/services/audiopolicy/engineconfigurable/include 62 63LOCAL_SHARED_LIBRARIES += libaudiopolicyengineconfigurable 64 65else 66 67LOCAL_SHARED_LIBRARIES += libaudiopolicyenginedefault 68 69endif # ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1) 70 71LOCAL_C_INCLUDES += \ 72 $(TOPDIR)frameworks/av/services/audiopolicy/common/include \ 73 $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \ 74 $(TOPDIR)frameworks/av/services/audiopolicy/utilities 75 76LOCAL_STATIC_LIBRARIES := \ 77 libaudiopolicycomponents 78 79LOCAL_SHARED_LIBRARIES += libmedia_helper 80 81ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) 82LOCAL_SHARED_LIBRARIES += libicuuc libxml2 83 84LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF 85endif #ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) 86 87LOCAL_CFLAGS += -Wall -Werror 88 89LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) 90 91LOCAL_MODULE:= libaudiopolicymanagerdefault 92 93include $(BUILD_SHARED_LIBRARY) 94 95ifneq ($(USE_CUSTOM_AUDIO_POLICY), 1) 96 97include $(CLEAR_VARS) 98 99LOCAL_SRC_FILES:= \ 100 manager/AudioPolicyFactory.cpp 101 102LOCAL_SHARED_LIBRARIES := \ 103 libaudiopolicymanagerdefault 104 105LOCAL_STATIC_LIBRARIES := \ 106 libaudiopolicycomponents 107 108LOCAL_C_INCLUDES += \ 109 $(TOPDIR)frameworks/av/services/audiopolicy/common/include \ 110 $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface 111 112LOCAL_CFLAGS := -Wall -Werror 113 114LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) 115 116LOCAL_MODULE:= libaudiopolicymanager 117 118include $(BUILD_SHARED_LIBRARY) 119 120endif 121 122####################################################################### 123# Recursive call sub-folder Android.mk 124# 125include $(call all-makefiles-under,$(LOCAL_PATH)) 126