1ifneq ($(USE_LEGACY_AUDIO_POLICY), 1) 2ifeq ($(USE_CUSTOM_AUDIO_POLICY), 1) 3LOCAL_PATH := $(call my-dir) 4include $(CLEAR_VARS) 5 6LOCAL_SRC_FILES := AudioPolicyManager.cpp 7 8LOCAL_C_INCLUDES := $(TOPDIR)frameworks/av/services \ 9 $(TOPDIR)frameworks/av/services/audioflinger \ 10 $(call include-path-for, audio-effects) \ 11 $(call include-path-for, audio-utils) \ 12 $(TOPDIR)frameworks/av/services/audiopolicy/common/include \ 13 $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \ 14 $(TOPDIR)frameworks/av/services/audiopolicy \ 15 $(TOPDIR)frameworks/av/services/audiopolicy/common/managerdefinitions/include \ 16 $(call include-path-for, avextension) 17 18 19LOCAL_SHARED_LIBRARIES := \ 20 libcutils \ 21 libutils \ 22 liblog \ 23 libsoundtrigger \ 24 libaudiopolicymanagerdefault \ 25 libserviceutility 26 27LOCAL_STATIC_LIBRARIES := \ 28 libmedia_helper \ 29 30ifneq ($(TARGET_SUPPORTS_WEARABLES),true) 31ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY)),true) 32LOCAL_CFLAGS += -DVOICE_CONCURRENCY 33endif 34endif 35 36ifneq ($(TARGET_SUPPORTS_WEARABLES),true) 37ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true) 38LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY 39endif 40endif 41 42ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true) 43LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED 44endif 45 46ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_SPK)),true) 47LOCAL_CFLAGS += -DAUDIO_EXTN_HDMI_SPK_ENABLED 48endif 49 50ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true) 51LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED 52endif 53 54ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_VOIP)),true) 55 LOCAL_CFLAGS += -DCOMPRESS_VOIP_ENABLED 56endif 57 58ifeq ($(strip $(AUDIO_FEATURE_NON_WEARABLE_TARGET)),true) 59 LOCAL_CFLAGS += -DNON_WEARABLE_TARGET 60else 61 LOCAL_CFLAGS += -Wno-error -fpermissive 62endif 63 64ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true) 65LOCAL_CFLAGS += -DFM_POWER_OPT 66endif 67 68LOCAL_MODULE := libaudiopolicymanager 69 70include $(BUILD_SHARED_LIBRARY) 71 72endif 73endif 74