Android.mk revision 2110e04cdfbf9ad85ce154ce5f778ee5ccfc95eb
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
67LOCAL_SHARED_LIBRARIES += libaudiopolicyenginedefault
68
69LOCAL_C_INCLUDES += \
70    $(TOPDIR)frameworks/av/services/audiopolicy/common/include \
71    $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \
72
73LOCAL_STATIC_LIBRARIES := \
74    libmedia_helper \
75    libaudiopolicycomponents
76
77LOCAL_MODULE:= libaudiopolicymanagerdefault
78
79include $(BUILD_SHARED_LIBRARY)
80
81ifneq ($(USE_CUSTOM_AUDIO_POLICY), 1)
82
83include $(CLEAR_VARS)
84
85LOCAL_SRC_FILES:= \
86    manager/AudioPolicyFactory.cpp
87
88LOCAL_SHARED_LIBRARIES := \
89    libaudiopolicymanagerdefault
90
91LOCAL_STATIC_LIBRARIES := \
92    libaudiopolicycomponents
93
94LOCAL_C_INCLUDES += \
95    $(TOPDIR)frameworks/av/services/audiopolicy/common/include \
96    $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \
97
98LOCAL_MODULE:= libaudiopolicymanager
99
100include $(BUILD_SHARED_LIBRARY)
101
102endif
103endif
104
105#######################################################################
106# Recursive call sub-folder Android.mk
107#
108include $(call all-makefiles-under,$(LOCAL_PATH))
109