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