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