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