David Lin | f6aae03 | 2017-04-07 15:13:37 -0700 | [diff] [blame] | 1 | ifneq ($(filter msm8974 msm8226 msm8084 msm8992 msm8994 msm8996 msm8909 msm8998,$(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 \ |
Haynes Mathew George | 41f8665 | 2014-06-17 14:22:15 -0700 | [diff] [blame] | 37 | $(call include-path-for, audio-effects) |
| 38 | |
Haynes Mathew George | 41f8665 | 2014-06-17 14:22:15 -0700 | [diff] [blame] | 39 | include $(BUILD_SHARED_LIBRARY) |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 40 | endif |
| 41 | |
| 42 | ################################################################################ |
| 43 | |
David Lin | f6aae03 | 2017-04-07 15:13:37 -0700 | [diff] [blame] | 44 | ifneq ($(filter msm8992 msm8994 msm8996 msm8909 msm8998,$(TARGET_BOARD_PLATFORM)),) |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 45 | |
| 46 | include $(CLEAR_VARS) |
| 47 | |
David Lin | 07a3fe9 | 2017-04-12 14:16:00 -0700 | [diff] [blame] | 48 | LOCAL_CFLAGS := -DLIB_AUDIO_HAL="audio.primary."$(TARGET_BOARD_PLATFORM)".so" |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 49 | |
| 50 | LOCAL_SRC_FILES:= \ |
| 51 | volume_listener.c |
| 52 | |
Chih-Hung Hsieh | aa016a5 | 2017-11-06 11:39:27 -0800 | [diff] [blame^] | 53 | LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 54 | |
| 55 | LOCAL_SHARED_LIBRARIES := \ |
| 56 | libcutils \ |
| 57 | liblog \ |
| 58 | libdl |
| 59 | |
| 60 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
| 61 | LOCAL_MODULE:= libvolumelistener |
Diego Wilson | 8c83e0a | 2017-03-17 15:29:43 -0700 | [diff] [blame] | 62 | LOCAL_MODULE_OWNER := qcom |
| 63 | LOCAL_PROPRIETARY_MODULE := true |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 64 | |
| 65 | LOCAL_C_INCLUDES := \ |
vivek mehta | a8d7c92 | 2016-05-25 14:40:44 -0700 | [diff] [blame] | 66 | hardware/qcom/audio/hal \ |
vivek mehta | 1a9b7c0 | 2015-06-25 11:49:38 -0700 | [diff] [blame] | 67 | $(call include-path-for, audio-effects) |
| 68 | |
| 69 | include $(BUILD_SHARED_LIBRARY) |
Eric Laurent | f7c6468 | 2014-08-07 09:23:11 -0700 | [diff] [blame] | 70 | |
Ajay Dudani | 8954103 | 2015-03-30 17:39:24 -0700 | [diff] [blame] | 71 | endif |