blob: 637a1f36a45a69fe004c4bece7e922b3da187ee2 [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
Vignesh Kulothungan9f86d7a2018-09-17 15:12:07 -070052ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true)
53 LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED
54endif
55
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080056LOCAL_CFLAGS+= -O2 -fvisibility=hidden
57
Jitendra Naruka1b6513f2014-11-22 19:34:13 -080058ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true)
59 LOCAL_CFLAGS += -DDTS_EAGLE
60endif
61
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +053062LOCAL_HEADER_LIBRARIES := libhardware_headers \
63 libsystem_headers \
64 libutils_headers
65
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080066LOCAL_SHARED_LIBRARIES := \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070067 libcutils \
68 liblog \
69 libtinyalsa \
70 libdl
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080071
72LOCAL_MODULE_TAGS := optional
73
Apoorv Raghuvanshi1b555f72014-05-29 12:48:15 -070074LOCAL_MODULE_RELATIVE_PATH := soundfx
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080075LOCAL_MODULE:= libqcompostprocbundle
Naresh Tanniru10758b62017-06-05 21:05:53 +053076LOCAL_VENDOR_MODULE := true
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080077
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070078LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
79
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080080LOCAL_C_INCLUDES := \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070081 external/tinyalsa/include \
Subhash Chandra Bose Naripeddy090a2aa2014-01-30 14:03:12 -080082 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
Asish Bhattacharya0b9bfb02017-07-15 08:39:36 +053083 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \
Aniket Kumar Lataf56b6402016-10-27 12:03:18 -070084 $(call include-path-for, audio-effects)
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080085
Satish Babu Patakokila2787cee2018-03-22 11:18:42 +053086ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
Revathi Uddaraju3f4cfa42018-06-04 20:35:10 +053087 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
Asish Bhattacharyad0665872017-09-07 19:46:29 +053088 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
89 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
90endif
91
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -080092ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
93 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Satish Babu Patakokila1d3b15d2018-07-03 17:09:40 +053094 LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Srinivas Rao Narne8ff4db52018-01-25 16:04:44 -080095endif
96
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -080097include $(BUILD_SHARED_LIBRARY)
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -070098
99
100ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
101include $(CLEAR_VARS)
102
Soumil Shah196157e2018-01-22 17:39:48 -0800103LOCAL_CFLAGS += -Wno-unused-variable
104LOCAL_CFLAGS += -Wno-sign-compare
105LOCAL_CFLAGS += -Wno-unused-parameter
106LOCAL_CFLAGS += -Wno-unused-label
107LOCAL_CFLAGS += -Wno-gnu-designator
108LOCAL_CFLAGS += -Wno-typedef-redefinition
109LOCAL_CFLAGS += -Wno-shorten-64-to-32
110LOCAL_CFLAGS += -Wno-tautological-compare
111LOCAL_CFLAGS += -Wno-unused-function
112LOCAL_CFLAGS += -Wno-unused-local-typedef
113LOCAL_CFLAGS += -Wno-format
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700114LOCAL_SRC_FILES := EffectsHwAcc.cpp
115
116LOCAL_C_INCLUDES := \
117 $(call include-path-for, audio-effects)
118
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +0530119LOCAL_HEADER_LIBRARIES := libhardware_headers \
120 libsystem_headers \
121 libutils_headers
122
Subhash Chandra Bose Naripeddye40a7cd2014-06-03 19:42:41 -0700123LOCAL_SHARED_LIBRARIES := \
124 liblog \
125 libeffects
126
127LOCAL_MODULE_TAGS := optional
128
129LOCAL_CFLAGS += -O2 -fvisibility=hidden
130
Alexy Josephd464f3b2014-11-18 16:14:41 -0800131ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true)
132LOCAL_CFLAGS += -DHW_ACC_HPX
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
Naresh Tanniruf1290152018-11-27 12:16:45 +0530206endif