blob: be70166ad3f585ea62d933bf2856826f6e6cb261 [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 \
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070017 effect_util.c \
18 hw_accelerator.c
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080019
20LOCAL_CFLAGS+= -O2 -fvisibility=hidden
21
Jitendra Naruka1b6513f2014-11-22 19:34:13 -080022ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true)
23 LOCAL_CFLAGS += -DDTS_EAGLE
24endif
25
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080026LOCAL_SHARED_LIBRARIES := \
27 libcutils \
28 liblog \
Dhananjay Kumar5f15ff92014-05-19 16:45:08 +080029 libtinyalsa \
30 libdl
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080031
32LOCAL_MODULE_TAGS := optional
33
Apoorv Raghuvanshi1b555f72014-05-29 12:48:15 -070034LOCAL_MODULE_RELATIVE_PATH := soundfx
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080035LOCAL_MODULE:= libqcompostprocbundle
36
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070037LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
38
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080039LOCAL_C_INCLUDES := \
40 external/tinyalsa/include \
Subhash Chandra Bose Naripeddy090a2aa2014-01-30 14:03:12 -080041 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080042 $(call include-path-for, audio-effects)
43
44include $(BUILD_SHARED_LIBRARY)
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070045
46
47ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
48include $(CLEAR_VARS)
49
50LOCAL_SRC_FILES := EffectsHwAcc.cpp
51
52LOCAL_C_INCLUDES := \
53 $(call include-path-for, audio-effects)
54
55LOCAL_SHARED_LIBRARIES := \
56 liblog \
57 libeffects
58
59LOCAL_MODULE_TAGS := optional
60
61LOCAL_CFLAGS += -O2 -fvisibility=hidden
62
Alexy Josephd464f3b2014-11-18 16:14:41 -080063ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true)
64LOCAL_CFLAGS += -DHW_ACC_HPX
65endif
66
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070067LOCAL_MODULE:= libhwacceffectswrapper
68
69include $(BUILD_STATIC_LIBRARY)
70endif