Naresh Tanniru | f129015 | 2018-11-27 12:16:45 +0530 | [diff] [blame] | 1 | ifneq ($(AUDIO_USE_STUB_HAL), true) |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | |
| 4 | include $(CLEAR_VARS) |
| 5 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 6 | LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so" |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 7 | LOCAL_CFLAGS += -Wno-unused-variable |
| 8 | LOCAL_CFLAGS += -Wno-sign-compare |
| 9 | LOCAL_CFLAGS += -Wno-unused-parameter |
| 10 | LOCAL_CFLAGS += -Wno-unused-label |
| 11 | LOCAL_CFLAGS += -Wno-gnu-designator |
| 12 | LOCAL_CFLAGS += -Wno-typedef-redefinition |
| 13 | LOCAL_CFLAGS += -Wno-shorten-64-to-32 |
| 14 | LOCAL_CFLAGS += -Wno-tautological-compare |
| 15 | LOCAL_CFLAGS += -Wno-unused-function |
| 16 | LOCAL_CFLAGS += -Wno-unused-local-typedef |
| 17 | LOCAL_CFLAGS += -Wno-format |
Abhishek Arpure | ce11235 | 2018-01-31 21:29:03 +0530 | [diff] [blame] | 18 | LOCAL_CFLAGS += -Wno-unused-value |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 19 | LOCAL_CFLAGS += -Wall |
| 20 | LOCAL_CFLAGS += -Werror |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 21 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 22 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true) |
Mingming Yin | 67e3451 | 2014-04-03 17:47:22 -0700 | [diff] [blame] | 23 | LOCAL_CFLAGS += -DAFE_PROXY_ENABLED |
| 24 | endif |
| 25 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 26 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | f56b640 | 2016-10-27 12:03:18 -0700 | [diff] [blame] | 27 | bundle.c \ |
| 28 | equalizer.c \ |
| 29 | bass_boost.c \ |
| 30 | virtualizer.c \ |
| 31 | reverb.c \ |
| 32 | effect_api.c \ |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 33 | effect_util.c \ |
| 34 | asphere.c |
Mingming Yin | 497419f | 2015-07-01 16:57:32 -0700 | [diff] [blame] | 35 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 36 | # HW_ACCELERATED has been disabled by default since msm8996. File doesn't |
| 37 | # compile cleanly on tip so don't want to include it, but keeping this |
| 38 | # as a reference. |
| 39 | # LOCAL_SRC_FILES += hw_accelerator.c |
Dhananjay Kumar | 1c978df | 2015-09-04 13:44:59 +0530 | [diff] [blame] | 40 | |
Vignesh Kulothungan | bbf4497 | 2018-09-17 15:12:07 -0700 | [diff] [blame] | 41 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true) |
| 42 | LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED |
| 43 | endif |
| 44 | |
Vatsal Bucha | c09ae06 | 2018-11-14 13:25:08 +0530 | [diff] [blame] | 45 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true) |
| 46 | LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 47 | LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 48 | LOCAL_STATIC_LIBRARIES += libprofile_rt |
| 49 | endif |
| 50 | |
Vignesh Kulothungan | 9f86d7a | 2018-09-17 15:12:07 -0700 | [diff] [blame] | 51 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true) |
| 52 | LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED |
| 53 | endif |
| 54 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 55 | LOCAL_CFLAGS+= -O2 -fvisibility=hidden |
| 56 | |
Jitendra Naruka | 1b6513f | 2014-11-22 19:34:13 -0800 | [diff] [blame] | 57 | ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true) |
| 58 | LOCAL_CFLAGS += -DDTS_EAGLE |
| 59 | endif |
| 60 | |
Revathi Uddaraju | e8bd13c | 2018-04-02 21:27:54 +0530 | [diff] [blame] | 61 | LOCAL_HEADER_LIBRARIES := libhardware_headers \ |
| 62 | libsystem_headers \ |
| 63 | libutils_headers |
| 64 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 65 | LOCAL_SHARED_LIBRARIES := \ |
Aniket Kumar Lata | f56b640 | 2016-10-27 12:03:18 -0700 | [diff] [blame] | 66 | libcutils \ |
| 67 | liblog \ |
| 68 | libtinyalsa \ |
| 69 | libdl |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 70 | |
| 71 | LOCAL_MODULE_TAGS := optional |
| 72 | |
Apoorv Raghuvanshi | 1b555f7 | 2014-05-29 12:48:15 -0700 | [diff] [blame] | 73 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 74 | LOCAL_MODULE:= libqcompostprocbundle |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 75 | LOCAL_VENDOR_MODULE := true |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 76 | LOCAL_MODULE_OWNER := qti |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 77 | |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 78 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 79 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 80 | LOCAL_C_INCLUDES := \ |
Aniket Kumar Lata | f56b640 | 2016-10-27 12:03:18 -0700 | [diff] [blame] | 81 | external/tinyalsa/include \ |
Aniket Kumar Lata | 808e8d6 | 2019-01-28 22:54:28 -0800 | [diff] [blame] | 82 | vendor/qcom/opensource/audio-hal/primary-hal/hal \ |
Subhash Chandra Bose Naripeddy | 090a2aa | 2014-01-30 14:03:12 -0800 | [diff] [blame] | 83 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \ |
Asish Bhattacharya | 0b9bfb0 | 2017-07-15 08:39:36 +0530 | [diff] [blame] | 84 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \ |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 85 | $(call include-path-for, audio-effects) \ |
| 86 | vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/ |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 87 | |
Satish Babu Patakokila | 2787cee | 2018-03-22 11:18:42 +0530 | [diff] [blame] | 88 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
Revathi Uddaraju | 3f4cfa4 | 2018-06-04 20:35:10 +0530 | [diff] [blame] | 89 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Asish Bhattacharya | d066587 | 2017-09-07 19:46:29 +0530 | [diff] [blame] | 90 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Asish Bhattacharya | d066587 | 2017-09-07 19:46:29 +0530 | [diff] [blame] | 91 | endif |
| 92 | |
Srinivas Rao Narne | 8ff4db5 | 2018-01-25 16:04:44 -0800 | [diff] [blame] | 93 | ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) |
| 94 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
Satish Babu Patakokila | 1d3b15d | 2018-07-03 17:09:40 +0530 | [diff] [blame] | 95 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Srinivas Rao Narne | 8ff4db5 | 2018-01-25 16:04:44 -0800 | [diff] [blame] | 96 | endif |
| 97 | |
Subhash Chandra Bose Naripeddy | 3eedc00 | 2013-11-12 20:45:15 -0800 | [diff] [blame] | 98 | include $(BUILD_SHARED_LIBRARY) |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 99 | |
| 100 | |
| 101 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true) |
| 102 | include $(CLEAR_VARS) |
| 103 | |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 104 | LOCAL_CFLAGS += -Wno-unused-variable |
| 105 | LOCAL_CFLAGS += -Wno-sign-compare |
| 106 | LOCAL_CFLAGS += -Wno-unused-parameter |
| 107 | LOCAL_CFLAGS += -Wno-unused-label |
| 108 | LOCAL_CFLAGS += -Wno-gnu-designator |
| 109 | LOCAL_CFLAGS += -Wno-typedef-redefinition |
| 110 | LOCAL_CFLAGS += -Wno-shorten-64-to-32 |
| 111 | LOCAL_CFLAGS += -Wno-tautological-compare |
| 112 | LOCAL_CFLAGS += -Wno-unused-function |
| 113 | LOCAL_CFLAGS += -Wno-unused-local-typedef |
| 114 | LOCAL_CFLAGS += -Wno-format |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 115 | LOCAL_SRC_FILES := EffectsHwAcc.cpp |
| 116 | |
| 117 | LOCAL_C_INCLUDES := \ |
| 118 | $(call include-path-for, audio-effects) |
| 119 | |
Revathi Uddaraju | e8bd13c | 2018-04-02 21:27:54 +0530 | [diff] [blame] | 120 | LOCAL_HEADER_LIBRARIES := libhardware_headers \ |
| 121 | libsystem_headers \ |
| 122 | libutils_headers |
| 123 | |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 124 | LOCAL_SHARED_LIBRARIES := \ |
| 125 | liblog \ |
| 126 | libeffects |
| 127 | |
| 128 | LOCAL_MODULE_TAGS := optional |
| 129 | |
| 130 | LOCAL_CFLAGS += -O2 -fvisibility=hidden |
| 131 | |
Alexy Joseph | d464f3b | 2014-11-18 16:14:41 -0800 | [diff] [blame] | 132 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true) |
| 133 | LOCAL_CFLAGS += -DHW_ACC_HPX |
| 134 | endif |
| 135 | |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 136 | LOCAL_MODULE:= libhwacceffectswrapper |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 137 | LOCAL_VENDOR_MODULE := true |
Subhash Chandra Bose Naripeddy | e40a7cd | 2014-06-03 19:42:41 -0700 | [diff] [blame] | 138 | |
| 139 | include $(BUILD_STATIC_LIBRARY) |
| 140 | endif |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 141 | |
| 142 | |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 143 | |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 144 | ################################################################################ |
| 145 | |
Deepthi Gunturi | 81a7f80 | 2019-04-22 11:33:05 +0530 | [diff] [blame^] | 146 | ifneq ($(filter msm8992 msm8994 msm8996 msm8998 sdm660 sdm845 apq8098_latv sdm710 msm8953 msm8937 qcs605 msmnile kona atoll $(MSMSTEPPE) $(TRINKET) lito,$(TARGET_BOARD_PLATFORM)),) |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 147 | |
| 148 | include $(CLEAR_VARS) |
| 149 | |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 150 | LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so" |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 151 | LOCAL_CFLAGS += -Wno-unused-variable |
| 152 | LOCAL_CFLAGS += -Wno-sign-compare |
| 153 | LOCAL_CFLAGS += -Wno-unused-parameter |
| 154 | LOCAL_CFLAGS += -Wno-unused-label |
| 155 | LOCAL_CFLAGS += -Wno-gnu-designator |
| 156 | LOCAL_CFLAGS += -Wno-typedef-redefinition |
| 157 | LOCAL_CFLAGS += -Wno-shorten-64-to-32 |
| 158 | LOCAL_CFLAGS += -Wno-tautological-compare |
| 159 | LOCAL_CFLAGS += -Wno-unused-function |
| 160 | LOCAL_CFLAGS += -Wno-unused-local-typedef |
| 161 | LOCAL_CFLAGS += -Wno-format |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 162 | LOCAL_CFLAGS += -Wall |
| 163 | LOCAL_CFLAGS += -Werror |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 164 | |
| 165 | LOCAL_SRC_FILES:= \ |
| 166 | volume_listener.c |
| 167 | |
| 168 | LOCAL_CFLAGS+= -O2 -fvisibility=hidden |
| 169 | |
Revathi Uddaraju | e8bd13c | 2018-04-02 21:27:54 +0530 | [diff] [blame] | 170 | LOCAL_HEADER_LIBRARIES := libhardware_headers \ |
| 171 | libsystem_headers \ |
| 172 | libutils_headers |
| 173 | |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 174 | LOCAL_SHARED_LIBRARIES := \ |
| 175 | libcutils \ |
| 176 | liblog \ |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 177 | libdl \ |
| 178 | libaudioutils |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 179 | |
| 180 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
| 181 | LOCAL_MODULE:= libvolumelistener |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 182 | LOCAL_VENDOR_MODULE := true |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 183 | LOCAL_MODULE_OWNER := qti |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 184 | |
Aniket Kumar Lata | 8e743e6 | 2017-08-14 12:36:47 -0700 | [diff] [blame] | 185 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 186 | |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 187 | LOCAL_C_INCLUDES := \ |
vivek mehta | a24d1ad | 2019-01-15 22:38:01 -0800 | [diff] [blame] | 188 | vendor/qcom/opensource/audio-hal/primary-hal/hal \ |
Aniket Kumar Lata | f56b640 | 2016-10-27 12:03:18 -0700 | [diff] [blame] | 189 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \ |
Aniket Kumar Lata | 8e743e6 | 2017-08-14 12:36:47 -0700 | [diff] [blame] | 190 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \ |
Aniket Kumar Lata | f56b640 | 2016-10-27 12:03:18 -0700 | [diff] [blame] | 191 | external/tinyalsa/include \ |
| 192 | $(call include-path-for, audio-effects) \ |
| 193 | $(call include-path-for, audio-route) \ |
vivek mehta | a24d1ad | 2019-01-15 22:38:01 -0800 | [diff] [blame] | 194 | vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn \ |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 195 | external/tinycompress/include \ |
| 196 | system/media/audio_utils/include |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 197 | |
Satish Babu Patakokila | 2787cee | 2018-03-22 11:18:42 +0530 | [diff] [blame] | 198 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
Revathi Uddaraju | 3f4cfa4 | 2018-06-04 20:35:10 +0530 | [diff] [blame] | 199 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Asish Bhattacharya | d066587 | 2017-09-07 19:46:29 +0530 | [diff] [blame] | 200 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Asish Bhattacharya | d066587 | 2017-09-07 19:46:29 +0530 | [diff] [blame] | 201 | endif |
| 202 | |
Srinivas Rao Narne | 8ff4db5 | 2018-01-25 16:04:44 -0800 | [diff] [blame] | 203 | ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) |
| 204 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
Satish Babu Patakokila | 1d3b15d | 2018-07-03 17:09:40 +0530 | [diff] [blame] | 205 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Srinivas Rao Narne | 8ff4db5 | 2018-01-25 16:04:44 -0800 | [diff] [blame] | 206 | endif |
| 207 | |
vivek mehta | 341b6f0 | 2015-06-15 16:16:11 -0700 | [diff] [blame] | 208 | include $(BUILD_SHARED_LIBRARY) |
| 209 | |
| 210 | endif |
jasmine cha | 75fa6f0 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 211 | |
| 212 | ################################################################################ |
| 213 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MAXX_AUDIO)), true) |
| 214 | |
| 215 | include $(CLEAR_VARS) |
| 216 | |
| 217 | LOCAL_CFLAGS := -D HAL_LIB_NAME=\"audio.primary."$(TARGET_BOARD_PLATFORM)".so\" |
| 218 | |
| 219 | LOCAL_SRC_FILES:= \ |
Aalique Grahame | 5ce7fbe | 2019-01-28 12:08:13 -0800 | [diff] [blame] | 220 | ma_listener.c |
jasmine cha | 75fa6f0 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 221 | |
| 222 | LOCAL_CFLAGS += $(qcom_post_proc_common_cflags) |
| 223 | |
| 224 | LOCAL_SHARED_LIBRARIES := \ |
Aalique Grahame | 5ce7fbe | 2019-01-28 12:08:13 -0800 | [diff] [blame] | 225 | libcutils \ |
| 226 | liblog \ |
| 227 | libdl |
jasmine cha | 75fa6f0 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 228 | |
| 229 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
| 230 | LOCAL_MODULE:= libmalistener |
| 231 | LOCAL_MODULE_OWNER := google |
| 232 | LOCAL_PROPRIETARY_MODULE := true |
| 233 | |
| 234 | LOCAL_C_INCLUDES := \ |
Aalique Grahame | 5ce7fbe | 2019-01-28 12:08:13 -0800 | [diff] [blame] | 235 | hardware/qcom/audio/hal \ |
| 236 | system/media/audio/include/system \ |
| 237 | $(call include-path-for, audio-effects) |
jasmine cha | 75fa6f0 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 238 | |
| 239 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 240 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
| 241 | include $(BUILD_SHARED_LIBRARY) |
| 242 | |
| 243 | endif |
Naresh Tanniru | f129015 | 2018-11-27 12:16:45 +0530 | [diff] [blame] | 244 | endif |