blob: 774198d8433e034e434825bbcc0a03bfb9964863 [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
Arun Mirpurib1bec9c2019-01-29 16:42:45 -08006LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so"
Soumil Shah196157e2018-01-22 17:39:48 -08007LOCAL_CFLAGS += -Wno-unused-variable
8LOCAL_CFLAGS += -Wno-sign-compare
9LOCAL_CFLAGS += -Wno-unused-parameter
10LOCAL_CFLAGS += -Wno-unused-label
11LOCAL_CFLAGS += -Wno-gnu-designator
12LOCAL_CFLAGS += -Wno-typedef-redefinition
13LOCAL_CFLAGS += -Wno-shorten-64-to-32
14LOCAL_CFLAGS += -Wno-tautological-compare
15LOCAL_CFLAGS += -Wno-unused-function
16LOCAL_CFLAGS += -Wno-unused-local-typedef
17LOCAL_CFLAGS += -Wno-format
Abhishek Arpurece112352018-01-31 21:29:03 +053018LOCAL_CFLAGS += -Wno-unused-value
Aalique Grahame22e49102018-12-18 14:23:57 -080019LOCAL_CFLAGS += -Wall
20LOCAL_CFLAGS += -Werror
Soumil Shah196157e2018-01-22 17:39:48 -080021
Mingming Yina6dad602014-05-16 12:10:55 -070022ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
Mingming Yin67e34512014-04-03 17:47:22 -070023 LOCAL_CFLAGS += -DAFE_PROXY_ENABLED
24endif
25
Akhil Karuturi60c23472020-05-19 22:19:00 -070026ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GKI)),true)
27 LOCAL_CFLAGS += -DAUDIO_GKI_ENABLED
28endif
29
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080030LOCAL_SRC_FILES:= \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070031 bundle.c \
32 equalizer.c \
33 bass_boost.c \
34 virtualizer.c \
35 reverb.c \
36 effect_api.c \
Weiyin Jiangfd19e982019-07-05 11:20:28 +080037 effect_util.c
Mingming Yin497419f2015-07-01 16:57:32 -070038
Arun Mirpurib1bec9c2019-01-29 16:42:45 -080039# HW_ACCELERATED has been disabled by default since msm8996. File doesn't
40# compile cleanly on tip so don't want to include it, but keeping this
41# as a reference.
42# LOCAL_SRC_FILES += hw_accelerator.c
Dhananjay Kumar1c978df2015-09-04 13:44:59 +053043
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 \
Aniket Kumar Lata808e8d62019-01-28 22:54:28 -080085 vendor/qcom/opensource/audio-hal/primary-hal/hal \
Subhash Chandra Bose Naripeddy090a2aa2014-01-30 14:03:12 -080086 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
Vignesh Kulothunganc49bdfa2020-01-08 14:24:17 -080087 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio \
Asish Bhattacharya0b9bfb02017-07-15 08:39:36 +053088 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \
Arun Mirpurib1bec9c2019-01-29 16:42:45 -080089 $(call include-path-for, audio-effects) \
90 vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080091
Satish Babu Patakokila2787cee2018-03-22 11:18:42 +053092ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
Revathi Uddaraju3f4cfa42018-06-04 20:35:10 +053093 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
Asish Bhattacharyad0665872017-09-07 19:46:29 +053094 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
Asish Bhattacharyad0665872017-09-07 19:46:29 +053095endif
96
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -080097ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
98 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Satish Babu Patakokila1d3b15d2018-07-03 17:09:40 +053099 LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -0800100endif
101
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530102ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -0700103LOCAL_SANITIZE := integer_overflow
104endif
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -0800105include $(BUILD_SHARED_LIBRARY)
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700106
107
108ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
109include $(CLEAR_VARS)
110
Soumil Shah196157e2018-01-22 17:39:48 -0800111LOCAL_CFLAGS += -Wno-unused-variable
112LOCAL_CFLAGS += -Wno-sign-compare
113LOCAL_CFLAGS += -Wno-unused-parameter
114LOCAL_CFLAGS += -Wno-unused-label
115LOCAL_CFLAGS += -Wno-gnu-designator
116LOCAL_CFLAGS += -Wno-typedef-redefinition
117LOCAL_CFLAGS += -Wno-shorten-64-to-32
118LOCAL_CFLAGS += -Wno-tautological-compare
119LOCAL_CFLAGS += -Wno-unused-function
120LOCAL_CFLAGS += -Wno-unused-local-typedef
121LOCAL_CFLAGS += -Wno-format
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700122LOCAL_SRC_FILES := EffectsHwAcc.cpp
123
124LOCAL_C_INCLUDES := \
125 $(call include-path-for, audio-effects)
126
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +0530127LOCAL_HEADER_LIBRARIES := libhardware_headers \
128 libsystem_headers \
129 libutils_headers
130
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700131LOCAL_SHARED_LIBRARIES := \
132 liblog \
133 libeffects
134
135LOCAL_MODULE_TAGS := optional
136
137LOCAL_CFLAGS += -O2 -fvisibility=hidden
138
Alexy Josephd464f3b2014-11-18 16:14:41 -0800139ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true)
140LOCAL_CFLAGS += -DHW_ACC_HPX
141endif
142
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700143LOCAL_MODULE:= libhwacceffectswrapper
Naresh Tanniru10758b62017-06-05 21:05:53 +0530144LOCAL_VENDOR_MODULE := true
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700145
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530146ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -0700147LOCAL_SANITIZE := unsigned-integer-overflow signed-integer-overflow
148endif
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700149include $(BUILD_STATIC_LIBRARY)
150endif
vivek mehta341b6f02015-06-15 16:16:11 -0700151
152
Soumil Shah196157e2018-01-22 17:39:48 -0800153
vivek mehta341b6f02015-06-15 16:16:11 -0700154################################################################################
155
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530156ifneq ($(filter msm8992 msm8994 msm8996 msm8998 sdm660 sdm845 apq8098_latv sdm710 msm8953 msm8937 qcs605 sdmshrike msmnile kona lahaina holi atoll $(MSMSTEPPE) $(TRINKET) lito,$(TARGET_BOARD_PLATFORM)),)
vivek mehta341b6f02015-06-15 16:16:11 -0700157
158include $(CLEAR_VARS)
159
Naresh Tanniru10758b62017-06-05 21:05:53 +0530160LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so"
Soumil Shah196157e2018-01-22 17:39:48 -0800161LOCAL_CFLAGS += -Wno-unused-variable
162LOCAL_CFLAGS += -Wno-sign-compare
163LOCAL_CFLAGS += -Wno-unused-parameter
164LOCAL_CFLAGS += -Wno-unused-label
165LOCAL_CFLAGS += -Wno-gnu-designator
166LOCAL_CFLAGS += -Wno-typedef-redefinition
167LOCAL_CFLAGS += -Wno-shorten-64-to-32
168LOCAL_CFLAGS += -Wno-tautological-compare
169LOCAL_CFLAGS += -Wno-unused-function
170LOCAL_CFLAGS += -Wno-unused-local-typedef
171LOCAL_CFLAGS += -Wno-format
Aalique Grahame22e49102018-12-18 14:23:57 -0800172LOCAL_CFLAGS += -Wall
173LOCAL_CFLAGS += -Werror
vivek mehta341b6f02015-06-15 16:16:11 -0700174
175LOCAL_SRC_FILES:= \
176 volume_listener.c
177
178LOCAL_CFLAGS+= -O2 -fvisibility=hidden
179
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +0530180LOCAL_HEADER_LIBRARIES := libhardware_headers \
181 libsystem_headers \
182 libutils_headers
183
vivek mehta341b6f02015-06-15 16:16:11 -0700184LOCAL_SHARED_LIBRARIES := \
185 libcutils \
186 liblog \
Aalique Grahame22e49102018-12-18 14:23:57 -0800187 libdl \
188 libaudioutils
vivek mehta341b6f02015-06-15 16:16:11 -0700189
190LOCAL_MODULE_RELATIVE_PATH := soundfx
191LOCAL_MODULE:= libvolumelistener
Naresh Tanniru10758b62017-06-05 21:05:53 +0530192LOCAL_VENDOR_MODULE := true
Aalique Grahame22e49102018-12-18 14:23:57 -0800193LOCAL_MODULE_OWNER := qti
vivek mehta341b6f02015-06-15 16:16:11 -0700194
Aniket Kumar Lata8e743e62017-08-14 12:36:47 -0700195LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
196
vivek mehta341b6f02015-06-15 16:16:11 -0700197LOCAL_C_INCLUDES := \
vivek mehtaa24d1ad2019-01-15 22:38:01 -0800198 vendor/qcom/opensource/audio-hal/primary-hal/hal \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -0700199 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
Vignesh Kulothunganc49bdfa2020-01-08 14:24:17 -0800200 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio \
Aniket Kumar Lata8e743e62017-08-14 12:36:47 -0700201 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -0700202 external/tinyalsa/include \
203 $(call include-path-for, audio-effects) \
204 $(call include-path-for, audio-route) \
vivek mehtaa24d1ad2019-01-15 22:38:01 -0800205 vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn \
Aalique Grahame22e49102018-12-18 14:23:57 -0800206 external/tinycompress/include \
207 system/media/audio_utils/include
vivek mehta341b6f02015-06-15 16:16:11 -0700208
Satish Babu Patakokila2787cee2018-03-22 11:18:42 +0530209ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
Revathi Uddaraju3f4cfa42018-06-04 20:35:10 +0530210 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
Asish Bhattacharyad0665872017-09-07 19:46:29 +0530211 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
Asish Bhattacharyad0665872017-09-07 19:46:29 +0530212endif
213
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -0800214ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
215 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Satish Babu Patakokila1d3b15d2018-07-03 17:09:40 +0530216 LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -0800217endif
218
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530219ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -0700220LOCAL_SANITIZE := integer_overflow
221endif
vivek mehta341b6f02015-06-15 16:16:11 -0700222include $(BUILD_SHARED_LIBRARY)
223
224endif
jasmine cha75fa6f02018-03-30 15:41:33 +0800225
226################################################################################
227ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MAXX_AUDIO)), true)
228
229include $(CLEAR_VARS)
230
231LOCAL_CFLAGS := -D HAL_LIB_NAME=\"audio.primary."$(TARGET_BOARD_PLATFORM)".so\"
232
233LOCAL_SRC_FILES:= \
Aalique Grahame5ce7fbe2019-01-28 12:08:13 -0800234 ma_listener.c
jasmine cha75fa6f02018-03-30 15:41:33 +0800235
236LOCAL_CFLAGS += $(qcom_post_proc_common_cflags)
237
238LOCAL_SHARED_LIBRARIES := \
Aalique Grahame5ce7fbe2019-01-28 12:08:13 -0800239 libcutils \
240 liblog \
241 libdl
jasmine cha75fa6f02018-03-30 15:41:33 +0800242
243LOCAL_MODULE_RELATIVE_PATH := soundfx
244LOCAL_MODULE:= libmalistener
245LOCAL_MODULE_OWNER := google
246LOCAL_PROPRIETARY_MODULE := true
247
248LOCAL_C_INCLUDES := \
Aalique Grahame5ce7fbe2019-01-28 12:08:13 -0800249 hardware/qcom/audio/hal \
250 system/media/audio/include/system \
251 $(call include-path-for, audio-effects)
jasmine cha75fa6f02018-03-30 15:41:33 +0800252
253LOCAL_HEADER_LIBRARIES += libhardware_headers
254LOCAL_HEADER_LIBRARIES += libsystem_headers
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530255ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -0700256LOCAL_SANITIZE := integer_overflow
257endif
jasmine cha75fa6f02018-03-30 15:41:33 +0800258include $(BUILD_SHARED_LIBRARY)
259
260endif
Naresh Tanniruf1290152018-11-27 12:16:45 +0530261endif