blob: feae9990fa537c80c19c05a9c98f55cdf6b8acec [file] [log] [blame]
Arun Mirpurib1bec9c2019-01-29 16:42:45 -08001#--------------------------------------------
2# Build SND_MONITOR LIB
3#--------------------------------------------
4LOCAL_PATH:= $(call my-dir)
5
6include $(CLEAR_VARS)
7
Arun Mirpurie008ed22019-03-21 11:21:04 -07008LOCAL_MODULE := libsndmonitor
Arun Mirpurib1bec9c2019-01-29 16:42:45 -08009LOCAL_MODULE_OWNER := third_party
Piyush Balwani18c6b2d2019-02-13 12:28:50 +053010LOCAL_VENDOR_MODULE := true
Arun Mirpurib1bec9c2019-01-29 16:42:45 -080011
12AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
13
14LOCAL_SRC_FILES:= \
15 sndmonitor.c
16
17LOCAL_CFLAGS += \
18 -Wall \
19 -Werror \
20 -Wno-unused-function \
21 -Wno-unused-variable \
22
23LOCAL_SHARED_LIBRARIES := \
Aalique Grahame182676b2019-03-26 15:39:11 -070024 libaudioutils \
25 libcutils \
26 liblog \
27 libtinyalsa \
28 libtinycompress \
29 libaudioroute \
30 libdl \
31 libexpat
Arun Mirpurib1bec9c2019-01-29 16:42:45 -080032
33LOCAL_C_INCLUDES := \
Aalique Grahame182676b2019-03-26 15:39:11 -070034 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 Mirpurib1bec9c2019-01-29 16:42:45 -080041
42LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
43LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
44LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
45
46ifeq ($(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 Mirpurib1bec9c2019-01-29 16:42:45 -080049endif
50
51LOCAL_HEADER_LIBRARIES += libhardware_headers
52LOCAL_HEADER_LIBRARIES += libsystem_headers
53include $(BUILD_SHARED_LIBRARY)
54
55#--------------------------------------------
56# Build COMPRESS_CAPTURE LIB
57#--------------------------------------------
58include $(CLEAR_VARS)
59
Arun Mirpurie008ed22019-03-21 11:21:04 -070060LOCAL_MODULE := libcomprcapture
Arun Mirpurib1bec9c2019-01-29 16:42:45 -080061LOCAL_MODULE_OWNER := third_party
Piyush Balwani18c6b2d2019-02-13 12:28:50 +053062LOCAL_VENDOR_MODULE := true
Arun Mirpurib1bec9c2019-01-29 16:42:45 -080063
64AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
65
Deepthi Gunturi81a7f802019-04-22 11:33:05 +053066ifneq ($(filter sdm845 sdm710 qcs605 msmnile kona lito atoll sdm660 msm8937 $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),)
Arun Mirpurib1bec9c2019-01-29 16:42:45 -080067 # B-family platform uses msm8974 code base
Arun Mirpurie008ed22019-03-21 11:21:04 -070068 AUDIO_PLATFORM := msm8974
Arun Mirpurib1bec9c2019-01-29 16:42:45 -080069 MULTIPLE_HW_VARIANTS_ENABLED := true
70endif
71
72LOCAL_SRC_FILES:= \
73 compress_capture.c
74
75LOCAL_CFLAGS += \
76 -Wall \
77 -Werror \
78 -Wno-unused-function \
79 -Wno-unused-variable \
80
81LOCAL_SHARED_LIBRARIES := \
Aalique Grahame182676b2019-03-26 15:39:11 -070082 libaudioutils \
83 libcutils \
84 liblog \
85 libtinyalsa \
86 libtinycompress \
87 libaudioroute \
88 libdl \
89 libexpat
Arun Mirpurib1bec9c2019-01-29 16:42:45 -080090
91LOCAL_C_INCLUDES := \
Aalique Grahame182676b2019-03-26 15:39:11 -070092 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 Mirpurib1bec9c2019-01-29 16:42:45 -080098 vendor/qcom/opensource/audio-hal/primary-hal/hal/$(AUDIO_PLATFORM) \
Aalique Grahame182676b2019-03-26 15:39:11 -070099 $(call include-path-for, audio-effects)
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800100
101LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
102LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
103LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
104
105ifeq ($(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 Mirpurib1bec9c2019-01-29 16:42:45 -0800108endif
109
110LOCAL_HEADER_LIBRARIES += libhardware_headers
111LOCAL_HEADER_LIBRARIES += libsystem_headers
112include $(BUILD_SHARED_LIBRARY)
113
114#-------------------------------------------
115# Build SSREC LIB
116#-------------------------------------------
117include $(CLEAR_VARS)
118
Arun Mirpurie008ed22019-03-21 11:21:04 -0700119LOCAL_MODULE := libssrec
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800120LOCAL_VENDOR_MODULE := true
121
122AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
123
Deepthi Gunturi81a7f802019-04-22 11:33:05 +0530124ifneq ($(filter sdm845 sdm710 msmnile kona lito atoll sdm660 msm8937 $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),)
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800125 # B-family platform uses msm8974 code base
Arun Mirpurie008ed22019-03-21 11:21:04 -0700126 AUDIO_PLATFORM := msm8974
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800127 MULTIPLE_HW_VARIANTS_ENABLED := true
128endif
129
130LOCAL_SRC_FILES:= ssr.c
131
132LOCAL_CFLAGS += \
133 -Wall \
134 -Werror \
135 -Wno-unused-function \
136 -Wno-unused-variable
137
138LOCAL_SHARED_LIBRARIES := \
139 libaudioutils \
140 libcutils \
141 liblog \
142 libtinyalsa \
143 libtinycompress \
144 libaudioroute \
145 libdl \
146 libexpat
147
148LOCAL_C_INCLUDES := \
149 vendor/qcom/opensource/audio-hal/primary-hal/hal \
150 vendor/qcom/opensource/audio-hal/primary-hal/hal/$(AUDIO_PLATFORM) \
151 external/tinyalsa/include \
152 external/tinycompress/include \
153 external/expat/lib \
154 system/media/audio_utils/include \
155 $(call include-path-for, audio-route) \
156 $(call include-path-for, audio-effects) \
157 $(TARGET_OUT_HEADERS)/mm-audio/surround_sound_3mic/ \
158 $(TARGET_OUT_HEADERS)/common/inc/
159
160LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
161LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
162LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
163
164ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
165 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
166 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800167endif
168
169LOCAL_HEADER_LIBRARIES += libhardware_headers
170LOCAL_HEADER_LIBRARIES += libsystem_headers
171#include $(BUILD_SHARED_LIBRARY)
172
173#--------------------------------------------
174# Build HDMI_EDID LIB
175#--------------------------------------------
176include $(CLEAR_VARS)
177
Arun Mirpurie008ed22019-03-21 11:21:04 -0700178LOCAL_MODULE := libhdmiedid
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800179LOCAL_MODULE_OWNER := third_party
Piyush Balwani18c6b2d2019-02-13 12:28:50 +0530180LOCAL_VENDOR_MODULE := true
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800181
182PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal
183AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
184
Deepthi Gunturi81a7f802019-04-22 11:33:05 +0530185ifneq ($(filter sdm845 sdm710 msmnile kona lito atoll sdm660 msm8937 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),)
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800186 # B-family platform uses msm8974 code base
Arun Mirpurie008ed22019-03-21 11:21:04 -0700187 AUDIO_PLATFORM := msm8974
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800188endif
189
190LOCAL_SRC_FILES:= \
191 edid.c
192
193LOCAL_CFLAGS += \
194 -Wall \
195 -Werror \
196 -Wno-unused-function \
197 -Wno-unused-variable \
198
199LOCAL_SHARED_LIBRARIES := \
Aalique Grahame182676b2019-03-26 15:39:11 -0700200 libaudioutils \
201 libcutils \
202 liblog \
203 libtinyalsa \
204 libtinycompress \
205 libaudioroute \
206 libdl \
207 libexpat
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800208
209LOCAL_C_INCLUDES := \
Aalique Grahame182676b2019-03-26 15:39:11 -0700210 external/tinyalsa/include \
211 external/tinycompress/include \
212 system/media/audio_utils/include \
213 external/expat/lib \
214 $(call include-path-for, audio-route) \
215 $(PRIMARY_HAL_PATH) \
216 $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \
217 $(call include-path-for, audio-effects)
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800218
219LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
220LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
221LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
222
223ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
224 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
225 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800226endif
227
228LOCAL_HEADER_LIBRARIES += libhardware_headers
229LOCAL_HEADER_LIBRARIES += libsystem_headers
230include $(BUILD_SHARED_LIBRARY)
231
232#--------------------------------------------
233# Build SPKR_PROTECT LIB
234#--------------------------------------------
235include $(CLEAR_VARS)
236
Deepthi Gunturi81a7f802019-04-22 11:33:05 +0530237ifneq ($(filter sdm845 sdm710 msmnile kona lito atoll sdm660 msm8937 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),)
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800238 # B-family platform uses msm8974 code base
Arun Mirpurie008ed22019-03-21 11:21:04 -0700239 AUDIO_PLATFORM := msm8974
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800240endif
241
Arun Mirpurie008ed22019-03-21 11:21:04 -0700242LOCAL_MODULE := libspkrprot
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800243LOCAL_MODULE_OWNER := third_party
Piyush Balwani18c6b2d2019-02-13 12:28:50 +0530244LOCAL_VENDOR_MODULE := true
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800245
246LOCAL_SRC_FILES:= \
247 spkr_protection.c
248
249LOCAL_CFLAGS += \
250 -Wall \
251 -Werror \
252 -Wno-unused-function \
253 -Wno-unused-variable \
254
255LOCAL_CFLAGS += -DSPKR_PROT_ENABLED
256
257LOCAL_SHARED_LIBRARIES := \
258 libaudioutils \
259 libcutils \
260 liblog \
261 libtinyalsa \
262 libtinycompress \
263 libaudioroute \
264 libdl \
265 libexpat
266
267LOCAL_C_INCLUDES := \
268 external/tinyalsa/include \
269 external/tinycompress/include \
270 system/media/audio_utils/include \
271 external/expat/lib \
272 $(call include-path-for, audio-route) \
273 vendor/qcom/opensource/audio-hal/primary-hal/hal \
274 vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn \
275 vendor/qcom/opensource/audio-hal/primary-hal/hal/$(AUDIO_PLATFORM) \
276 vendor/qcom/opensource/audio-kernel/include/uapi/ \
277 $(call include-path-for, audio-effects)
278
Sujin Panickerb904fbe2019-04-04 13:28:07 +0530279LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800280LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Meng Wang6719f4d2019-04-09 09:09:16 +0800281LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800282
283LOCAL_HEADER_LIBRARIES += libhardware_headers
284LOCAL_HEADER_LIBRARIES += libsystem_headers
285include $(BUILD_SHARED_LIBRARY)
286#====================================================================================================
287# --- enable 3rd Party Spkr-prot lib
288#====================================================================================================
289
290include $(CLEAR_VARS)
291
Deepthi Gunturi81a7f802019-04-22 11:33:05 +0530292ifneq ($(filter sdm845 sdm710 msmnile kona lito atoll sdm660 msm8937 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),)
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800293 # B-family platform uses msm8974 code base
Arun Mirpurie008ed22019-03-21 11:21:04 -0700294 AUDIO_PLATFORM := msm8974
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800295endif
296
Arun Mirpurie008ed22019-03-21 11:21:04 -0700297LOCAL_MODULE := libcirrusspkrprot
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800298LOCAL_MODULE_OWNER := third_party
Piyush Balwani18c6b2d2019-02-13 12:28:50 +0530299LOCAL_VENDOR_MODULE := true
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800300
301LOCAL_SRC_FILES:= \
302 cirrus_playback.c
303
304LOCAL_CFLAGS += \
305 -Wall \
306 -Werror \
307 -Wno-unused-function \
308 -Wno-unused-variable \
309
310LOCAL_CFLAGS += -DENABLE_CIRRUS_DETECTION
311LOCAL_CFLAGS += -DCIRRUS_FACTORY_CALIBRATION
312
313LOCAL_SHARED_LIBRARIES := \
314 libaudioutils \
315 libcutils \
316 liblog \
317 libtinyalsa \
318 libaudioroute \
319 libdl \
320 libexpat
321
322LOCAL_C_INCLUDES := \
323 external/tinyalsa/include \
324 external/tinycompress/include \
325 system/media/audio_utils/include \
326 external/expat/lib \
327 $(call include-path-for, audio-route) \
328 vendor/qcom/opensource/audio-hal/primary-hal/hal \
329 vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn \
330 vendor/qcom/opensource/audio-hal/primary-hal/hal/$(AUDIO_PLATFORM) \
331 vendor/qcom/opensource/audio-kernel/include/uapi/ \
332 $(call include-path-for, audio-effects)
333
Sujin Panickerb904fbe2019-04-04 13:28:07 +0530334LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800335LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Meng Wang6719f4d2019-04-09 09:09:16 +0800336LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800337
338LOCAL_HEADER_LIBRARIES += libhardware_headers
339LOCAL_HEADER_LIBRARIES += libsystem_headers
340include $(BUILD_SHARED_LIBRARY)
341
342#-------------------------------------------
343# Build A2DP_OFFLOAD LIB
344#-------------------------------------------
345include $(CLEAR_VARS)
346
Arun Mirpurie008ed22019-03-21 11:21:04 -0700347LOCAL_MODULE := liba2dpoffload
Piyush Balwani18c6b2d2019-02-13 12:28:50 +0530348LOCAL_VENDOR_MODULE := true
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800349
350PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal
351AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
352
Deepthi Gunturi81a7f802019-04-22 11:33:05 +0530353ifneq ($(filter sdm845 sdm710 msmnile kona lito atoll sdm660 msm8937 $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),)
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800354 # B-family platform uses msm8974 code base
Arun Mirpurie008ed22019-03-21 11:21:04 -0700355 AUDIO_PLATFORM := msm8974
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800356 MULTIPLE_HW_VARIANTS_ENABLED := true
357endif
358
359LOCAL_SRC_FILES:= \
360 a2dp.c
361
362LOCAL_CFLAGS += \
363 -Wall \
364 -Werror \
365 -Wno-unused-function \
366 -Wno-unused-variable
367
368LOCAL_SHARED_LIBRARIES := \
369 libaudioutils \
370 libcutils \
371 liblog \
372 libtinyalsa \
373 libtinycompress \
374 libaudioroute \
375 libdl \
Arun Mirpuri5dc77802019-02-26 16:32:42 -0800376 libexpat
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800377
378LOCAL_C_INCLUDES := \
379 $(PRIMARY_HAL_PATH) \
380 $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \
381 external/tinyalsa/include \
382 external/tinycompress/include \
383 external/expat/lib \
384 system/media/audio_utils/include \
385 $(call include-path-for, audio-route) \
386
387LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
388LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
389LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
390
391ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
392 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
393 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
Arun Mirpurib1bec9c2019-01-29 16:42:45 -0800394endif
395
396LOCAL_HEADER_LIBRARIES += libhardware_headers
397LOCAL_HEADER_LIBRARIES += libsystem_headers
398include $(BUILD_SHARED_LIBRARY)
Arun Mirpurie008ed22019-03-21 11:21:04 -0700399
400#-------------------------------------------
Arun Mirpurid750ac52019-04-12 18:33:55 -0700401
Arun Mirpurie008ed22019-03-21 11:21:04 -0700402# Build EXT_HW_PLUGIN LIB
403#-------------------------------------------
404include $(CLEAR_VARS)
405
406LOCAL_MODULE := libexthwplugin
Arun Mirpurid750ac52019-04-12 18:33:55 -0700407
Arun Mirpurie008ed22019-03-21 11:21:04 -0700408LOCAL_VENDOR_MODULE := true
409
410PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal
411AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
412
Salendarsingh Gaud053d4fc2019-04-18 15:44:31 +0530413ifneq ($(filter sdm845 sdm710 msmnile kona lito sdm660 msm8937 $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),)
Arun Mirpurie008ed22019-03-21 11:21:04 -0700414 # B-family platform uses msm8974 code base
415 AUDIO_PLATFORM := msm8974
416 MULTIPLE_HW_VARIANTS_ENABLED := true
417endif
418
419LOCAL_SRC_FILES:= \
420 ext_hw_plugin.c
421
422LOCAL_CFLAGS += \
423 -Wall \
424 -Werror \
425 -Wno-unused-function \
426 -Wno-unused-variable
427
428LOCAL_SHARED_LIBRARIES := \
429 libaudioroute \
430 libaudioutils \
431 libcutils \
432 libdl \
433 libexpat \
434 liblog \
435 libtinyalsa \
436 libtinycompress
437
438LOCAL_C_INCLUDES := \
439 $(PRIMARY_HAL_PATH) \
440 $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \
441 external/tinyalsa/include \
442 external/tinycompress/include \
443 external/expat/lib \
444 system/media/audio_utils/include \
445 $(call include-path-for, audio-route) \
446
447LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
448LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
449LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
450
451ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
452 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
453 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
454 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
455endif
456
457LOCAL_HEADER_LIBRARIES += libhardware_headers
458LOCAL_HEADER_LIBRARIES += libsystem_headers
459include $(BUILD_SHARED_LIBRARY)
460
461#-------------------------------------------
462# Build HFP LIB
463#-------------------------------------------
464include $(CLEAR_VARS)
465
466LOCAL_MODULE := libhfp
467LOCAL_VENDOR_MODULE := true
468
469PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal
470AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
471
Salendarsingh Gaud053d4fc2019-04-18 15:44:31 +0530472ifneq ($(filter sdm845 sdm710 msmnile kona lito sdm660 msm8937 $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),)
Arun Mirpurie008ed22019-03-21 11:21:04 -0700473 # B-family platform uses msm8974 code base
474 AUDIO_PLATFORM := msm8974
475 MULTIPLE_HW_VARIANTS_ENABLED := true
476endif
477
478LOCAL_SRC_FILES:= \
479 hfp.c
480
481LOCAL_CFLAGS += \
482 -Wall \
483 -Werror \
484 -Wno-unused-function \
485 -Wno-unused-variable
486
487LOCAL_SHARED_LIBRARIES := \
488 libaudioroute \
489 libaudioutils \
490 libcutils \
491 libdl \
492 libexpat \
493 liblog \
494 libtinyalsa \
495 libtinycompress
496
497LOCAL_C_INCLUDES := \
498 $(PRIMARY_HAL_PATH) \
499 $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \
500 external/tinyalsa/include \
501 external/tinycompress/include \
502 external/expat/lib \
503 system/media/audio_utils/include \
504 $(call include-path-for, audio-route) \
505
506LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
507LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
508LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
509
510ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
511 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
512 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
513 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
514endif
515
516LOCAL_HEADER_LIBRARIES += libhardware_headers
517LOCAL_HEADER_LIBRARIES += libsystem_headers
518include $(BUILD_SHARED_LIBRARY)
519
520#-------------------------------------------
521# Build HDMI PASSTHROUGH
522#-------------------------------------------
523include $(CLEAR_VARS)
524
525LOCAL_MODULE := libhdmipassthru
526LOCAL_VENDOR_MODULE := true
527
528PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal
529AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
530
Salendarsingh Gaud053d4fc2019-04-18 15:44:31 +0530531ifneq ($(filter sdm845 sdm710 msmnile kona lito sdm660 msm8937 $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),)
Arun Mirpurie008ed22019-03-21 11:21:04 -0700532 # B-family platform uses msm8974 code base
533 AUDIO_PLATFORM := msm8974
534 MULTIPLE_HW_VARIANTS_ENABLED := true
535endif
536
537LOCAL_SRC_FILES:= \
538 passthru.c
539
540LOCAL_CFLAGS += \
541 -Wall \
542 -Werror \
543 -Wno-unused-function \
544 -Wno-unused-variable \
545 -DDTSHD_PARSER_ENABLED
546
547LOCAL_SHARED_LIBRARIES := \
548 libaudioparsers \
549 libaudioroute \
550 libaudioutils \
551 libcutils \
552 libdl \
553 libexpat \
554 liblog \
555 libtinyalsa \
556 libtinycompress
557
558LOCAL_C_INCLUDES := \
559 $(PRIMARY_HAL_PATH) \
560 $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \
561 external/tinyalsa/include \
562 external/tinycompress/include \
563 external/expat/lib \
564 system/media/audio_utils/include \
Arun Mirpurif6074472019-04-17 11:39:08 -0700565 $(TARGET_OUT_HEADERS)/mm-audio/audio-parsers \
Arun Mirpurie008ed22019-03-21 11:21:04 -0700566 $(call include-path-for, audio-route) \
567
568LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
569LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
570LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
571
572ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
573 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
574 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
575 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
576endif
577
578LOCAL_HEADER_LIBRARIES += libhardware_headers
579LOCAL_HEADER_LIBRARIES += libsystem_headers
580include $(BUILD_SHARED_LIBRARY)
581
582#-------------------------------------------
583# Build BATTERY_LISTENER
584#-------------------------------------------
585include $(CLEAR_VARS)
586
587LOCAL_MODULE := libbatterylistener
588LOCAL_VENDOR_MODULE := true
589
590PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal
591AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
592
Salendarsingh Gaud053d4fc2019-04-18 15:44:31 +0530593ifneq ($(filter sdm845 sdm710 msmnile kona lito sdm660 msm8937 $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),)
Arun Mirpurie008ed22019-03-21 11:21:04 -0700594 # B-family platform uses msm8974 code base
595 AUDIO_PLATFORM := msm8974
596 MULTIPLE_HW_VARIANTS_ENABLED := true
597endif
598
599LOCAL_SRC_FILES:= \
600 battery_listener.cpp
601
602LOCAL_CFLAGS += \
603 -Wall \
604 -Werror \
605 -Wno-unused-function \
606 -Wno-unused-variable \
607 -DDTSHD_PARSER_ENABLED
608
609LOCAL_SHARED_LIBRARIES := \
610 android.hardware.health@1.0 \
611 android.hardware.health@2.0 \
612 android.hardware.power@1.2 \
613 libaudioroute \
614 libaudioutils \
615 libbase \
616 libcutils \
617 libdl \
618 libexpat \
619 libhidlbase \
620 libhidltransport \
621 liblog \
622 libtinyalsa \
623 libtinycompress \
624 libutils \
625
626LOCAL_STATIC_LIBRARIES := \
627 libhealthhalutils
628
629LOCAL_C_INCLUDES := \
630 $(PRIMARY_HAL_PATH) \
631 $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \
632 external/tinyalsa/include \
633 external/tinycompress/include \
634 external/expat/lib \
635 system/media/audio_utils/include \
Arun Mirpurie008ed22019-03-21 11:21:04 -0700636 $(call include-path-for, audio-route) \
637
638LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
639LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
640LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
641
642ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
643 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
644 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
645 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
646endif
647
648LOCAL_HEADER_LIBRARIES += libhardware_headers
649LOCAL_HEADER_LIBRARIES += libsystem_headers
650include $(BUILD_SHARED_LIBRARY)
651
652#-------------------------------------------
653# Build HWDEP_CAL
654#-------------------------------------------
655include $(CLEAR_VARS)
656
657LOCAL_MODULE := libhwdepcal
658LOCAL_VENDOR_MODULE := true
659
660PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal
661AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
662
Salendarsingh Gaud053d4fc2019-04-18 15:44:31 +0530663ifneq ($(filter sdm845 sdm710 msmnile kona lito sdm660 msm8937 $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),)
Arun Mirpurie008ed22019-03-21 11:21:04 -0700664 # B-family platform uses msm8974 code base
665 AUDIO_PLATFORM := msm8974
666 MULTIPLE_HW_VARIANTS_ENABLED := true
667endif
668
669# LOCAL_SRC_FILES:= \
670# hwdep_cal.c
671
672LOCAL_CFLAGS += \
673 -Wall \
674 -Werror \
675 -Wno-unused-function \
676 -Wno-unused-variable
677
678LOCAL_SHARED_LIBRARIES := \
679 libaudioroute \
680 libaudioutils \
681 libcutils \
682 libdl \
683 libexpat \
684 liblog \
685 libtinyalsa \
686 libtinycompress
687
688LOCAL_C_INCLUDES := \
689 $(PRIMARY_HAL_PATH) \
690 $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \
691 external/tinyalsa/include \
692 external/tinycompress/include \
693 external/expat/lib \
694 system/media/audio_utils/include \
695 $(call include-path-for, audio-route) \
696
697LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
698LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
699LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
700
701ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
702 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
703 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
704 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
705endif
706
707LOCAL_HEADER_LIBRARIES += libhardware_headers
708LOCAL_HEADER_LIBRARIES += libsystem_headers
709#include $(BUILD_SHARED_LIBRARY)
Arun Mirpurid750ac52019-04-12 18:33:55 -0700710
711#-------------------------------------------
712# Build MAXX_AUDIO
713#-------------------------------------------
714include $(CLEAR_VARS)
715
716LOCAL_MODULE:= libmaxxaudio
717LOCAL_VENDOR_MODULE := true
718
719PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal
720AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
721
722ifneq ($(filter sdm845 sdm710 msmnile kona sdm660 msm8937 $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),)
723 # B-family platform uses msm8974 code base
724 AUDIO_PLATFORM = msm8974
725 MULTIPLE_HW_VARIANTS_ENABLED := true
726endif
727
728LOCAL_SRC_FILES:= \
729 maxxaudio.c
730
731LOCAL_CFLAGS += \
732 -Wall \
733 -Werror \
734 -Wno-unused-function \
735 -Wno-unused-variable
736
737LOCAL_SHARED_LIBRARIES := \
738 libaudioutils \
739 libcutils \
740 liblog \
741 libtinyalsa \
742 libtinycompress \
743 libaudioroute \
744 libdl \
745 libexpat
746
747LOCAL_C_INCLUDES := \
748 $(PRIMARY_HAL_PATH) \
749 $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \
750 external/tinyalsa/include \
751 external/tinycompress/include \
752 external/expat/lib \
753 system/media/audio_utils/include \
754 $(call include-path-for, audio-route) \
755
756LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
757LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
758LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
759
760ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
761 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
762 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
763endif
764
765LOCAL_HEADER_LIBRARIES += libhardware_headers
766LOCAL_HEADER_LIBRARIES += libsystem_headers
767include $(BUILD_SHARED_LIBRARY)