Android.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. LOCAL_PATH:= $(call my-dir)
  2. include $(CLEAR_VARS)
  3. LOCAL_SRC_FILES:= AudioPolicyManager.cpp
  4. LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
  5. LOCAL_SHARED_LIBRARIES := \
  6. libcutils \
  7. libutils \
  8. liblog \
  9. libaudiopolicy \
  10. libsoundtrigger
  11. ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1)
  12. ifneq ($(USE_XML_AUDIO_POLICY_CONF), 1)
  13. $(error Configurable policy does not support legacy conf file)
  14. endif #ifneq ($(USE_XML_AUDIO_POLICY_CONF), 1)
  15. LOCAL_SHARED_LIBRARIES += libaudiopolicyengineconfigurable
  16. else
  17. LOCAL_SHARED_LIBRARIES += libaudiopolicyenginedefault
  18. endif # ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1)
  19. LOCAL_C_INCLUDES += \
  20. $(call include-path-for, audio-utils)
  21. LOCAL_HEADER_LIBRARIES := \
  22. libaudiopolicycommon \
  23. libaudiopolicyengine_interface_headers \
  24. libaudiopolicymanager_interface_headers
  25. LOCAL_STATIC_LIBRARIES := \
  26. libaudiopolicycomponents
  27. LOCAL_SHARED_LIBRARIES += libmedia_helper
  28. LOCAL_SHARED_LIBRARIES += libmediametrics
  29. LOCAL_SHARED_LIBRARIES += libbinder libhidlbase libxml2
  30. ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
  31. LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF
  32. endif #ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
  33. LOCAL_CFLAGS += -Wall -Werror
  34. LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
  35. LOCAL_MODULE:= libaudiopolicymanagerdefault
  36. include $(BUILD_SHARED_LIBRARY)