blob: d9b367fc8a8789868be52daf93a91acf9c2ab8b2 [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
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
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700131LOCAL_MODULE:= libhwacceffectswrapper
Naresh Tanniru10758b62017-06-05 21:05:53 +0530132LOCAL_VENDOR_MODULE := true
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700133
134include $(BUILD_STATIC_LIBRARY)
135endif
vivek mehta341b6f02015-06-15 16:16:11 -0700136
137
Soumil Shah196157e2018-01-22 17:39:48 -0800138
vivek mehta341b6f02015-06-15 16:16:11 -0700139################################################################################
140
Tanya Dixit6e3bccc2018-04-05 13:42:18 +0530141ifneq ($(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 -0700142
143include $(CLEAR_VARS)
144
Naresh Tanniru10758b62017-06-05 21:05:53 +0530145LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so"
Soumil Shah196157e2018-01-22 17:39:48 -0800146LOCAL_CFLAGS += -Wno-unused-variable
147LOCAL_CFLAGS += -Wno-sign-compare
148LOCAL_CFLAGS += -Wno-unused-parameter
149LOCAL_CFLAGS += -Wno-unused-label
150LOCAL_CFLAGS += -Wno-gnu-designator
151LOCAL_CFLAGS += -Wno-typedef-redefinition
152LOCAL_CFLAGS += -Wno-shorten-64-to-32
153LOCAL_CFLAGS += -Wno-tautological-compare
154LOCAL_CFLAGS += -Wno-unused-function
155LOCAL_CFLAGS += -Wno-unused-local-typedef
156LOCAL_CFLAGS += -Wno-format
vivek mehta341b6f02015-06-15 16:16:11 -0700157
158LOCAL_SRC_FILES:= \
159 volume_listener.c
160
161LOCAL_CFLAGS+= -O2 -fvisibility=hidden
162
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +0530163LOCAL_HEADER_LIBRARIES := libhardware_headers \
164 libsystem_headers \
165 libutils_headers
166
vivek mehta341b6f02015-06-15 16:16:11 -0700167LOCAL_SHARED_LIBRARIES := \
168 libcutils \
169 liblog \
170 libdl
171
172LOCAL_MODULE_RELATIVE_PATH := soundfx
173LOCAL_MODULE:= libvolumelistener
Naresh Tanniru10758b62017-06-05 21:05:53 +0530174LOCAL_VENDOR_MODULE := true
vivek mehta341b6f02015-06-15 16:16:11 -0700175
Aniket Kumar Lata8e743e62017-08-14 12:36:47 -0700176LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
177
vivek mehta341b6f02015-06-15 16:16:11 -0700178LOCAL_C_INCLUDES := \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -0700179 hardware/qcom/audio/hal \
180 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
Aniket Kumar Lata8e743e62017-08-14 12:36:47 -0700181 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -0700182 external/tinyalsa/include \
183 $(call include-path-for, audio-effects) \
184 $(call include-path-for, audio-route) \
185 hardware/qcom/audio/hal/audio_extn \
186 external/tinycompress/include
vivek mehta341b6f02015-06-15 16:16:11 -0700187
Satish Babu Patakokila2787cee2018-03-22 11:18:42 +0530188ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
Revathi Uddaraju3f4cfa42018-06-04 20:35:10 +0530189 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
Asish Bhattacharyad0665872017-09-07 19:46:29 +0530190 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
191 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
192endif
193
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -0800194ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
195 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Satish Babu Patakokila1d3b15d2018-07-03 17:09:40 +0530196 LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -0800197endif
198
vivek mehta341b6f02015-06-15 16:16:11 -0700199include $(BUILD_SHARED_LIBRARY)
200
201endif
Naresh Tanniruf1290152018-11-27 12:16:45 +0530202endif