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