Eric Laurent | c7e5040 | 2014-03-06 14:35:55 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
Eric Laurent | 2d388ec | 2014-03-07 13:25:54 -0800 | [diff] [blame] | 5 | LOCAL_SRC_FILES:= \ |
Jean-Michel Trivi | 56ec4ff | 2015-01-23 16:45:18 -0800 | [diff] [blame] | 6 | service/AudioPolicyService.cpp \ |
| 7 | service/AudioPolicyEffects.cpp |
Eric Laurent | dce54a1 | 2014-03-10 12:19:46 -0700 | [diff] [blame] | 8 | |
Eric Laurent | dce54a1 | 2014-03-10 12:19:46 -0700 | [diff] [blame] | 9 | ifeq ($(USE_LEGACY_AUDIO_POLICY), 1) |
| 10 | LOCAL_SRC_FILES += \ |
Jean-Michel Trivi | 56ec4ff | 2015-01-23 16:45:18 -0800 | [diff] [blame] | 11 | service/AudioPolicyInterfaceImplLegacy.cpp \ |
| 12 | service/AudioPolicyClientImplLegacy.cpp |
Eric Laurent | dce54a1 | 2014-03-10 12:19:46 -0700 | [diff] [blame] | 13 | |
| 14 | LOCAL_CFLAGS += -DUSE_LEGACY_AUDIO_POLICY |
| 15 | else |
| 16 | LOCAL_SRC_FILES += \ |
Jean-Michel Trivi | 56ec4ff | 2015-01-23 16:45:18 -0800 | [diff] [blame] | 17 | service/AudioPolicyInterfaceImpl.cpp \ |
| 18 | service/AudioPolicyClientImpl.cpp |
Eric Laurent | dce54a1 | 2014-03-10 12:19:46 -0700 | [diff] [blame] | 19 | endif |
Eric Laurent | c7e5040 | 2014-03-06 14:35:55 -0800 | [diff] [blame] | 20 | |
| 21 | LOCAL_C_INCLUDES := \ |
| 22 | $(TOPDIR)frameworks/av/services/audioflinger \ |
| 23 | $(call include-path-for, audio-effects) \ |
François Gaffie | 53615e2 | 2015-03-19 09:24:12 +0100 | [diff] [blame] | 24 | $(call include-path-for, audio-utils) \ |
François Gaffie | 2110e04 | 2015-03-24 08:41:51 +0100 | [diff] [blame] | 25 | $(TOPDIR)frameworks/av/services/audiopolicy/common/include \ |
| 26 | $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \ |
François Gaffie | d1ab2bd | 2015-12-02 18:20:06 +0100 | [diff] [blame^] | 27 | $(TOPDIR)frameworks/av/services/audiopolicy/utilities |
Eric Laurent | c7e5040 | 2014-03-06 14:35:55 -0800 | [diff] [blame] | 28 | |
| 29 | LOCAL_SHARED_LIBRARIES := \ |
| 30 | libcutils \ |
| 31 | libutils \ |
| 32 | liblog \ |
| 33 | libbinder \ |
| 34 | libmedia \ |
| 35 | libhardware \ |
Chong Zhang | 5db7897 | 2015-01-07 10:42:33 -0800 | [diff] [blame] | 36 | libhardware_legacy \ |
| 37 | libserviceutility |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 38 | |
| 39 | ifneq ($(USE_LEGACY_AUDIO_POLICY), 1) |
| 40 | LOCAL_SHARED_LIBRARIES += \ |
| 41 | libaudiopolicymanager |
| 42 | endif |
Eric Laurent | c7e5040 | 2014-03-06 14:35:55 -0800 | [diff] [blame] | 43 | |
| 44 | LOCAL_STATIC_LIBRARIES := \ |
François Gaffie | 98cc191 | 2015-03-18 17:52:40 +0100 | [diff] [blame] | 45 | libmedia_helper \ |
| 46 | libaudiopolicycomponents |
Eric Laurent | c7e5040 | 2014-03-06 14:35:55 -0800 | [diff] [blame] | 47 | |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 48 | LOCAL_MODULE:= libaudiopolicyservice |
Eric Laurent | c7e5040 | 2014-03-06 14:35:55 -0800 | [diff] [blame] | 49 | |
| 50 | LOCAL_CFLAGS += -fvisibility=hidden |
| 51 | |
| 52 | include $(BUILD_SHARED_LIBRARY) |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 53 | |
Eric Laurent | f269b8e | 2014-06-09 20:01:29 -0700 | [diff] [blame] | 54 | |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 55 | ifneq ($(USE_LEGACY_AUDIO_POLICY), 1) |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 56 | |
| 57 | include $(CLEAR_VARS) |
| 58 | |
François Gaffie | d1ab2bd | 2015-12-02 18:20:06 +0100 | [diff] [blame^] | 59 | LOCAL_SRC_FILES:= managerdefault/AudioPolicyManager.cpp |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 60 | |
| 61 | LOCAL_SHARED_LIBRARIES := \ |
| 62 | libcutils \ |
| 63 | libutils \ |
Eric Laurent | df3dc7e | 2014-07-27 18:39:40 -0700 | [diff] [blame] | 64 | liblog \ |
| 65 | libsoundtrigger |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 66 | |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 67 | ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1) |
| 68 | |
François Gaffie | f4ad6e5 | 2015-11-19 16:59:57 +0100 | [diff] [blame] | 69 | ifneq ($(USE_XML_AUDIO_POLICY_CONF), 1) |
| 70 | $(error Configurable policy does not support legacy conf file) |
| 71 | endif #ifneq ($(USE_XML_AUDIO_POLICY_CONF), 1) |
| 72 | |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 73 | LOCAL_REQUIRED_MODULES := \ |
| 74 | parameter-framework.policy \ |
| 75 | audio_policy_criteria.conf \ |
| 76 | |
François Gaffie | d1ab2bd | 2015-12-02 18:20:06 +0100 | [diff] [blame^] | 77 | LOCAL_C_INCLUDES += $(TOPDIR)frameworks/av/services/audiopolicy/engineconfigurable/include |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 78 | |
| 79 | LOCAL_SHARED_LIBRARIES += libaudiopolicyengineconfigurable |
| 80 | |
| 81 | else |
| 82 | |
François Gaffie | 2110e04 | 2015-03-24 08:41:51 +0100 | [diff] [blame] | 83 | LOCAL_SHARED_LIBRARIES += libaudiopolicyenginedefault |
| 84 | |
François Gaffie | d1ab2bd | 2015-12-02 18:20:06 +0100 | [diff] [blame^] | 85 | endif # ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1) |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 86 | |
François Gaffie | 53615e2 | 2015-03-19 09:24:12 +0100 | [diff] [blame] | 87 | LOCAL_C_INCLUDES += \ |
| 88 | $(TOPDIR)frameworks/av/services/audiopolicy/common/include \ |
François Gaffie | 2110e04 | 2015-03-24 08:41:51 +0100 | [diff] [blame] | 89 | $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \ |
François Gaffie | f4ad6e5 | 2015-11-19 16:59:57 +0100 | [diff] [blame] | 90 | $(TOPDIR)frameworks/av/services/audiopolicy/utilities |
François Gaffie | 53615e2 | 2015-03-19 09:24:12 +0100 | [diff] [blame] | 91 | |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 92 | LOCAL_STATIC_LIBRARIES := \ |
François Gaffie | 98cc191 | 2015-03-18 17:52:40 +0100 | [diff] [blame] | 93 | libmedia_helper \ |
| 94 | libaudiopolicycomponents |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 95 | |
François Gaffie | f4ad6e5 | 2015-11-19 16:59:57 +0100 | [diff] [blame] | 96 | ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) |
| 97 | LOCAL_STATIC_LIBRARIES += libxml2 |
| 98 | |
| 99 | LOCAL_SHARED_LIBRARIES += libicuuc |
| 100 | |
| 101 | LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF |
| 102 | endif #ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) |
| 103 | |
Eric Laurent | f269b8e | 2014-06-09 20:01:29 -0700 | [diff] [blame] | 104 | LOCAL_MODULE:= libaudiopolicymanagerdefault |
| 105 | |
| 106 | include $(BUILD_SHARED_LIBRARY) |
| 107 | |
| 108 | ifneq ($(USE_CUSTOM_AUDIO_POLICY), 1) |
| 109 | |
| 110 | include $(CLEAR_VARS) |
| 111 | |
| 112 | LOCAL_SRC_FILES:= \ |
Jean-Michel Trivi | 56ec4ff | 2015-01-23 16:45:18 -0800 | [diff] [blame] | 113 | manager/AudioPolicyFactory.cpp |
Eric Laurent | f269b8e | 2014-06-09 20:01:29 -0700 | [diff] [blame] | 114 | |
| 115 | LOCAL_SHARED_LIBRARIES := \ |
| 116 | libaudiopolicymanagerdefault |
| 117 | |
François Gaffie | 98cc191 | 2015-03-18 17:52:40 +0100 | [diff] [blame] | 118 | LOCAL_STATIC_LIBRARIES := \ |
| 119 | libaudiopolicycomponents |
| 120 | |
François Gaffie | 53615e2 | 2015-03-19 09:24:12 +0100 | [diff] [blame] | 121 | LOCAL_C_INCLUDES += \ |
| 122 | $(TOPDIR)frameworks/av/services/audiopolicy/common/include \ |
François Gaffie | d1ab2bd | 2015-12-02 18:20:06 +0100 | [diff] [blame^] | 123 | $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface |
François Gaffie | 53615e2 | 2015-03-19 09:24:12 +0100 | [diff] [blame] | 124 | |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 125 | LOCAL_MODULE:= libaudiopolicymanager |
| 126 | |
| 127 | include $(BUILD_SHARED_LIBRARY) |
| 128 | |
| 129 | endif |
| 130 | endif |
François Gaffie | 98cc191 | 2015-03-18 17:52:40 +0100 | [diff] [blame] | 131 | |
| 132 | ####################################################################### |
| 133 | # Recursive call sub-folder Android.mk |
| 134 | # |
| 135 | include $(call all-makefiles-under,$(LOCAL_PATH)) |