blob: 43132eb60943124d2822c23c047e63044e13f3e3 [file] [log] [blame]
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -08001
2LOCAL_PATH:= $(call my-dir)
3
4include $(CLEAR_VARS)
5
Soumil Shah196157e2018-01-22 17:39:48 -08006LOCAL_CFLAGS += -Wno-unused-variable
7LOCAL_CFLAGS += -Wno-sign-compare
8LOCAL_CFLAGS += -Wno-unused-parameter
9LOCAL_CFLAGS += -Wno-unused-label
10LOCAL_CFLAGS += -Wno-gnu-designator
11LOCAL_CFLAGS += -Wno-typedef-redefinition
12LOCAL_CFLAGS += -Wno-shorten-64-to-32
13LOCAL_CFLAGS += -Wno-tautological-compare
14LOCAL_CFLAGS += -Wno-unused-function
15LOCAL_CFLAGS += -Wno-unused-local-typedef
16LOCAL_CFLAGS += -Wno-format
Abhishek Arpurece112352018-01-31 21:29:03 +053017LOCAL_CFLAGS += -Wno-unused-value
Soumil Shah196157e2018-01-22 17:39:48 -080018
Mingming Yina6dad602014-05-16 12:10:55 -070019ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
Mingming Yin67e34512014-04-03 17:47:22 -070020 LOCAL_CFLAGS += -DAFE_PROXY_ENABLED
21endif
22
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080023LOCAL_SRC_FILES:= \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070024 bundle.c \
25 equalizer.c \
26 bass_boost.c \
27 virtualizer.c \
28 reverb.c \
29 effect_api.c \
30 effect_util.c
Mingming Yin497419f2015-07-01 16:57:32 -070031
32ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
33 LOCAL_CFLAGS += -DHW_ACCELERATED_EFFECTS
34 LOCAL_SRC_FILES += hw_accelerator.c
35endif
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080036
Dhananjay Kumar1c978df2015-09-04 13:44:59 +053037ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUDIOSPHERE)),true)
38 LOCAL_CFLAGS += -DAUDIOSPHERE_ENABLED
39 LOCAL_SRC_FILES += asphere.c
40endif
41
Vignesh Kulothunganbbf44972018-09-17 15:12:07 -070042ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true)
43 LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED
44endif
45
Vatsal Buchac09ae062018-11-14 13:25:08 +053046ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
47 LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
48 LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
49 LOCAL_STATIC_LIBRARIES += libprofile_rt
50endif
51
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080052LOCAL_CFLAGS+= -O2 -fvisibility=hidden
53
Jitendra Naruka1b6513f2014-11-22 19:34:13 -080054ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true)
55 LOCAL_CFLAGS += -DDTS_EAGLE
56endif
57
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +053058LOCAL_HEADER_LIBRARIES := libhardware_headers \
59 libsystem_headers \
60 libutils_headers
61
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080062LOCAL_SHARED_LIBRARIES := \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070063 libcutils \
64 liblog \
65 libtinyalsa \
66 libdl
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080067
68LOCAL_MODULE_TAGS := optional
69
Apoorv Raghuvanshi1b555f72014-05-29 12:48:15 -070070LOCAL_MODULE_RELATIVE_PATH := soundfx
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080071LOCAL_MODULE:= libqcompostprocbundle
Naresh Tanniru10758b62017-06-05 21:05:53 +053072LOCAL_VENDOR_MODULE := true
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080073
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070074LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
75
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080076LOCAL_C_INCLUDES := \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070077 external/tinyalsa/include \
Subhash Chandra Bose Naripeddy090a2aa2014-01-30 14:03:12 -080078 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
Asish Bhattacharya0b9bfb02017-07-15 08:39:36 +053079 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070080 $(call include-path-for, audio-effects)
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080081
Satish Babu Patakokila2787cee2018-03-22 11:18:42 +053082ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
Revathi Uddaraju3f4cfa42018-06-04 20:35:10 +053083 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
Asish Bhattacharyad0665872017-09-07 19:46:29 +053084 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
85 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
86endif
87
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -080088ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
89 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Satish Babu Patakokila1d3b15d2018-07-03 17:09:40 +053090 LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -080091endif
92
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080093include $(BUILD_SHARED_LIBRARY)
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070094
95
96ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
97include $(CLEAR_VARS)
98
Soumil Shah196157e2018-01-22 17:39:48 -080099LOCAL_CFLAGS += -Wno-unused-variable
100LOCAL_CFLAGS += -Wno-sign-compare
101LOCAL_CFLAGS += -Wno-unused-parameter
102LOCAL_CFLAGS += -Wno-unused-label
103LOCAL_CFLAGS += -Wno-gnu-designator
104LOCAL_CFLAGS += -Wno-typedef-redefinition
105LOCAL_CFLAGS += -Wno-shorten-64-to-32
106LOCAL_CFLAGS += -Wno-tautological-compare
107LOCAL_CFLAGS += -Wno-unused-function
108LOCAL_CFLAGS += -Wno-unused-local-typedef
109LOCAL_CFLAGS += -Wno-format
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700110LOCAL_SRC_FILES := EffectsHwAcc.cpp
111
112LOCAL_C_INCLUDES := \
113 $(call include-path-for, audio-effects)
114
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +0530115LOCAL_HEADER_LIBRARIES := libhardware_headers \
116 libsystem_headers \
117 libutils_headers
118
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700119LOCAL_SHARED_LIBRARIES := \
120 liblog \
121 libeffects
122
123LOCAL_MODULE_TAGS := optional
124
125LOCAL_CFLAGS += -O2 -fvisibility=hidden
126
Alexy Josephd464f3b2014-11-18 16:14:41 -0800127ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true)
128LOCAL_CFLAGS += -DHW_ACC_HPX
129endif
130
Aditya Bavanarid3f69222017-10-04 20:59:41 +0530131ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true)
132 LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED
133endif
134
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700135LOCAL_MODULE:= libhwacceffectswrapper
Naresh Tanniru10758b62017-06-05 21:05:53 +0530136LOCAL_VENDOR_MODULE := true
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700137
138include $(BUILD_STATIC_LIBRARY)
139endif
vivek mehta341b6f02015-06-15 16:16:11 -0700140
141
Soumil Shah196157e2018-01-22 17:39:48 -0800142
vivek mehta341b6f02015-06-15 16:16:11 -0700143################################################################################
144
Tanya Dixit6e3bccc2018-04-05 13:42:18 +0530145ifneq ($(filter msm8992 msm8994 msm8996 msm8998 sdm660 sdm845 apq8098_latv sdm710 msm8953 msm8937 qcs605 msmnile $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),)
vivek mehta341b6f02015-06-15 16:16:11 -0700146
147include $(CLEAR_VARS)
148
Naresh Tanniru10758b62017-06-05 21:05:53 +0530149LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so"
Soumil Shah196157e2018-01-22 17:39:48 -0800150LOCAL_CFLAGS += -Wno-unused-variable
151LOCAL_CFLAGS += -Wno-sign-compare
152LOCAL_CFLAGS += -Wno-unused-parameter
153LOCAL_CFLAGS += -Wno-unused-label
154LOCAL_CFLAGS += -Wno-gnu-designator
155LOCAL_CFLAGS += -Wno-typedef-redefinition
156LOCAL_CFLAGS += -Wno-shorten-64-to-32
157LOCAL_CFLAGS += -Wno-tautological-compare
158LOCAL_CFLAGS += -Wno-unused-function
159LOCAL_CFLAGS += -Wno-unused-local-typedef
160LOCAL_CFLAGS += -Wno-format
vivek mehta341b6f02015-06-15 16:16:11 -0700161
162LOCAL_SRC_FILES:= \
163 volume_listener.c
164
165LOCAL_CFLAGS+= -O2 -fvisibility=hidden
166
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +0530167LOCAL_HEADER_LIBRARIES := libhardware_headers \
168 libsystem_headers \
169 libutils_headers
170
vivek mehta341b6f02015-06-15 16:16:11 -0700171LOCAL_SHARED_LIBRARIES := \
172 libcutils \
173 liblog \
174 libdl
175
176LOCAL_MODULE_RELATIVE_PATH := soundfx
177LOCAL_MODULE:= libvolumelistener
Naresh Tanniru10758b62017-06-05 21:05:53 +0530178LOCAL_VENDOR_MODULE := true
vivek mehta341b6f02015-06-15 16:16:11 -0700179
Aniket Kumar Lata8e743e62017-08-14 12:36:47 -0700180LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
181
vivek mehta341b6f02015-06-15 16:16:11 -0700182LOCAL_C_INCLUDES := \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -0700183 hardware/qcom/audio/hal \
184 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
Aniket Kumar Lata8e743e62017-08-14 12:36:47 -0700185 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -0700186 external/tinyalsa/include \
187 $(call include-path-for, audio-effects) \
188 $(call include-path-for, audio-route) \
189 hardware/qcom/audio/hal/audio_extn \
190 external/tinycompress/include
vivek mehta341b6f02015-06-15 16:16:11 -0700191
Satish Babu Patakokila2787cee2018-03-22 11:18:42 +0530192ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
Revathi Uddaraju3f4cfa42018-06-04 20:35:10 +0530193 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
Asish Bhattacharyad0665872017-09-07 19:46:29 +0530194 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
195 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
196endif
197
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -0800198ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
199 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Satish Babu Patakokila1d3b15d2018-07-03 17:09:40 +0530200 LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -0800201endif
202
vivek mehta341b6f02015-06-15 16:16:11 -0700203include $(BUILD_SHARED_LIBRARY)
204
205endif