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