blob: c7166ee68fa200e03e64bef8e5bf385f714cd5fe [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:= \
11 bundle.c \
12 equalizer.c \
13 bass_boost.c \
14 virtualizer.c \
15 reverb.c \
Jitendra Naruka1b6513f2014-11-22 19:34:13 -080016 effect_api.c \
Mingming Yin497419f2015-07-01 16:57:32 -070017 effect_util.c
18
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 := \
36 libcutils \
37 liblog \
Dhananjay Kumar5f15ff92014-05-19 16:45:08 +080038 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
45
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070046LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
47
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080048LOCAL_C_INCLUDES := \
49 external/tinyalsa/include \
Subhash Chandra Bose Naripeddy090a2aa2014-01-30 14:03:12 -080050 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080051 $(call include-path-for, audio-effects)
52
53include $(BUILD_SHARED_LIBRARY)
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070054
55
56ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
57include $(CLEAR_VARS)
58
59LOCAL_SRC_FILES := EffectsHwAcc.cpp
60
61LOCAL_C_INCLUDES := \
62 $(call include-path-for, audio-effects)
63
64LOCAL_SHARED_LIBRARIES := \
65 liblog \
66 libeffects
67
68LOCAL_MODULE_TAGS := optional
69
70LOCAL_CFLAGS += -O2 -fvisibility=hidden
71
Alexy Josephd464f3b2014-11-18 16:14:41 -080072ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true)
73LOCAL_CFLAGS += -DHW_ACC_HPX
74endif
75
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070076LOCAL_MODULE:= libhwacceffectswrapper
77
78include $(BUILD_STATIC_LIBRARY)
79endif
vivek mehta341b6f02015-06-15 16:16:11 -070080
81
82################################################################################
83
Banajit Goswami4c0dff22016-03-04 18:31:22 -080084ifneq ($(filter msm8992 msm8994 msm8996 msmcobalt,$(TARGET_BOARD_PLATFORM)),)
vivek mehta341b6f02015-06-15 16:16:11 -070085
86include $(CLEAR_VARS)
87
88LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/system/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so"
89
90LOCAL_SRC_FILES:= \
91 volume_listener.c
92
93LOCAL_CFLAGS+= -O2 -fvisibility=hidden
94
95LOCAL_SHARED_LIBRARIES := \
96 libcutils \
97 liblog \
98 libdl
99
100LOCAL_MODULE_RELATIVE_PATH := soundfx
101LOCAL_MODULE:= libvolumelistener
102
103LOCAL_C_INCLUDES := \
104 $(call include-path-for, audio-effects)
105
106include $(BUILD_SHARED_LIBRARY)
107
108endif