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 |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 527 | endif |
| 528 | |
| 529 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 530 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 531 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 532 | LOCAL_SANITIZE := integer_overflow |
| 533 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 534 | include $(BUILD_SHARED_LIBRARY) |
| 535 | |
| 536 | #------------------------------------------- |
| 537 | # Build HFP LIB |
| 538 | #------------------------------------------- |
| 539 | include $(CLEAR_VARS) |
| 540 | |
| 541 | LOCAL_MODULE := libhfp |
| 542 | LOCAL_VENDOR_MODULE := true |
| 543 | |
| 544 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 545 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 546 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 547 | 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] | 548 | # B-family platform uses msm8974 code base |
| 549 | AUDIO_PLATFORM := msm8974 |
| 550 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 551 | endif |
| 552 | |
Derek Chen | f709279 | 2017-05-23 12:23:53 -0400 | [diff] [blame] | 553 | ifeq ($(TARGET_BOARD_AUTO),true) |
| 554 | LOCAL_CFLAGS += -DPLATFORM_AUTO |
| 555 | endif |
| 556 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 557 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 558 | hfp.c \ |
| 559 | device_utils.c |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 560 | |
| 561 | LOCAL_CFLAGS += \ |
| 562 | -Wall \ |
| 563 | -Werror \ |
| 564 | -Wno-unused-function \ |
| 565 | -Wno-unused-variable |
| 566 | |
| 567 | LOCAL_SHARED_LIBRARIES := \ |
| 568 | libaudioroute \ |
| 569 | libaudioutils \ |
| 570 | libcutils \ |
| 571 | libdl \ |
| 572 | libexpat \ |
| 573 | liblog \ |
| 574 | libtinyalsa \ |
| 575 | libtinycompress |
| 576 | |
| 577 | LOCAL_C_INCLUDES := \ |
| 578 | $(PRIMARY_HAL_PATH) \ |
| 579 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 580 | external/tinyalsa/include \ |
| 581 | external/tinycompress/include \ |
| 582 | external/expat/lib \ |
| 583 | system/media/audio_utils/include \ |
| 584 | $(call include-path-for, audio-route) \ |
| 585 | |
| 586 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 587 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 588 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 589 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 590 | |
| 591 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 592 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 593 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 594 | endif |
| 595 | |
Jaideep Sharma | cb40251 | 2020-09-24 17:51:07 +0530 | [diff] [blame] | 596 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DYNAMIC_LOG)), true) |
| 597 | LOCAL_CFLAGS += -DDYNAMIC_LOG_ENABLED |
| 598 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-log-utils |
| 599 | LOCAL_SHARED_LIBRARIES += libaudio_log_utils |
| 600 | endif |
| 601 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 602 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 603 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 604 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 605 | LOCAL_SANITIZE := integer_overflow |
| 606 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 607 | include $(BUILD_SHARED_LIBRARY) |
| 608 | |
| 609 | #------------------------------------------- |
Derek Chen | a30a5f4 | 2019-12-03 11:17:09 -0500 | [diff] [blame] | 610 | # Build ICC LIB |
| 611 | #------------------------------------------- |
| 612 | include $(CLEAR_VARS) |
| 613 | |
| 614 | LOCAL_MODULE := libicc |
| 615 | LOCAL_VENDOR_MODULE := true |
| 616 | |
| 617 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 618 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 619 | |
Weiyin Jiang | 64981c3 | 2020-11-10 12:29:41 +0800 | [diff] [blame] | 620 | 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] | 621 | # B-family platform uses msm8974 code base |
| 622 | AUDIO_PLATFORM := msm8974 |
| 623 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 624 | endif |
| 625 | |
| 626 | ifeq ($(TARGET_BOARD_AUTO),true) |
| 627 | LOCAL_CFLAGS += -DPLATFORM_AUTO |
| 628 | endif |
| 629 | |
| 630 | LOCAL_SRC_FILES:= \ |
| 631 | icc.c \ |
| 632 | device_utils.c |
| 633 | |
| 634 | LOCAL_CFLAGS += \ |
| 635 | -Wall \ |
| 636 | -Werror \ |
| 637 | -Wno-unused-function \ |
| 638 | -Wno-unused-variable |
| 639 | |
| 640 | LOCAL_SHARED_LIBRARIES := \ |
| 641 | libaudioroute \ |
| 642 | libaudioutils \ |
| 643 | libcutils \ |
| 644 | libdl \ |
| 645 | libexpat \ |
| 646 | liblog \ |
| 647 | libtinyalsa \ |
| 648 | libtinycompress |
| 649 | |
| 650 | LOCAL_C_INCLUDES := \ |
| 651 | $(PRIMARY_HAL_PATH) \ |
| 652 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 653 | external/tinyalsa/include \ |
| 654 | external/tinycompress/include \ |
| 655 | external/expat/lib \ |
| 656 | system/media/audio_utils/include \ |
| 657 | $(call include-path-for, audio-route) \ |
| 658 | |
| 659 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 660 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
| 661 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 662 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 663 | |
| 664 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 665 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 666 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Derek Chen | a30a5f4 | 2019-12-03 11:17:09 -0500 | [diff] [blame] | 667 | endif |
| 668 | |
| 669 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 670 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Weiyin Jiang | 64981c3 | 2020-11-10 12:29:41 +0800 | [diff] [blame] | 671 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Derek Chen | a30a5f4 | 2019-12-03 11:17:09 -0500 | [diff] [blame] | 672 | LOCAL_SANITIZE := integer_overflow |
| 673 | endif |
| 674 | include $(BUILD_SHARED_LIBRARY) |
| 675 | |
| 676 | #------------------------------------------- |
Fei Tong | affdf73 | 2020-02-20 20:39:05 +0800 | [diff] [blame] | 677 | # Build SYNTH LIB |
| 678 | #------------------------------------------- |
| 679 | include $(CLEAR_VARS) |
| 680 | |
| 681 | LOCAL_MODULE := libsynth |
| 682 | LOCAL_VENDOR_MODULE := true |
| 683 | |
| 684 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 685 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 686 | |
Weiyin Jiang | 64981c3 | 2020-11-10 12:29:41 +0800 | [diff] [blame] | 687 | 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] | 688 | # B-family platform uses msm8974 code base |
| 689 | AUDIO_PLATFORM := msm8974 |
| 690 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 691 | endif |
| 692 | |
| 693 | ifeq ($(TARGET_BOARD_AUTO),true) |
| 694 | LOCAL_CFLAGS += -DPLATFORM_AUTO |
| 695 | endif |
| 696 | |
| 697 | LOCAL_SRC_FILES:= \ |
| 698 | synth.c \ |
| 699 | device_utils.c |
| 700 | |
| 701 | LOCAL_CFLAGS += \ |
| 702 | -Wall \ |
| 703 | -Werror \ |
| 704 | -Wno-unused-function \ |
| 705 | -Wno-unused-variable |
| 706 | |
| 707 | LOCAL_SHARED_LIBRARIES := \ |
| 708 | libaudioroute \ |
| 709 | libaudioutils \ |
| 710 | libcutils \ |
| 711 | libdl \ |
| 712 | libexpat \ |
| 713 | liblog \ |
| 714 | libtinyalsa \ |
| 715 | libtinycompress |
| 716 | |
| 717 | LOCAL_C_INCLUDES := \ |
| 718 | $(PRIMARY_HAL_PATH) \ |
| 719 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 720 | external/tinyalsa/include \ |
| 721 | external/tinycompress/include \ |
| 722 | external/expat/lib \ |
| 723 | system/media/audio_utils/include \ |
| 724 | $(call include-path-for, audio-route) \ |
| 725 | |
| 726 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 727 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
| 728 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 729 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 730 | |
| 731 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 732 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 733 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Fei Tong | affdf73 | 2020-02-20 20:39:05 +0800 | [diff] [blame] | 734 | endif |
| 735 | |
| 736 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 737 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Weiyin Jiang | 64981c3 | 2020-11-10 12:29:41 +0800 | [diff] [blame] | 738 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Fei Tong | affdf73 | 2020-02-20 20:39:05 +0800 | [diff] [blame] | 739 | LOCAL_SANITIZE := integer_overflow |
| 740 | endif |
| 741 | include $(BUILD_SHARED_LIBRARY) |
| 742 | |
| 743 | #------------------------------------------- |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 744 | # Build HDMI PASSTHROUGH |
| 745 | #------------------------------------------- |
| 746 | include $(CLEAR_VARS) |
| 747 | |
| 748 | LOCAL_MODULE := libhdmipassthru |
| 749 | LOCAL_VENDOR_MODULE := true |
| 750 | |
| 751 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 752 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 753 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 754 | 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] | 755 | # B-family platform uses msm8974 code base |
| 756 | AUDIO_PLATFORM := msm8974 |
| 757 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 758 | endif |
| 759 | |
| 760 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 761 | passthru.c \ |
| 762 | device_utils.c |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 763 | |
| 764 | LOCAL_CFLAGS += \ |
| 765 | -Wall \ |
| 766 | -Werror \ |
| 767 | -Wno-unused-function \ |
| 768 | -Wno-unused-variable \ |
| 769 | -DDTSHD_PARSER_ENABLED |
| 770 | |
| 771 | LOCAL_SHARED_LIBRARIES := \ |
| 772 | libaudioparsers \ |
| 773 | libaudioroute \ |
| 774 | libaudioutils \ |
| 775 | libcutils \ |
| 776 | libdl \ |
| 777 | libexpat \ |
| 778 | liblog \ |
| 779 | libtinyalsa \ |
| 780 | libtinycompress |
| 781 | |
| 782 | LOCAL_C_INCLUDES := \ |
| 783 | $(PRIMARY_HAL_PATH) \ |
| 784 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 785 | external/tinyalsa/include \ |
| 786 | external/tinycompress/include \ |
| 787 | external/expat/lib \ |
| 788 | system/media/audio_utils/include \ |
Arun Mirpuri | f607447 | 2019-04-17 11:39:08 -0700 | [diff] [blame] | 789 | $(TARGET_OUT_HEADERS)/mm-audio/audio-parsers \ |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 790 | $(call include-path-for, audio-route) \ |
| 791 | |
| 792 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 793 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 794 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 795 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 796 | |
| 797 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 798 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 799 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 800 | endif |
| 801 | |
Jaideep Sharma | cb40251 | 2020-09-24 17:51:07 +0530 | [diff] [blame] | 802 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DYNAMIC_LOG)), true) |
| 803 | LOCAL_CFLAGS += -DDYNAMIC_LOG_ENABLED |
| 804 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-log-utils |
| 805 | LOCAL_SHARED_LIBRARIES += libaudio_log_utils |
| 806 | endif |
| 807 | |
Vignesh Kulothungan | 4fa89d1 | 2020-01-27 11:24:13 -0800 | [diff] [blame] | 808 | # Kernel specific feature |
| 809 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GKI)), true) |
| 810 | LOCAL_CFLAGS += -DAUDIO_GKI_ENABLED |
| 811 | endif |
| 812 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 813 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 814 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 815 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 816 | LOCAL_SANITIZE := integer_overflow |
| 817 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 818 | include $(BUILD_SHARED_LIBRARY) |
| 819 | |
| 820 | #------------------------------------------- |
| 821 | # Build BATTERY_LISTENER |
| 822 | #------------------------------------------- |
| 823 | include $(CLEAR_VARS) |
| 824 | |
| 825 | LOCAL_MODULE := libbatterylistener |
| 826 | LOCAL_VENDOR_MODULE := true |
| 827 | |
| 828 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 829 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 830 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 831 | 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] | 832 | # B-family platform uses msm8974 code base |
| 833 | AUDIO_PLATFORM := msm8974 |
| 834 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 835 | endif |
| 836 | |
| 837 | LOCAL_SRC_FILES:= \ |
| 838 | battery_listener.cpp |
| 839 | |
| 840 | LOCAL_CFLAGS += \ |
| 841 | -Wall \ |
| 842 | -Werror \ |
| 843 | -Wno-unused-function \ |
| 844 | -Wno-unused-variable \ |
| 845 | -DDTSHD_PARSER_ENABLED |
| 846 | |
| 847 | LOCAL_SHARED_LIBRARIES := \ |
| 848 | android.hardware.health@1.0 \ |
| 849 | android.hardware.health@2.0 \ |
| 850 | android.hardware.power@1.2 \ |
| 851 | libaudioroute \ |
| 852 | libaudioutils \ |
| 853 | libbase \ |
| 854 | libcutils \ |
| 855 | libdl \ |
| 856 | libexpat \ |
| 857 | libhidlbase \ |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 858 | liblog \ |
| 859 | libtinyalsa \ |
| 860 | libtinycompress \ |
| 861 | libutils \ |
| 862 | |
| 863 | LOCAL_STATIC_LIBRARIES := \ |
| 864 | libhealthhalutils |
| 865 | |
| 866 | LOCAL_C_INCLUDES := \ |
| 867 | $(PRIMARY_HAL_PATH) \ |
| 868 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 869 | external/tinyalsa/include \ |
| 870 | external/tinycompress/include \ |
| 871 | external/expat/lib \ |
| 872 | system/media/audio_utils/include \ |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 873 | $(call include-path-for, audio-route) \ |
| 874 | |
| 875 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 876 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 877 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 878 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 879 | |
| 880 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 881 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 882 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 883 | endif |
| 884 | |
| 885 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 886 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 887 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 888 | LOCAL_SANITIZE := integer_overflow |
| 889 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 890 | include $(BUILD_SHARED_LIBRARY) |
| 891 | |
| 892 | #------------------------------------------- |
| 893 | # Build HWDEP_CAL |
| 894 | #------------------------------------------- |
| 895 | include $(CLEAR_VARS) |
| 896 | |
| 897 | LOCAL_MODULE := libhwdepcal |
| 898 | LOCAL_VENDOR_MODULE := true |
| 899 | |
| 900 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 901 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 902 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 903 | 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] | 904 | # B-family platform uses msm8974 code base |
| 905 | AUDIO_PLATFORM := msm8974 |
| 906 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 907 | endif |
| 908 | |
| 909 | # LOCAL_SRC_FILES:= \ |
| 910 | # hwdep_cal.c |
| 911 | |
| 912 | LOCAL_CFLAGS += \ |
| 913 | -Wall \ |
| 914 | -Werror \ |
| 915 | -Wno-unused-function \ |
| 916 | -Wno-unused-variable |
| 917 | |
| 918 | LOCAL_SHARED_LIBRARIES := \ |
| 919 | libaudioroute \ |
| 920 | libaudioutils \ |
| 921 | libcutils \ |
| 922 | libdl \ |
| 923 | libexpat \ |
| 924 | liblog \ |
| 925 | libtinyalsa \ |
| 926 | libtinycompress |
| 927 | |
| 928 | LOCAL_C_INCLUDES := \ |
| 929 | $(PRIMARY_HAL_PATH) \ |
| 930 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 931 | external/tinyalsa/include \ |
| 932 | external/tinycompress/include \ |
| 933 | external/expat/lib \ |
| 934 | system/media/audio_utils/include \ |
| 935 | $(call include-path-for, audio-route) \ |
| 936 | |
| 937 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 938 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 939 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 940 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 941 | |
| 942 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 943 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 944 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 945 | endif |
| 946 | |
| 947 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 948 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 949 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 950 | LOCAL_SANITIZE := integer_overflow |
| 951 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 952 | #include $(BUILD_SHARED_LIBRARY) |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 953 | |
| 954 | #------------------------------------------- |
| 955 | # Build MAXX_AUDIO |
| 956 | #------------------------------------------- |
| 957 | include $(CLEAR_VARS) |
| 958 | |
| 959 | LOCAL_MODULE:= libmaxxaudio |
| 960 | LOCAL_VENDOR_MODULE := true |
| 961 | |
| 962 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 963 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 964 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 965 | 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] | 966 | # B-family platform uses msm8974 code base |
| 967 | AUDIO_PLATFORM = msm8974 |
| 968 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 969 | endif |
| 970 | |
| 971 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 972 | maxxaudio.c \ |
| 973 | device_utils.c |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 974 | |
| 975 | LOCAL_CFLAGS += \ |
| 976 | -Wall \ |
| 977 | -Werror \ |
| 978 | -Wno-unused-function \ |
| 979 | -Wno-unused-variable |
| 980 | |
| 981 | LOCAL_SHARED_LIBRARIES := \ |
| 982 | libaudioutils \ |
| 983 | libcutils \ |
| 984 | liblog \ |
| 985 | libtinyalsa \ |
| 986 | libtinycompress \ |
| 987 | libaudioroute \ |
| 988 | libdl \ |
| 989 | libexpat |
| 990 | |
| 991 | LOCAL_C_INCLUDES := \ |
| 992 | $(PRIMARY_HAL_PATH) \ |
| 993 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 994 | external/tinyalsa/include \ |
| 995 | external/tinycompress/include \ |
| 996 | external/expat/lib \ |
| 997 | system/media/audio_utils/include \ |
| 998 | $(call include-path-for, audio-route) \ |
| 999 | |
| 1000 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 1001 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 1002 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 1003 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 1004 | |
| 1005 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 1006 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 1007 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 1008 | endif |
| 1009 | |
| 1010 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 1011 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1012 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 1013 | LOCAL_SANITIZE := integer_overflow |
| 1014 | endif |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 1015 | include $(BUILD_SHARED_LIBRARY) |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1016 | #------------------------------------------- |
| 1017 | # Build AUDIOZOOM |
| 1018 | #------------------------------------------- |
| 1019 | include $(CLEAR_VARS) |
| 1020 | |
| 1021 | LOCAL_MODULE:= libaudiozoom |
| 1022 | LOCAL_VENDOR_MODULE := true |
| 1023 | |
| 1024 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 1025 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 1026 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1027 | 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] | 1028 | # B-family platform uses msm8974 code base |
| 1029 | AUDIO_PLATFORM = msm8974 |
| 1030 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 1031 | endif |
| 1032 | |
| 1033 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 1034 | audiozoom.c \ |
| 1035 | device_utils.c |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1036 | |
| 1037 | LOCAL_CFLAGS += \ |
| 1038 | -Wall \ |
| 1039 | -Werror \ |
| 1040 | -Wno-unused-function \ |
| 1041 | -Wno-unused-variable |
| 1042 | |
| 1043 | LOCAL_SHARED_LIBRARIES := \ |
| 1044 | libaudioutils \ |
| 1045 | libcutils \ |
| 1046 | liblog \ |
| 1047 | libtinyalsa \ |
| 1048 | libtinycompress \ |
| 1049 | libaudioroute \ |
| 1050 | libdl \ |
| 1051 | libexpat |
| 1052 | |
| 1053 | LOCAL_C_INCLUDES := \ |
| 1054 | $(PRIMARY_HAL_PATH) \ |
| 1055 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 1056 | external/tinyalsa/include \ |
| 1057 | external/tinycompress/include \ |
| 1058 | external/expat/lib \ |
| 1059 | system/media/audio_utils/include \ |
| 1060 | $(call include-path-for, audio-route) \ |
| 1061 | |
| 1062 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 1063 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1064 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 1065 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 1066 | |
| 1067 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 1068 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 1069 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 1070 | endif |
| 1071 | |
| 1072 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 1073 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1074 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 1075 | LOCAL_SANITIZE := integer_overflow |
| 1076 | endif |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1077 | include $(BUILD_SHARED_LIBRARY) |
| 1078 | |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1079 | #------------------------------------------- |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 1080 | |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1081 | # Build AUTO_HAL LIB |
| 1082 | #------------------------------------------- |
Susan Wang | 0e2a7c7 | 2021-01-29 15:00:05 -0500 | [diff] [blame] | 1083 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUTO_HAL)), true) |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1084 | include $(CLEAR_VARS) |
| 1085 | |
| 1086 | LOCAL_MODULE := libautohal |
| 1087 | |
| 1088 | LOCAL_VENDOR_MODULE := true |
| 1089 | |
| 1090 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 1091 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 1092 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1093 | 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] | 1094 | # B-family platform uses msm8974 code base |
| 1095 | AUDIO_PLATFORM := msm8974 |
| 1096 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 1097 | endif |
| 1098 | |
| 1099 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 1100 | auto_hal.c \ |
| 1101 | device_utils.c |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1102 | |
| 1103 | LOCAL_CFLAGS += \ |
| 1104 | -Wall \ |
| 1105 | -Werror \ |
| 1106 | -Wno-unused-function \ |
| 1107 | -Wno-unused-variable |
| 1108 | |
| 1109 | LOCAL_SHARED_LIBRARIES := \ |
| 1110 | libaudioutils \ |
| 1111 | libcutils \ |
| 1112 | libdl \ |
| 1113 | libexpat \ |
| 1114 | liblog |
| 1115 | |
| 1116 | LOCAL_C_INCLUDES := \ |
| 1117 | $(PRIMARY_HAL_PATH) \ |
| 1118 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 1119 | external/tinyalsa/include \ |
| 1120 | external/tinycompress/include \ |
| 1121 | external/expat/lib \ |
| 1122 | system/media/audio_utils/include \ |
| 1123 | $(call include-path-for, audio-route) \ |
| 1124 | |
| 1125 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 1126 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1127 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 1128 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 1129 | |
| 1130 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 1131 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 1132 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1133 | endif |
| 1134 | |
| 1135 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 1136 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1137 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 1138 | LOCAL_SANITIZE := integer_overflow |
| 1139 | endif |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 1140 | include $(BUILD_SHARED_LIBRARY) |
Susan Wang | 0e2a7c7 | 2021-01-29 15:00:05 -0500 | [diff] [blame] | 1141 | endif |
Tahir Dawson | caaf099 | 2021-03-11 13:31:23 -0500 | [diff] [blame] | 1142 | #------------------------------------------- |
| 1143 | |
| 1144 | # Build Power_Policy_Client LIB |
| 1145 | #------------------------------------------- |
| 1146 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_POWER_POLICY)),true) |
| 1147 | |
| 1148 | include $(CLEAR_VARS) |
| 1149 | |
| 1150 | LOCAL_MODULE := libaudiopowerpolicy |
| 1151 | |
| 1152 | LOCAL_VENDOR_MODULE := true |
| 1153 | |
| 1154 | LOCAL_SRC_FILES:= \ |
| 1155 | PowerPolicyClient.cpp \ |
| 1156 | power_policy_launcher.cpp |
| 1157 | |
| 1158 | LOCAL_C_INCLUDES:= \ |
| 1159 | vendor/qcom/opensource/audio-hal/primary-hal/hal \ |
| 1160 | system/media/audio/include |
| 1161 | |
| 1162 | LOCAL_SHARED_LIBRARIES:= \ |
| 1163 | android.frameworks.automotive.powerpolicy-ndk_platform \ |
| 1164 | libbase \ |
| 1165 | libbinder_ndk \ |
| 1166 | libcutils \ |
| 1167 | liblog \ |
| 1168 | libpowerpolicyclient |
| 1169 | |
| 1170 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
| 1171 | LOCAL_SANITIZE := integer_overflow |
| 1172 | endif |
| 1173 | |
| 1174 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DAEMON_SUPPORT)),true) |
| 1175 | LOCAL_CFLAGS += -DDAEMON_SUPPORT_AUTO |
| 1176 | endif |
| 1177 | |
| 1178 | include $(BUILD_SHARED_LIBRARY) |
| 1179 | endif |