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 | |
Salendarsingh Gaud | 84b1c1d | 2019-03-22 13:06:21 +0530 | [diff] [blame] | 66 | ifneq ($(filter sdm845 sdm710 qcs605 msmnile kona lito $(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 | |
Salendarsingh Gaud | 84b1c1d | 2019-03-22 13:06:21 +0530 | [diff] [blame] | 124 | ifneq ($(filter sdm845 sdm710 msmnile kona lito $(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 | |
Salendarsingh Gaud | 84b1c1d | 2019-03-22 13:06:21 +0530 | [diff] [blame] | 185 | ifneq ($(filter sdm845 sdm710 msmnile kona lito $(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 | |
Salendarsingh Gaud | 84b1c1d | 2019-03-22 13:06:21 +0530 | [diff] [blame] | 237 | ifneq ($(filter sdm845 sdm710 msmnile kona lito $(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 | |
| 279 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
Meng Wang | 6719f4d | 2019-04-09 09:09:16 +0800 | [diff] [blame] | 280 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 281 | |
| 282 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 283 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 284 | include $(BUILD_SHARED_LIBRARY) |
| 285 | #==================================================================================================== |
| 286 | # --- enable 3rd Party Spkr-prot lib |
| 287 | #==================================================================================================== |
| 288 | |
| 289 | include $(CLEAR_VARS) |
| 290 | |
Salendarsingh Gaud | 84b1c1d | 2019-03-22 13:06:21 +0530 | [diff] [blame] | 291 | ifneq ($(filter sdm845 sdm710 msmnile kona lito $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 292 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame^] | 293 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 294 | endif |
| 295 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame^] | 296 | LOCAL_MODULE := libcirrusspkrprot |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 297 | LOCAL_MODULE_OWNER := third_party |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 298 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 299 | |
| 300 | LOCAL_SRC_FILES:= \ |
| 301 | cirrus_playback.c |
| 302 | |
| 303 | LOCAL_CFLAGS += \ |
| 304 | -Wall \ |
| 305 | -Werror \ |
| 306 | -Wno-unused-function \ |
| 307 | -Wno-unused-variable \ |
| 308 | |
| 309 | LOCAL_CFLAGS += -DENABLE_CIRRUS_DETECTION |
| 310 | LOCAL_CFLAGS += -DCIRRUS_FACTORY_CALIBRATION |
| 311 | |
| 312 | LOCAL_SHARED_LIBRARIES := \ |
| 313 | libaudioutils \ |
| 314 | libcutils \ |
| 315 | liblog \ |
| 316 | libtinyalsa \ |
| 317 | libaudioroute \ |
| 318 | libdl \ |
| 319 | libexpat |
| 320 | |
| 321 | LOCAL_C_INCLUDES := \ |
| 322 | external/tinyalsa/include \ |
| 323 | external/tinycompress/include \ |
| 324 | system/media/audio_utils/include \ |
| 325 | external/expat/lib \ |
| 326 | $(call include-path-for, audio-route) \ |
| 327 | vendor/qcom/opensource/audio-hal/primary-hal/hal \ |
| 328 | vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn \ |
| 329 | vendor/qcom/opensource/audio-hal/primary-hal/hal/$(AUDIO_PLATFORM) \ |
| 330 | vendor/qcom/opensource/audio-kernel/include/uapi/ \ |
| 331 | $(call include-path-for, audio-effects) |
| 332 | |
| 333 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
Meng Wang | 6719f4d | 2019-04-09 09:09:16 +0800 | [diff] [blame] | 334 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 335 | |
| 336 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 337 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 338 | include $(BUILD_SHARED_LIBRARY) |
| 339 | |
| 340 | #------------------------------------------- |
| 341 | # Build A2DP_OFFLOAD LIB |
| 342 | #------------------------------------------- |
| 343 | include $(CLEAR_VARS) |
| 344 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame^] | 345 | LOCAL_MODULE := liba2dpoffload |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 346 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 347 | |
| 348 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 349 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 350 | |
Salendarsingh Gaud | 84b1c1d | 2019-03-22 13:06:21 +0530 | [diff] [blame] | 351 | ifneq ($(filter sdm845 sdm710 msmnile kona lito $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 352 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame^] | 353 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 354 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 355 | endif |
| 356 | |
| 357 | LOCAL_SRC_FILES:= \ |
| 358 | a2dp.c |
| 359 | |
| 360 | LOCAL_CFLAGS += \ |
| 361 | -Wall \ |
| 362 | -Werror \ |
| 363 | -Wno-unused-function \ |
| 364 | -Wno-unused-variable |
| 365 | |
| 366 | LOCAL_SHARED_LIBRARIES := \ |
| 367 | libaudioutils \ |
| 368 | libcutils \ |
| 369 | liblog \ |
| 370 | libtinyalsa \ |
| 371 | libtinycompress \ |
| 372 | libaudioroute \ |
| 373 | libdl \ |
Arun Mirpuri | 5dc7780 | 2019-02-26 16:32:42 -0800 | [diff] [blame] | 374 | libexpat |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 375 | |
| 376 | LOCAL_C_INCLUDES := \ |
| 377 | $(PRIMARY_HAL_PATH) \ |
| 378 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 379 | external/tinyalsa/include \ |
| 380 | external/tinycompress/include \ |
| 381 | external/expat/lib \ |
| 382 | system/media/audio_utils/include \ |
| 383 | $(call include-path-for, audio-route) \ |
| 384 | |
| 385 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 386 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 387 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 388 | |
| 389 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 390 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 391 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 392 | endif |
| 393 | |
| 394 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 395 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 396 | include $(BUILD_SHARED_LIBRARY) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame^] | 397 | |
| 398 | #------------------------------------------- |
| 399 | # Build EXT_HW_PLUGIN LIB |
| 400 | #------------------------------------------- |
| 401 | include $(CLEAR_VARS) |
| 402 | |
| 403 | LOCAL_MODULE := libexthwplugin |
| 404 | LOCAL_VENDOR_MODULE := true |
| 405 | |
| 406 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 407 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 408 | |
| 409 | ifneq ($(filter sdm845 sdm710 msmnile kona $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),) |
| 410 | # B-family platform uses msm8974 code base |
| 411 | AUDIO_PLATFORM := msm8974 |
| 412 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 413 | endif |
| 414 | |
| 415 | LOCAL_SRC_FILES:= \ |
| 416 | ext_hw_plugin.c |
| 417 | |
| 418 | LOCAL_CFLAGS += \ |
| 419 | -Wall \ |
| 420 | -Werror \ |
| 421 | -Wno-unused-function \ |
| 422 | -Wno-unused-variable |
| 423 | |
| 424 | LOCAL_SHARED_LIBRARIES := \ |
| 425 | libaudioroute \ |
| 426 | libaudioutils \ |
| 427 | libcutils \ |
| 428 | libdl \ |
| 429 | libexpat \ |
| 430 | liblog \ |
| 431 | libtinyalsa \ |
| 432 | libtinycompress |
| 433 | |
| 434 | LOCAL_C_INCLUDES := \ |
| 435 | $(PRIMARY_HAL_PATH) \ |
| 436 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 437 | external/tinyalsa/include \ |
| 438 | external/tinycompress/include \ |
| 439 | external/expat/lib \ |
| 440 | system/media/audio_utils/include \ |
| 441 | $(call include-path-for, audio-route) \ |
| 442 | |
| 443 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 444 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 445 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 446 | |
| 447 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 448 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 449 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 450 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 451 | endif |
| 452 | |
| 453 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 454 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 455 | include $(BUILD_SHARED_LIBRARY) |
| 456 | |
| 457 | #------------------------------------------- |
| 458 | # Build HFP LIB |
| 459 | #------------------------------------------- |
| 460 | include $(CLEAR_VARS) |
| 461 | |
| 462 | LOCAL_MODULE := libhfp |
| 463 | LOCAL_VENDOR_MODULE := true |
| 464 | |
| 465 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 466 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 467 | |
| 468 | ifneq ($(filter sdm845 sdm710 msmnile kona $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),) |
| 469 | # B-family platform uses msm8974 code base |
| 470 | AUDIO_PLATFORM := msm8974 |
| 471 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 472 | endif |
| 473 | |
| 474 | LOCAL_SRC_FILES:= \ |
| 475 | hfp.c |
| 476 | |
| 477 | LOCAL_CFLAGS += \ |
| 478 | -Wall \ |
| 479 | -Werror \ |
| 480 | -Wno-unused-function \ |
| 481 | -Wno-unused-variable |
| 482 | |
| 483 | LOCAL_SHARED_LIBRARIES := \ |
| 484 | libaudioroute \ |
| 485 | libaudioutils \ |
| 486 | libcutils \ |
| 487 | libdl \ |
| 488 | libexpat \ |
| 489 | liblog \ |
| 490 | libtinyalsa \ |
| 491 | libtinycompress |
| 492 | |
| 493 | LOCAL_C_INCLUDES := \ |
| 494 | $(PRIMARY_HAL_PATH) \ |
| 495 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 496 | external/tinyalsa/include \ |
| 497 | external/tinycompress/include \ |
| 498 | external/expat/lib \ |
| 499 | system/media/audio_utils/include \ |
| 500 | $(call include-path-for, audio-route) \ |
| 501 | |
| 502 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 503 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 504 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 505 | |
| 506 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 507 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 508 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 509 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 510 | endif |
| 511 | |
| 512 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 513 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 514 | include $(BUILD_SHARED_LIBRARY) |
| 515 | |
| 516 | #------------------------------------------- |
| 517 | # Build HDMI PASSTHROUGH |
| 518 | #------------------------------------------- |
| 519 | include $(CLEAR_VARS) |
| 520 | |
| 521 | LOCAL_MODULE := libhdmipassthru |
| 522 | LOCAL_VENDOR_MODULE := true |
| 523 | |
| 524 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 525 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 526 | |
| 527 | ifneq ($(filter sdm845 sdm710 msmnile kona $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),) |
| 528 | # B-family platform uses msm8974 code base |
| 529 | AUDIO_PLATFORM := msm8974 |
| 530 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 531 | endif |
| 532 | |
| 533 | LOCAL_SRC_FILES:= \ |
| 534 | passthru.c |
| 535 | |
| 536 | LOCAL_CFLAGS += \ |
| 537 | -Wall \ |
| 538 | -Werror \ |
| 539 | -Wno-unused-function \ |
| 540 | -Wno-unused-variable \ |
| 541 | -DDTSHD_PARSER_ENABLED |
| 542 | |
| 543 | LOCAL_SHARED_LIBRARIES := \ |
| 544 | libaudioparsers \ |
| 545 | libaudioroute \ |
| 546 | libaudioutils \ |
| 547 | libcutils \ |
| 548 | libdl \ |
| 549 | libexpat \ |
| 550 | liblog \ |
| 551 | libtinyalsa \ |
| 552 | libtinycompress |
| 553 | |
| 554 | LOCAL_C_INCLUDES := \ |
| 555 | $(PRIMARY_HAL_PATH) \ |
| 556 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 557 | external/tinyalsa/include \ |
| 558 | external/tinycompress/include \ |
| 559 | external/expat/lib \ |
| 560 | system/media/audio_utils/include \ |
| 561 | vendor/qcom/proprietary/mm-audio/audio-parsers/inc \ |
| 562 | $(call include-path-for, audio-route) \ |
| 563 | |
| 564 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 565 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 566 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 567 | |
| 568 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 569 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 570 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 571 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 572 | endif |
| 573 | |
| 574 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 575 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 576 | include $(BUILD_SHARED_LIBRARY) |
| 577 | |
| 578 | #------------------------------------------- |
| 579 | # Build BATTERY_LISTENER |
| 580 | #------------------------------------------- |
| 581 | include $(CLEAR_VARS) |
| 582 | |
| 583 | LOCAL_MODULE := libbatterylistener |
| 584 | LOCAL_VENDOR_MODULE := true |
| 585 | |
| 586 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 587 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 588 | |
| 589 | ifneq ($(filter sdm845 sdm710 msmnile kona $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),) |
| 590 | # B-family platform uses msm8974 code base |
| 591 | AUDIO_PLATFORM := msm8974 |
| 592 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 593 | endif |
| 594 | |
| 595 | LOCAL_SRC_FILES:= \ |
| 596 | battery_listener.cpp |
| 597 | |
| 598 | LOCAL_CFLAGS += \ |
| 599 | -Wall \ |
| 600 | -Werror \ |
| 601 | -Wno-unused-function \ |
| 602 | -Wno-unused-variable \ |
| 603 | -DDTSHD_PARSER_ENABLED |
| 604 | |
| 605 | LOCAL_SHARED_LIBRARIES := \ |
| 606 | android.hardware.health@1.0 \ |
| 607 | android.hardware.health@2.0 \ |
| 608 | android.hardware.power@1.2 \ |
| 609 | libaudioroute \ |
| 610 | libaudioutils \ |
| 611 | libbase \ |
| 612 | libcutils \ |
| 613 | libdl \ |
| 614 | libexpat \ |
| 615 | libhidlbase \ |
| 616 | libhidltransport \ |
| 617 | liblog \ |
| 618 | libtinyalsa \ |
| 619 | libtinycompress \ |
| 620 | libutils \ |
| 621 | |
| 622 | LOCAL_STATIC_LIBRARIES := \ |
| 623 | libhealthhalutils |
| 624 | |
| 625 | LOCAL_C_INCLUDES := \ |
| 626 | $(PRIMARY_HAL_PATH) \ |
| 627 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 628 | external/tinyalsa/include \ |
| 629 | external/tinycompress/include \ |
| 630 | external/expat/lib \ |
| 631 | system/media/audio_utils/include \ |
| 632 | vendor/qcom/proprietary/mm-audio/audio-parsers/inc \ |
| 633 | $(call include-path-for, audio-route) \ |
| 634 | |
| 635 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 636 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 637 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 638 | |
| 639 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 640 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 641 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 642 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 643 | endif |
| 644 | |
| 645 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 646 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 647 | include $(BUILD_SHARED_LIBRARY) |
| 648 | |
| 649 | #------------------------------------------- |
| 650 | # Build HWDEP_CAL |
| 651 | #------------------------------------------- |
| 652 | include $(CLEAR_VARS) |
| 653 | |
| 654 | LOCAL_MODULE := libhwdepcal |
| 655 | LOCAL_VENDOR_MODULE := true |
| 656 | |
| 657 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 658 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 659 | |
| 660 | ifneq ($(filter sdm845 sdm710 msmnile kona $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),) |
| 661 | # B-family platform uses msm8974 code base |
| 662 | AUDIO_PLATFORM := msm8974 |
| 663 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 664 | endif |
| 665 | |
| 666 | # LOCAL_SRC_FILES:= \ |
| 667 | # hwdep_cal.c |
| 668 | |
| 669 | LOCAL_CFLAGS += \ |
| 670 | -Wall \ |
| 671 | -Werror \ |
| 672 | -Wno-unused-function \ |
| 673 | -Wno-unused-variable |
| 674 | |
| 675 | LOCAL_SHARED_LIBRARIES := \ |
| 676 | libaudioroute \ |
| 677 | libaudioutils \ |
| 678 | libcutils \ |
| 679 | libdl \ |
| 680 | libexpat \ |
| 681 | liblog \ |
| 682 | libtinyalsa \ |
| 683 | libtinycompress |
| 684 | |
| 685 | LOCAL_C_INCLUDES := \ |
| 686 | $(PRIMARY_HAL_PATH) \ |
| 687 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 688 | external/tinyalsa/include \ |
| 689 | external/tinycompress/include \ |
| 690 | external/expat/lib \ |
| 691 | system/media/audio_utils/include \ |
| 692 | $(call include-path-for, audio-route) \ |
| 693 | |
| 694 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 695 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 696 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 697 | |
| 698 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 699 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 700 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 701 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 702 | endif |
| 703 | |
| 704 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 705 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 706 | #include $(BUILD_SHARED_LIBRARY) |