blob: ed46f17ac84f01ce2c28eb2504045085e8449ada [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
24LOCAL_CFLAGS+= -O2 -fvisibility=hidden
25
Jitendra Naruka1b6513f2014-11-22 19:34:13 -080026ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true)
27 LOCAL_CFLAGS += -DDTS_EAGLE
28endif
29
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080030LOCAL_SHARED_LIBRARIES := \
31 libcutils \
32 liblog \
Dhananjay Kumar5f15ff92014-05-19 16:45:08 +080033 libtinyalsa \
34 libdl
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080035
36LOCAL_MODULE_TAGS := optional
37
Apoorv Raghuvanshi1b555f72014-05-29 12:48:15 -070038LOCAL_MODULE_RELATIVE_PATH := soundfx
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080039LOCAL_MODULE:= libqcompostprocbundle
40
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070041LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
42
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080043LOCAL_C_INCLUDES := \
44 external/tinyalsa/include \
Subhash Chandra Bose Naripeddy090a2aa2014-01-30 14:03:12 -080045 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080046 $(call include-path-for, audio-effects)
47
48include $(BUILD_SHARED_LIBRARY)
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070049
50
51ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
52include $(CLEAR_VARS)
53
54LOCAL_SRC_FILES := EffectsHwAcc.cpp
55
56LOCAL_C_INCLUDES := \
57 $(call include-path-for, audio-effects)
58
59LOCAL_SHARED_LIBRARIES := \
60 liblog \
61 libeffects
62
63LOCAL_MODULE_TAGS := optional
64
65LOCAL_CFLAGS += -O2 -fvisibility=hidden
66
Alexy Josephd464f3b2014-11-18 16:14:41 -080067ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true)
68LOCAL_CFLAGS += -DHW_ACC_HPX
69endif
70
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070071LOCAL_MODULE:= libhwacceffectswrapper
72
73include $(BUILD_STATIC_LIBRARY)
74endif