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