1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_SRC_FILES:= \ 6 src/DeviceDescriptor.cpp \ 7 src/AudioGain.cpp \ 8 src/HwModule.cpp \ 9 src/IOProfile.cpp \ 10 src/AudioPort.cpp \ 11 src/AudioProfile.cpp \ 12 src/AudioRoute.cpp \ 13 src/AudioPolicyMix.cpp \ 14 src/AudioPatch.cpp \ 15 src/AudioInputDescriptor.cpp \ 16 src/AudioOutputDescriptor.cpp \ 17 src/AudioCollections.cpp \ 18 src/EffectDescriptor.cpp \ 19 src/SoundTriggerSession.cpp \ 20 src/SessionRoute.cpp \ 21 src/AudioSourceDescriptor.cpp \ 22 src/VolumeCurve.cpp \ 23 src/TypeConverter.cpp \ 24 src/AudioSession.cpp 25 26LOCAL_SHARED_LIBRARIES := \ 27 libcutils \ 28 libmedia \ 29 libutils \ 30 liblog \ 31 32LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := libmedia 33 34LOCAL_C_INCLUDES := \ 35 $(LOCAL_PATH)/include \ 36 frameworks/av/services/audiopolicy/common/include \ 37 frameworks/av/services/audiopolicy \ 38 frameworks/av/services/audiopolicy/utilities \ 39 system/media/audio_utils/include \ 40 41ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) 42 43LOCAL_SRC_FILES += src/Serializer.cpp 44 45LOCAL_SHARED_LIBRARIES += libicuuc libxml2 46 47LOCAL_C_INCLUDES += \ 48 external/libxml2/include \ 49 external/icu/icu4c/source/common 50 51else 52 53LOCAL_SRC_FILES += \ 54 src/ConfigParsingUtils.cpp \ 55 src/StreamDescriptor.cpp \ 56 src/Gains.cpp 57 58endif #ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) 59 60LOCAL_EXPORT_C_INCLUDE_DIRS := \ 61 $(LOCAL_PATH)/include 62 63LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) 64 65LOCAL_CFLAGS := -Wall -Werror 66 67LOCAL_MODULE := libaudiopolicycomponents 68 69include $(BUILD_STATIC_LIBRARY) 70