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