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