Bruno Martins | 8586f43 | 2020-02-01 14:45:33 +0000 | [diff] [blame] | 1 | ifneq ($(strip $(TARGET_PROVIDES_AUDIO_EXTNS)),true) |
| 2 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 3 | #-------------------------------------------- |
| 4 | # Build SND_MONITOR LIB |
| 5 | #-------------------------------------------- |
| 6 | LOCAL_PATH:= $(call my-dir) |
| 7 | |
| 8 | include $(CLEAR_VARS) |
| 9 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 10 | LOCAL_MODULE := libsndmonitor |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 11 | LOCAL_MODULE_OWNER := third_party |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 12 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 13 | |
| 14 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 15 | |
| 16 | LOCAL_SRC_FILES:= \ |
| 17 | sndmonitor.c |
| 18 | |
| 19 | LOCAL_CFLAGS += \ |
| 20 | -Wall \ |
| 21 | -Werror \ |
| 22 | -Wno-unused-function \ |
| 23 | -Wno-unused-variable \ |
| 24 | |
| 25 | LOCAL_SHARED_LIBRARIES := \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 26 | libaudioutils \ |
| 27 | libcutils \ |
| 28 | liblog \ |
| 29 | libtinyalsa \ |
| 30 | libtinycompress \ |
| 31 | libaudioroute \ |
| 32 | libdl \ |
| 33 | libexpat |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 34 | |
| 35 | LOCAL_C_INCLUDES := \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 36 | external/tinyalsa/include \ |
| 37 | external/tinycompress/include \ |
| 38 | system/media/audio_utils/include \ |
| 39 | external/expat/lib \ |
| 40 | $(call include-path-for, audio-route) \ |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 41 | $(call project-path-for,qcom-audio)/hal \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 42 | $(call include-path-for, audio-effects) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 43 | |
| 44 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 45 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 46 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 47 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 48 | |
| 49 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 50 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 51 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 52 | endif |
| 53 | |
| 54 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 55 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 56 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 57 | LOCAL_SANITIZE := integer_overflow |
| 58 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 59 | include $(BUILD_SHARED_LIBRARY) |
| 60 | |
| 61 | #-------------------------------------------- |
| 62 | # Build COMPRESS_CAPTURE LIB |
| 63 | #-------------------------------------------- |
| 64 | include $(CLEAR_VARS) |
| 65 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 66 | LOCAL_MODULE := libcomprcapture |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 67 | LOCAL_MODULE_OWNER := third_party |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 68 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 69 | |
| 70 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 71 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 72 | ifneq ($(filter sdm845 sdm710 qcs605 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 73 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 74 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 75 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 76 | endif |
| 77 | |
| 78 | LOCAL_SRC_FILES:= \ |
| 79 | compress_capture.c |
| 80 | |
| 81 | LOCAL_CFLAGS += \ |
| 82 | -Wall \ |
| 83 | -Werror \ |
| 84 | -Wno-unused-function \ |
| 85 | -Wno-unused-variable \ |
| 86 | |
| 87 | LOCAL_SHARED_LIBRARIES := \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 88 | libaudioutils \ |
| 89 | libcutils \ |
| 90 | liblog \ |
| 91 | libtinyalsa \ |
| 92 | libtinycompress \ |
| 93 | libaudioroute \ |
| 94 | libdl \ |
| 95 | libexpat |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 96 | |
| 97 | LOCAL_C_INCLUDES := \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 98 | external/tinyalsa/include \ |
| 99 | external/tinycompress/include \ |
| 100 | system/media/audio_utils/include \ |
| 101 | external/expat/lib \ |
| 102 | $(call include-path-for, audio-route) \ |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 103 | $(call project-path-for,qcom-audio)/hal \ |
| 104 | $(call project-path-for,qcom-audio)/hal/$(AUDIO_PLATFORM) \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 105 | $(call include-path-for, audio-effects) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 106 | |
| 107 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 108 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 109 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 110 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 111 | |
| 112 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 113 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 114 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 115 | endif |
| 116 | |
| 117 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 118 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 119 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 120 | LOCAL_SANITIZE := integer_overflow |
| 121 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 122 | include $(BUILD_SHARED_LIBRARY) |
| 123 | |
| 124 | #------------------------------------------- |
| 125 | # Build SSREC LIB |
| 126 | #------------------------------------------- |
Derek Chen | 799148a | 2019-09-08 15:18:33 -0700 | [diff] [blame] | 127 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SSR)),true) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 128 | include $(CLEAR_VARS) |
| 129 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 130 | LOCAL_MODULE := libssrec |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 131 | LOCAL_VENDOR_MODULE := true |
| 132 | |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 133 | PRIMARY_HAL_PATH := $(call project-path-for,qcom-audio)/hal |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 134 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 135 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 136 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 137 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 138 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 139 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 140 | endif |
| 141 | |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 142 | LOCAL_SRC_FILES:= ssr.c \ |
| 143 | device_utils.c |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 144 | |
| 145 | LOCAL_CFLAGS += \ |
| 146 | -Wall \ |
| 147 | -Werror \ |
| 148 | -Wno-unused-function \ |
| 149 | -Wno-unused-variable |
| 150 | |
Ricardo Cerqueira | c9b6c18 | 2016-06-20 00:41:47 +0100 | [diff] [blame] | 151 | ifeq ($(QCPATH),) |
| 152 | LOCAL_CFLAGS += -D_OSS |
| 153 | endif |
| 154 | |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 155 | LOCAL_SHARED_LIBRARIES := \ |
| 156 | libaudioutils \ |
| 157 | libcutils \ |
| 158 | liblog \ |
| 159 | libtinyalsa \ |
| 160 | libtinycompress \ |
| 161 | libaudioroute \ |
| 162 | libdl \ |
Ramjee Singh | 82fd0c1 | 2019-08-21 16:31:33 +0530 | [diff] [blame] | 163 | libexpat \ |
| 164 | libprocessgroup |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 165 | |
| 166 | LOCAL_C_INCLUDES := \ |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 167 | $(PRIMARY_HAL_PATH) \ |
| 168 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 169 | external/tinyalsa/include \ |
| 170 | external/tinycompress/include \ |
| 171 | external/expat/lib \ |
| 172 | system/media/audio_utils/include \ |
| 173 | $(call include-path-for, audio-route) \ |
| 174 | $(call include-path-for, audio-effects) \ |
| 175 | $(TARGET_OUT_HEADERS)/mm-audio/surround_sound_3mic/ \ |
| 176 | $(TARGET_OUT_HEADERS)/common/inc/ |
| 177 | |
| 178 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 179 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 180 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 181 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 182 | |
| 183 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 184 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 185 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 186 | endif |
| 187 | |
| 188 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 189 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 190 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 191 | LOCAL_SANITIZE := integer_overflow |
| 192 | endif |
Ramjee Singh | 82fd0c1 | 2019-08-21 16:31:33 +0530 | [diff] [blame] | 193 | include $(BUILD_SHARED_LIBRARY) |
Derek Chen | 799148a | 2019-09-08 15:18:33 -0700 | [diff] [blame] | 194 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 195 | #-------------------------------------------- |
| 196 | # Build HDMI_EDID LIB |
| 197 | #-------------------------------------------- |
| 198 | include $(CLEAR_VARS) |
| 199 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 200 | LOCAL_MODULE := libhdmiedid |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 201 | LOCAL_MODULE_OWNER := third_party |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 202 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 203 | |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 204 | PRIMARY_HAL_PATH := $(call project-path-for,qcom-audio)/hal |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 205 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 206 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 207 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 208 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 209 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 210 | endif |
| 211 | |
| 212 | LOCAL_SRC_FILES:= \ |
| 213 | edid.c |
| 214 | |
| 215 | LOCAL_CFLAGS += \ |
| 216 | -Wall \ |
| 217 | -Werror \ |
| 218 | -Wno-unused-function \ |
| 219 | -Wno-unused-variable \ |
| 220 | |
| 221 | LOCAL_SHARED_LIBRARIES := \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 222 | libaudioutils \ |
| 223 | libcutils \ |
| 224 | liblog \ |
| 225 | libtinyalsa \ |
| 226 | libtinycompress \ |
| 227 | libaudioroute \ |
| 228 | libdl \ |
| 229 | libexpat |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 230 | |
| 231 | LOCAL_C_INCLUDES := \ |
Aalique Grahame | 182676b | 2019-03-26 15:39:11 -0700 | [diff] [blame] | 232 | external/tinyalsa/include \ |
| 233 | external/tinycompress/include \ |
| 234 | system/media/audio_utils/include \ |
| 235 | external/expat/lib \ |
| 236 | $(call include-path-for, audio-route) \ |
| 237 | $(PRIMARY_HAL_PATH) \ |
| 238 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 239 | $(call include-path-for, audio-effects) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 240 | |
| 241 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 242 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 243 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 244 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 245 | |
| 246 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 247 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 248 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 249 | endif |
| 250 | |
| 251 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 252 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 253 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 254 | LOCAL_SANITIZE := integer_overflow |
| 255 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 256 | include $(BUILD_SHARED_LIBRARY) |
| 257 | |
| 258 | #-------------------------------------------- |
| 259 | # Build SPKR_PROTECT LIB |
| 260 | #-------------------------------------------- |
| 261 | include $(CLEAR_VARS) |
| 262 | |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 263 | PRIMARY_HAL_PATH := $(call project-path-for,qcom-audio)/hal |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 264 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 265 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 266 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 267 | endif |
| 268 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 269 | LOCAL_MODULE := libspkrprot |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 270 | LOCAL_MODULE_OWNER := third_party |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 271 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 272 | |
| 273 | LOCAL_SRC_FILES:= \ |
| 274 | spkr_protection.c |
| 275 | |
| 276 | LOCAL_CFLAGS += \ |
| 277 | -Wall \ |
| 278 | -Werror \ |
| 279 | -Wno-unused-function \ |
| 280 | -Wno-unused-variable \ |
| 281 | |
| 282 | LOCAL_CFLAGS += -DSPKR_PROT_ENABLED |
| 283 | |
| 284 | LOCAL_SHARED_LIBRARIES := \ |
| 285 | libaudioutils \ |
| 286 | libcutils \ |
| 287 | liblog \ |
| 288 | libtinyalsa \ |
| 289 | libtinycompress \ |
| 290 | libaudioroute \ |
| 291 | libdl \ |
| 292 | libexpat |
| 293 | |
| 294 | LOCAL_C_INCLUDES := \ |
| 295 | external/tinyalsa/include \ |
| 296 | external/tinycompress/include \ |
| 297 | system/media/audio_utils/include \ |
| 298 | external/expat/lib \ |
| 299 | $(call include-path-for, audio-route) \ |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 300 | $(PRIMARY_HAL_PATH) \ |
| 301 | $(PRIMARY_HAL_PATH)/audio_extn \ |
| 302 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 303 | vendor/qcom/opensource/audio-kernel/include/uapi/ \ |
| 304 | $(call include-path-for, audio-effects) |
| 305 | |
Sujin Panicker | b904fbe | 2019-04-04 13:28:07 +0530 | [diff] [blame] | 306 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 307 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 308 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
Meng Wang | 6719f4d | 2019-04-09 09:09:16 +0800 | [diff] [blame] | 309 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 310 | |
| 311 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 312 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 313 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 314 | LOCAL_SANITIZE := integer_overflow |
| 315 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 316 | include $(BUILD_SHARED_LIBRARY) |
| 317 | #==================================================================================================== |
| 318 | # --- enable 3rd Party Spkr-prot lib |
| 319 | #==================================================================================================== |
| 320 | |
| 321 | include $(CLEAR_VARS) |
| 322 | |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 323 | PRIMARY_HAL_PATH := $(call project-path-for,qcom-audio)/hal |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 324 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 325 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 326 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 327 | endif |
| 328 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 329 | LOCAL_MODULE := libcirrusspkrprot |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 330 | LOCAL_MODULE_OWNER := third_party |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 331 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 332 | |
| 333 | LOCAL_SRC_FILES:= \ |
| 334 | cirrus_playback.c |
| 335 | |
| 336 | LOCAL_CFLAGS += \ |
| 337 | -Wall \ |
| 338 | -Werror \ |
| 339 | -Wno-unused-function \ |
| 340 | -Wno-unused-variable \ |
| 341 | |
| 342 | LOCAL_CFLAGS += -DENABLE_CIRRUS_DETECTION |
| 343 | LOCAL_CFLAGS += -DCIRRUS_FACTORY_CALIBRATION |
| 344 | |
| 345 | LOCAL_SHARED_LIBRARIES := \ |
| 346 | libaudioutils \ |
| 347 | libcutils \ |
| 348 | liblog \ |
| 349 | libtinyalsa \ |
| 350 | libaudioroute \ |
| 351 | libdl \ |
| 352 | libexpat |
| 353 | |
| 354 | LOCAL_C_INCLUDES := \ |
| 355 | external/tinyalsa/include \ |
| 356 | external/tinycompress/include \ |
| 357 | system/media/audio_utils/include \ |
| 358 | external/expat/lib \ |
| 359 | $(call include-path-for, audio-route) \ |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 360 | $(PRIMARY_HAL_PATH) \ |
| 361 | $(PRIMARY_HAL_PATH)/audio_extn \ |
| 362 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 363 | vendor/qcom/opensource/audio-kernel/include/uapi/ \ |
| 364 | $(call include-path-for, audio-effects) |
| 365 | |
Sujin Panicker | b904fbe | 2019-04-04 13:28:07 +0530 | [diff] [blame] | 366 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 367 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 368 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
Meng Wang | 6719f4d | 2019-04-09 09:09:16 +0800 | [diff] [blame] | 369 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 370 | |
| 371 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 372 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 373 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 374 | LOCAL_SANITIZE := integer_overflow |
| 375 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 376 | include $(BUILD_SHARED_LIBRARY) |
| 377 | |
| 378 | #------------------------------------------- |
| 379 | # Build A2DP_OFFLOAD LIB |
| 380 | #------------------------------------------- |
| 381 | include $(CLEAR_VARS) |
| 382 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 383 | LOCAL_MODULE := liba2dpoffload |
Piyush Balwani | 18c6b2d | 2019-02-13 12:28:50 +0530 | [diff] [blame] | 384 | LOCAL_VENDOR_MODULE := true |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 385 | |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 386 | PRIMARY_HAL_PATH := $(call project-path-for,qcom-audio)/hal |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 387 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 388 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 389 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 390 | # B-family platform uses msm8974 code base |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 391 | AUDIO_PLATFORM := msm8974 |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 392 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 393 | endif |
| 394 | |
| 395 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 396 | a2dp.c \ |
| 397 | device_utils.c |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 398 | |
| 399 | LOCAL_CFLAGS += \ |
| 400 | -Wall \ |
| 401 | -Werror \ |
| 402 | -Wno-unused-function \ |
| 403 | -Wno-unused-variable |
| 404 | |
| 405 | LOCAL_SHARED_LIBRARIES := \ |
| 406 | libaudioutils \ |
| 407 | libcutils \ |
| 408 | liblog \ |
| 409 | libtinyalsa \ |
| 410 | libtinycompress \ |
| 411 | libaudioroute \ |
| 412 | libdl \ |
Arun Mirpuri | 5dc7780 | 2019-02-26 16:32:42 -0800 | [diff] [blame] | 413 | libexpat |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 414 | |
| 415 | LOCAL_C_INCLUDES := \ |
| 416 | $(PRIMARY_HAL_PATH) \ |
| 417 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 418 | external/tinyalsa/include \ |
| 419 | external/tinycompress/include \ |
| 420 | external/expat/lib \ |
| 421 | system/media/audio_utils/include \ |
| 422 | $(call include-path-for, audio-route) \ |
| 423 | |
| 424 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 425 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 426 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 427 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 428 | |
| 429 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 430 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 431 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 432 | endif |
| 433 | |
| 434 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 435 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 436 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 437 | LOCAL_SANITIZE := integer_overflow |
| 438 | endif |
Arun Mirpuri | b1bec9c | 2019-01-29 16:42:45 -0800 | [diff] [blame] | 439 | include $(BUILD_SHARED_LIBRARY) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 440 | |
| 441 | #------------------------------------------- |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 442 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 443 | # Build EXT_HW_PLUGIN LIB |
| 444 | #------------------------------------------- |
| 445 | include $(CLEAR_VARS) |
| 446 | |
| 447 | LOCAL_MODULE := libexthwplugin |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 448 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 449 | LOCAL_VENDOR_MODULE := true |
| 450 | |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 451 | PRIMARY_HAL_PATH := $(call project-path-for,qcom-audio)/hal |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 452 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 453 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 454 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 455 | # B-family platform uses msm8974 code base |
| 456 | AUDIO_PLATFORM := msm8974 |
| 457 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 458 | endif |
| 459 | |
| 460 | LOCAL_SRC_FILES:= \ |
| 461 | ext_hw_plugin.c |
| 462 | |
| 463 | LOCAL_CFLAGS += \ |
| 464 | -Wall \ |
| 465 | -Werror \ |
| 466 | -Wno-unused-function \ |
| 467 | -Wno-unused-variable |
| 468 | |
| 469 | LOCAL_SHARED_LIBRARIES := \ |
| 470 | libaudioroute \ |
| 471 | libaudioutils \ |
| 472 | libcutils \ |
| 473 | libdl \ |
| 474 | libexpat \ |
| 475 | liblog \ |
| 476 | libtinyalsa \ |
| 477 | libtinycompress |
| 478 | |
| 479 | LOCAL_C_INCLUDES := \ |
| 480 | $(PRIMARY_HAL_PATH) \ |
| 481 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 482 | external/tinyalsa/include \ |
| 483 | external/tinycompress/include \ |
| 484 | external/expat/lib \ |
| 485 | system/media/audio_utils/include \ |
| 486 | $(call include-path-for, audio-route) \ |
| 487 | |
| 488 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 489 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 490 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 491 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 492 | |
| 493 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 494 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 495 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 496 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 497 | endif |
| 498 | |
| 499 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 500 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 501 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 502 | LOCAL_SANITIZE := integer_overflow |
| 503 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 504 | include $(BUILD_SHARED_LIBRARY) |
| 505 | |
| 506 | #------------------------------------------- |
| 507 | # Build HFP LIB |
| 508 | #------------------------------------------- |
| 509 | include $(CLEAR_VARS) |
| 510 | |
| 511 | LOCAL_MODULE := libhfp |
| 512 | LOCAL_VENDOR_MODULE := true |
| 513 | |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 514 | PRIMARY_HAL_PATH := $(call project-path-for,qcom-audio)/hal |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 515 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 516 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 517 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 518 | # B-family platform uses msm8974 code base |
| 519 | AUDIO_PLATFORM := msm8974 |
| 520 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 521 | endif |
| 522 | |
Derek Chen | f709279 | 2017-05-23 12:23:53 -0400 | [diff] [blame] | 523 | ifeq ($(TARGET_BOARD_AUTO),true) |
| 524 | LOCAL_CFLAGS += -DPLATFORM_AUTO |
| 525 | endif |
| 526 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 527 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 528 | hfp.c \ |
| 529 | device_utils.c |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 530 | |
| 531 | LOCAL_CFLAGS += \ |
| 532 | -Wall \ |
| 533 | -Werror \ |
| 534 | -Wno-unused-function \ |
| 535 | -Wno-unused-variable |
| 536 | |
| 537 | LOCAL_SHARED_LIBRARIES := \ |
| 538 | libaudioroute \ |
| 539 | libaudioutils \ |
| 540 | libcutils \ |
| 541 | libdl \ |
| 542 | libexpat \ |
| 543 | liblog \ |
| 544 | libtinyalsa \ |
| 545 | libtinycompress |
| 546 | |
| 547 | LOCAL_C_INCLUDES := \ |
| 548 | $(PRIMARY_HAL_PATH) \ |
| 549 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 550 | external/tinyalsa/include \ |
| 551 | external/tinycompress/include \ |
| 552 | external/expat/lib \ |
| 553 | system/media/audio_utils/include \ |
| 554 | $(call include-path-for, audio-route) \ |
| 555 | |
| 556 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 557 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 558 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 559 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 560 | |
| 561 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 562 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 563 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 564 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 565 | endif |
| 566 | |
| 567 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 568 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 569 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 570 | LOCAL_SANITIZE := integer_overflow |
| 571 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 572 | include $(BUILD_SHARED_LIBRARY) |
| 573 | |
| 574 | #------------------------------------------- |
| 575 | # Build HDMI PASSTHROUGH |
| 576 | #------------------------------------------- |
Bruno Martins | 7e3422e | 2019-09-22 13:17:37 +0100 | [diff] [blame] | 577 | ifneq ($(QCPATH),) |
| 578 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 579 | include $(CLEAR_VARS) |
| 580 | |
| 581 | LOCAL_MODULE := libhdmipassthru |
| 582 | LOCAL_VENDOR_MODULE := true |
| 583 | |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 584 | PRIMARY_HAL_PATH := $(call project-path-for,qcom-audio)/hal |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 585 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 586 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 587 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 588 | # B-family platform uses msm8974 code base |
| 589 | AUDIO_PLATFORM := msm8974 |
| 590 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 591 | endif |
| 592 | |
| 593 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 594 | passthru.c \ |
| 595 | device_utils.c |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 596 | |
| 597 | LOCAL_CFLAGS += \ |
| 598 | -Wall \ |
| 599 | -Werror \ |
| 600 | -Wno-unused-function \ |
| 601 | -Wno-unused-variable \ |
| 602 | -DDTSHD_PARSER_ENABLED |
| 603 | |
| 604 | LOCAL_SHARED_LIBRARIES := \ |
| 605 | libaudioparsers \ |
| 606 | libaudioroute \ |
| 607 | libaudioutils \ |
| 608 | libcutils \ |
| 609 | libdl \ |
| 610 | libexpat \ |
| 611 | liblog \ |
| 612 | libtinyalsa \ |
| 613 | libtinycompress |
| 614 | |
| 615 | LOCAL_C_INCLUDES := \ |
| 616 | $(PRIMARY_HAL_PATH) \ |
| 617 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 618 | external/tinyalsa/include \ |
| 619 | external/tinycompress/include \ |
| 620 | external/expat/lib \ |
| 621 | system/media/audio_utils/include \ |
Arun Mirpuri | f607447 | 2019-04-17 11:39:08 -0700 | [diff] [blame] | 622 | $(TARGET_OUT_HEADERS)/mm-audio/audio-parsers \ |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 623 | $(call include-path-for, audio-route) \ |
| 624 | |
| 625 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 626 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 627 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 628 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 629 | |
| 630 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 631 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 632 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 633 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 634 | endif |
| 635 | |
Vignesh Kulothungan | 4fa89d1 | 2020-01-27 11:24:13 -0800 | [diff] [blame] | 636 | # Kernel specific feature |
| 637 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GKI)), true) |
| 638 | LOCAL_CFLAGS += -DAUDIO_GKI_ENABLED |
| 639 | endif |
| 640 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 641 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 642 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 643 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 644 | LOCAL_SANITIZE := integer_overflow |
| 645 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 646 | include $(BUILD_SHARED_LIBRARY) |
| 647 | |
Bruno Martins | 7e3422e | 2019-09-22 13:17:37 +0100 | [diff] [blame] | 648 | endif |
| 649 | |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 650 | #------------------------------------------- |
| 651 | # Build BATTERY_LISTENER |
| 652 | #------------------------------------------- |
| 653 | include $(CLEAR_VARS) |
| 654 | |
| 655 | LOCAL_MODULE := libbatterylistener |
| 656 | LOCAL_VENDOR_MODULE := true |
| 657 | |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 658 | PRIMARY_HAL_PATH := $(call project-path-for,qcom-audio)/hal |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 659 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 660 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 661 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 662 | # B-family platform uses msm8974 code base |
| 663 | AUDIO_PLATFORM := msm8974 |
| 664 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 665 | endif |
| 666 | |
| 667 | LOCAL_SRC_FILES:= \ |
| 668 | battery_listener.cpp |
| 669 | |
| 670 | LOCAL_CFLAGS += \ |
| 671 | -Wall \ |
| 672 | -Werror \ |
| 673 | -Wno-unused-function \ |
| 674 | -Wno-unused-variable \ |
| 675 | -DDTSHD_PARSER_ENABLED |
| 676 | |
| 677 | LOCAL_SHARED_LIBRARIES := \ |
| 678 | android.hardware.health@1.0 \ |
| 679 | android.hardware.health@2.0 \ |
| 680 | android.hardware.power@1.2 \ |
| 681 | libaudioroute \ |
| 682 | libaudioutils \ |
| 683 | libbase \ |
| 684 | libcutils \ |
| 685 | libdl \ |
| 686 | libexpat \ |
| 687 | libhidlbase \ |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 688 | liblog \ |
| 689 | libtinyalsa \ |
| 690 | libtinycompress \ |
| 691 | libutils \ |
| 692 | |
| 693 | LOCAL_STATIC_LIBRARIES := \ |
| 694 | libhealthhalutils |
| 695 | |
| 696 | LOCAL_C_INCLUDES := \ |
| 697 | $(PRIMARY_HAL_PATH) \ |
| 698 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 699 | external/tinyalsa/include \ |
| 700 | external/tinycompress/include \ |
| 701 | external/expat/lib \ |
| 702 | system/media/audio_utils/include \ |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 703 | $(call include-path-for, audio-route) \ |
| 704 | |
| 705 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 706 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 707 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 708 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 709 | |
| 710 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 711 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 712 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 713 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 714 | endif |
| 715 | |
| 716 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 717 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 718 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 719 | LOCAL_SANITIZE := integer_overflow |
| 720 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 721 | include $(BUILD_SHARED_LIBRARY) |
| 722 | |
| 723 | #------------------------------------------- |
| 724 | # Build HWDEP_CAL |
| 725 | #------------------------------------------- |
| 726 | include $(CLEAR_VARS) |
| 727 | |
| 728 | LOCAL_MODULE := libhwdepcal |
| 729 | LOCAL_VENDOR_MODULE := true |
| 730 | |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 731 | PRIMARY_HAL_PATH := $(call project-path-for,qcom-audio)/hal |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 732 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 733 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 734 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito bengal atoll sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 735 | # B-family platform uses msm8974 code base |
| 736 | AUDIO_PLATFORM := msm8974 |
| 737 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 738 | endif |
| 739 | |
| 740 | # LOCAL_SRC_FILES:= \ |
| 741 | # hwdep_cal.c |
| 742 | |
| 743 | LOCAL_CFLAGS += \ |
| 744 | -Wall \ |
| 745 | -Werror \ |
| 746 | -Wno-unused-function \ |
| 747 | -Wno-unused-variable |
| 748 | |
| 749 | LOCAL_SHARED_LIBRARIES := \ |
| 750 | libaudioroute \ |
| 751 | libaudioutils \ |
| 752 | libcutils \ |
| 753 | libdl \ |
| 754 | libexpat \ |
| 755 | liblog \ |
| 756 | libtinyalsa \ |
| 757 | libtinycompress |
| 758 | |
| 759 | LOCAL_C_INCLUDES := \ |
| 760 | $(PRIMARY_HAL_PATH) \ |
| 761 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 762 | external/tinyalsa/include \ |
| 763 | external/tinycompress/include \ |
| 764 | external/expat/lib \ |
| 765 | system/media/audio_utils/include \ |
| 766 | $(call include-path-for, audio-route) \ |
| 767 | |
| 768 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 769 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 770 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 771 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 772 | |
| 773 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 774 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 775 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 776 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 777 | endif |
| 778 | |
| 779 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 780 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 781 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 782 | LOCAL_SANITIZE := integer_overflow |
| 783 | endif |
Arun Mirpuri | e008ed2 | 2019-03-21 11:21:04 -0700 | [diff] [blame] | 784 | #include $(BUILD_SHARED_LIBRARY) |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 785 | |
| 786 | #------------------------------------------- |
| 787 | # Build MAXX_AUDIO |
| 788 | #------------------------------------------- |
| 789 | include $(CLEAR_VARS) |
| 790 | |
| 791 | LOCAL_MODULE:= libmaxxaudio |
| 792 | LOCAL_VENDOR_MODULE := true |
| 793 | |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 794 | PRIMARY_HAL_PATH := $(call project-path-for,qcom-audio)/hal |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 795 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 796 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 797 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi sdm660 msm8937 msm8953 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 798 | # B-family platform uses msm8974 code base |
| 799 | AUDIO_PLATFORM = msm8974 |
| 800 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 801 | endif |
| 802 | |
| 803 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 804 | maxxaudio.c \ |
| 805 | device_utils.c |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 806 | |
| 807 | LOCAL_CFLAGS += \ |
| 808 | -Wall \ |
| 809 | -Werror \ |
| 810 | -Wno-unused-function \ |
| 811 | -Wno-unused-variable |
| 812 | |
| 813 | LOCAL_SHARED_LIBRARIES := \ |
| 814 | libaudioutils \ |
| 815 | libcutils \ |
| 816 | liblog \ |
| 817 | libtinyalsa \ |
| 818 | libtinycompress \ |
| 819 | libaudioroute \ |
| 820 | libdl \ |
| 821 | libexpat |
| 822 | |
| 823 | LOCAL_C_INCLUDES := \ |
| 824 | $(PRIMARY_HAL_PATH) \ |
| 825 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 826 | external/tinyalsa/include \ |
| 827 | external/tinycompress/include \ |
| 828 | external/expat/lib \ |
| 829 | system/media/audio_utils/include \ |
| 830 | $(call include-path-for, audio-route) \ |
| 831 | |
| 832 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 833 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 834 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 835 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 836 | |
| 837 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 838 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 839 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 840 | endif |
| 841 | |
| 842 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 843 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 844 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 845 | LOCAL_SANITIZE := integer_overflow |
| 846 | endif |
Arun Mirpuri | d750ac5 | 2019-04-12 18:33:55 -0700 | [diff] [blame] | 847 | include $(BUILD_SHARED_LIBRARY) |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 848 | #------------------------------------------- |
| 849 | # Build AUDIOZOOM |
| 850 | #------------------------------------------- |
| 851 | include $(CLEAR_VARS) |
| 852 | |
| 853 | LOCAL_MODULE:= libaudiozoom |
| 854 | LOCAL_VENDOR_MODULE := true |
| 855 | |
Ethan Chen | c40d135 | 2014-11-12 12:59:56 -0800 | [diff] [blame] | 856 | PRIMARY_HAL_PATH := $(call project-path-for,qcom-audio)/hal |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 857 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 858 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 859 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi sdm660 msm8937 msm8953 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 860 | # B-family platform uses msm8974 code base |
| 861 | AUDIO_PLATFORM = msm8974 |
| 862 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 863 | endif |
| 864 | |
| 865 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 866 | audiozoom.c \ |
| 867 | device_utils.c |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 868 | |
| 869 | LOCAL_CFLAGS += \ |
| 870 | -Wall \ |
| 871 | -Werror \ |
| 872 | -Wno-unused-function \ |
| 873 | -Wno-unused-variable |
| 874 | |
| 875 | LOCAL_SHARED_LIBRARIES := \ |
| 876 | libaudioutils \ |
| 877 | libcutils \ |
| 878 | liblog \ |
| 879 | libtinyalsa \ |
| 880 | libtinycompress \ |
| 881 | libaudioroute \ |
| 882 | libdl \ |
| 883 | libexpat |
| 884 | |
| 885 | LOCAL_C_INCLUDES := \ |
| 886 | $(PRIMARY_HAL_PATH) \ |
| 887 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 888 | external/tinyalsa/include \ |
| 889 | external/tinycompress/include \ |
| 890 | external/expat/lib \ |
| 891 | system/media/audio_utils/include \ |
| 892 | $(call include-path-for, audio-route) \ |
| 893 | |
| 894 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 895 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 896 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 897 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 898 | |
| 899 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 900 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 901 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 902 | endif |
| 903 | |
| 904 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 905 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 906 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 907 | LOCAL_SANITIZE := integer_overflow |
| 908 | endif |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 909 | include $(BUILD_SHARED_LIBRARY) |
| 910 | |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 911 | #------------------------------------------- |
vivek mehta | ba5ed15 | 2019-05-03 17:28:25 -0700 | [diff] [blame] | 912 | |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 913 | # Build AUTO_HAL LIB |
| 914 | #------------------------------------------- |
| 915 | include $(CLEAR_VARS) |
| 916 | |
| 917 | LOCAL_MODULE := libautohal |
| 918 | |
| 919 | LOCAL_VENDOR_MODULE := true |
| 920 | |
| 921 | PRIMARY_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal/hal |
| 922 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 923 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 924 | ifneq ($(filter sdm845 sdm710 sdmshrike msmnile kona lahaina holi lito atoll bengal sdm660 msm8937 msm8953 msm8998 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),) |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 925 | # B-family platform uses msm8974 code base |
| 926 | AUDIO_PLATFORM := msm8974 |
| 927 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 928 | endif |
| 929 | |
| 930 | LOCAL_SRC_FILES:= \ |
Aniket Kumar Lata | 0e6e1e5 | 2019-11-14 21:43:55 -0800 | [diff] [blame] | 931 | auto_hal.c \ |
| 932 | device_utils.c |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 933 | |
| 934 | LOCAL_CFLAGS += \ |
| 935 | -Wall \ |
| 936 | -Werror \ |
| 937 | -Wno-unused-function \ |
| 938 | -Wno-unused-variable |
| 939 | |
| 940 | LOCAL_SHARED_LIBRARIES := \ |
| 941 | libaudioutils \ |
| 942 | libcutils \ |
| 943 | libdl \ |
| 944 | libexpat \ |
| 945 | liblog |
| 946 | |
| 947 | LOCAL_C_INCLUDES := \ |
| 948 | $(PRIMARY_HAL_PATH) \ |
| 949 | $(PRIMARY_HAL_PATH)/$(AUDIO_PLATFORM) \ |
| 950 | external/tinyalsa/include \ |
| 951 | external/tinycompress/include \ |
| 952 | external/expat/lib \ |
| 953 | system/media/audio_utils/include \ |
| 954 | $(call include-path-for, audio-route) \ |
| 955 | |
| 956 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 957 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 958 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| 959 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 960 | |
| 961 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
| 962 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
| 963 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| 964 | LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| 965 | endif |
| 966 | |
| 967 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
| 968 | LOCAL_HEADER_LIBRARIES += libsystem_headers |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 969 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 970 | LOCAL_SANITIZE := integer_overflow |
| 971 | endif |
Derek Chen | f082fdb | 2019-07-24 13:27:20 -0700 | [diff] [blame] | 972 | include $(BUILD_SHARED_LIBRARY) |
Bruno Martins | 8586f43 | 2020-02-01 14:45:33 +0000 | [diff] [blame] | 973 | endif |