Naresh Tanniru | f129015 | 2018-11-27 12:16:45 +0530 | [diff] [blame] | 1 | ifneq ($(AUDIO_USE_STUB_HAL), true) |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | |
| 4 | include $(CLEAR_VARS) |
| 5 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 6 | LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so" |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 7 | LOCAL_CFLAGS += -Wno-unused-variable |
| 8 | LOCAL_CFLAGS += -Wno-sign-compare |
| 9 | LOCAL_CFLAGS += -Wno-unused-parameter |
| 10 | LOCAL_CFLAGS += -Wno-unused-label |
| 11 | LOCAL_CFLAGS += -Wno-gnu-designator |
| 12 | LOCAL_CFLAGS += -Wno-typedef-redefinition |
| 13 | LOCAL_CFLAGS += -Wno-shorten-64-to-32 |
| 14 | LOCAL_CFLAGS += -Wno-tautological-compare |
| 15 | LOCAL_CFLAGS += -Wno-unused-function |
| 16 | LOCAL_CFLAGS += -Wno-unused-local-typedef |
| 17 | LOCAL_CFLAGS += -Wno-format |
Abhishek Arpure | ce11235 | 2018-01-31 21:29:03 +0530 | [diff] [blame] | 18 | LOCAL_CFLAGS += -Wno-unused-value |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 19 | LOCAL_CFLAGS += -Wall |
| 20 | LOCAL_CFLAGS += -Werror |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 21 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 22 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true) |
Mingming Yin | 67e3451 | 2014-04-03 17:47:22 -0700 | [diff] [blame] | 23 | LOCAL_CFLAGS += -DAFE_PROXY_ENABLED |
| 24 | endif |
| 25 | |
Akhil Karuturi | 60c2347 | 2020-05-19 22:19:00 -0700 | [diff] [blame] | 26 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GKI)),true) |
| 27 | LOCAL_CFLAGS += -DAUDIO_GKI_ENABLED |
| 28 | endif |
| 29 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 30 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | f56b640 | 2016-10-27 12:03:18 -0700 | [diff] [blame] | 31 | bundle.c \ |
| 32 | equalizer.c \ |
| 33 | bass_boost.c \ |
| 34 | virtualizer.c \ |
| 35 | reverb.c \ |
| 36 | effect_api.c \ |
Weiyin Jiang | fd19e98 | 2019-07-05 11:20:28 +0800 | [diff] [blame] | 37 | effect_util.c |
Mingming Yin | 497419f | 2015-07-01 16:57:32 -0700 | [diff] [blame] | 38 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 39 | # HW_ACCELERATED has been disabled by default since msm8996. File doesn't |
| 40 | # compile cleanly on tip so don't want to include it, but keeping this |
| 41 | # as a reference. |
| 42 | # LOCAL_SRC_FILES += hw_accelerator.c |
Dhananjay Kumar | 1c978df | 2015-09-04 13:44:59 +0530 | [diff] [blame] | 43 | |
Vignesh Kulothungan | bbf4497 | 2018-09-17 15:12:07 -0700 | [diff] [blame] | 44 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true) |
| 45 | LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED |
| 46 | endif |
| 47 | |
Vatsal Bucha | c09ae06 | 2018-11-14 13:25:08 +0530 | [diff] [blame] | 48 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true) |
| 49 | LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 50 | LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 51 | LOCAL_STATIC_LIBRARIES += libprofile_rt |
| 52 | endif |
| 53 | |
Vignesh Kulothungan | 9f86d7a | 2018-09-17 15:12:07 -0700 | [diff] [blame] | 54 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true) |
| 55 | LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED |
| 56 | endif |
| 57 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 58 | LOCAL_CFLAGS+= -O2 -fvisibility=hidden |
| 59 | |
Jitendra Naruka | 1b6513f | 2014-11-22 19:34:13 -0800 | [diff] [blame] | 60 | ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true) |
| 61 | LOCAL_CFLAGS += -DDTS_EAGLE |
| 62 | endif |
| 63 | |
Revathi Uddaraju | e8bd13c | 2018-04-02 21:27:54 +0530 | [diff] [blame] | 64 | LOCAL_HEADER_LIBRARIES := libhardware_headers \ |
| 65 | libsystem_headers \ |
| 66 | libutils_headers |
| 67 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 68 | LOCAL_SHARED_LIBRARIES := \ |
Aniket Kumar Lata | f56b640 | 2016-10-27 12:03:18 -0700 | [diff] [blame] | 69 | libcutils \ |
| 70 | liblog \ |
| 71 | libtinyalsa \ |
| 72 | libdl |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 73 | |
| 74 | LOCAL_MODULE_TAGS := optional |
| 75 | |
Apoorv Raghuvanshi | 1b555f7 | 2014-05-29 12:48:15 -0700 | [diff] [blame] | 76 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 77 | LOCAL_MODULE:= libqcompostprocbundle |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 78 | LOCAL_VENDOR_MODULE := true |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 79 | LOCAL_MODULE_OWNER := qti |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 80 | |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 81 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 82 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 83 | LOCAL_C_INCLUDES := \ |
Aniket Kumar Lata | f56b640 | 2016-10-27 12:03:18 -0700 | [diff] [blame] | 84 | external/tinyalsa/include \ |
Subhash Chandra Bose Naripeddy | 090a2aa | 2014-01-30 14:03:12 -0800 | [diff] [blame] | 85 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \ |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 86 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio \ |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 87 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \ |
| 88 | $(call include-path-for, audio-effects) |
| 89 | ifneq ($(BOARD_OPENSOURCE_DIR), ) |
| 90 | LOCAL_C_INCLUDES += $(BOARD_OPENSOURCE_DIR)/audio-hal/primary-hal/hal \ |
| 91 | $(BOARD_OPENSOURCE_DIR)/audio-hal/primary-hal/hal/audio_extn/ |
| 92 | else |
| 93 | LOCAL_C_INCLUDES += vendor/qcom/opensource/audio-hal/primary-hal/hal \ |
| 94 | vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/ |
| 95 | endif # BOARD_OPENSOURCE_DIR |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 96 | |
Satish Babu Patakokila | 2787cee | 2018-03-22 11:18:42 +0530 | [diff] [blame] | 97 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
Revathi Uddaraju | 3f4cfa4 | 2018-06-04 20:35:10 +0530 | [diff] [blame] | 98 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 99 | ifneq ($(BOARD_OPENSOURCE_DIR), ) |
| 100 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/$(BOARD_OPENSOURCE_DIR)/audio-kernel/include |
| 101 | else |
| 102 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 103 | endif # BOARD_OPENSOURCE_DIR |
Asish Bhattacharya | d066587 | 2017-09-07 19:46:29 +0530 | [diff] [blame] | 104 | endif |
| 105 | |
Srinivas Rao Narne | 8ff4db5 | 2018-01-25 16:04:44 -0800 | [diff] [blame] | 106 | ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) |
| 107 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
Satish Babu Patakokila | 1d3b15d | 2018-07-03 17:09:40 +0530 | [diff] [blame] | 108 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Srinivas Rao Narne | 8ff4db5 | 2018-01-25 16:04:44 -0800 | [diff] [blame] | 109 | endif |
| 110 | |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 111 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 112 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 113 | endif |
| 114 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 115 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 116 | LOCAL_SANITIZE := integer_overflow |
| 117 | endif |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 118 | include $(BUILD_SHARED_LIBRARY) |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 119 | |
| 120 | |
| 121 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true) |
| 122 | include $(CLEAR_VARS) |
| 123 | |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 124 | LOCAL_CFLAGS += -Wno-unused-variable |
| 125 | LOCAL_CFLAGS += -Wno-sign-compare |
| 126 | LOCAL_CFLAGS += -Wno-unused-parameter |
| 127 | LOCAL_CFLAGS += -Wno-unused-label |
| 128 | LOCAL_CFLAGS += -Wno-gnu-designator |
| 129 | LOCAL_CFLAGS += -Wno-typedef-redefinition |
| 130 | LOCAL_CFLAGS += -Wno-shorten-64-to-32 |
| 131 | LOCAL_CFLAGS += -Wno-tautological-compare |
| 132 | LOCAL_CFLAGS += -Wno-unused-function |
| 133 | LOCAL_CFLAGS += -Wno-unused-local-typedef |
| 134 | LOCAL_CFLAGS += -Wno-format |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 135 | LOCAL_SRC_FILES := EffectsHwAcc.cpp |
| 136 | |
| 137 | LOCAL_C_INCLUDES := \ |
| 138 | $(call include-path-for, audio-effects) |
| 139 | |
Revathi Uddaraju | e8bd13c | 2018-04-02 21:27:54 +0530 | [diff] [blame] | 140 | LOCAL_HEADER_LIBRARIES := libhardware_headers \ |
| 141 | libsystem_headers \ |
| 142 | libutils_headers |
| 143 | |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 144 | LOCAL_SHARED_LIBRARIES := \ |
| 145 | liblog \ |
| 146 | libeffects |
| 147 | |
| 148 | LOCAL_MODULE_TAGS := optional |
| 149 | |
| 150 | LOCAL_CFLAGS += -O2 -fvisibility=hidden |
| 151 | |
Alexy Joseph | d464f3b | 2014-11-18 16:14:41 -0800 | [diff] [blame] | 152 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true) |
| 153 | LOCAL_CFLAGS += -DHW_ACC_HPX |
| 154 | endif |
| 155 | |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 156 | LOCAL_MODULE:= libhwacceffectswrapper |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 157 | LOCAL_VENDOR_MODULE := true |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 158 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 159 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 160 | LOCAL_SANITIZE := unsigned-integer-overflow signed-integer-overflow |
| 161 | endif |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 162 | include $(BUILD_STATIC_LIBRARY) |
| 163 | endif |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 164 | |
| 165 | |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 166 | |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 167 | ################################################################################ |
| 168 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 169 | ifneq ($(filter msm8992 msm8994 msm8996 msm8998 sdm660 sdm845 apq8098_latv sdm710 msm8953 msm8937 qcs605 sdmshrike msmnile kona lahaina holi atoll $(MSMSTEPPE) $(TRINKET) lito,$(TARGET_BOARD_PLATFORM)),) |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 170 | |
| 171 | include $(CLEAR_VARS) |
| 172 | |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 173 | LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so" |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 174 | LOCAL_CFLAGS += -Wno-unused-variable |
| 175 | LOCAL_CFLAGS += -Wno-sign-compare |
| 176 | LOCAL_CFLAGS += -Wno-unused-parameter |
| 177 | LOCAL_CFLAGS += -Wno-unused-label |
| 178 | LOCAL_CFLAGS += -Wno-gnu-designator |
| 179 | LOCAL_CFLAGS += -Wno-typedef-redefinition |
| 180 | LOCAL_CFLAGS += -Wno-shorten-64-to-32 |
| 181 | LOCAL_CFLAGS += -Wno-tautological-compare |
| 182 | LOCAL_CFLAGS += -Wno-unused-function |
| 183 | LOCAL_CFLAGS += -Wno-unused-local-typedef |
| 184 | LOCAL_CFLAGS += -Wno-format |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 185 | LOCAL_CFLAGS += -Wall |
| 186 | LOCAL_CFLAGS += -Werror |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 187 | |
| 188 | LOCAL_SRC_FILES:= \ |
| 189 | volume_listener.c |
| 190 | |
| 191 | LOCAL_CFLAGS+= -O2 -fvisibility=hidden |
| 192 | |
Revathi Uddaraju | e8bd13c | 2018-04-02 21:27:54 +0530 | [diff] [blame] | 193 | LOCAL_HEADER_LIBRARIES := libhardware_headers \ |
| 194 | libsystem_headers \ |
| 195 | libutils_headers |
| 196 | |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 197 | LOCAL_SHARED_LIBRARIES := \ |
| 198 | libcutils \ |
| 199 | liblog \ |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 200 | libdl \ |
| 201 | libaudioutils |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 202 | |
| 203 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
| 204 | LOCAL_MODULE:= libvolumelistener |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 205 | LOCAL_VENDOR_MODULE := true |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 206 | LOCAL_MODULE_OWNER := qti |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 207 | |
Aniket Kumar Lata | 8e743e6 | 2017-08-14 12:36:47 -0700 | [diff] [blame] | 208 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 209 | |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 210 | LOCAL_C_INCLUDES := \ |
Aniket Kumar Lata | f56b640 | 2016-10-27 12:03:18 -0700 | [diff] [blame] | 211 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \ |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 212 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio \ |
Aniket Kumar Lata | 8e743e6 | 2017-08-14 12:36:47 -0700 | [diff] [blame] | 213 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \ |
Aniket Kumar Lata | f56b640 | 2016-10-27 12:03:18 -0700 | [diff] [blame] | 214 | external/tinyalsa/include \ |
| 215 | $(call include-path-for, audio-effects) \ |
| 216 | $(call include-path-for, audio-route) \ |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 217 | external/tinycompress/include \ |
| 218 | system/media/audio_utils/include |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 219 | ifneq ($(BOARD_OPENSOURCE_DIR), ) |
| 220 | LOCAL_C_INCLUDES += $(BOARD_OPENSOURCE_DIR)/audio-hal/primary-hal/hal \ |
| 221 | $(BOARD_OPENSOURCE_DIR)/audio-hal/primary-hal/hal/audio_extn |
| 222 | else |
| 223 | LOCAL_C_INCLUDES += vendor/qcom/opensource/audio-hal/primary-hal/hal \ |
| 224 | vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn |
| 225 | endif # BOARD_OPENSOURCE_DIR |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 226 | |
Satish Babu Patakokila | 2787cee | 2018-03-22 11:18:42 +0530 | [diff] [blame] | 227 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
Revathi Uddaraju | 3f4cfa4 | 2018-06-04 20:35:10 +0530 | [diff] [blame] | 228 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 229 | ifneq ($(BOARD_OPENSOURCE_DIR), ) |
| 230 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/$(BOARD_OPENSOURCE_DIR)/audio-kernel/include |
| 231 | else |
| 232 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 233 | endif # BOARD_OPENSOURCE_DIR |
Asish Bhattacharya | d066587 | 2017-09-07 19:46:29 +0530 | [diff] [blame] | 234 | endif |
| 235 | |
Srinivas Rao Narne | 8ff4db5 | 2018-01-25 16:04:44 -0800 | [diff] [blame] | 236 | ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) |
| 237 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
Satish Babu Patakokila | 1d3b15d | 2018-07-03 17:09:40 +0530 | [diff] [blame] | 238 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Srinivas Rao Narne | 8ff4db5 | 2018-01-25 16:04:44 -0800 | [diff] [blame] | 239 | endif |
| 240 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 241 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 242 | LOCAL_SANITIZE := integer_overflow |
| 243 | endif |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 244 | include $(BUILD_SHARED_LIBRARY) |
| 245 | |
| 246 | endif |
jasmine cha | 75fa6f0 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 247 | |
| 248 | ################################################################################ |
| 249 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MAXX_AUDIO)), true) |
| 250 | |
| 251 | include $(CLEAR_VARS) |
| 252 | |
| 253 | LOCAL_CFLAGS := -D HAL_LIB_NAME=\"audio.primary."$(TARGET_BOARD_PLATFORM)".so\" |
| 254 | |
| 255 | LOCAL_SRC_FILES:= \ |
Aalique Grahame | 5ce7fbe | 2019-01-28 12:08:13 -0800 | [diff] [blame] | 256 | ma_listener.c |
jasmine cha | 75fa6f0 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 257 | |
| 258 | LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) |
| 259 | |
| 260 | LOCAL_SHARED_LIBRARIES := \ |
Aalique Grahame | 5ce7fbe | 2019-01-28 12:08:13 -0800 | [diff] [blame] | 261 | libcutils \ |
| 262 | liblog \ |
| 263 | libdl |
jasmine cha | 75fa6f0 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 264 | |
| 265 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
| 266 | LOCAL_MODULE:= libmalistener |
| 267 | LOCAL_MODULE_OWNER := google |
| 268 | LOCAL_PROPRIETARY_MODULE := true |
| 269 | |
| 270 | LOCAL_C_INCLUDES := \ |
Aalique Grahame | 5ce7fbe | 2019-01-28 12:08:13 -0800 | [diff] [blame] | 271 | hardware/qcom/audio/hal \ |
| 272 | system/media/audio/include/system \ |
| 273 | $(call include-path-for, audio-effects) |
jasmine cha | 75fa6f0 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 274 | |
| 275 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 276 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 277 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 278 | LOCAL_SANITIZE := integer_overflow |
| 279 | endif |
jasmine cha | 75fa6f0 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 280 | include $(BUILD_SHARED_LIBRARY) |
| 281 | |
| 282 | endif |
Naresh Tanniru | f129015 | 2018-11-27 12:16:45 +0530 | [diff] [blame] | 283 | endif |