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