1ifneq ($(filter msm8974 msm8226 msm8084 msm8992 msm8994 msm8996 msm8909 msm8998 sdm845 sdm710 msmnile,$(TARGET_BOARD_PLATFORM)),) 2 3LOCAL_PATH:= $(call my-dir) 4 5qcom_post_proc_common_cflags := \ 6 -O2 -fvisibility=hidden \ 7 -Wall -Werror \ 8 -Wno-unused-function \ 9 -Wno-unused-variable \ 10 11include $(CLEAR_VARS) 12 13LOCAL_SRC_FILES:= \ 14 bundle.c \ 15 equalizer.c \ 16 bass_boost.c \ 17 virtualizer.c \ 18 reverb.c \ 19 effect_api.c 20 21LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) 22 23LOCAL_SHARED_LIBRARIES := \ 24 libcutils \ 25 liblog \ 26 libtinyalsa 27 28LOCAL_MODULE_TAGS := optional 29LOCAL_MODULE_OWNER := qcom 30LOCAL_PROPRIETARY_MODULE := true 31 32LOCAL_MODULE_RELATIVE_PATH := soundfx 33LOCAL_MODULE:= libqcompostprocbundle 34 35LOCAL_C_INCLUDES := \ 36 external/tinyalsa/include \ 37 $(call include-path-for, audio-effects) 38 39LOCAL_HEADER_LIBRARIES += libhardware_headers 40LOCAL_HEADER_LIBRARIES += libsystem_headers 41include $(BUILD_SHARED_LIBRARY) 42endif 43 44################################################################################ 45 46ifneq ($(filter msm8992 msm8994 msm8996 msm8909 msm8998 sdm845 sdm710 msmnile,$(TARGET_BOARD_PLATFORM)),) 47 48include $(CLEAR_VARS) 49 50LOCAL_CFLAGS := -DLIB_AUDIO_HAL="audio.primary."$(TARGET_BOARD_PLATFORM)".so" 51 52LOCAL_SRC_FILES:= \ 53 volume_listener.c 54 55LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) 56 57LOCAL_SHARED_LIBRARIES := \ 58 libcutils \ 59 liblog \ 60 libdl 61 62LOCAL_MODULE_RELATIVE_PATH := soundfx 63LOCAL_MODULE:= libvolumelistener 64LOCAL_MODULE_OWNER := qcom 65LOCAL_PROPRIETARY_MODULE := true 66 67LOCAL_C_INCLUDES := \ 68 hardware/qcom/audio/hal \ 69 $(call include-path-for, audio-effects) 70 71LOCAL_HEADER_LIBRARIES += libhardware_headers 72LOCAL_HEADER_LIBRARIES += libsystem_headers 73include $(BUILD_SHARED_LIBRARY) 74 75endif 76 77################################################################################ 78ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MAXX_AUDIO)), true) 79 80include $(CLEAR_VARS) 81 82LOCAL_CFLAGS := -D HAL_LIB_NAME=\"audio.primary."$(TARGET_BOARD_PLATFORM)".so\" 83 84LOCAL_SRC_FILES:= \ 85 ma_listener.c 86 87LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) 88 89LOCAL_SHARED_LIBRARIES := \ 90 libcutils \ 91 liblog \ 92 libdl 93 94LOCAL_MODULE_RELATIVE_PATH := soundfx 95LOCAL_MODULE:= libmalistener 96LOCAL_MODULE_OWNER := google 97LOCAL_PROPRIETARY_MODULE := true 98 99LOCAL_C_INCLUDES := \ 100 hardware/qcom/audio/hal \ 101 system/media/audio/include/system \ 102 $(call include-path-for, audio-effects) 103 104LOCAL_HEADER_LIBRARIES += libhardware_headers 105LOCAL_HEADER_LIBRARIES += libsystem_headers 106include $(BUILD_SHARED_LIBRARY) 107 108endif 109