# hardware/libaudio-alsa/Android.mk # # Copyright 2008 Wind River Systems # ifeq ($(TARGET_DEVICE),crespo) ifeq ($(filter-out s5pc110 s5pc100 s5p6440,$(TARGET_BOARD_PLATFORM)),) ifeq ($(BOARD_USES_GENERIC_AUDIO),false) LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_ARM_MODE := arm LOCAL_CFLAGS := -D_POSIX_SOURCE LOCAL_WHOLE_STATIC_LIBRARIES := libasound ifneq ($(ALSA_DEFAULT_SAMPLE_RATE),) LOCAL_CFLAGS += -DALSA_DEFAULT_SAMPLE_RATE=$(ALSA_DEFAULT_SAMPLE_RATE) endif LOCAL_C_INCLUDES += device/samsung/crespo/alsa-lib/include LOCAL_SRC_FILES := AudioHardwareALSA.cpp LOCAL_MODULE := libaudio LOCAL_STATIC_LIBRARIES += libaudiointerface LOCAL_SHARED_LIBRARIES := \ libcutils \ libutils \ libmedia \ libhardware_legacy \ libdl \ libc ifeq ($(BOARD_HAVE_BLUETOOTH),true) LOCAL_SHARED_LIBRARIES += liba2dp endif include $(BUILD_SHARED_LIBRARY) # To build audiopolicy library include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ AudioPolicyManager.cpp LOCAL_SHARED_LIBRARIES := \ libcutils \ libutils \ libmedia LOCAL_STATIC_LIBRARIES := libaudiopolicybase LOCAL_MODULE:= libaudiopolicy ifeq ($(BOARD_HAVE_BLUETOOTH),true) LOCAL_CFLAGS += -DWITH_A2DP endif include $(BUILD_SHARED_LIBRARY) endif endif endif