1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- LOCAL_PATH:= $(call my-dir)
- include $(CLEAR_VARS)
- LOCAL_SRC_FILES:= AudioPolicyManager.cpp
- LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
- LOCAL_SHARED_LIBRARIES := \
- libcutils \
- libutils \
- liblog \
- libaudiopolicy \
- libsoundtrigger
- ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1)
- ifneq ($(USE_XML_AUDIO_POLICY_CONF), 1)
- $(error Configurable policy does not support legacy conf file)
- endif #ifneq ($(USE_XML_AUDIO_POLICY_CONF), 1)
- LOCAL_SHARED_LIBRARIES += libaudiopolicyengineconfigurable
- else
- LOCAL_SHARED_LIBRARIES += libaudiopolicyenginedefault
- endif # ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1)
- LOCAL_C_INCLUDES += \
- $(call include-path-for, audio-utils)
- LOCAL_HEADER_LIBRARIES := \
- libaudiopolicycommon \
- libaudiopolicyengine_interface_headers \
- libaudiopolicymanager_interface_headers
- LOCAL_STATIC_LIBRARIES := \
- libaudiopolicycomponents
- LOCAL_SHARED_LIBRARIES += libmedia_helper
- LOCAL_SHARED_LIBRARIES += libmediametrics
- LOCAL_SHARED_LIBRARIES += libbinder libhidlbase libxml2
- ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
- LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF
- endif #ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
- LOCAL_CFLAGS += -Wall -Werror
- LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
- LOCAL_MODULE:= libaudiopolicymanagerdefault
- include $(BUILD_SHARED_LIBRARY)
|