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 |
François Gaffie | 98cc191 | 2015-03-18 17:52:40 +0100 | [diff] [blame^] | 19 | |
Eric Laurent | dce54a1 | 2014-03-10 12:19:46 -0700 | [diff] [blame] | 20 | endif |
Eric Laurent | c7e5040 | 2014-03-06 14:35:55 -0800 | [diff] [blame] | 21 | |
| 22 | LOCAL_C_INCLUDES := \ |
| 23 | $(TOPDIR)frameworks/av/services/audioflinger \ |
| 24 | $(call include-path-for, audio-effects) \ |
| 25 | $(call include-path-for, audio-utils) |
| 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 | |
| 66 | LOCAL_STATIC_LIBRARIES := \ |
François Gaffie | 98cc191 | 2015-03-18 17:52:40 +0100 | [diff] [blame^] | 67 | libmedia_helper \ |
| 68 | libaudiopolicycomponents |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 69 | |
Eric Laurent | f269b8e | 2014-06-09 20:01:29 -0700 | [diff] [blame] | 70 | LOCAL_MODULE:= libaudiopolicymanagerdefault |
| 71 | |
| 72 | include $(BUILD_SHARED_LIBRARY) |
| 73 | |
| 74 | ifneq ($(USE_CUSTOM_AUDIO_POLICY), 1) |
| 75 | |
| 76 | include $(CLEAR_VARS) |
| 77 | |
| 78 | LOCAL_SRC_FILES:= \ |
Jean-Michel Trivi | 56ec4ff | 2015-01-23 16:45:18 -0800 | [diff] [blame] | 79 | manager/AudioPolicyFactory.cpp |
Eric Laurent | f269b8e | 2014-06-09 20:01:29 -0700 | [diff] [blame] | 80 | |
| 81 | LOCAL_SHARED_LIBRARIES := \ |
| 82 | libaudiopolicymanagerdefault |
| 83 | |
François Gaffie | 98cc191 | 2015-03-18 17:52:40 +0100 | [diff] [blame^] | 84 | LOCAL_STATIC_LIBRARIES := \ |
| 85 | libaudiopolicycomponents |
| 86 | |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame] | 87 | LOCAL_MODULE:= libaudiopolicymanager |
| 88 | |
| 89 | include $(BUILD_SHARED_LIBRARY) |
| 90 | |
| 91 | endif |
| 92 | endif |
François Gaffie | 98cc191 | 2015-03-18 17:52:40 +0100 | [diff] [blame^] | 93 | |
| 94 | ####################################################################### |
| 95 | # Recursive call sub-folder Android.mk |
| 96 | # |
| 97 | include $(call all-makefiles-under,$(LOCAL_PATH)) |