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