2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
2009-07-17 19:17:14 +00:00
|
|
|
#AUDIO_POLICY_TEST := true
|
|
|
|
#ENABLE_AUDIO_DUMP := true
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2009-07-17 19:17:14 +00:00
|
|
|
|
|
|
|
ifeq ($(AUDIO_POLICY_TEST),true)
|
|
|
|
ENABLE_AUDIO_DUMP := true
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
AudioHardwareGeneric.cpp \
|
|
|
|
AudioHardwareStub.cpp \
|
|
|
|
AudioHardwareInterface.cpp
|
|
|
|
|
2009-07-17 19:17:14 +00:00
|
|
|
ifeq ($(ENABLE_AUDIO_DUMP),true)
|
|
|
|
LOCAL_SRC_FILES += AudioDumpInterface.cpp
|
|
|
|
LOCAL_CFLAGS += -DENABLE_AUDIO_DUMP
|
|
|
|
endif
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libcutils \
|
|
|
|
libutils \
|
2010-03-05 20:18:01 +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
|
|
|
|
|
2009-07-17 19:17:14 +00:00
|
|
|
ifeq ($(BOARD_HAVE_BLUETOOTH),true)
|
|
|
|
LOCAL_SRC_FILES += A2dpAudioInterface.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES += liba2dp
|
|
|
|
LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP
|
|
|
|
LOCAL_C_INCLUDES += $(call include-path-for, bluez)
|
|
|
|
endif
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2009-07-17 19:17:14 +00:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
2009-12-10 09:03:50 +00:00
|
|
|
AudioPolicyManagerBase.cpp
|
2009-07-17 19:17:14 +00:00
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libcutils \
|
|
|
|
libutils \
|
|
|
|
libmedia
|
|
|
|
|
2009-07-24 13:58:44 +00:00
|
|
|
ifeq ($(TARGET_SIMULATOR),true)
|
|
|
|
LOCAL_LDLIBS += -ldl
|
|
|
|
else
|
|
|
|
LOCAL_SHARED_LIBRARIES += libdl
|
|
|
|
endif
|
|
|
|
|
2009-12-10 09:03:50 +00:00
|
|
|
LOCAL_MODULE:= libaudiopolicybase
|
2009-07-17 19:17:14 +00:00
|
|
|
|
|
|
|
ifeq ($(BOARD_HAVE_BLUETOOTH),true)
|
|
|
|
LOCAL_CFLAGS += -DWITH_A2DP
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(AUDIO_POLICY_TEST),true)
|
|
|
|
LOCAL_CFLAGS += -DAUDIO_POLICY_TEST
|
|
|
|
endif
|
|
|
|
|
2009-12-10 09:03:50 +00:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2009-07-17 19:17:14 +00:00
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
AudioFlinger.cpp \
|
|
|
|
AudioMixer.cpp.arm \
|
|
|
|
AudioResampler.cpp.arm \
|
|
|
|
AudioResamplerSinc.cpp.arm \
|
2009-07-17 19:17:14 +00:00
|
|
|
AudioResamplerCubic.cpp.arm \
|
|
|
|
AudioPolicyService.cpp
|
2009-03-04 03:31:44 +00:00
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libcutils \
|
|
|
|
libutils \
|
2010-03-05 20:18:01 +00:00
|
|
|
libbinder \
|
2009-03-04 03:31:44 +00:00
|
|
|
libmedia \
|
2010-06-02 06:49:17 +00:00
|
|
|
libhardware_legacy \
|
|
|
|
libeffects
|
2009-03-04 03:31:44 +00:00
|
|
|
|
|
|
|
ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true)
|
2009-12-10 09:03:50 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES += libaudiointerface libaudiopolicybase
|
2009-07-17 19:17:14 +00:00
|
|
|
LOCAL_CFLAGS += -DGENERIC_AUDIO
|
2009-03-04 03:31:44 +00:00
|
|
|
else
|
2009-07-25 08:41:52 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES += libaudio libaudiopolicy
|
2009-03-04 03:31:44 +00:00
|
|
|
endif
|
|
|
|
|
2009-07-17 19:17:14 +00:00
|
|
|
ifeq ($(TARGET_SIMULATOR),true)
|
|
|
|
LOCAL_LDLIBS += -ldl
|
|
|
|
else
|
|
|
|
LOCAL_SHARED_LIBRARIES += libdl
|
|
|
|
endif
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_MODULE:= libaudioflinger
|
|
|
|
|
|
|
|
ifeq ($(BOARD_HAVE_BLUETOOTH),true)
|
|
|
|
LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP
|
2009-07-29 16:47:23 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES += liba2dp
|
2009-07-17 19:17:14 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(AUDIO_POLICY_TEST),true)
|
|
|
|
LOCAL_CFLAGS += -DAUDIO_POLICY_TEST
|
2009-03-04 03:31:44 +00:00
|
|
|
endif
|
|
|
|
|
2009-07-14 09:08:27 +00:00
|
|
|
ifeq ($(TARGET_SIMULATOR),true)
|
2010-03-05 20:18:01 +00:00
|
|
|
ifeq ($(HOST_OS),linux)
|
|
|
|
LOCAL_LDLIBS += -lrt -lpthread
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2010-03-10 02:13:59 +00:00
|
|
|
ifeq ($(BOARD_USE_LVMX),true)
|
2010-03-05 20:18:01 +00:00
|
|
|
LOCAL_CFLAGS += -DLVMX
|
|
|
|
LOCAL_C_INCLUDES += vendor/nxp
|
|
|
|
LOCAL_STATIC_LIBRARIES += liblifevibes
|
|
|
|
LOCAL_SHARED_LIBRARIES += liblvmxservice
|
|
|
|
# LOCAL_SHARED_LIBRARIES += liblvmxipc
|
2009-07-14 09:08:27 +00:00
|
|
|
endif
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|