1# Copyright 2011 The Android Open Source Project 2 3#AUDIO_POLICY_TEST := true 4#ENABLE_AUDIO_DUMP := true 5 6LOCAL_PATH := $(call my-dir) 7include $(CLEAR_VARS) 8 9LOCAL_SRC_FILES := \ 10 AudioHardwareInterface.cpp \ 11 audio_hw_hal.cpp 12 13LOCAL_MODULE := libaudiohw_legacy 14LOCAL_STATIC_LIBRARIES := libmedia_helper 15LOCAL_CFLAGS := -Wno-unused-parameter -Wno-gnu-designator 16LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include 17LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include 18 19include $(BUILD_STATIC_LIBRARY) 20 21include $(CLEAR_VARS) 22 23LOCAL_SRC_FILES := \ 24 AudioPolicyManagerBase.cpp \ 25 AudioPolicyCompatClient.cpp \ 26 audio_policy_hal.cpp 27 28ifeq ($(AUDIO_POLICY_TEST),true) 29 LOCAL_CFLAGS += -DAUDIO_POLICY_TEST 30endif 31 32LOCAL_STATIC_LIBRARIES := libmedia_helper 33LOCAL_MODULE := libaudiopolicy_legacy 34LOCAL_CFLAGS += -Wno-unused-parameter 35LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include 36LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include 37 38include $(BUILD_STATIC_LIBRARY) 39 40# The default audio policy, for now still implemented on top of legacy 41# policy code 42include $(CLEAR_VARS) 43 44LOCAL_SRC_FILES := \ 45 AudioPolicyManagerDefault.cpp 46 47LOCAL_SHARED_LIBRARIES := \ 48 libcutils \ 49 libutils \ 50 liblog 51 52LOCAL_STATIC_LIBRARIES := \ 53 libmedia_helper 54 55LOCAL_WHOLE_STATIC_LIBRARIES := \ 56 libaudiopolicy_legacy 57 58LOCAL_MODULE := audio_policy.default 59LOCAL_MODULE_RELATIVE_PATH := hw 60LOCAL_CFLAGS := -Wno-unused-parameter 61LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include 62 63include $(BUILD_SHARED_LIBRARY) 64 65#ifeq ($(ENABLE_AUDIO_DUMP),true) 66# LOCAL_SRC_FILES += AudioDumpInterface.cpp 67# LOCAL_CFLAGS += -DENABLE_AUDIO_DUMP 68#endif 69# 70#ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true) 71# LOCAL_CFLAGS += -D GENERIC_AUDIO 72#endif 73 74#ifeq ($(BOARD_HAVE_BLUETOOTH),true) 75# LOCAL_SRC_FILES += A2dpAudioInterface.cpp 76# LOCAL_SHARED_LIBRARIES += liba2dp 77# LOCAL_C_INCLUDES += $(call include-path-for, bluez) 78# 79# LOCAL_CFLAGS += \ 80# -DWITH_BLUETOOTH \ 81#endif 82# 83#include $(BUILD_SHARED_LIBRARY) 84 85# AudioHardwareGeneric.cpp \ 86# AudioHardwareStub.cpp \ 87