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