blob: ad6e4ac1da3c0bab1497e9a297c1be62a7fb7005 [file] [log] [blame]
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -08001
2LOCAL_PATH:= $(call my-dir)
3
4include $(CLEAR_VARS)
5
Mingming Yina6dad602014-05-16 12:10:55 -07006ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
Mingming Yin67e34512014-04-03 17:47:22 -07007 LOCAL_CFLAGS += -DAFE_PROXY_ENABLED
8endif
9
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080010LOCAL_SRC_FILES:= \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070011 bundle.c \
12 equalizer.c \
13 bass_boost.c \
14 virtualizer.c \
15 reverb.c \
16 effect_api.c \
17 effect_util.c
Mingming Yin497419f2015-07-01 16:57:32 -070018
19ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
20 LOCAL_CFLAGS += -DHW_ACCELERATED_EFFECTS
21 LOCAL_SRC_FILES += hw_accelerator.c
22endif
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080023
Dhananjay Kumar1c978df2015-09-04 13:44:59 +053024ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUDIOSPHERE)),true)
25 LOCAL_CFLAGS += -DAUDIOSPHERE_ENABLED
26 LOCAL_SRC_FILES += asphere.c
27endif
28
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080029LOCAL_CFLAGS+= -O2 -fvisibility=hidden
30
Jitendra Naruka1b6513f2014-11-22 19:34:13 -080031ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true)
32 LOCAL_CFLAGS += -DDTS_EAGLE
33endif
34
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080035LOCAL_SHARED_LIBRARIES := \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070036 libcutils \
37 liblog \
38 libtinyalsa \
39 libdl
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080040
41LOCAL_MODULE_TAGS := optional
42
Apoorv Raghuvanshi1b555f72014-05-29 12:48:15 -070043LOCAL_MODULE_RELATIVE_PATH := soundfx
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080044LOCAL_MODULE:= libqcompostprocbundle
Naresh Tanniru10758b62017-06-05 21:05:53 +053045LOCAL_VENDOR_MODULE := true
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080046
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070047LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
48
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080049LOCAL_C_INCLUDES := \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070050 external/tinyalsa/include \
Subhash Chandra Bose Naripeddy090a2aa2014-01-30 14:03:12 -080051 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070052 $(call include-path-for, audio-effects)
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080053
54include $(BUILD_SHARED_LIBRARY)
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070055
56
57ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
58include $(CLEAR_VARS)
59
60LOCAL_SRC_FILES := EffectsHwAcc.cpp
61
62LOCAL_C_INCLUDES := \
63 $(call include-path-for, audio-effects)
64
65LOCAL_SHARED_LIBRARIES := \
66 liblog \
67 libeffects
68
69LOCAL_MODULE_TAGS := optional
70
71LOCAL_CFLAGS += -O2 -fvisibility=hidden
72
Alexy Josephd464f3b2014-11-18 16:14:41 -080073ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true)
74LOCAL_CFLAGS += -DHW_ACC_HPX
75endif
76
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070077LOCAL_MODULE:= libhwacceffectswrapper
Naresh Tanniru10758b62017-06-05 21:05:53 +053078LOCAL_VENDOR_MODULE := true
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070079
80include $(BUILD_STATIC_LIBRARY)
81endif
vivek mehta341b6f02015-06-15 16:16:11 -070082
83
84################################################################################
85
Venkataraman Nerellapallib8689ec2017-05-04 11:55:29 +053086ifneq ($(filter msm8992 msm8994 msm8996 msm8998 sdm660 sdm845 apq8098_latv,$(TARGET_BOARD_PLATFORM)),)
vivek mehta341b6f02015-06-15 16:16:11 -070087
88include $(CLEAR_VARS)
89
Naresh Tanniru10758b62017-06-05 21:05:53 +053090LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so"
vivek mehta341b6f02015-06-15 16:16:11 -070091
92LOCAL_SRC_FILES:= \
93 volume_listener.c
94
95LOCAL_CFLAGS+= -O2 -fvisibility=hidden
96
97LOCAL_SHARED_LIBRARIES := \
98 libcutils \
99 liblog \
100 libdl
101
102LOCAL_MODULE_RELATIVE_PATH := soundfx
103LOCAL_MODULE:= libvolumelistener
Naresh Tanniru10758b62017-06-05 21:05:53 +0530104LOCAL_VENDOR_MODULE := true
vivek mehta341b6f02015-06-15 16:16:11 -0700105
106LOCAL_C_INCLUDES := \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -0700107 hardware/qcom/audio/hal \
108 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
109 external/tinyalsa/include \
110 $(call include-path-for, audio-effects) \
111 $(call include-path-for, audio-route) \
112 hardware/qcom/audio/hal/audio_extn \
113 external/tinycompress/include
vivek mehta341b6f02015-06-15 16:16:11 -0700114
115include $(BUILD_SHARED_LIBRARY)
116
117endif