Android.mk revision f4ad6e5637b6deccdac4b60615383f290b3806cf
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    $(TOPDIR)frameworks/av/services/audiopolicy/utilities \
28
29LOCAL_SHARED_LIBRARIES := \
30    libcutils \
31    libutils \
32    liblog \
33    libbinder \
34    libmedia \
35    libhardware \
36    libhardware_legacy \
37    libserviceutility
38
39ifneq ($(USE_LEGACY_AUDIO_POLICY), 1)
40LOCAL_SHARED_LIBRARIES += \
41    libaudiopolicymanager
42endif
43
44LOCAL_STATIC_LIBRARIES := \
45    libmedia_helper \
46    libaudiopolicycomponents
47
48LOCAL_MODULE:= libaudiopolicyservice
49
50LOCAL_CFLAGS += -fvisibility=hidden
51
52include $(BUILD_SHARED_LIBRARY)
53
54
55ifneq ($(USE_LEGACY_AUDIO_POLICY), 1)
56
57include $(CLEAR_VARS)
58
59LOCAL_SRC_FILES:= \
60    managerdefault/AudioPolicyManager.cpp \
61
62LOCAL_SHARED_LIBRARIES := \
63    libcutils \
64    libutils \
65    liblog \
66    libsoundtrigger
67
68ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1)
69
70ifneq ($(USE_XML_AUDIO_POLICY_CONF), 1)
71$(error Configurable policy does not support legacy conf file)
72endif #ifneq ($(USE_XML_AUDIO_POLICY_CONF), 1)
73
74LOCAL_REQUIRED_MODULES := \
75    parameter-framework.policy \
76    audio_policy_criteria.conf \
77
78LOCAL_C_INCLUDES += \
79    $(TOPDIR)frameworks/av/services/audiopolicy/engineconfigurable/include
80
81LOCAL_SHARED_LIBRARIES += libaudiopolicyengineconfigurable
82
83else
84
85LOCAL_SHARED_LIBRARIES += libaudiopolicyenginedefault
86
87endif
88
89LOCAL_C_INCLUDES += \
90    $(TOPDIR)frameworks/av/services/audiopolicy/common/include \
91    $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \
92    $(TOPDIR)frameworks/av/services/audiopolicy/utilities
93
94LOCAL_STATIC_LIBRARIES := \
95    libmedia_helper \
96    libaudiopolicycomponents
97
98ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
99LOCAL_STATIC_LIBRARIES += libxml2
100
101LOCAL_SHARED_LIBRARIES += libicuuc
102
103LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF
104endif #ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
105
106LOCAL_MODULE:= libaudiopolicymanagerdefault
107
108include $(BUILD_SHARED_LIBRARY)
109
110ifneq ($(USE_CUSTOM_AUDIO_POLICY), 1)
111
112include $(CLEAR_VARS)
113
114LOCAL_SRC_FILES:= \
115    manager/AudioPolicyFactory.cpp
116
117LOCAL_SHARED_LIBRARIES := \
118    libaudiopolicymanagerdefault
119
120LOCAL_STATIC_LIBRARIES := \
121    libaudiopolicycomponents
122
123LOCAL_C_INCLUDES += \
124    $(TOPDIR)frameworks/av/services/audiopolicy/common/include \
125    $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \
126
127LOCAL_MODULE:= libaudiopolicymanager
128
129include $(BUILD_SHARED_LIBRARY)
130
131endif
132endif
133
134#######################################################################
135# Recursive call sub-folder Android.mk
136#
137include $(call all-makefiles-under,$(LOCAL_PATH))
138