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:= \ |
Eric Laurent | dce54a1 | 2014-03-10 12:19:46 -0700 | [diff] [blame] | 6 | AudioPolicyService.cpp |
| 7 | |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame^] | 8 | # TODO: remove when enabling new audio policy |
Eric Laurent | dce54a1 | 2014-03-10 12:19:46 -0700 | [diff] [blame] | 9 | USE_LEGACY_AUDIO_POLICY = 1 |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame^] | 10 | |
Eric Laurent | dce54a1 | 2014-03-10 12:19:46 -0700 | [diff] [blame] | 11 | ifeq ($(USE_LEGACY_AUDIO_POLICY), 1) |
| 12 | LOCAL_SRC_FILES += \ |
| 13 | AudioPolicyInterfaceImplLegacy.cpp \ |
| 14 | AudioPolicyClientImplLegacy.cpp |
| 15 | |
| 16 | LOCAL_CFLAGS += -DUSE_LEGACY_AUDIO_POLICY |
| 17 | else |
| 18 | LOCAL_SRC_FILES += \ |
Eric Laurent | 2d388ec | 2014-03-07 13:25:54 -0800 | [diff] [blame] | 19 | AudioPolicyInterfaceImpl.cpp \ |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame^] | 20 | AudioPolicyClientImpl.cpp |
Eric Laurent | dce54a1 | 2014-03-10 12:19:46 -0700 | [diff] [blame] | 21 | endif |
Eric Laurent | c7e5040 | 2014-03-06 14:35:55 -0800 | [diff] [blame] | 22 | |
| 23 | LOCAL_C_INCLUDES := \ |
| 24 | $(TOPDIR)frameworks/av/services/audioflinger \ |
| 25 | $(call include-path-for, audio-effects) \ |
| 26 | $(call include-path-for, audio-utils) |
| 27 | |
| 28 | LOCAL_SHARED_LIBRARIES := \ |
| 29 | libcutils \ |
| 30 | libutils \ |
| 31 | liblog \ |
| 32 | libbinder \ |
| 33 | libmedia \ |
| 34 | libhardware \ |
Eric Laurent | 98c6be0 | 2014-05-21 08:14:08 -0700 | [diff] [blame^] | 35 | libhardware_legacy \ |
| 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 := \ |
| 43 | libmedia_helper \ |
| 44 | libserviceutility |
| 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 | |
| 52 | ifneq ($(USE_LEGACY_AUDIO_POLICY), 1) |
| 53 | ifneq ($(USE_CUSTOM_AUDIO_POLICY), 1) |
| 54 | |
| 55 | include $(CLEAR_VARS) |
| 56 | |
| 57 | LOCAL_SRC_FILES:= \ |
| 58 | AudioPolicyManager.cpp |
| 59 | |
| 60 | LOCAL_SHARED_LIBRARIES := \ |
| 61 | libcutils \ |
| 62 | libutils \ |
| 63 | liblog |
| 64 | |
| 65 | LOCAL_STATIC_LIBRARIES := \ |
| 66 | libmedia_helper |
| 67 | |
| 68 | LOCAL_MODULE:= libaudiopolicymanager |
| 69 | |
| 70 | include $(BUILD_SHARED_LIBRARY) |
| 71 | |
| 72 | endif |
| 73 | endif |