blob: 4fa1573fbd3c9a3aa5aede74eff4626a9843b49f [file] [log] [blame]
Naresh Tanniruf1290152018-11-27 12:16:45 +05301ifneq ($(AUDIO_USE_STUB_HAL), true)
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -08002LOCAL_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
Aalique Grahame22e49102018-12-18 14:23:57 -080018LOCAL_CFLAGS += -Wall
19LOCAL_CFLAGS += -Werror
Soumil Shah196157e2018-01-22 17:39:48 -080020
Mingming Yina6dad602014-05-16 12:10:55 -070021ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
Mingming Yin67e34512014-04-03 17:47:22 -070022 LOCAL_CFLAGS += -DAFE_PROXY_ENABLED
23endif
24
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080025LOCAL_SRC_FILES:= \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070026 bundle.c \
27 equalizer.c \
28 bass_boost.c \
29 virtualizer.c \
30 reverb.c \
31 effect_api.c \
32 effect_util.c
Mingming Yin497419f2015-07-01 16:57:32 -070033
34ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
35 LOCAL_CFLAGS += -DHW_ACCELERATED_EFFECTS
36 LOCAL_SRC_FILES += hw_accelerator.c
37endif
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080038
Dhananjay Kumar1c978df2015-09-04 13:44:59 +053039ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUDIOSPHERE)),true)
40 LOCAL_CFLAGS += -DAUDIOSPHERE_ENABLED
41 LOCAL_SRC_FILES += asphere.c
42endif
43
Vignesh Kulothunganbbf44972018-09-17 15:12:07 -070044ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true)
45 LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED
46endif
47
Vatsal Buchac09ae062018-11-14 13:25:08 +053048ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
49 LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
50 LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
51 LOCAL_STATIC_LIBRARIES += libprofile_rt
52endif
53
Vignesh Kulothungan9f86d7a2018-09-17 15:12:07 -070054ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true)
55 LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED
56endif
57
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080058LOCAL_CFLAGS+= -O2 -fvisibility=hidden
59
Jitendra Naruka1b6513f2014-11-22 19:34:13 -080060ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true)
61 LOCAL_CFLAGS += -DDTS_EAGLE
62endif
63
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +053064LOCAL_HEADER_LIBRARIES := libhardware_headers \
65 libsystem_headers \
66 libutils_headers
67
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080068LOCAL_SHARED_LIBRARIES := \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070069 libcutils \
70 liblog \
71 libtinyalsa \
72 libdl
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080073
74LOCAL_MODULE_TAGS := optional
75
Apoorv Raghuvanshi1b555f72014-05-29 12:48:15 -070076LOCAL_MODULE_RELATIVE_PATH := soundfx
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080077LOCAL_MODULE:= libqcompostprocbundle
Naresh Tanniru10758b62017-06-05 21:05:53 +053078LOCAL_VENDOR_MODULE := true
Aalique Grahame22e49102018-12-18 14:23:57 -080079LOCAL_MODULE_OWNER := qti
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080080
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070081LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
82
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080083LOCAL_C_INCLUDES := \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070084 external/tinyalsa/include \
Subhash Chandra Bose Naripeddy090a2aa2014-01-30 14:03:12 -080085 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
Asish Bhattacharya0b9bfb02017-07-15 08:39:36 +053086 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070087 $(call include-path-for, audio-effects)
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080088
Satish Babu Patakokila2787cee2018-03-22 11:18:42 +053089ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
Revathi Uddaraju3f4cfa42018-06-04 20:35:10 +053090 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
Asish Bhattacharyad0665872017-09-07 19:46:29 +053091 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
92 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
93endif
94
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -080095ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
96 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Satish Babu Patakokila1d3b15d2018-07-03 17:09:40 +053097 LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -080098endif
99
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -0800100include $(BUILD_SHARED_LIBRARY)
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700101
102
103ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
104include $(CLEAR_VARS)
105
Soumil Shah196157e2018-01-22 17:39:48 -0800106LOCAL_CFLAGS += -Wno-unused-variable
107LOCAL_CFLAGS += -Wno-sign-compare
108LOCAL_CFLAGS += -Wno-unused-parameter
109LOCAL_CFLAGS += -Wno-unused-label
110LOCAL_CFLAGS += -Wno-gnu-designator
111LOCAL_CFLAGS += -Wno-typedef-redefinition
112LOCAL_CFLAGS += -Wno-shorten-64-to-32
113LOCAL_CFLAGS += -Wno-tautological-compare
114LOCAL_CFLAGS += -Wno-unused-function
115LOCAL_CFLAGS += -Wno-unused-local-typedef
116LOCAL_CFLAGS += -Wno-format
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700117LOCAL_SRC_FILES := EffectsHwAcc.cpp
118
119LOCAL_C_INCLUDES := \
120 $(call include-path-for, audio-effects)
121
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +0530122LOCAL_HEADER_LIBRARIES := libhardware_headers \
123 libsystem_headers \
124 libutils_headers
125
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700126LOCAL_SHARED_LIBRARIES := \
127 liblog \
128 libeffects
129
130LOCAL_MODULE_TAGS := optional
131
132LOCAL_CFLAGS += -O2 -fvisibility=hidden
133
Alexy Josephd464f3b2014-11-18 16:14:41 -0800134ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true)
135LOCAL_CFLAGS += -DHW_ACC_HPX
136endif
137
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700138LOCAL_MODULE:= libhwacceffectswrapper
Naresh Tanniru10758b62017-06-05 21:05:53 +0530139LOCAL_VENDOR_MODULE := true
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700140
141include $(BUILD_STATIC_LIBRARY)
142endif
vivek mehta341b6f02015-06-15 16:16:11 -0700143
144
Soumil Shah196157e2018-01-22 17:39:48 -0800145
vivek mehta341b6f02015-06-15 16:16:11 -0700146################################################################################
147
Tanya Dixit6e3bccc2018-04-05 13:42:18 +0530148ifneq ($(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 -0700149
150include $(CLEAR_VARS)
151
Naresh Tanniru10758b62017-06-05 21:05:53 +0530152LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so"
Soumil Shah196157e2018-01-22 17:39:48 -0800153LOCAL_CFLAGS += -Wno-unused-variable
154LOCAL_CFLAGS += -Wno-sign-compare
155LOCAL_CFLAGS += -Wno-unused-parameter
156LOCAL_CFLAGS += -Wno-unused-label
157LOCAL_CFLAGS += -Wno-gnu-designator
158LOCAL_CFLAGS += -Wno-typedef-redefinition
159LOCAL_CFLAGS += -Wno-shorten-64-to-32
160LOCAL_CFLAGS += -Wno-tautological-compare
161LOCAL_CFLAGS += -Wno-unused-function
162LOCAL_CFLAGS += -Wno-unused-local-typedef
163LOCAL_CFLAGS += -Wno-format
Aalique Grahame22e49102018-12-18 14:23:57 -0800164LOCAL_CFLAGS += -Wall
165LOCAL_CFLAGS += -Werror
vivek mehta341b6f02015-06-15 16:16:11 -0700166
167LOCAL_SRC_FILES:= \
168 volume_listener.c
169
170LOCAL_CFLAGS+= -O2 -fvisibility=hidden
171
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +0530172LOCAL_HEADER_LIBRARIES := libhardware_headers \
173 libsystem_headers \
174 libutils_headers
175
vivek mehta341b6f02015-06-15 16:16:11 -0700176LOCAL_SHARED_LIBRARIES := \
177 libcutils \
178 liblog \
Aalique Grahame22e49102018-12-18 14:23:57 -0800179 libdl \
180 libaudioutils
vivek mehta341b6f02015-06-15 16:16:11 -0700181
182LOCAL_MODULE_RELATIVE_PATH := soundfx
183LOCAL_MODULE:= libvolumelistener
Naresh Tanniru10758b62017-06-05 21:05:53 +0530184LOCAL_VENDOR_MODULE := true
Aalique Grahame22e49102018-12-18 14:23:57 -0800185LOCAL_MODULE_OWNER := qti
vivek mehta341b6f02015-06-15 16:16:11 -0700186
Aniket Kumar Lata8e743e62017-08-14 12:36:47 -0700187LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
188
vivek mehta341b6f02015-06-15 16:16:11 -0700189LOCAL_C_INCLUDES := \
vivek mehtaa24d1ad2019-01-15 22:38:01 -0800190 vendor/qcom/opensource/audio-hal/primary-hal/hal \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -0700191 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
Aniket Kumar Lata8e743e62017-08-14 12:36:47 -0700192 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -0700193 external/tinyalsa/include \
194 $(call include-path-for, audio-effects) \
195 $(call include-path-for, audio-route) \
vivek mehtaa24d1ad2019-01-15 22:38:01 -0800196 vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn \
Aalique Grahame22e49102018-12-18 14:23:57 -0800197 external/tinycompress/include \
198 system/media/audio_utils/include
vivek mehta341b6f02015-06-15 16:16:11 -0700199
Satish Babu Patakokila2787cee2018-03-22 11:18:42 +0530200ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
Revathi Uddaraju3f4cfa42018-06-04 20:35:10 +0530201 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
Asish Bhattacharyad0665872017-09-07 19:46:29 +0530202 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
203 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
204endif
205
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -0800206ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
207 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Satish Babu Patakokila1d3b15d2018-07-03 17:09:40 +0530208 LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -0800209endif
210
vivek mehta341b6f02015-06-15 16:16:11 -0700211include $(BUILD_SHARED_LIBRARY)
212
213endif
jasmine cha75fa6f02018-03-30 15:41:33 +0800214
215################################################################################
216ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MAXX_AUDIO)), true)
217
218include $(CLEAR_VARS)
219
220LOCAL_CFLAGS := -D HAL_LIB_NAME=\"audio.primary."$(TARGET_BOARD_PLATFORM)".so\"
221
222LOCAL_SRC_FILES:= \
223 ma_listener.c
224
225LOCAL_CFLAGS += $(qcom_post_proc_common_cflags)
226
227LOCAL_SHARED_LIBRARIES := \
228 libcutils \
229 liblog \
230 libdl
231
232LOCAL_MODULE_RELATIVE_PATH := soundfx
233LOCAL_MODULE:= libmalistener
234LOCAL_MODULE_OWNER := google
235LOCAL_PROPRIETARY_MODULE := true
236
237LOCAL_C_INCLUDES := \
238 hardware/qcom/audio/hal \
239 system/media/audio/include/system \
240 $(call include-path-for, audio-effects)
241
242LOCAL_HEADER_LIBRARIES += libhardware_headers
243LOCAL_HEADER_LIBRARIES += libsystem_headers
244include $(BUILD_SHARED_LIBRARY)
245
246endif
Naresh Tanniruf1290152018-11-27 12:16:45 +0530247endif