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) \ |
| 25 | $(TOPDIR)frameworks/av/services/audiopolicy/common/include |
Eric Laurent | c7e5040 | 2014-03-06 14:35:55 -0800 | [diff] [blame] | 26 | |
| 27 | LOCAL_SHARED_LIBRARIES := \ |
| 28 | libcutils \ |
| 29 | libutils \ |
| 30 | liblog \ |
| 31 | libbinder \ |
| 32 | libmedia \ |
| 33 | libhardware \ |
Chong Zhang | 5db7897 | 2015-01-07 10:42:33 -0800 | [diff] [blame] | 34 | libhardware_legacy \ |
| 35 | libserviceutility |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 36 | |
| 37 | ifneq ($(USE_LEGACY_AUDIO_POLICY), 1) |
| 38 | LOCAL_SHARED_LIBRARIES += \ |
| 39 | libaudiopolicymanager |
| 40 | endif |
Eric Laurent | c7e5040 | 2014-03-06 14:35:55 -0800 | [diff] [blame] | 41 | |
| 42 | LOCAL_STATIC_LIBRARIES := \ |
François Gaffie | 98cc191 | 2015-03-18 17:52:40 +0100 | [diff] [blame] | 43 | libmedia_helper \ |
| 44 | libaudiopolicycomponents |
Eric Laurent | c7e5040 | 2014-03-06 14:35:55 -0800 | [diff] [blame] | 45 | |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 46 | LOCAL_MODULE:= libaudiopolicyservice |
Eric Laurent | c7e5040 | 2014-03-06 14:35:55 -0800 | [diff] [blame] | 47 | |
| 48 | LOCAL_CFLAGS += -fvisibility=hidden |
| 49 | |
| 50 | include $(BUILD_SHARED_LIBRARY) |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 51 | |
Eric Laurent | f269b8e | 2014-06-09 20:01:29 -0700 | [diff] [blame] | 52 | |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 53 | ifneq ($(USE_LEGACY_AUDIO_POLICY), 1) |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 54 | |
| 55 | include $(CLEAR_VARS) |
| 56 | |
| 57 | LOCAL_SRC_FILES:= \ |
Jean-Michel Trivi | 56ec4ff | 2015-01-23 16:45:18 -0800 | [diff] [blame] | 58 | managerdefault/AudioPolicyManager.cpp \ |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 59 | |
| 60 | LOCAL_SHARED_LIBRARIES := \ |
| 61 | libcutils \ |
| 62 | libutils \ |
Eric Laurent | df3dc7e | 2014-07-27 18:39:40 -0700 | [diff] [blame] | 63 | liblog \ |
| 64 | libsoundtrigger |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 65 | |
François Gaffie | 53615e2 | 2015-03-19 09:24:12 +0100 | [diff] [blame^] | 66 | LOCAL_C_INCLUDES += \ |
| 67 | $(TOPDIR)frameworks/av/services/audiopolicy/common/include \ |
| 68 | |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 69 | LOCAL_STATIC_LIBRARIES := \ |
François Gaffie | 98cc191 | 2015-03-18 17:52:40 +0100 | [diff] [blame] | 70 | libmedia_helper \ |
| 71 | libaudiopolicycomponents |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 72 | |
Eric Laurent | f269b8e | 2014-06-09 20:01:29 -0700 | [diff] [blame] | 73 | LOCAL_MODULE:= libaudiopolicymanagerdefault |
| 74 | |
| 75 | include $(BUILD_SHARED_LIBRARY) |
| 76 | |
| 77 | ifneq ($(USE_CUSTOM_AUDIO_POLICY), 1) |
| 78 | |
| 79 | include $(CLEAR_VARS) |
| 80 | |
| 81 | LOCAL_SRC_FILES:= \ |
Jean-Michel Trivi | 56ec4ff | 2015-01-23 16:45:18 -0800 | [diff] [blame] | 82 | manager/AudioPolicyFactory.cpp |
Eric Laurent | f269b8e | 2014-06-09 20:01:29 -0700 | [diff] [blame] | 83 | |
| 84 | LOCAL_SHARED_LIBRARIES := \ |
| 85 | libaudiopolicymanagerdefault |
| 86 | |
François Gaffie | 98cc191 | 2015-03-18 17:52:40 +0100 | [diff] [blame] | 87 | LOCAL_STATIC_LIBRARIES := \ |
| 88 | libaudiopolicycomponents |
| 89 | |
François Gaffie | 53615e2 | 2015-03-19 09:24:12 +0100 | [diff] [blame^] | 90 | LOCAL_C_INCLUDES += \ |
| 91 | $(TOPDIR)frameworks/av/services/audiopolicy/common/include \ |
| 92 | |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 93 | LOCAL_MODULE:= libaudiopolicymanager |
| 94 | |
| 95 | include $(BUILD_SHARED_LIBRARY) |
| 96 | |
| 97 | endif |
| 98 | endif |
François Gaffie | 98cc191 | 2015-03-18 17:52:40 +0100 | [diff] [blame] | 99 | |
| 100 | ####################################################################### |
| 101 | # Recursive call sub-folder Android.mk |
| 102 | # |
| 103 | include $(call all-makefiles-under,$(LOCAL_PATH)) |