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