2013-11-13 04:45:15 +00:00
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2018-01-23 01:39:48 +00:00
|
|
|
LOCAL_CFLAGS += -Wno-unused-variable
|
|
|
|
LOCAL_CFLAGS += -Wno-sign-compare
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-parameter
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-label
|
|
|
|
LOCAL_CFLAGS += -Wno-gnu-designator
|
|
|
|
LOCAL_CFLAGS += -Wno-typedef-redefinition
|
|
|
|
LOCAL_CFLAGS += -Wno-shorten-64-to-32
|
|
|
|
LOCAL_CFLAGS += -Wno-tautological-compare
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-function
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-local-typedef
|
|
|
|
LOCAL_CFLAGS += -Wno-format
|
2018-01-31 15:59:03 +00:00
|
|
|
LOCAL_CFLAGS += -Wno-unused-value
|
2018-01-23 01:39:48 +00:00
|
|
|
|
2014-05-16 19:10:55 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
|
2014-04-04 00:47:22 +00:00
|
|
|
LOCAL_CFLAGS += -DAFE_PROXY_ENABLED
|
|
|
|
endif
|
|
|
|
|
2013-11-13 04:45:15 +00:00
|
|
|
LOCAL_SRC_FILES:= \
|
2016-10-27 19:03:18 +00:00
|
|
|
bundle.c \
|
|
|
|
equalizer.c \
|
|
|
|
bass_boost.c \
|
|
|
|
virtualizer.c \
|
|
|
|
reverb.c \
|
|
|
|
effect_api.c \
|
|
|
|
effect_util.c
|
2015-07-01 23:57:32 +00:00
|
|
|
|
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
|
|
|
|
LOCAL_CFLAGS += -DHW_ACCELERATED_EFFECTS
|
|
|
|
LOCAL_SRC_FILES += hw_accelerator.c
|
|
|
|
endif
|
2013-11-13 04:45:15 +00:00
|
|
|
|
2015-09-04 08:14:59 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUDIOSPHERE)),true)
|
|
|
|
LOCAL_CFLAGS += -DAUDIOSPHERE_ENABLED
|
|
|
|
LOCAL_SRC_FILES += asphere.c
|
|
|
|
endif
|
|
|
|
|
2018-09-17 22:12:07 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true)
|
|
|
|
LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED
|
|
|
|
endif
|
|
|
|
|
2013-11-13 04:45:15 +00:00
|
|
|
LOCAL_CFLAGS+= -O2 -fvisibility=hidden
|
|
|
|
|
2014-11-23 03:34:13 +00:00
|
|
|
ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true)
|
|
|
|
LOCAL_CFLAGS += -DDTS_EAGLE
|
|
|
|
endif
|
|
|
|
|
2018-04-02 15:57:54 +00:00
|
|
|
LOCAL_HEADER_LIBRARIES := libhardware_headers \
|
|
|
|
libsystem_headers \
|
|
|
|
libutils_headers
|
|
|
|
|
2013-11-13 04:45:15 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
2016-10-27 19:03:18 +00:00
|
|
|
libcutils \
|
|
|
|
liblog \
|
|
|
|
libtinyalsa \
|
|
|
|
libdl
|
2013-11-13 04:45:15 +00:00
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
|
2014-05-29 19:48:15 +00:00
|
|
|
LOCAL_MODULE_RELATIVE_PATH := soundfx
|
2013-11-13 04:45:15 +00:00
|
|
|
LOCAL_MODULE:= libqcompostprocbundle
|
2017-06-05 15:35:53 +00:00
|
|
|
LOCAL_VENDOR_MODULE := true
|
2013-11-13 04:45:15 +00:00
|
|
|
|
2014-06-04 02:42:41 +00:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
|
|
|
|
|
2013-11-13 04:45:15 +00:00
|
|
|
LOCAL_C_INCLUDES := \
|
2016-10-27 19:03:18 +00:00
|
|
|
external/tinyalsa/include \
|
2014-01-30 22:03:12 +00:00
|
|
|
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
|
2017-07-15 03:09:36 +00:00
|
|
|
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \
|
2016-10-27 19:03:18 +00:00
|
|
|
$(call include-path-for, audio-effects)
|
2013-11-13 04:45:15 +00:00
|
|
|
|
2018-03-22 05:48:42 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
|
2018-06-04 15:05:10 +00:00
|
|
|
LOCAL_HEADER_LIBRARIES += audio_kernel_headers
|
2017-09-07 14:16:29 +00:00
|
|
|
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
|
|
|
|
endif
|
|
|
|
|
2018-01-26 00:04:44 +00:00
|
|
|
ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
|
|
|
|
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
|
2018-07-03 11:39:40 +00:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
|
2018-01-26 00:04:44 +00:00
|
|
|
endif
|
|
|
|
|
2013-11-13 04:45:15 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2014-06-04 02:42:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2018-01-23 01:39:48 +00:00
|
|
|
LOCAL_CFLAGS += -Wno-unused-variable
|
|
|
|
LOCAL_CFLAGS += -Wno-sign-compare
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-parameter
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-label
|
|
|
|
LOCAL_CFLAGS += -Wno-gnu-designator
|
|
|
|
LOCAL_CFLAGS += -Wno-typedef-redefinition
|
|
|
|
LOCAL_CFLAGS += -Wno-shorten-64-to-32
|
|
|
|
LOCAL_CFLAGS += -Wno-tautological-compare
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-function
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-local-typedef
|
|
|
|
LOCAL_CFLAGS += -Wno-format
|
2014-06-04 02:42:41 +00:00
|
|
|
LOCAL_SRC_FILES := EffectsHwAcc.cpp
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
|
|
$(call include-path-for, audio-effects)
|
|
|
|
|
2018-04-02 15:57:54 +00:00
|
|
|
LOCAL_HEADER_LIBRARIES := libhardware_headers \
|
|
|
|
libsystem_headers \
|
|
|
|
libutils_headers
|
|
|
|
|
2014-06-04 02:42:41 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
liblog \
|
|
|
|
libeffects
|
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
|
|
|
|
LOCAL_CFLAGS += -O2 -fvisibility=hidden
|
|
|
|
|
2014-11-19 00:14:41 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true)
|
|
|
|
LOCAL_CFLAGS += -DHW_ACC_HPX
|
|
|
|
endif
|
|
|
|
|
2017-10-04 15:29:41 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true)
|
|
|
|
LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED
|
|
|
|
endif
|
|
|
|
|
2014-06-04 02:42:41 +00:00
|
|
|
LOCAL_MODULE:= libhwacceffectswrapper
|
2017-06-05 15:35:53 +00:00
|
|
|
LOCAL_VENDOR_MODULE := true
|
2014-06-04 02:42:41 +00:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
endif
|
2015-06-15 23:16:11 +00:00
|
|
|
|
|
|
|
|
2018-01-23 01:39:48 +00:00
|
|
|
|
2015-06-15 23:16:11 +00:00
|
|
|
################################################################################
|
|
|
|
|
2018-04-05 08:12:18 +00:00
|
|
|
ifneq ($(filter msm8992 msm8994 msm8996 msm8998 sdm660 sdm845 apq8098_latv sdm710 msm8953 msm8937 qcs605 msmnile $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),)
|
2015-06-15 23:16:11 +00:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2017-06-05 15:35:53 +00:00
|
|
|
LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so"
|
2018-01-23 01:39:48 +00:00
|
|
|
LOCAL_CFLAGS += -Wno-unused-variable
|
|
|
|
LOCAL_CFLAGS += -Wno-sign-compare
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-parameter
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-label
|
|
|
|
LOCAL_CFLAGS += -Wno-gnu-designator
|
|
|
|
LOCAL_CFLAGS += -Wno-typedef-redefinition
|
|
|
|
LOCAL_CFLAGS += -Wno-shorten-64-to-32
|
|
|
|
LOCAL_CFLAGS += -Wno-tautological-compare
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-function
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-local-typedef
|
|
|
|
LOCAL_CFLAGS += -Wno-format
|
2015-06-15 23:16:11 +00:00
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
volume_listener.c
|
|
|
|
|
|
|
|
LOCAL_CFLAGS+= -O2 -fvisibility=hidden
|
|
|
|
|
2018-04-02 15:57:54 +00:00
|
|
|
LOCAL_HEADER_LIBRARIES := libhardware_headers \
|
|
|
|
libsystem_headers \
|
|
|
|
libutils_headers
|
|
|
|
|
2015-06-15 23:16:11 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libcutils \
|
|
|
|
liblog \
|
|
|
|
libdl
|
|
|
|
|
|
|
|
LOCAL_MODULE_RELATIVE_PATH := soundfx
|
|
|
|
LOCAL_MODULE:= libvolumelistener
|
2017-06-05 15:35:53 +00:00
|
|
|
LOCAL_VENDOR_MODULE := true
|
2015-06-15 23:16:11 +00:00
|
|
|
|
2017-08-14 19:36:47 +00:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
|
|
|
|
|
2015-06-15 23:16:11 +00:00
|
|
|
LOCAL_C_INCLUDES := \
|
2016-10-27 19:03:18 +00:00
|
|
|
hardware/qcom/audio/hal \
|
|
|
|
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
|
2017-08-14 19:36:47 +00:00
|
|
|
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \
|
2016-10-27 19:03:18 +00:00
|
|
|
external/tinyalsa/include \
|
|
|
|
$(call include-path-for, audio-effects) \
|
|
|
|
$(call include-path-for, audio-route) \
|
|
|
|
hardware/qcom/audio/hal/audio_extn \
|
|
|
|
external/tinycompress/include
|
2015-06-15 23:16:11 +00:00
|
|
|
|
2018-03-22 05:48:42 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
|
2018-06-04 15:05:10 +00:00
|
|
|
LOCAL_HEADER_LIBRARIES += audio_kernel_headers
|
2017-09-07 14:16:29 +00:00
|
|
|
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
|
|
|
|
endif
|
|
|
|
|
2018-01-26 00:04:44 +00:00
|
|
|
ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
|
|
|
|
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
|
2018-07-03 11:39:40 +00:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
|
2018-01-26 00:04:44 +00:00
|
|
|
endif
|
|
|
|
|
2015-06-15 23:16:11 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
endif
|