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