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