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