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