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