Cyan_Hsieh | 8e9b92d | 2019-01-22 18:22:57 +0800 | [diff] [blame] | 1 | ifneq ($(filter msm8974 msm8226 msm8084 msm8992 msm8994 msm8996 msm8909 msm8998 sdm845 sdm710 msmnile,$(TARGET_BOARD_PLATFORM)),) |
Haynes Mathew George | 41f8665 | 2014-06-17 14:22:15 -0700 | [diff] [blame] | 2 | |
| 3 | LOCAL_PATH:= $(call my-dir) |
| 4 | |
Chih-Hung Hsieh | aa016a5 | 2017-11-06 11:39:27 -0800 | [diff] [blame] | 5 | qcom_post_proc_common_cflags := \ |
| 6 | -O2 -fvisibility=hidden \ |
| 7 | -Wall -Werror \ |
| 8 | -Wno-unused-function \ |
| 9 | -Wno-unused-variable \ |
| 10 | |
Haynes Mathew George | 41f8665 | 2014-06-17 14:22:15 -0700 | [diff] [blame] | 11 | include $(CLEAR_VARS) |
| 12 | |
| 13 | LOCAL_SRC_FILES:= \ |
| 14 | bundle.c \ |
| 15 | equalizer.c \ |
| 16 | bass_boost.c \ |
| 17 | virtualizer.c \ |
| 18 | reverb.c \ |
| 19 | effect_api.c |
| 20 | |
Chih-Hung Hsieh | aa016a5 | 2017-11-06 11:39:27 -0800 | [diff] [blame] | 21 | LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) |
Haynes Mathew George | 41f8665 | 2014-06-17 14:22:15 -0700 | [diff] [blame] | 22 | |
| 23 | LOCAL_SHARED_LIBRARIES := \ |
| 24 | libcutils \ |
| 25 | liblog \ |
| 26 | libtinyalsa |
| 27 | |
| 28 | LOCAL_MODULE_TAGS := optional |
Diego Wilson | 8c83e0a | 2017-03-17 15:29:43 -0700 | [diff] [blame] | 29 | LOCAL_MODULE_OWNER := qcom |
| 30 | LOCAL_PROPRIETARY_MODULE := true |
Haynes Mathew George | 41f8665 | 2014-06-17 14:22:15 -0700 | [diff] [blame] | 31 | |
Ajay Dudani | 8954103 | 2015-03-30 17:39:24 -0700 | [diff] [blame] | 32 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
Haynes Mathew George | 41f8665 | 2014-06-17 14:22:15 -0700 | [diff] [blame] | 33 | LOCAL_MODULE:= libqcompostprocbundle |
| 34 | |
| 35 | LOCAL_C_INCLUDES := \ |
| 36 | external/tinyalsa/include \ |
Kevin Rocard | bae0dcb | 2018-01-24 06:13:37 +0000 | [diff] [blame] | 37 | $(call include-path-for, audio-effects) |
Haynes Mathew George | 41f8665 | 2014-06-17 14:22:15 -0700 | [diff] [blame] | 38 | |
Vijay Venkatraman | 0c87ff0 | 2017-03-28 11:32:30 -0700 | [diff] [blame] | 39 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 40 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
razorloves | 5060055 | 2018-10-03 11:09:43 -0500 | [diff] [blame^] | 41 | |
| 42 | LOCAL_HEADER_LIBRARIES += generated_kernel_headers |
| 43 | |
Haynes Mathew George | 41f8665 | 2014-06-17 14:22:15 -0700 | [diff] [blame] | 44 | include $(BUILD_SHARED_LIBRARY) |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 45 | endif |
| 46 | |
| 47 | ################################################################################ |
| 48 | |
Cyan_Hsieh | 8e9b92d | 2019-01-22 18:22:57 +0800 | [diff] [blame] | 49 | ifneq ($(filter msm8992 msm8994 msm8996 msm8909 msm8998 sdm845 sdm710 msmnile,$(TARGET_BOARD_PLATFORM)),) |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 50 | |
| 51 | include $(CLEAR_VARS) |
| 52 | |
David Lin | 07a3fe9 | 2017-04-12 14:16:00 -0700 | [diff] [blame] | 53 | LOCAL_CFLAGS := -DLIB_AUDIO_HAL="audio.primary."$(TARGET_BOARD_PLATFORM)".so" |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 54 | |
| 55 | LOCAL_SRC_FILES:= \ |
| 56 | volume_listener.c |
| 57 | |
Chih-Hung Hsieh | aa016a5 | 2017-11-06 11:39:27 -0800 | [diff] [blame] | 58 | LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 59 | |
| 60 | LOCAL_SHARED_LIBRARIES := \ |
| 61 | libcutils \ |
| 62 | liblog \ |
| 63 | libdl |
| 64 | |
| 65 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
| 66 | LOCAL_MODULE:= libvolumelistener |
Diego Wilson | 8c83e0a | 2017-03-17 15:29:43 -0700 | [diff] [blame] | 67 | LOCAL_MODULE_OWNER := qcom |
| 68 | LOCAL_PROPRIETARY_MODULE := true |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 69 | |
| 70 | LOCAL_C_INCLUDES := \ |
vivek mehta | a8d7c92 | 2016-05-25 14:40:44 -0700 | [diff] [blame] | 71 | hardware/qcom/audio/hal \ |
Kevin Rocard | bae0dcb | 2018-01-24 06:13:37 +0000 | [diff] [blame] | 72 | $(call include-path-for, audio-effects) |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 73 | |
Vijay Venkatraman | 0c87ff0 | 2017-03-28 11:32:30 -0700 | [diff] [blame] | 74 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 75 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
razorloves | 5060055 | 2018-10-03 11:09:43 -0500 | [diff] [blame^] | 76 | |
| 77 | LOCAL_HEADER_LIBRARIES += generated_kernel_headers |
| 78 | |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 79 | include $(BUILD_SHARED_LIBRARY) |
Eric Laurent | f7c6468 | 2014-08-07 09:23:11 -0700 | [diff] [blame] | 80 | |
Ajay Dudani | 8954103 | 2015-03-30 17:39:24 -0700 | [diff] [blame] | 81 | endif |
jasmine cha | 270b776 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 82 | |
| 83 | ################################################################################ |
| 84 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MAXX_AUDIO)), true) |
| 85 | |
| 86 | include $(CLEAR_VARS) |
| 87 | |
| 88 | LOCAL_CFLAGS := -D HAL_LIB_NAME=\"audio.primary."$(TARGET_BOARD_PLATFORM)".so\" |
| 89 | |
| 90 | LOCAL_SRC_FILES:= \ |
| 91 | ma_listener.c |
| 92 | |
| 93 | LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) |
| 94 | |
| 95 | LOCAL_SHARED_LIBRARIES := \ |
| 96 | libcutils \ |
| 97 | liblog \ |
| 98 | libdl |
| 99 | |
| 100 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
| 101 | LOCAL_MODULE:= libmalistener |
| 102 | LOCAL_MODULE_OWNER := google |
| 103 | LOCAL_PROPRIETARY_MODULE := true |
| 104 | |
| 105 | LOCAL_C_INCLUDES := \ |
| 106 | hardware/qcom/audio/hal \ |
| 107 | system/media/audio/include/system \ |
| 108 | $(call include-path-for, audio-effects) |
| 109 | |
| 110 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 111 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
razorloves | 5060055 | 2018-10-03 11:09:43 -0500 | [diff] [blame^] | 112 | |
| 113 | LOCAL_HEADER_LIBRARIES += generated_kernel_headers |
| 114 | |
jasmine cha | 270b776 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 115 | include $(BUILD_SHARED_LIBRARY) |
| 116 | |
| 117 | endif |