blob: 334967ec06ee19b83f6fbf41c5e7fda02fd4d67c [file] [log] [blame]
Eric Laurentc7e50402014-03-06 14:35:55 -08001LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
Eric Laurent2d388ec2014-03-07 13:25:54 -08005LOCAL_SRC_FILES:= \
Jean-Michel Trivi56ec4ff2015-01-23 16:45:18 -08006 service/AudioPolicyService.cpp \
7 service/AudioPolicyEffects.cpp
Eric Laurentdce54a12014-03-10 12:19:46 -07008
Eric Laurentdce54a12014-03-10 12:19:46 -07009ifeq ($(USE_LEGACY_AUDIO_POLICY), 1)
10LOCAL_SRC_FILES += \
Jean-Michel Trivi56ec4ff2015-01-23 16:45:18 -080011 service/AudioPolicyInterfaceImplLegacy.cpp \
12 service/AudioPolicyClientImplLegacy.cpp
Eric Laurentdce54a12014-03-10 12:19:46 -070013
14 LOCAL_CFLAGS += -DUSE_LEGACY_AUDIO_POLICY
15else
16LOCAL_SRC_FILES += \
Jean-Michel Trivi56ec4ff2015-01-23 16:45:18 -080017 service/AudioPolicyInterfaceImpl.cpp \
18 service/AudioPolicyClientImpl.cpp
Eric Laurentdce54a12014-03-10 12:19:46 -070019endif
Eric Laurentc7e50402014-03-06 14:35:55 -080020
21LOCAL_C_INCLUDES := \
22 $(TOPDIR)frameworks/av/services/audioflinger \
23 $(call include-path-for, audio-effects) \
François Gaffie53615e22015-03-19 09:24:12 +010024 $(call include-path-for, audio-utils) \
25 $(TOPDIR)frameworks/av/services/audiopolicy/common/include
Eric Laurentc7e50402014-03-06 14:35:55 -080026
27LOCAL_SHARED_LIBRARIES := \
28 libcutils \
29 libutils \
30 liblog \
31 libbinder \
32 libmedia \
33 libhardware \
Chong Zhang5db78972015-01-07 10:42:33 -080034 libhardware_legacy \
35 libserviceutility
Eric Laurent98c6be02014-05-21 08:14:08 -070036
37ifneq ($(USE_LEGACY_AUDIO_POLICY), 1)
38LOCAL_SHARED_LIBRARIES += \
39 libaudiopolicymanager
40endif
Eric Laurentc7e50402014-03-06 14:35:55 -080041
42LOCAL_STATIC_LIBRARIES := \
François Gaffie98cc1912015-03-18 17:52:40 +010043 libmedia_helper \
44 libaudiopolicycomponents
Eric Laurentc7e50402014-03-06 14:35:55 -080045
Eric Laurent98c6be02014-05-21 08:14:08 -070046LOCAL_MODULE:= libaudiopolicyservice
Eric Laurentc7e50402014-03-06 14:35:55 -080047
48LOCAL_CFLAGS += -fvisibility=hidden
49
50include $(BUILD_SHARED_LIBRARY)
Eric Laurent98c6be02014-05-21 08:14:08 -070051
Eric Laurentf269b8e2014-06-09 20:01:29 -070052
Eric Laurent98c6be02014-05-21 08:14:08 -070053ifneq ($(USE_LEGACY_AUDIO_POLICY), 1)
Eric Laurent98c6be02014-05-21 08:14:08 -070054
55include $(CLEAR_VARS)
56
57LOCAL_SRC_FILES:= \
Jean-Michel Trivi56ec4ff2015-01-23 16:45:18 -080058 managerdefault/AudioPolicyManager.cpp \
Eric Laurent98c6be02014-05-21 08:14:08 -070059
60LOCAL_SHARED_LIBRARIES := \
61 libcutils \
62 libutils \
Eric Laurentdf3dc7e2014-07-27 18:39:40 -070063 liblog \
64 libsoundtrigger
Eric Laurent98c6be02014-05-21 08:14:08 -070065
François Gaffie53615e22015-03-19 09:24:12 +010066LOCAL_C_INCLUDES += \
67 $(TOPDIR)frameworks/av/services/audiopolicy/common/include \
68
Eric Laurent98c6be02014-05-21 08:14:08 -070069LOCAL_STATIC_LIBRARIES := \
François Gaffie98cc1912015-03-18 17:52:40 +010070 libmedia_helper \
71 libaudiopolicycomponents
Eric Laurent98c6be02014-05-21 08:14:08 -070072
Eric Laurentf269b8e2014-06-09 20:01:29 -070073LOCAL_MODULE:= libaudiopolicymanagerdefault
74
75include $(BUILD_SHARED_LIBRARY)
76
77ifneq ($(USE_CUSTOM_AUDIO_POLICY), 1)
78
79include $(CLEAR_VARS)
80
81LOCAL_SRC_FILES:= \
Jean-Michel Trivi56ec4ff2015-01-23 16:45:18 -080082 manager/AudioPolicyFactory.cpp
Eric Laurentf269b8e2014-06-09 20:01:29 -070083
84LOCAL_SHARED_LIBRARIES := \
85 libaudiopolicymanagerdefault
86
François Gaffie98cc1912015-03-18 17:52:40 +010087LOCAL_STATIC_LIBRARIES := \
88 libaudiopolicycomponents
89
François Gaffie53615e22015-03-19 09:24:12 +010090LOCAL_C_INCLUDES += \
91 $(TOPDIR)frameworks/av/services/audiopolicy/common/include \
92
Eric Laurent98c6be02014-05-21 08:14:08 -070093LOCAL_MODULE:= libaudiopolicymanager
94
95include $(BUILD_SHARED_LIBRARY)
96
97endif
98endif
François Gaffie98cc1912015-03-18 17:52:40 +010099
100#######################################################################
101# Recursive call sub-folder Android.mk
102#
103include $(call all-makefiles-under,$(LOCAL_PATH))