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