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