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