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    libutils \
29    liblog \
30
31LOCAL_C_INCLUDES := \
32    $(LOCAL_PATH)/include \
33    $(TOPDIR)frameworks/av/services/audiopolicy/common/include \
34    $(TOPDIR)frameworks/av/services/audiopolicy \
35    $(TOPDIR)frameworks/av/services/audiopolicy/utilities \
36
37ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
38
39LOCAL_SRC_FILES += src/Serializer.cpp
40
41LOCAL_STATIC_LIBRARIES += libxml2
42
43LOCAL_SHARED_LIBRARIES += libicuuc
44
45LOCAL_C_INCLUDES += \
46    $(TOPDIR)external/libxml2/include \
47    $(TOPDIR)external/icu/icu4c/source/common
48
49else
50
51LOCAL_SRC_FILES += \
52    src/ConfigParsingUtils.cpp \
53    src/StreamDescriptor.cpp \
54    src/Gains.cpp
55
56endif #ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
57
58LOCAL_EXPORT_C_INCLUDE_DIRS := \
59    $(LOCAL_PATH)/include
60
61LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
62
63LOCAL_MODULE := libaudiopolicycomponents
64
65include $(BUILD_STATIC_LIBRARY)
66