2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
AudioHardwareGeneric.cpp \
|
|
|
|
AudioHardwareStub.cpp \
|
|
|
|
AudioDumpInterface.cpp \
|
|
|
|
AudioHardwareInterface.cpp
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libcutils \
|
|
|
|
libutils \
|
2009-05-18 22:08:03 +00:00
|
|
|
libbinder \
|
2009-03-04 03:31:44 +00:00
|
|
|
libmedia \
|
|
|
|
libhardware_legacy
|
|
|
|
|
|
|
|
ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true)
|
|
|
|
LOCAL_CFLAGS += -DGENERIC_AUDIO
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libaudiointerface
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
AudioFlinger.cpp \
|
|
|
|
AudioMixer.cpp.arm \
|
|
|
|
AudioResampler.cpp.arm \
|
|
|
|
AudioResamplerSinc.cpp.arm \
|
|
|
|
AudioResamplerCubic.cpp.arm
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libcutils \
|
|
|
|
libutils \
|
2009-05-18 22:08:03 +00:00
|
|
|
libbinder \
|
2009-03-04 03:31:44 +00:00
|
|
|
libmedia \
|
|
|
|
libhardware_legacy
|
|
|
|
|
|
|
|
ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true)
|
|
|
|
LOCAL_STATIC_LIBRARIES += libaudiointerface
|
|
|
|
else
|
|
|
|
LOCAL_SHARED_LIBRARIES += libaudio
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libaudioflinger
|
|
|
|
|
|
|
|
ifeq ($(BOARD_HAVE_BLUETOOTH),true)
|
|
|
|
LOCAL_SRC_FILES += A2dpAudioInterface.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES += liba2dp
|
|
|
|
LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP
|
2009-05-06 05:26:12 +00:00
|
|
|
LOCAL_C_INCLUDES += $(call include-path-for, bluez)
|
2009-03-04 03:31:44 +00:00
|
|
|
endif
|
|
|
|
|
2009-07-14 09:08:27 +00:00
|
|
|
ifeq ($(TARGET_SIMULATOR),true)
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
|
|
LOCAL_LDLIBS += -lrt -lpthread
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|