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 34LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 35LOCAL_LICENSE_CONDITIONS:= notice 36 37LOCAL_C_INCLUDES := \ 38 external/tinyalsa/include \ 39 $(call include-path-for, audio-effects) 40 41LOCAL_HEADER_LIBRARIES += libhardware_headers 42LOCAL_HEADER_LIBRARIES += libsystem_headers 43include $(BUILD_SHARED_LIBRARY) 44endif 45 46################################################################################ 47 48ifneq ($(filter msm8992 msm8994 msm8996 msm8909 msm8998 sdm845 sdm710 msmnile,$(TARGET_BOARD_PLATFORM)),) 49 50include $(CLEAR_VARS) 51 52LOCAL_CFLAGS := -DLIB_AUDIO_HAL="audio.primary."$(TARGET_BOARD_PLATFORM)".so" 53 54LOCAL_SRC_FILES:= \ 55 volume_listener.c 56 57LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) 58 59LOCAL_SHARED_LIBRARIES := \ 60 libcutils \ 61 liblog \ 62 libdl 63 64LOCAL_MODULE_RELATIVE_PATH := soundfx 65LOCAL_MODULE:= libvolumelistener 66LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 67LOCAL_LICENSE_CONDITIONS:= notice 68LOCAL_MODULE_OWNER := qcom 69LOCAL_PROPRIETARY_MODULE := true 70 71LOCAL_C_INCLUDES := \ 72 hardware/qcom/audio/hal \ 73 $(call include-path-for, audio-effects) 74 75LOCAL_HEADER_LIBRARIES += libhardware_headers 76LOCAL_HEADER_LIBRARIES += libsystem_headers 77include $(BUILD_SHARED_LIBRARY) 78 79endif 80 81################################################################################ 82ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MAXX_AUDIO)), true) 83 84include $(CLEAR_VARS) 85 86LOCAL_CFLAGS := -D HAL_LIB_NAME=\"audio.primary."$(TARGET_BOARD_PLATFORM)".so\" 87 88LOCAL_SRC_FILES:= \ 89 ma_listener.c 90 91LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) 92 93LOCAL_SHARED_LIBRARIES := \ 94 libcutils \ 95 liblog \ 96 libdl 97 98LOCAL_MODULE_RELATIVE_PATH := soundfx 99LOCAL_MODULE:= libmalistener 100LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 101LOCAL_LICENSE_CONDITIONS:= notice 102LOCAL_MODULE_OWNER := google 103LOCAL_PROPRIETARY_MODULE := true 104 105LOCAL_C_INCLUDES := \ 106 hardware/qcom/audio/hal \ 107 system/media/audio/include/system \ 108 $(call include-path-for, audio-effects) 109 110LOCAL_HEADER_LIBRARIES += libhardware_headers 111LOCAL_HEADER_LIBRARIES += libsystem_headers 112include $(BUILD_SHARED_LIBRARY) 113 114endif 115