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