Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 1 | #AudioHal-primaryHal-Hal path |
| 2 | ifneq ($(BOARD_OPENSOURCE_DIR), ) |
| 3 | PRIMARY_HAL_PATH := $(BOARD_OPENSOURCE_DIR)/audio-hal/primary-hal/hal |
| 4 | AUDIO_KERNEL_INC := $(TARGET_OUT_INTERMEDIATES)/$(BOARD_OPENSOURCE_DIR)/audio-kernel/include |
| 5 | else |
| 6 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 7 | AUDIO_KERNEL_INC := $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 8 | endif # BOARD_OPENSOURCE_DIR |
| 9 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 10 | #-------------------------------------------- |
| 11 | # Build SND_MONITOR LIB |
| 12 | #-------------------------------------------- |
| 13 | LOCAL_PATH:= $(call my-dir) |
| 14 | |
| 15 | include $(CLEAR_VARS) |
| 16 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 17 | LOCAL_MODULE := libsndmonitor |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 18 | LOCAL_MODULE_OWNER := third_party |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 19 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 20 | |
| 21 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 22 | |
| 23 | LOCAL_SRC_FILES:= \ |
| 24 | sndmonitor.c |
| 25 | |
| 26 | LOCAL_CFLAGS += \ |
| 27 | -Wall \ |
| 28 | -Werror \ |
| 29 | -Wno-unused-function \ |
| 30 | -Wno-unused-variable \ |
| 31 | |
| 32 | LOCAL_SHARED_LIBRARIES := \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 33 | libaudioutils \ |
| 34 | libcutils \ |
| 35 | liblog \ |
| 36 | libtinyalsa \ |
| 37 | libtinycompress \ |
| 38 | libaudioroute \ |
| 39 | libdl \ |
| 40 | libexpat |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 41 | |
| 42 | LOCAL_C_INCLUDES := \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 43 | external/tinyalsa/include \ |
| 44 | external/tinycompress/include \ |
| 45 | system/media/audio_utils/include \ |
| 46 | external/expat/lib \ |
| 47 | $(call include-path-for, audio-route) \ |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 48 | $(PRIMARY_HAL_PATH) \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 49 | $(call include-path-for, audio-effects) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 50 | |
| 51 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 52 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 53 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 54 | |
| 55 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 56 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 57 | endif |
| 58 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 59 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 60 | |
| 61 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 62 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 63 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 64 | endif |
| 65 | |
Jaideep Sharma | cb40251 | 2020-09-24 17:51:07 +0530 | [diff] [blame] | 66 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DYNAMIC_LOG)), true) |
| 67 | LOCAL_CFLAGS += -DDYNAMIC_LOG_ENABLED |
| 68 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-log-utils |
| 69 | LOCAL_SHARED_LIBRARIES += libaudio_log_utils |
| 70 | endif |
| 71 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 72 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 73 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 74 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 75 | LOCAL_SANITIZE := integer_overflow |
| 76 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 77 | include $(BUILD_SHARED_LIBRARY) |
| 78 | |
| 79 | #-------------------------------------------- |
| 80 | # Build COMPRESS_CAPTURE LIB |
| 81 | #-------------------------------------------- |
| 82 | include $(CLEAR_VARS) |
| 83 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 84 | LOCAL_MODULE := libcomprcapture |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 85 | LOCAL_MODULE_OWNER := third_party |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 86 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 87 | |
| 88 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 89 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 90 | ifneq ($(filter sdm845 sdm710 qcs605 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 91 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 92 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 93 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 94 | endif |
| 95 | |
| 96 | LOCAL_SRC_FILES:= \ |
| 97 | compress_capture.c |
| 98 | |
| 99 | LOCAL_CFLAGS += \ |
| 100 | -Wall \ |
| 101 | -Werror \ |
| 102 | -Wno-unused-function \ |
| 103 | -Wno-unused-variable \ |
| 104 | |
| 105 | LOCAL_SHARED_LIBRARIES := \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 106 | libaudioutils \ |
| 107 | libcutils \ |
| 108 | liblog \ |
| 109 | libtinyalsa \ |
| 110 | libtinycompress \ |
| 111 | libaudioroute \ |
| 112 | libdl \ |
| 113 | libexpat |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 114 | |
| 115 | LOCAL_C_INCLUDES := \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 116 | external/tinyalsa/include \ |
| 117 | external/tinycompress/include \ |
| 118 | system/media/audio_utils/include \ |
| 119 | external/expat/lib \ |
| 120 | $(call include-path-for, audio-route) \ |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 121 | $(PRIMARY_HAL_PATH) \ |
| 122 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 123 | $(call include-path-for, audio-effects) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 124 | |
| 125 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 126 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 127 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 128 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 129 | |
| 130 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 131 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 132 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 133 | endif |
| 134 | |
Jaideep Sharma | cb40251 | 2020-09-24 17:51:07 +0530 | [diff] [blame] | 135 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DYNAMIC_LOG)), true) |
| 136 | LOCAL_CFLAGS += -DDYNAMIC_LOG_ENABLED |
| 137 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-log-utils |
| 138 | LOCAL_SHARED_LIBRARIES += libaudio_log_utils |
| 139 | endif |
| 140 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 141 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 142 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 143 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 144 | LOCAL_SANITIZE := integer_overflow |
| 145 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 146 | include $(BUILD_SHARED_LIBRARY) |
| 147 | |
| 148 | #------------------------------------------- |
| 149 | # Build SSREC LIB |
| 150 | #------------------------------------------- |
Derek Chen | 799148a | 2019-09-08 15:18:33 -0700 | [diff] [blame] | 151 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SSR)),true) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 152 | include $(CLEAR_VARS) |
| 153 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 154 | LOCAL_MODULE := libssrec |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 155 | LOCAL_VENDOR_MODULE := true |
| 156 | |
| 157 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 158 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 159 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 160 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 161 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 162 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 163 | endif |
| 164 | |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 165 | LOCAL_SRC_FILES:= ssr.c \ |
| 166 | device_utils.c |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 167 | |
| 168 | LOCAL_CFLAGS += \ |
| 169 | -Wall \ |
| 170 | -Werror \ |
| 171 | -Wno-unused-function \ |
| 172 | -Wno-unused-variable |
| 173 | |
| 174 | LOCAL_SHARED_LIBRARIES := \ |
| 175 | libaudioutils \ |
| 176 | libcutils \ |
| 177 | liblog \ |
| 178 | libtinyalsa \ |
| 179 | libtinycompress \ |
| 180 | libaudioroute \ |
| 181 | libdl \ |
Ramjee Singh | 82fd0c1 | 2019-08-21 16:31:33 +0530 | [diff] [blame] | 182 | libexpat \ |
| 183 | libprocessgroup |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 184 | |
| 185 | LOCAL_C_INCLUDES := \ |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 186 | $(PRIMARY_HAL_PATH) \ |
| 187 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 188 | external/tinyalsa/include \ |
| 189 | external/tinycompress/include \ |
| 190 | external/expat/lib \ |
| 191 | system/media/audio_utils/include \ |
| 192 | $(call include-path-for, audio-route) \ |
| 193 | $(call include-path-for, audio-effects) \ |
| 194 | $(TARGET_OUT_HEADERS)/mm-audio/surround_sound_3mic/ \ |
| 195 | $(TARGET_OUT_HEADERS)/common/inc/ |
| 196 | |
| 197 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 198 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 199 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 200 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 201 | |
| 202 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 203 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 204 | LOCAL_C_INCLUDES += $(PRIMARY_HAL_PATH) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 205 | endif |
| 206 | |
Jaideep Sharma | cb40251 | 2020-09-24 17:51:07 +0530 | [diff] [blame] | 207 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DYNAMIC_LOG)), true) |
| 208 | LOCAL_CFLAGS += -DDYNAMIC_LOG_ENABLED |
| 209 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-log-utils |
| 210 | LOCAL_SHARED_LIBRARIES += libaudio_log_utils |
| 211 | endif |
| 212 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 213 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 214 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 215 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 216 | LOCAL_SANITIZE := integer_overflow |
| 217 | endif |
Ramjee Singh | 82fd0c1 | 2019-08-21 16:31:33 +0530 | [diff] [blame] | 218 | include $(BUILD_SHARED_LIBRARY) |
Derek Chen | 799148a | 2019-09-08 15:18:33 -0700 | [diff] [blame] | 219 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 220 | #-------------------------------------------- |
| 221 | # Build HDMI_EDID LIB |
| 222 | #-------------------------------------------- |
| 223 | include $(CLEAR_VARS) |
| 224 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 225 | LOCAL_MODULE := libhdmiedid |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 226 | LOCAL_MODULE_OWNER := third_party |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 227 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 228 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 229 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 230 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 231 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 232 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 233 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 234 | endif |
| 235 | |
| 236 | LOCAL_SRC_FILES:= \ |
| 237 | edid.c |
| 238 | |
| 239 | LOCAL_CFLAGS += \ |
| 240 | -Wall \ |
| 241 | -Werror \ |
| 242 | -Wno-unused-function \ |
| 243 | -Wno-unused-variable \ |
| 244 | |
| 245 | LOCAL_SHARED_LIBRARIES := \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 246 | libaudioutils \ |
| 247 | libcutils \ |
| 248 | liblog \ |
| 249 | libtinyalsa \ |
| 250 | libtinycompress \ |
| 251 | libaudioroute \ |
| 252 | libdl \ |
| 253 | libexpat |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 254 | |
| 255 | LOCAL_C_INCLUDES := \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 256 | external/tinyalsa/include \ |
| 257 | external/tinycompress/include \ |
| 258 | system/media/audio_utils/include \ |
| 259 | external/expat/lib \ |
| 260 | $(call include-path-for, audio-route) \ |
| 261 | $(PRIMARY_HAL_PATH) \ |
| 262 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 263 | $(call include-path-for, audio-effects) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 264 | |
| 265 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 266 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 267 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 268 | |
| 269 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 270 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 271 | endif |
| 272 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 273 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 274 | |
| 275 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 276 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 277 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 278 | endif |
| 279 | |
Jaideep Sharma | cb40251 | 2020-09-24 17:51:07 +0530 | [diff] [blame] | 280 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DYNAMIC_LOG)), true) |
| 281 | LOCAL_CFLAGS += -DDYNAMIC_LOG_ENABLED |
| 282 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-log-utils |
| 283 | LOCAL_SHARED_LIBRARIES += libaudio_log_utils |
| 284 | endif |
| 285 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 286 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 287 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 288 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 289 | LOCAL_SANITIZE := integer_overflow |
| 290 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 291 | include $(BUILD_SHARED_LIBRARY) |
| 292 | |
| 293 | #-------------------------------------------- |
| 294 | # Build SPKR_PROTECT LIB |
| 295 | #-------------------------------------------- |
| 296 | include $(CLEAR_VARS) |
| 297 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 298 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 299 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 300 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 301 | endif |
| 302 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 303 | LOCAL_MODULE := libspkrprot |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 304 | LOCAL_MODULE_OWNER := third_party |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 305 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 306 | |
| 307 | LOCAL_SRC_FILES:= \ |
| 308 | spkr_protection.c |
| 309 | |
| 310 | LOCAL_CFLAGS += \ |
| 311 | -Wall \ |
| 312 | -Werror \ |
| 313 | -Wno-unused-function \ |
| 314 | -Wno-unused-variable \ |
| 315 | |
| 316 | LOCAL_CFLAGS += -DSPKR_PROT_ENABLED |
| 317 | |
| 318 | LOCAL_SHARED_LIBRARIES := \ |
| 319 | libaudioutils \ |
| 320 | libcutils \ |
| 321 | liblog \ |
| 322 | libtinyalsa \ |
| 323 | libtinycompress \ |
| 324 | libaudioroute \ |
| 325 | libdl \ |
| 326 | libexpat |
| 327 | |
| 328 | LOCAL_C_INCLUDES := \ |
| 329 | external/tinyalsa/include \ |
| 330 | external/tinycompress/include \ |
| 331 | system/media/audio_utils/include \ |
| 332 | external/expat/lib \ |
| 333 | $(call include-path-for, audio-route) \ |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 334 | $(PRIMARY_HAL_PATH) \ |
| 335 | $(PRIMARY_HAL_PATH)/audio_extn \ |
| 336 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 337 | $(call include-path-for, audio-effects) |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 338 | ifneq ($(BOARD_OPENSOURCE_DIR), ) |
| 339 | LOCAL_C_INCLUDES += $(BOARD_OPENSOURCE_DIR)/audio-kernel/include/uapi/ |
| 340 | else |
| 341 | LOCAL_C_INCLUDES += vendor/qcom/opensource/audio-kernel/include/uapi/ |
| 342 | endif # BOARD_OPENSOURCE_DIR |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 343 | |
Sujin Panicker | b904fbe | 2019-04-04 13:28:07 +0530 | [diff] [blame] | 344 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 345 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 346 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 347 | |
| 348 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 349 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 350 | endif |
| 351 | |
Meng Wang | 6719f4d | 2019-04-09 09:09:16 +0800 | [diff] [blame] | 352 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 353 | |
Jaideep Sharma | cb40251 | 2020-09-24 17:51:07 +0530 | [diff] [blame] | 354 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DYNAMIC_LOG)), true) |
| 355 | LOCAL_CFLAGS += -DDYNAMIC_LOG_ENABLED |
| 356 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-log-utils |
| 357 | LOCAL_SHARED_LIBRARIES += libaudio_log_utils |
| 358 | endif |
| 359 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 360 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 361 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 362 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 363 | LOCAL_SANITIZE := integer_overflow |
| 364 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 365 | include $(BUILD_SHARED_LIBRARY) |
| 366 | #==================================================================================================== |
| 367 | # --- enable 3rd Party Spkr-prot lib |
| 368 | #==================================================================================================== |
| 369 | |
| 370 | include $(CLEAR_VARS) |
| 371 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 372 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 373 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 374 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 375 | endif |
| 376 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 377 | LOCAL_MODULE := libcirrusspkrprot |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 378 | LOCAL_MODULE_OWNER := third_party |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 379 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 380 | |
| 381 | LOCAL_SRC_FILES:= \ |
| 382 | cirrus_playback.c |
| 383 | |
| 384 | LOCAL_CFLAGS += \ |
| 385 | -Wall \ |
| 386 | -Werror \ |
| 387 | -Wno-unused-function \ |
| 388 | -Wno-unused-variable \ |
| 389 | |
| 390 | LOCAL_CFLAGS += -DENABLE_CIRRUS_DETECTION |
| 391 | LOCAL_CFLAGS += -DCIRRUS_FACTORY_CALIBRATION |
| 392 | |
| 393 | LOCAL_SHARED_LIBRARIES := \ |
| 394 | libaudioutils \ |
| 395 | libcutils \ |
| 396 | liblog \ |
| 397 | libtinyalsa \ |
| 398 | libaudioroute \ |
| 399 | libdl \ |
| 400 | libexpat |
| 401 | |
| 402 | LOCAL_C_INCLUDES := \ |
| 403 | external/tinyalsa/include \ |
| 404 | external/tinycompress/include \ |
| 405 | system/media/audio_utils/include \ |
| 406 | external/expat/lib \ |
| 407 | $(call include-path-for, audio-route) \ |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 408 | $(PRIMARY_HAL_PATH) \ |
| 409 | $(PRIMARY_HAL_PATH)/audio_extn \ |
| 410 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 411 | $(call include-path-for, audio-effects) |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 412 | ifneq ($(BOARD_OPENSOURCE_DIR), ) |
| 413 | LOCAL_C_INCLUDES += $(BOARD_OPENSOURCE_DIR)/audio-kernel/include/uapi/ |
| 414 | else |
| 415 | LOCAL_C_INCLUDES += vendor/qcom/opensource/audio-kernel/include/uapi/ |
| 416 | endif # BOARD_OPENSOURCE_DIR |
| 417 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 418 | |
Sujin Panicker | b904fbe | 2019-04-04 13:28:07 +0530 | [diff] [blame] | 419 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 420 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 421 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 422 | |
| 423 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 424 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 425 | endif |
| 426 | |
Meng Wang | 6719f4d | 2019-04-09 09:09:16 +0800 | [diff] [blame] | 427 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 428 | |
| 429 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 430 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 431 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 432 | LOCAL_SANITIZE := integer_overflow |
| 433 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 434 | include $(BUILD_SHARED_LIBRARY) |
| 435 | |
| 436 | #------------------------------------------- |
| 437 | # Build A2DP_OFFLOAD LIB |
| 438 | #------------------------------------------- |
| 439 | include $(CLEAR_VARS) |
| 440 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 441 | LOCAL_MODULE := liba2dpoffload |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 442 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 443 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 444 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 445 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 446 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 447 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 448 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 449 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 450 | endif |
| 451 | |
| 452 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 453 | a2dp.c \ |
| 454 | device_utils.c |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 455 | |
| 456 | LOCAL_CFLAGS += \ |
| 457 | -Wall \ |
| 458 | -Werror \ |
| 459 | -Wno-unused-function \ |
| 460 | -Wno-unused-variable |
| 461 | |
| 462 | LOCAL_SHARED_LIBRARIES := \ |
| 463 | libaudioutils \ |
| 464 | libcutils \ |
| 465 | liblog \ |
| 466 | libtinyalsa \ |
| 467 | libtinycompress \ |
| 468 | libaudioroute \ |
| 469 | libdl \ |
Arun Mirpuri | 5dc7780 | 2019-02-26 16:32:42 -0800 | [diff] [blame] | 470 | libexpat |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 471 | |
| 472 | LOCAL_C_INCLUDES := \ |
| 473 | $(PRIMARY_HAL_PATH) \ |
| 474 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 475 | external/tinyalsa/include \ |
| 476 | external/tinycompress/include \ |
| 477 | external/expat/lib \ |
| 478 | system/media/audio_utils/include \ |
| 479 | $(call include-path-for, audio-route) \ |
| 480 | |
| 481 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 482 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 483 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 484 | |
| 485 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 486 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 487 | endif |
| 488 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 489 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 490 | |
| 491 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 492 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 493 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 494 | endif |
| 495 | |
Jaideep Sharma | cb40251 | 2020-09-24 17:51:07 +0530 | [diff] [blame] | 496 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DYNAMIC_LOG)), true) |
| 497 | LOCAL_CFLAGS += -DDYNAMIC_LOG_ENABLED |
| 498 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-log-utils |
| 499 | LOCAL_SHARED_LIBRARIES += libaudio_log_utils |
| 500 | endif |
| 501 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 502 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 503 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 504 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 505 | LOCAL_SANITIZE := integer_overflow |
| 506 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 507 | include $(BUILD_SHARED_LIBRARY) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 508 | |
| 509 | #------------------------------------------- |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 510 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 511 | # Build EXT_HW_PLUGIN LIB |
| 512 | #------------------------------------------- |
| 513 | include $(CLEAR_VARS) |
| 514 | |
| 515 | LOCAL_MODULE := libexthwplugin |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 516 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 517 | LOCAL_VENDOR_MODULE := true |
| 518 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 519 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 520 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 521 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 522 | # B-family platform uses msm8974 code base |
| 523 | AUDIO_PLATFORM := msm8974 |
| 524 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 525 | endif |
| 526 | |
| 527 | LOCAL_SRC_FILES:= \ |
| 528 | ext_hw_plugin.c |
| 529 | |
| 530 | LOCAL_CFLAGS += \ |
| 531 | -Wall \ |
| 532 | -Werror \ |
| 533 | -Wno-unused-function \ |
| 534 | -Wno-unused-variable |
| 535 | |
Viraja Kommaraju | 7d407e1 | 2019-11-15 21:25:36 +0530 | [diff] [blame] | 536 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DAEMON_SUPPORT)), true) |
| 537 | LOCAL_CFLAGS += -DDAEMON_SUPPORT_AUTO |
| 538 | endif |
| 539 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 540 | LOCAL_SHARED_LIBRARIES := \ |
| 541 | libaudioroute \ |
| 542 | libaudioutils \ |
| 543 | libcutils \ |
| 544 | libdl \ |
| 545 | libexpat \ |
| 546 | liblog \ |
| 547 | libtinyalsa \ |
| 548 | libtinycompress |
| 549 | |
| 550 | LOCAL_C_INCLUDES := \ |
| 551 | $(PRIMARY_HAL_PATH) \ |
| 552 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 553 | external/tinyalsa/include \ |
| 554 | external/tinycompress/include \ |
| 555 | external/expat/lib \ |
| 556 | system/media/audio_utils/include \ |
| 557 | $(call include-path-for, audio-route) \ |
| 558 | |
| 559 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 560 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 561 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 562 | |
| 563 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 564 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 565 | endif |
| 566 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 567 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 568 | |
| 569 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 570 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 571 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 572 | endif |
| 573 | |
| 574 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 575 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 576 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 577 | LOCAL_SANITIZE := integer_overflow |
| 578 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 579 | include $(BUILD_SHARED_LIBRARY) |
| 580 | |
| 581 | #------------------------------------------- |
| 582 | # Build HFP LIB |
| 583 | #------------------------------------------- |
| 584 | include $(CLEAR_VARS) |
| 585 | |
| 586 | LOCAL_MODULE := libhfp |
| 587 | LOCAL_VENDOR_MODULE := true |
| 588 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 589 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 590 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 591 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 592 | # B-family platform uses msm8974 code base |
| 593 | AUDIO_PLATFORM := msm8974 |
| 594 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 595 | endif |
| 596 | |
Derek Chen | f709279 | 2017-05-23 12:23:53 -0400 | [diff] [blame] | 597 | ifeq ($(TARGET_BOARD_AUTO),true) |
| 598 | LOCAL_CFLAGS += -DPLATFORM_AUTO |
| 599 | endif |
| 600 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 601 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 602 | hfp.c \ |
| 603 | device_utils.c |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 604 | |
| 605 | LOCAL_CFLAGS += \ |
| 606 | -Wall \ |
| 607 | -Werror \ |
| 608 | -Wno-unused-function \ |
| 609 | -Wno-unused-variable |
| 610 | |
| 611 | LOCAL_SHARED_LIBRARIES := \ |
| 612 | libaudioroute \ |
| 613 | libaudioutils \ |
| 614 | libcutils \ |
| 615 | libdl \ |
| 616 | libexpat \ |
| 617 | liblog \ |
| 618 | libtinyalsa \ |
| 619 | libtinycompress |
| 620 | |
| 621 | LOCAL_C_INCLUDES := \ |
| 622 | $(PRIMARY_HAL_PATH) \ |
| 623 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 624 | external/tinyalsa/include \ |
| 625 | external/tinycompress/include \ |
| 626 | external/expat/lib \ |
| 627 | system/media/audio_utils/include \ |
| 628 | $(call include-path-for, audio-route) \ |
| 629 | |
| 630 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 631 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 632 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 633 | |
| 634 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 635 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 636 | endif |
| 637 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 638 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 639 | |
| 640 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 641 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 642 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 643 | endif |
| 644 | |
Jaideep Sharma | cb40251 | 2020-09-24 17:51:07 +0530 | [diff] [blame] | 645 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DYNAMIC_LOG)), true) |
| 646 | LOCAL_CFLAGS += -DDYNAMIC_LOG_ENABLED |
| 647 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-log-utils |
| 648 | LOCAL_SHARED_LIBRARIES += libaudio_log_utils |
| 649 | endif |
| 650 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 651 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 652 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 653 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 654 | LOCAL_SANITIZE := integer_overflow |
| 655 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 656 | include $(BUILD_SHARED_LIBRARY) |
| 657 | |
| 658 | #------------------------------------------- |
Derek Chen | a30a5f4 | 2019-12-03 11:17:09 -0500 | [diff] [blame] | 659 | # Build ICC LIB |
| 660 | #------------------------------------------- |
| 661 | include $(CLEAR_VARS) |
| 662 | |
| 663 | LOCAL_MODULE := libicc |
| 664 | LOCAL_VENDOR_MODULE := true |
| 665 | |
Derek Chen | a30a5f4 | 2019-12-03 11:17:09 -0500 | [diff] [blame] | 666 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 667 | |
Weiyin Jiang | 64981c3 | 2020-11-10 12:29:41 +0800 | [diff] [blame] | 668 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Derek Chen | a30a5f4 | 2019-12-03 11:17:09 -0500 | [diff] [blame] | 669 | # B-family platform uses msm8974 code base |
| 670 | AUDIO_PLATFORM := msm8974 |
| 671 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 672 | endif |
| 673 | |
| 674 | ifeq ($(TARGET_BOARD_AUTO),true) |
| 675 | LOCAL_CFLAGS += -DPLATFORM_AUTO |
| 676 | endif |
| 677 | |
| 678 | LOCAL_SRC_FILES:= \ |
| 679 | icc.c \ |
| 680 | device_utils.c |
| 681 | |
| 682 | LOCAL_CFLAGS += \ |
| 683 | -Wall \ |
| 684 | -Werror \ |
| 685 | -Wno-unused-function \ |
| 686 | -Wno-unused-variable |
| 687 | |
| 688 | LOCAL_SHARED_LIBRARIES := \ |
| 689 | libaudioroute \ |
| 690 | libaudioutils \ |
| 691 | libcutils \ |
| 692 | libdl \ |
| 693 | libexpat \ |
| 694 | liblog \ |
| 695 | libtinyalsa \ |
| 696 | libtinycompress |
| 697 | |
| 698 | LOCAL_C_INCLUDES := \ |
| 699 | $(PRIMARY_HAL_PATH) \ |
| 700 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 701 | external/tinyalsa/include \ |
| 702 | external/tinycompress/include \ |
| 703 | external/expat/lib \ |
| 704 | system/media/audio_utils/include \ |
| 705 | $(call include-path-for, audio-route) \ |
| 706 | |
| 707 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 708 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
| 709 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 710 | |
| 711 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 712 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 713 | endif |
| 714 | |
Derek Chen | a30a5f4 | 2019-12-03 11:17:09 -0500 | [diff] [blame] | 715 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 716 | |
| 717 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 718 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 719 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Derek Chen | a30a5f4 | 2019-12-03 11:17:09 -0500 | [diff] [blame] | 720 | endif |
| 721 | |
| 722 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 723 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Weiyin Jiang | 64981c3 | 2020-11-10 12:29:41 +0800 | [diff] [blame] | 724 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Derek Chen | a30a5f4 | 2019-12-03 11:17:09 -0500 | [diff] [blame] | 725 | LOCAL_SANITIZE := integer_overflow |
| 726 | endif |
| 727 | include $(BUILD_SHARED_LIBRARY) |
| 728 | |
| 729 | #------------------------------------------- |
Fei Tong | affdf73 | 2020-02-20 20:39:05 +0800 | [diff] [blame] | 730 | # Build SYNTH LIB |
| 731 | #------------------------------------------- |
| 732 | include $(CLEAR_VARS) |
| 733 | |
| 734 | LOCAL_MODULE := libsynth |
| 735 | LOCAL_VENDOR_MODULE := true |
| 736 | |
Fei Tong | affdf73 | 2020-02-20 20:39:05 +0800 | [diff] [blame] | 737 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 738 | |
Weiyin Jiang | 64981c3 | 2020-11-10 12:29:41 +0800 | [diff] [blame] | 739 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Fei Tong | affdf73 | 2020-02-20 20:39:05 +0800 | [diff] [blame] | 740 | # B-family platform uses msm8974 code base |
| 741 | AUDIO_PLATFORM := msm8974 |
| 742 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 743 | endif |
| 744 | |
| 745 | ifeq ($(TARGET_BOARD_AUTO),true) |
| 746 | LOCAL_CFLAGS += -DPLATFORM_AUTO |
| 747 | endif |
| 748 | |
| 749 | LOCAL_SRC_FILES:= \ |
| 750 | synth.c \ |
| 751 | device_utils.c |
| 752 | |
| 753 | LOCAL_CFLAGS += \ |
| 754 | -Wall \ |
| 755 | -Werror \ |
| 756 | -Wno-unused-function \ |
| 757 | -Wno-unused-variable |
| 758 | |
| 759 | LOCAL_SHARED_LIBRARIES := \ |
| 760 | libaudioroute \ |
| 761 | libaudioutils \ |
| 762 | libcutils \ |
| 763 | libdl \ |
| 764 | libexpat \ |
| 765 | liblog \ |
| 766 | libtinyalsa \ |
| 767 | libtinycompress |
| 768 | |
| 769 | LOCAL_C_INCLUDES := \ |
| 770 | $(PRIMARY_HAL_PATH) \ |
| 771 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 772 | external/tinyalsa/include \ |
| 773 | external/tinycompress/include \ |
| 774 | external/expat/lib \ |
| 775 | system/media/audio_utils/include \ |
| 776 | $(call include-path-for, audio-route) \ |
| 777 | |
| 778 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 779 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
| 780 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 781 | |
| 782 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 783 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 784 | endif |
| 785 | |
Fei Tong | affdf73 | 2020-02-20 20:39:05 +0800 | [diff] [blame] | 786 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 787 | |
| 788 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 789 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 790 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Fei Tong | affdf73 | 2020-02-20 20:39:05 +0800 | [diff] [blame] | 791 | endif |
| 792 | |
| 793 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 794 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Weiyin Jiang | 64981c3 | 2020-11-10 12:29:41 +0800 | [diff] [blame] | 795 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Fei Tong | affdf73 | 2020-02-20 20:39:05 +0800 | [diff] [blame] | 796 | LOCAL_SANITIZE := integer_overflow |
| 797 | endif |
| 798 | include $(BUILD_SHARED_LIBRARY) |
| 799 | |
| 800 | #------------------------------------------- |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 801 | # Build HDMI PASSTHROUGH |
| 802 | #------------------------------------------- |
| 803 | include $(CLEAR_VARS) |
| 804 | |
| 805 | LOCAL_MODULE := libhdmipassthru |
| 806 | LOCAL_VENDOR_MODULE := true |
| 807 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 808 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 809 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 810 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 811 | # B-family platform uses msm8974 code base |
| 812 | AUDIO_PLATFORM := msm8974 |
| 813 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 814 | endif |
| 815 | |
| 816 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 817 | passthru.c \ |
| 818 | device_utils.c |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 819 | |
| 820 | LOCAL_CFLAGS += \ |
| 821 | -Wall \ |
| 822 | -Werror \ |
| 823 | -Wno-unused-function \ |
| 824 | -Wno-unused-variable \ |
| 825 | -DDTSHD_PARSER_ENABLED |
| 826 | |
| 827 | LOCAL_SHARED_LIBRARIES := \ |
| 828 | libaudioparsers \ |
| 829 | libaudioroute \ |
| 830 | libaudioutils \ |
| 831 | libcutils \ |
| 832 | libdl \ |
| 833 | libexpat \ |
| 834 | liblog \ |
| 835 | libtinyalsa \ |
| 836 | libtinycompress |
| 837 | |
| 838 | LOCAL_C_INCLUDES := \ |
| 839 | $(PRIMARY_HAL_PATH) \ |
| 840 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 841 | external/tinyalsa/include \ |
| 842 | external/tinycompress/include \ |
| 843 | external/expat/lib \ |
| 844 | system/media/audio_utils/include \ |
Arun Mirpuri | f607447 | 2019-04-17 11:39:08 -0700 | [diff] [blame] | 845 | $(TARGET_OUT_HEADERS)/mm-audio/audio-parsers \ |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 846 | $(call include-path-for, audio-route) \ |
| 847 | |
| 848 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 849 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 850 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 851 | |
| 852 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 853 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 854 | endif |
| 855 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 856 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 857 | |
| 858 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 859 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 860 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 861 | endif |
| 862 | |
Jaideep Sharma | cb40251 | 2020-09-24 17:51:07 +0530 | [diff] [blame] | 863 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DYNAMIC_LOG)), true) |
| 864 | LOCAL_CFLAGS += -DDYNAMIC_LOG_ENABLED |
| 865 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-log-utils |
| 866 | LOCAL_SHARED_LIBRARIES += libaudio_log_utils |
| 867 | endif |
| 868 | |
Vignesh Kulothungan | 4fa89d1 | 2020-01-27 11:24:13 -0800 | [diff] [blame] | 869 | # Kernel specific feature |
| 870 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GKI)), true) |
| 871 | LOCAL_CFLAGS += -DAUDIO_GKI_ENABLED |
| 872 | endif |
| 873 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 874 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 875 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 876 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 877 | LOCAL_SANITIZE := integer_overflow |
| 878 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 879 | include $(BUILD_SHARED_LIBRARY) |
| 880 | |
| 881 | #------------------------------------------- |
| 882 | # Build BATTERY_LISTENER |
| 883 | #------------------------------------------- |
| 884 | include $(CLEAR_VARS) |
| 885 | |
| 886 | LOCAL_MODULE := libbatterylistener |
| 887 | LOCAL_VENDOR_MODULE := true |
| 888 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 889 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 890 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 891 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 892 | # B-family platform uses msm8974 code base |
| 893 | AUDIO_PLATFORM := msm8974 |
| 894 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 895 | endif |
| 896 | |
| 897 | LOCAL_SRC_FILES:= \ |
| 898 | battery_listener.cpp |
| 899 | |
| 900 | LOCAL_CFLAGS += \ |
| 901 | -Wall \ |
| 902 | -Werror \ |
| 903 | -Wno-unused-function \ |
| 904 | -Wno-unused-variable \ |
| 905 | -DDTSHD_PARSER_ENABLED |
| 906 | |
| 907 | LOCAL_SHARED_LIBRARIES := \ |
| 908 | android.hardware.health@1.0 \ |
| 909 | android.hardware.health@2.0 \ |
| 910 | android.hardware.power@1.2 \ |
| 911 | libaudioroute \ |
| 912 | libaudioutils \ |
| 913 | libbase \ |
| 914 | libcutils \ |
| 915 | libdl \ |
| 916 | libexpat \ |
| 917 | libhidlbase \ |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 918 | liblog \ |
| 919 | libtinyalsa \ |
| 920 | libtinycompress \ |
| 921 | libutils \ |
| 922 | |
| 923 | LOCAL_STATIC_LIBRARIES := \ |
| 924 | libhealthhalutils |
| 925 | |
| 926 | LOCAL_C_INCLUDES := \ |
| 927 | $(PRIMARY_HAL_PATH) \ |
| 928 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 929 | external/tinyalsa/include \ |
| 930 | external/tinycompress/include \ |
| 931 | external/expat/lib \ |
| 932 | system/media/audio_utils/include \ |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 933 | $(call include-path-for, audio-route) \ |
| 934 | |
| 935 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 936 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 937 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 938 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 939 | |
| 940 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 941 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 942 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 943 | endif |
| 944 | |
| 945 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 946 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 947 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 948 | LOCAL_SANITIZE := integer_overflow |
| 949 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 950 | include $(BUILD_SHARED_LIBRARY) |
| 951 | |
| 952 | #------------------------------------------- |
| 953 | # Build HWDEP_CAL |
| 954 | #------------------------------------------- |
| 955 | include $(CLEAR_VARS) |
| 956 | |
| 957 | LOCAL_MODULE := libhwdepcal |
| 958 | LOCAL_VENDOR_MODULE := true |
| 959 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 960 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 961 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 962 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 963 | # B-family platform uses msm8974 code base |
| 964 | AUDIO_PLATFORM := msm8974 |
| 965 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 966 | endif |
| 967 | |
| 968 | # LOCAL_SRC_FILES:= \ |
| 969 | # hwdep_cal.c |
| 970 | |
| 971 | LOCAL_CFLAGS += \ |
| 972 | -Wall \ |
| 973 | -Werror \ |
| 974 | -Wno-unused-function \ |
| 975 | -Wno-unused-variable |
| 976 | |
| 977 | LOCAL_SHARED_LIBRARIES := \ |
| 978 | libaudioroute \ |
| 979 | libaudioutils \ |
| 980 | libcutils \ |
| 981 | libdl \ |
| 982 | libexpat \ |
| 983 | liblog \ |
| 984 | libtinyalsa \ |
| 985 | libtinycompress |
| 986 | |
| 987 | LOCAL_C_INCLUDES := \ |
| 988 | $(PRIMARY_HAL_PATH) \ |
| 989 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 990 | external/tinyalsa/include \ |
| 991 | external/tinycompress/include \ |
| 992 | external/expat/lib \ |
| 993 | system/media/audio_utils/include \ |
| 994 | $(call include-path-for, audio-route) \ |
| 995 | |
| 996 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 997 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 998 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 999 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 1000 | |
| 1001 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 1002 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 1003 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 1004 | endif |
| 1005 | |
| 1006 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 1007 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1008 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 1009 | LOCAL_SANITIZE := integer_overflow |
| 1010 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 1011 | #include $(BUILD_SHARED_LIBRARY) |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 1012 | |
| 1013 | #------------------------------------------- |
| 1014 | # Build MAXX_AUDIO |
| 1015 | #------------------------------------------- |
| 1016 | include $(CLEAR_VARS) |
| 1017 | |
| 1018 | LOCAL_MODULE:= libmaxxaudio |
| 1019 | LOCAL_VENDOR_MODULE := true |
| 1020 | |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 1021 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 1022 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1023 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi sdm660 msm8937 msm8953 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 1024 | # B-family platform uses msm8974 code base |
| 1025 | AUDIO_PLATFORM = msm8974 |
| 1026 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 1027 | endif |
| 1028 | |
| 1029 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 1030 | maxxaudio.c \ |
| 1031 | device_utils.c |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 1032 | |
| 1033 | LOCAL_CFLAGS += \ |
| 1034 | -Wall \ |
| 1035 | -Werror \ |
| 1036 | -Wno-unused-function \ |
| 1037 | -Wno-unused-variable |
| 1038 | |
| 1039 | LOCAL_SHARED_LIBRARIES := \ |
| 1040 | libaudioutils \ |
| 1041 | libcutils \ |
| 1042 | liblog \ |
| 1043 | libtinyalsa \ |
| 1044 | libtinycompress \ |
| 1045 | libaudioroute \ |
| 1046 | libdl \ |
| 1047 | libexpat |
| 1048 | |
| 1049 | LOCAL_C_INCLUDES := \ |
| 1050 | $(PRIMARY_HAL_PATH) \ |
| 1051 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 1052 | external/tinyalsa/include \ |
| 1053 | external/tinycompress/include \ |
| 1054 | external/expat/lib \ |
| 1055 | system/media/audio_utils/include \ |
| 1056 | $(call include-path-for, audio-route) \ |
| 1057 | |
| 1058 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 1059 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 1060 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 1061 | |
| 1062 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 1063 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 1064 | endif |
| 1065 | |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 1066 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 1067 | |
| 1068 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 1069 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 1070 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 1071 | endif |
| 1072 | |
| 1073 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 1074 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1075 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 1076 | LOCAL_SANITIZE := integer_overflow |
| 1077 | endif |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 1078 | include $(BUILD_SHARED_LIBRARY) |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1079 | #------------------------------------------- |
| 1080 | # Build AUDIOZOOM |
| 1081 | #------------------------------------------- |
| 1082 | include $(CLEAR_VARS) |
| 1083 | |
| 1084 | LOCAL_MODULE:= libaudiozoom |
| 1085 | LOCAL_VENDOR_MODULE := true |
| 1086 | |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1087 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 1088 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1089 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi sdm660 msm8937 msm8953 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1090 | # B-family platform uses msm8974 code base |
| 1091 | AUDIO_PLATFORM = msm8974 |
| 1092 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 1093 | endif |
| 1094 | |
| 1095 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 1096 | audiozoom.c \ |
| 1097 | device_utils.c |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1098 | |
| 1099 | LOCAL_CFLAGS += \ |
| 1100 | -Wall \ |
| 1101 | -Werror \ |
| 1102 | -Wno-unused-function \ |
| 1103 | -Wno-unused-variable |
| 1104 | |
| 1105 | LOCAL_SHARED_LIBRARIES := \ |
| 1106 | libaudioutils \ |
| 1107 | libcutils \ |
| 1108 | liblog \ |
| 1109 | libtinyalsa \ |
| 1110 | libtinycompress \ |
| 1111 | libaudioroute \ |
| 1112 | libdl \ |
| 1113 | libexpat |
| 1114 | |
| 1115 | LOCAL_C_INCLUDES := \ |
| 1116 | $(PRIMARY_HAL_PATH) \ |
| 1117 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 1118 | external/tinyalsa/include \ |
| 1119 | external/tinycompress/include \ |
| 1120 | external/expat/lib \ |
| 1121 | system/media/audio_utils/include \ |
| 1122 | $(call include-path-for, audio-route) \ |
| 1123 | |
| 1124 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 1125 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1126 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 1127 | |
| 1128 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 1129 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 1130 | endif |
| 1131 | |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1132 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 1133 | |
| 1134 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 1135 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 1136 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1137 | endif |
| 1138 | |
| 1139 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 1140 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1141 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 1142 | LOCAL_SANITIZE := integer_overflow |
| 1143 | endif |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1144 | include $(BUILD_SHARED_LIBRARY) |
| 1145 | |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1146 | #------------------------------------------- |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1147 | |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1148 | # Build AUTO_HAL LIB |
| 1149 | #------------------------------------------- |
Susan Wang | 0e2a7c7 | 2021-01-29 15:00:05 -0500 | [diff] [blame] | 1150 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUTO_HAL)), true) |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1151 | include $(CLEAR_VARS) |
| 1152 | |
| 1153 | LOCAL_MODULE := libautohal |
| 1154 | |
| 1155 | LOCAL_VENDOR_MODULE := true |
| 1156 | |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1157 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 1158 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1159 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito atoll bengal sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1160 | # B-family platform uses msm8974 code base |
| 1161 | AUDIO_PLATFORM := msm8974 |
| 1162 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 1163 | endif |
| 1164 | |
| 1165 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 1166 | auto_hal.c \ |
| 1167 | device_utils.c |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1168 | |
| 1169 | LOCAL_CFLAGS += \ |
| 1170 | -Wall \ |
| 1171 | -Werror \ |
| 1172 | -Wno-unused-function \ |
| 1173 | -Wno-unused-variable |
| 1174 | |
| 1175 | LOCAL_SHARED_LIBRARIES := \ |
| 1176 | libaudioutils \ |
| 1177 | libcutils \ |
| 1178 | libdl \ |
| 1179 | libexpat \ |
| 1180 | liblog |
| 1181 | |
| 1182 | LOCAL_C_INCLUDES := \ |
| 1183 | $(PRIMARY_HAL_PATH) \ |
| 1184 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 1185 | external/tinyalsa/include \ |
| 1186 | external/tinycompress/include \ |
| 1187 | external/expat/lib \ |
| 1188 | system/media/audio_utils/include \ |
| 1189 | $(call include-path-for, audio-route) \ |
| 1190 | |
| 1191 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 1192 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1193 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
sasevs | de8f739 | 2022-03-29 18:47:07 +0530 | [diff] [blame] | 1194 | |
| 1195 | ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true) |
| 1196 | LOCAL_HEADER_LIBRARIES += qti_legacy_audio_kernel_uapi |
| 1197 | endif |
| 1198 | |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1199 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 1200 | |
| 1201 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 1202 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 1203 | LOCAL_C_INCLUDES += $(AUDIO_KERNEL_INC) |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1204 | endif |
| 1205 | |
| 1206 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 1207 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1208 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 1209 | LOCAL_SANITIZE := integer_overflow |
| 1210 | endif |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1211 | include $(BUILD_SHARED_LIBRARY) |
Susan Wang | 0e2a7c7 | 2021-01-29 15:00:05 -0500 | [diff] [blame] | 1212 | endif |
Tahir Dawson | caaf099 | 2021-03-11 13:31:23 -0500 | [diff] [blame] | 1213 | #------------------------------------------- |
| 1214 | |
| 1215 | # Build Power_Policy_Client LIB |
| 1216 | #------------------------------------------- |
| 1217 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_POWER_POLICY)),true) |
| 1218 | |
| 1219 | include $(CLEAR_VARS) |
| 1220 | |
| 1221 | LOCAL_MODULE := libaudiopowerpolicy |
| 1222 | |
| 1223 | LOCAL_VENDOR_MODULE := true |
| 1224 | |
| 1225 | LOCAL_SRC_FILES:= \ |
| 1226 | PowerPolicyClient.cpp \ |
| 1227 | power_policy_launcher.cpp |
| 1228 | |
| 1229 | LOCAL_C_INCLUDES:= \ |
Naveen S Nair | c2b1053 | 2021-05-27 15:56:48 +0530 | [diff] [blame] | 1230 | $(PRIMARY_HAL_PATH) \ |
Tahir Dawson | caaf099 | 2021-03-11 13:31:23 -0500 | [diff] [blame] | 1231 | system/media/audio/include |
| 1232 | |
| 1233 | LOCAL_SHARED_LIBRARIES:= \ |
Kalyan Rao D | 9caf7c5 | 2021-05-02 22:04:10 +0530 | [diff] [blame] | 1234 | android.frameworks.automotive.powerpolicy-V1-ndk_platform \ |
Tahir Dawson | caaf099 | 2021-03-11 13:31:23 -0500 | [diff] [blame] | 1235 | libbase \ |
| 1236 | libbinder_ndk \ |
| 1237 | libcutils \ |
| 1238 | liblog \ |
| 1239 | libpowerpolicyclient |
| 1240 | |
| 1241 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
| 1242 | LOCAL_SANITIZE := integer_overflow |
| 1243 | endif |
| 1244 | |
| 1245 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DAEMON_SUPPORT)),true) |
| 1246 | LOCAL_CFLAGS += -DDAEMON_SUPPORT_AUTO |
| 1247 | endif |
| 1248 | |
| 1249 | include $(BUILD_SHARED_LIBRARY) |
| 1250 | endif |