vincenttew | e56cd4b | 2018-08-02 15:39:33 +0800 | [diff] [blame^] | 1 | ifneq ($(filter msm8974 msm8226 msm8084 msm8992 msm8994 msm8996 msm8909 msm8998 sdm845 sdm710,$(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 |
Haynes Mathew George | 41f8665 | 2014-06-17 14:22:15 -0700 | [diff] [blame] | 41 | include $(BUILD_SHARED_LIBRARY) |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 42 | endif |
| 43 | |
| 44 | ################################################################################ |
| 45 | |
vincenttew | e56cd4b | 2018-08-02 15:39:33 +0800 | [diff] [blame^] | 46 | ifneq ($(filter msm8992 msm8994 msm8996 msm8909 msm8998 sdm845 sdm710,$(TARGET_BOARD_PLATFORM)),) |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 47 | |
| 48 | include $(CLEAR_VARS) |
| 49 | |
David Lin | 07a3fe9 | 2017-04-12 14:16:00 -0700 | [diff] [blame] | 50 | LOCAL_CFLAGS := -DLIB_AUDIO_HAL="audio.primary."$(TARGET_BOARD_PLATFORM)".so" |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 51 | |
| 52 | LOCAL_SRC_FILES:= \ |
| 53 | volume_listener.c |
| 54 | |
Chih-Hung Hsieh | aa016a5 | 2017-11-06 11:39:27 -0800 | [diff] [blame] | 55 | LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 56 | |
| 57 | LOCAL_SHARED_LIBRARIES := \ |
| 58 | libcutils \ |
| 59 | liblog \ |
| 60 | libdl |
| 61 | |
| 62 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
| 63 | LOCAL_MODULE:= libvolumelistener |
Diego Wilson | 8c83e0a | 2017-03-17 15:29:43 -0700 | [diff] [blame] | 64 | LOCAL_MODULE_OWNER := qcom |
| 65 | LOCAL_PROPRIETARY_MODULE := true |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 66 | |
| 67 | LOCAL_C_INCLUDES := \ |
vivek mehta | a8d7c92 | 2016-05-25 14:40:44 -0700 | [diff] [blame] | 68 | hardware/qcom/audio/hal \ |
Kevin Rocard | bae0dcb | 2018-01-24 06:13:37 +0000 | [diff] [blame] | 69 | $(call include-path-for, audio-effects) |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 70 | |
Vijay Venkatraman | 0c87ff0 | 2017-03-28 11:32:30 -0700 | [diff] [blame] | 71 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 72 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 73 | include $(BUILD_SHARED_LIBRARY) |
Eric Laurent | f7c6468 | 2014-08-07 09:23:11 -0700 | [diff] [blame] | 74 | |
Ajay Dudani | 8954103 | 2015-03-30 17:39:24 -0700 | [diff] [blame] | 75 | endif |
jasmine cha | 270b776 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 76 | |
| 77 | ################################################################################ |
| 78 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MAXX_AUDIO)), true) |
| 79 | |
| 80 | include $(CLEAR_VARS) |
| 81 | |
| 82 | LOCAL_CFLAGS := -D HAL_LIB_NAME=\"audio.primary."$(TARGET_BOARD_PLATFORM)".so\" |
| 83 | |
| 84 | LOCAL_SRC_FILES:= \ |
| 85 | ma_listener.c |
| 86 | |
| 87 | LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) |
| 88 | |
| 89 | LOCAL_SHARED_LIBRARIES := \ |
| 90 | libcutils \ |
| 91 | liblog \ |
| 92 | libdl |
| 93 | |
| 94 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
| 95 | LOCAL_MODULE:= libmalistener |
| 96 | LOCAL_MODULE_OWNER := google |
| 97 | LOCAL_PROPRIETARY_MODULE := true |
| 98 | |
| 99 | LOCAL_C_INCLUDES := \ |
| 100 | hardware/qcom/audio/hal \ |
| 101 | system/media/audio/include/system \ |
| 102 | $(call include-path-for, audio-effects) |
| 103 | |
| 104 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 105 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 106 | include $(BUILD_SHARED_LIBRARY) |
| 107 | |
| 108 | endif |