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