1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES:= \
6    AudioPolicyService.cpp \
7    AudioPolicyEffects.cpp
8
9ifeq ($(USE_LEGACY_AUDIO_POLICY), 1)
10LOCAL_SRC_FILES += \
11    AudioPolicyInterfaceImplLegacy.cpp \
12    AudioPolicyClientImplLegacy.cpp
13
14    LOCAL_CFLAGS += -DUSE_LEGACY_AUDIO_POLICY
15else
16LOCAL_SRC_FILES += \
17    AudioPolicyInterfaceImpl.cpp \
18    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
26LOCAL_SHARED_LIBRARIES := \
27    libcutils \
28    libutils \
29    liblog \
30    libbinder \
31    libmedia \
32    libhardware \
33    libhardware_legacy \
34    libserviceutility
35
36ifneq ($(USE_LEGACY_AUDIO_POLICY), 1)
37LOCAL_SHARED_LIBRARIES += \
38    libaudiopolicymanager
39endif
40
41LOCAL_STATIC_LIBRARIES := \
42    libmedia_helper
43
44LOCAL_MODULE:= libaudiopolicyservice
45
46LOCAL_CFLAGS += -fvisibility=hidden
47
48include $(BUILD_SHARED_LIBRARY)
49
50
51ifneq ($(USE_LEGACY_AUDIO_POLICY), 1)
52
53include $(CLEAR_VARS)
54
55LOCAL_SRC_FILES:= \
56    AudioPolicyManager.cpp
57
58LOCAL_SHARED_LIBRARIES := \
59    libcutils \
60    libutils \
61    liblog \
62    libsoundtrigger
63
64LOCAL_STATIC_LIBRARIES := \
65    libmedia_helper
66
67LOCAL_MODULE:= libaudiopolicymanagerdefault
68
69include $(BUILD_SHARED_LIBRARY)
70
71ifneq ($(USE_CUSTOM_AUDIO_POLICY), 1)
72
73include $(CLEAR_VARS)
74
75LOCAL_SRC_FILES:= \
76    AudioPolicyFactory.cpp
77
78LOCAL_SHARED_LIBRARIES := \
79    libaudiopolicymanagerdefault
80
81LOCAL_MODULE:= libaudiopolicymanager
82
83include $(BUILD_SHARED_LIBRARY)
84
85endif
86endif
87