Naresh Tanniru | f129015 | 2018-11-27 12:16:45 +0530 | [diff] [blame] | 1 | ifneq ($(AUDIO_USE_STUB_HAL), true) |
Eric Laurent | 73fb11d | 2013-04-09 11:24:13 -0700 | [diff] [blame] | 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | |
| 4 | # audio preprocessing wrapper |
| 5 | include $(CLEAR_VARS) |
| 6 | |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 7 | LOCAL_CFLAGS += \ |
| 8 | -Wall \ |
| 9 | -Werror \ |
| 10 | -Wno-unused-variable \ |
| 11 | -Wno-gnu-designator \ |
| 12 | -Wno-unused-value \ |
| 13 | -Wno-unused-function |
Abhishek Arpure | ce11235 | 2018-01-31 21:29:03 +0530 | [diff] [blame] | 14 | |
Eric Laurent | 73fb11d | 2013-04-09 11:24:13 -0700 | [diff] [blame] | 15 | LOCAL_MODULE:= libqcomvoiceprocessing |
| 16 | LOCAL_MODULE_TAGS := optional |
Apoorv Raghuvanshi | 1b555f7 | 2014-05-29 12:48:15 -0700 | [diff] [blame] | 17 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 18 | LOCAL_VENDOR_MODULE := true |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 19 | LOCAL_MODULE_OWNER := qti |
Eric Laurent | 73fb11d | 2013-04-09 11:24:13 -0700 | [diff] [blame] | 20 | |
| 21 | LOCAL_SRC_FILES:= \ |
| 22 | voice_processing.c |
| 23 | |
| 24 | LOCAL_C_INCLUDES += \ |
| 25 | $(call include-path-for, audio-effects) |
| 26 | |
| 27 | LOCAL_SHARED_LIBRARIES := \ |
Dhananjay Kumar | a5d42b3 | 2017-01-11 21:22:16 +0530 | [diff] [blame] | 28 | liblog \ |
Eric Laurent | 73fb11d | 2013-04-09 11:24:13 -0700 | [diff] [blame] | 29 | libcutils |
| 30 | |
Vatsal Bucha | c09ae06 | 2018-11-14 13:25:08 +0530 | [diff] [blame] | 31 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true) |
| 32 | LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 33 | LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 34 | LOCAL_STATIC_LIBRARIES += libprofile_rt |
| 35 | endif |
| 36 | |
Eric Laurent | 73fb11d | 2013-04-09 11:24:13 -0700 | [diff] [blame] | 37 | LOCAL_SHARED_LIBRARIES += libdl |
| 38 | |
Revathi Uddaraju | e8bd13c | 2018-04-02 21:27:54 +0530 | [diff] [blame] | 39 | LOCAL_HEADER_LIBRARIES := libhardware_headers |
Eric Laurent | 73fb11d | 2013-04-09 11:24:13 -0700 | [diff] [blame] | 40 | LOCAL_CFLAGS += -fvisibility=hidden |
| 41 | |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 42 | LOCAL_CFLAGS += -Wno-unused-variable |
| 43 | LOCAL_CFLAGS += -Wno-sign-compare |
| 44 | LOCAL_CFLAGS += -Wno-unused-parameter |
| 45 | LOCAL_CFLAGS += -Wno-unused-label |
| 46 | LOCAL_CFLAGS += -Wno-gnu-designator |
| 47 | LOCAL_CFLAGS += -Wno-typedef-redefinition |
| 48 | LOCAL_CFLAGS += -Wno-shorten-64-to-32 |
| 49 | LOCAL_CFLAGS += -Wno-tautological-compare |
| 50 | LOCAL_CFLAGS += -Wno-unused-function |
| 51 | LOCAL_CFLAGS += -Wno-unused-local-typedef |
| 52 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 53 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 54 | LOCAL_SANITIZE := integer_overflow |
| 55 | endif |
Eric Laurent | 73fb11d | 2013-04-09 11:24:13 -0700 | [diff] [blame] | 56 | include $(BUILD_SHARED_LIBRARY) |
Naresh Tanniru | f129015 | 2018-11-27 12:16:45 +0530 | [diff] [blame] | 57 | endif |