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 | |
Preetam Singh Ranawat | 9bfe132 | 2019-07-20 16:13:05 +0530 | [diff] [blame] | 66 | ifneq ($(filter sdm845 sdm710 qcs605 sdmshrike msmnile kona lito bengal atoll sdm660 msm8937 msm8998 $(MSMSTEPPE) $(TRINKET),$(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 | |
Preetam Singh Ranawat | 9bfe132 | 2019-07-20 16:13:05 +0530 | [diff] [blame] | 124 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lito bengal atoll sdm660 msm8937 msm8998 $(MSMSTEPPE) $(TRINKET),$(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 | |
Preetam Singh Ranawat | 9bfe132 | 2019-07-20 16:13:05 +0530 | [diff] [blame] | 185 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lito bengal atoll sdm660 msm8937 msm8998 $(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 | |
Preetam Singh Ranawat | 9bfe132 | 2019-07-20 16:13:05 +0530 | [diff] [blame] | 237 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lito bengal atoll sdm660 msm8937 msm8998 $(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 | |
Preetam Singh Ranawat | 9bfe132 | 2019-07-20 16:13:05 +0530 | [diff] [blame] | 292 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lito bengal atoll sdm660 msm8937 msm8998 $(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 | |
Preetam Singh Ranawat | 9bfe132 | 2019-07-20 16:13:05 +0530 | [diff] [blame] | 353 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lito bengal atoll sdm660 msm8937 msm8998 $(MSMSTEPPE) $(TRINKET),$(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 | |
Preetam Singh Ranawat | 9bfe132 | 2019-07-20 16:13:05 +0530 | [diff] [blame] | 413 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lito bengal atoll sdm660 msm8937 msm8998 $(MSMSTEPPE) $(TRINKET),$(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 | |
Preetam Singh Ranawat | 9bfe132 | 2019-07-20 16:13:05 +0530 | [diff] [blame] | 472 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lito bengal atoll sdm660 msm8937 msm8998 $(MSMSTEPPE) $(TRINKET),$(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 | |
Derek Chen | f709279 | 2017-05-23 12:23:53 -0400 | [diff] [blame^] | 478 | ifeq ($(TARGET_BOARD_AUTO),true) |
| 479 | LOCAL_CFLAGS += -DPLATFORM_AUTO |
| 480 | endif |
| 481 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 482 | LOCAL_SRC_FILES:= \ |
| 483 | hfp.c |
| 484 | |
| 485 | LOCAL_CFLAGS += \ |
| 486 | -Wall \ |
| 487 | -Werror \ |
| 488 | -Wno-unused-function \ |
| 489 | -Wno-unused-variable |
| 490 | |
| 491 | LOCAL_SHARED_LIBRARIES := \ |
| 492 | libaudioroute \ |
| 493 | libaudioutils \ |
| 494 | libcutils \ |
| 495 | libdl \ |
| 496 | libexpat \ |
| 497 | liblog \ |
| 498 | libtinyalsa \ |
| 499 | libtinycompress |
| 500 | |
| 501 | LOCAL_C_INCLUDES := \ |
| 502 | $(PRIMARY_HAL_PATH) \ |
| 503 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 504 | external/tinyalsa/include \ |
| 505 | external/tinycompress/include \ |
| 506 | external/expat/lib \ |
| 507 | system/media/audio_utils/include \ |
| 508 | $(call include-path-for, audio-route) \ |
| 509 | |
| 510 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 511 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 512 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 513 | |
| 514 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 515 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 516 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 517 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 518 | endif |
| 519 | |
| 520 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 521 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 522 | include $(BUILD_SHARED_LIBRARY) |
| 523 | |
| 524 | #------------------------------------------- |
| 525 | # Build HDMI PASSTHROUGH |
| 526 | #------------------------------------------- |
| 527 | include $(CLEAR_VARS) |
| 528 | |
| 529 | LOCAL_MODULE := libhdmipassthru |
| 530 | LOCAL_VENDOR_MODULE := true |
| 531 | |
| 532 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 533 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 534 | |
Preetam Singh Ranawat | 9bfe132 | 2019-07-20 16:13:05 +0530 | [diff] [blame] | 535 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lito bengal atoll sdm660 msm8937 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 536 | # B-family platform uses msm8974 code base |
| 537 | AUDIO_PLATFORM := msm8974 |
| 538 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 539 | endif |
| 540 | |
| 541 | LOCAL_SRC_FILES:= \ |
| 542 | passthru.c |
| 543 | |
| 544 | LOCAL_CFLAGS += \ |
| 545 | -Wall \ |
| 546 | -Werror \ |
| 547 | -Wno-unused-function \ |
| 548 | -Wno-unused-variable \ |
| 549 | -DDTSHD_PARSER_ENABLED |
| 550 | |
| 551 | LOCAL_SHARED_LIBRARIES := \ |
| 552 | libaudioparsers \ |
| 553 | libaudioroute \ |
| 554 | libaudioutils \ |
| 555 | libcutils \ |
| 556 | libdl \ |
| 557 | libexpat \ |
| 558 | liblog \ |
| 559 | libtinyalsa \ |
| 560 | libtinycompress |
| 561 | |
| 562 | LOCAL_C_INCLUDES := \ |
| 563 | $(PRIMARY_HAL_PATH) \ |
| 564 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 565 | external/tinyalsa/include \ |
| 566 | external/tinycompress/include \ |
| 567 | external/expat/lib \ |
| 568 | system/media/audio_utils/include \ |
Arun Mirpuri | f607447 | 2019-04-17 11:39:08 -0700 | [diff] [blame] | 569 | $(TARGET_OUT_HEADERS)/mm-audio/audio-parsers \ |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 570 | $(call include-path-for, audio-route) \ |
| 571 | |
| 572 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 573 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 574 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 575 | |
| 576 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 577 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 578 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 579 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 580 | endif |
| 581 | |
| 582 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 583 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 584 | include $(BUILD_SHARED_LIBRARY) |
| 585 | |
| 586 | #------------------------------------------- |
| 587 | # Build BATTERY_LISTENER |
| 588 | #------------------------------------------- |
| 589 | include $(CLEAR_VARS) |
| 590 | |
| 591 | LOCAL_MODULE := libbatterylistener |
| 592 | LOCAL_VENDOR_MODULE := true |
| 593 | |
| 594 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 595 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 596 | |
Preetam Singh Ranawat | 9bfe132 | 2019-07-20 16:13:05 +0530 | [diff] [blame] | 597 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lito bengal atoll sdm660 msm8937 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 598 | # B-family platform uses msm8974 code base |
| 599 | AUDIO_PLATFORM := msm8974 |
| 600 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 601 | endif |
| 602 | |
| 603 | LOCAL_SRC_FILES:= \ |
| 604 | battery_listener.cpp |
| 605 | |
| 606 | LOCAL_CFLAGS += \ |
| 607 | -Wall \ |
| 608 | -Werror \ |
| 609 | -Wno-unused-function \ |
| 610 | -Wno-unused-variable \ |
| 611 | -DDTSHD_PARSER_ENABLED |
| 612 | |
| 613 | LOCAL_SHARED_LIBRARIES := \ |
| 614 | android.hardware.health@1.0 \ |
| 615 | android.hardware.health@2.0 \ |
| 616 | android.hardware.power@1.2 \ |
| 617 | libaudioroute \ |
| 618 | libaudioutils \ |
| 619 | libbase \ |
| 620 | libcutils \ |
| 621 | libdl \ |
| 622 | libexpat \ |
| 623 | libhidlbase \ |
| 624 | libhidltransport \ |
| 625 | liblog \ |
| 626 | libtinyalsa \ |
| 627 | libtinycompress \ |
| 628 | libutils \ |
| 629 | |
| 630 | LOCAL_STATIC_LIBRARIES := \ |
| 631 | libhealthhalutils |
| 632 | |
| 633 | LOCAL_C_INCLUDES := \ |
| 634 | $(PRIMARY_HAL_PATH) \ |
| 635 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 636 | external/tinyalsa/include \ |
| 637 | external/tinycompress/include \ |
| 638 | external/expat/lib \ |
| 639 | system/media/audio_utils/include \ |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 640 | $(call include-path-for, audio-route) \ |
| 641 | |
| 642 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 643 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 644 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 645 | |
| 646 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 647 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 648 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 649 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 650 | endif |
| 651 | |
| 652 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 653 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 654 | include $(BUILD_SHARED_LIBRARY) |
| 655 | |
| 656 | #------------------------------------------- |
| 657 | # Build HWDEP_CAL |
| 658 | #------------------------------------------- |
| 659 | include $(CLEAR_VARS) |
| 660 | |
| 661 | LOCAL_MODULE := libhwdepcal |
| 662 | LOCAL_VENDOR_MODULE := true |
| 663 | |
| 664 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 665 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 666 | |
Preetam Singh Ranawat | 9bfe132 | 2019-07-20 16:13:05 +0530 | [diff] [blame] | 667 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lito bengal atoll sdm660 msm8937 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 668 | # B-family platform uses msm8974 code base |
| 669 | AUDIO_PLATFORM := msm8974 |
| 670 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 671 | endif |
| 672 | |
| 673 | # LOCAL_SRC_FILES:= \ |
| 674 | # hwdep_cal.c |
| 675 | |
| 676 | LOCAL_CFLAGS += \ |
| 677 | -Wall \ |
| 678 | -Werror \ |
| 679 | -Wno-unused-function \ |
| 680 | -Wno-unused-variable |
| 681 | |
| 682 | LOCAL_SHARED_LIBRARIES := \ |
| 683 | libaudioroute \ |
| 684 | libaudioutils \ |
| 685 | libcutils \ |
| 686 | libdl \ |
| 687 | libexpat \ |
| 688 | liblog \ |
| 689 | libtinyalsa \ |
| 690 | libtinycompress |
| 691 | |
| 692 | LOCAL_C_INCLUDES := \ |
| 693 | $(PRIMARY_HAL_PATH) \ |
| 694 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 695 | external/tinyalsa/include \ |
| 696 | external/tinycompress/include \ |
| 697 | external/expat/lib \ |
| 698 | system/media/audio_utils/include \ |
| 699 | $(call include-path-for, audio-route) \ |
| 700 | |
| 701 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 702 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 703 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 704 | |
| 705 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 706 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 707 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 708 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 709 | endif |
| 710 | |
| 711 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 712 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 713 | #include $(BUILD_SHARED_LIBRARY) |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 714 | |
| 715 | #------------------------------------------- |
| 716 | # Build MAXX_AUDIO |
| 717 | #------------------------------------------- |
| 718 | include $(CLEAR_VARS) |
| 719 | |
| 720 | LOCAL_MODULE:= libmaxxaudio |
| 721 | LOCAL_VENDOR_MODULE := true |
| 722 | |
| 723 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 724 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 725 | |
Vijayakumar Badiger | 3c199ff | 2019-06-15 15:19:20 -0700 | [diff] [blame] | 726 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona sdm660 msm8937 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 727 | # B-family platform uses msm8974 code base |
| 728 | AUDIO_PLATFORM = msm8974 |
| 729 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 730 | endif |
| 731 | |
| 732 | LOCAL_SRC_FILES:= \ |
| 733 | maxxaudio.c |
| 734 | |
| 735 | LOCAL_CFLAGS += \ |
| 736 | -Wall \ |
| 737 | -Werror \ |
| 738 | -Wno-unused-function \ |
| 739 | -Wno-unused-variable |
| 740 | |
| 741 | LOCAL_SHARED_LIBRARIES := \ |
| 742 | libaudioutils \ |
| 743 | libcutils \ |
| 744 | liblog \ |
| 745 | libtinyalsa \ |
| 746 | libtinycompress \ |
| 747 | libaudioroute \ |
| 748 | libdl \ |
| 749 | libexpat |
| 750 | |
| 751 | LOCAL_C_INCLUDES := \ |
| 752 | $(PRIMARY_HAL_PATH) \ |
| 753 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 754 | external/tinyalsa/include \ |
| 755 | external/tinycompress/include \ |
| 756 | external/expat/lib \ |
| 757 | system/media/audio_utils/include \ |
| 758 | $(call include-path-for, audio-route) \ |
| 759 | |
| 760 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 761 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 762 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 763 | |
| 764 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 765 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 766 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 767 | endif |
| 768 | |
| 769 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 770 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 771 | include $(BUILD_SHARED_LIBRARY) |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 772 | #------------------------------------------- |
| 773 | # Build AUDIOZOOM |
| 774 | #------------------------------------------- |
| 775 | include $(CLEAR_VARS) |
| 776 | |
| 777 | LOCAL_MODULE:= libaudiozoom |
| 778 | LOCAL_VENDOR_MODULE := true |
| 779 | |
| 780 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 781 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 782 | |
Vijayakumar Badiger | 3c199ff | 2019-06-15 15:19:20 -0700 | [diff] [blame] | 783 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona sdm660 msm8937 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 784 | # B-family platform uses msm8974 code base |
| 785 | AUDIO_PLATFORM = msm8974 |
| 786 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 787 | endif |
| 788 | |
| 789 | LOCAL_SRC_FILES:= \ |
| 790 | audiozoom.c |
| 791 | |
| 792 | LOCAL_CFLAGS += \ |
| 793 | -Wall \ |
| 794 | -Werror \ |
| 795 | -Wno-unused-function \ |
| 796 | -Wno-unused-variable |
| 797 | |
| 798 | LOCAL_SHARED_LIBRARIES := \ |
| 799 | libaudioutils \ |
| 800 | libcutils \ |
| 801 | liblog \ |
| 802 | libtinyalsa \ |
| 803 | libtinycompress \ |
| 804 | libaudioroute \ |
| 805 | libdl \ |
| 806 | libexpat |
| 807 | |
| 808 | LOCAL_C_INCLUDES := \ |
| 809 | $(PRIMARY_HAL_PATH) \ |
| 810 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 811 | external/tinyalsa/include \ |
| 812 | external/tinycompress/include \ |
| 813 | external/expat/lib \ |
| 814 | system/media/audio_utils/include \ |
| 815 | $(call include-path-for, audio-route) \ |
| 816 | |
| 817 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 818 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 819 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 820 | |
| 821 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 822 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 823 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 824 | endif |
| 825 | |
| 826 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 827 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 828 | include $(BUILD_SHARED_LIBRARY) |
| 829 | |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 830 | #------------------------------------------- |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 831 | |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 832 | # Build AUTO_HAL LIB |
| 833 | #------------------------------------------- |
| 834 | include $(CLEAR_VARS) |
| 835 | |
| 836 | LOCAL_MODULE := libautohal |
| 837 | |
| 838 | LOCAL_VENDOR_MODULE := true |
| 839 | |
| 840 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 841 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 842 | |
| 843 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lito atoll sdm660 msm8937 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
| 844 | # B-family platform uses msm8974 code base |
| 845 | AUDIO_PLATFORM := msm8974 |
| 846 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 847 | endif |
| 848 | |
| 849 | LOCAL_SRC_FILES:= \ |
| 850 | auto_hal.c |
| 851 | |
| 852 | LOCAL_CFLAGS += \ |
| 853 | -Wall \ |
| 854 | -Werror \ |
| 855 | -Wno-unused-function \ |
| 856 | -Wno-unused-variable |
| 857 | |
| 858 | LOCAL_SHARED_LIBRARIES := \ |
| 859 | libaudioutils \ |
| 860 | libcutils \ |
| 861 | libdl \ |
| 862 | libexpat \ |
| 863 | liblog |
| 864 | |
| 865 | LOCAL_C_INCLUDES := \ |
| 866 | $(PRIMARY_HAL_PATH) \ |
| 867 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 868 | external/tinyalsa/include \ |
| 869 | external/tinycompress/include \ |
| 870 | external/expat/lib \ |
| 871 | system/media/audio_utils/include \ |
| 872 | $(call include-path-for, audio-route) \ |
| 873 | |
| 874 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 875 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 876 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 877 | |
| 878 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 879 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 880 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 881 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 882 | endif |
| 883 | |
| 884 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 885 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 886 | include $(BUILD_SHARED_LIBRARY) |