You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 lines
2.9 KiB
126 lines
2.9 KiB
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
service/AudioPolicyService.cpp \
|
|
service/AudioPolicyEffects.cpp \
|
|
service/AudioPolicyInterfaceImpl.cpp \
|
|
service/AudioPolicyClientImpl.cpp
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
frameworks/av/services/audioflinger \
|
|
$(call include-path-for, audio-utils) \
|
|
frameworks/av/services/audiopolicy/common/include \
|
|
frameworks/av/services/audiopolicy/engine/interface \
|
|
frameworks/av/services/audiopolicy/utilities
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libcutils \
|
|
libutils \
|
|
liblog \
|
|
libbinder \
|
|
libaudioclient \
|
|
libhardware_legacy \
|
|
libserviceutility \
|
|
libaudiopolicymanager \
|
|
libmedia_helper
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libaudiopolicycomponents
|
|
|
|
LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
|
|
|
|
LOCAL_MODULE:= libaudiopolicyservice
|
|
|
|
LOCAL_CFLAGS += -fvisibility=hidden
|
|
LOCAL_CFLAGS += -Wall -Werror
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= managerdefault/AudioPolicyManager.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libcutils \
|
|
libutils \
|
|
liblog \
|
|
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_REQUIRED_MODULES := \
|
|
parameter-framework.policy \
|
|
audio_policy_criteria.conf \
|
|
|
|
LOCAL_C_INCLUDES += frameworks/av/services/audiopolicy/engineconfigurable/include
|
|
|
|
LOCAL_SHARED_LIBRARIES += libaudiopolicyengineconfigurable
|
|
|
|
else
|
|
|
|
LOCAL_SHARED_LIBRARIES += libaudiopolicyenginedefault
|
|
|
|
endif # ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1)
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
frameworks/av/services/audiopolicy/common/include \
|
|
frameworks/av/services/audiopolicy/engine/interface \
|
|
frameworks/av/services/audiopolicy/utilities
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libaudiopolicycomponents
|
|
|
|
LOCAL_SHARED_LIBRARIES += libmedia_helper
|
|
|
|
ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
|
|
LOCAL_SHARED_LIBRARIES += libicuuc libxml2
|
|
|
|
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)
|
|
|
|
ifneq ($(USE_CUSTOM_AUDIO_POLICY), 1)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
manager/AudioPolicyFactory.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libaudiopolicymanagerdefault
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libaudiopolicycomponents
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
frameworks/av/services/audiopolicy/common/include \
|
|
frameworks/av/services/audiopolicy/engine/interface
|
|
|
|
LOCAL_CFLAGS := -Wall -Werror
|
|
|
|
LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
|
|
|
|
LOCAL_MODULE:= libaudiopolicymanager
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
endif
|
|
|
|
#######################################################################
|
|
# Recursive call sub-folder Android.mk
|
|
#
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|