blob: 3b9787c075715eb4ba69406f4e5a439f04db828a [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 \
Sharad Sangleb27354b2015-06-18 15:58:55 +053017 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 Kumar1e4061e2015-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