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