Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 1 | |
| 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | |
| 4 | include $(CLEAR_VARS) |
| 5 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 6 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true) |
Mingming Yin | 67e3451 | 2014-04-03 17:47:22 -0700 | [diff] [blame] | 7 | LOCAL_CFLAGS += -DAFE_PROXY_ENABLED |
| 8 | endif |
| 9 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 10 | LOCAL_SRC_FILES:= \ |
| 11 | bundle.c \ |
| 12 | equalizer.c \ |
| 13 | bass_boost.c \ |
| 14 | virtualizer.c \ |
| 15 | reverb.c \ |
Jitendra Naruka | 1b6513f | 2014-11-22 19:34:13 -0800 | [diff] [blame] | 16 | effect_api.c \ |
Mingming Yin | 497419f | 2015-07-01 16:57:32 -0700 | [diff] [blame] | 17 | effect_util.c |
| 18 | |
| 19 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true) |
| 20 | LOCAL_CFLAGS += -DHW_ACCELERATED_EFFECTS |
| 21 | LOCAL_SRC_FILES += hw_accelerator.c |
| 22 | endif |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 23 | |
Dhananjay Kumar | 1c978df | 2015-09-04 13:44:59 +0530 | [diff] [blame] | 24 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUDIOSPHERE)),true) |
| 25 | LOCAL_CFLAGS += -DAUDIOSPHERE_ENABLED |
| 26 | LOCAL_SRC_FILES += asphere.c |
| 27 | endif |
| 28 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 29 | LOCAL_CFLAGS+= -O2 -fvisibility=hidden |
| 30 | |
Jitendra Naruka | 1b6513f | 2014-11-22 19:34:13 -0800 | [diff] [blame] | 31 | ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true) |
| 32 | LOCAL_CFLAGS += -DDTS_EAGLE |
| 33 | endif |
| 34 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 35 | LOCAL_SHARED_LIBRARIES := \ |
| 36 | libcutils \ |
| 37 | liblog \ |
Dhananjay Kumar | 5f15ff9 | 2014-05-19 16:45:08 +0800 | [diff] [blame] | 38 | libtinyalsa \ |
| 39 | libdl |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 40 | |
| 41 | LOCAL_MODULE_TAGS := optional |
| 42 | |
Apoorv Raghuvanshi | 1b555f7 | 2014-05-29 12:48:15 -0700 | [diff] [blame] | 43 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 44 | LOCAL_MODULE:= libqcompostprocbundle |
| 45 | |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 46 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 47 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 48 | LOCAL_C_INCLUDES := \ |
| 49 | external/tinyalsa/include \ |
Subhash Chandra Bose Naripeddy | 090a2aa | 2014-01-30 14:03:12 -0800 | [diff] [blame] | 50 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \ |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 51 | $(call include-path-for, audio-effects) |
| 52 | |
| 53 | include $(BUILD_SHARED_LIBRARY) |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 54 | |
| 55 | |
| 56 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true) |
| 57 | include $(CLEAR_VARS) |
| 58 | |
| 59 | LOCAL_SRC_FILES := EffectsHwAcc.cpp |
| 60 | |
| 61 | LOCAL_C_INCLUDES := \ |
| 62 | $(call include-path-for, audio-effects) |
| 63 | |
| 64 | LOCAL_SHARED_LIBRARIES := \ |
| 65 | liblog \ |
| 66 | libeffects |
| 67 | |
| 68 | LOCAL_MODULE_TAGS := optional |
| 69 | |
| 70 | LOCAL_CFLAGS += -O2 -fvisibility=hidden |
| 71 | |
Alexy Joseph | d464f3b | 2014-11-18 16:14:41 -0800 | [diff] [blame] | 72 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true) |
| 73 | LOCAL_CFLAGS += -DHW_ACC_HPX |
| 74 | endif |
| 75 | |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 76 | LOCAL_MODULE:= libhwacceffectswrapper |
| 77 | |
| 78 | include $(BUILD_STATIC_LIBRARY) |
| 79 | endif |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 80 | |
| 81 | |
| 82 | ################################################################################ |
| 83 | |
Banajit Goswami | 4c0dff2 | 2016-03-04 18:31:22 -0800 | [diff] [blame] | 84 | ifneq ($(filter msm8992 msm8994 msm8996 msmcobalt,$(TARGET_BOARD_PLATFORM)),) |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 85 | |
| 86 | include $(CLEAR_VARS) |
| 87 | |
| 88 | LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/system/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so" |
| 89 | |
| 90 | LOCAL_SRC_FILES:= \ |
| 91 | volume_listener.c |
| 92 | |
| 93 | LOCAL_CFLAGS+= -O2 -fvisibility=hidden |
| 94 | |
| 95 | LOCAL_SHARED_LIBRARIES := \ |
| 96 | libcutils \ |
| 97 | liblog \ |
| 98 | libdl |
| 99 | |
| 100 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
| 101 | LOCAL_MODULE:= libvolumelistener |
| 102 | |
| 103 | LOCAL_C_INCLUDES := \ |
| 104 | $(call include-path-for, audio-effects) |
| 105 | |
| 106 | include $(BUILD_SHARED_LIBRARY) |
| 107 | |
| 108 | endif |