Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 1 | # Copyright 2013, 2019 The Android Open Source Project |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Naresh Tanniru | f129015 | 2018-11-27 12:16:45 +0530 | [diff] [blame] | 15 | ifneq ($(AUDIO_USE_STUB_HAL), true) |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 16 | LOCAL_PATH:= $(call my-dir) |
| 17 | |
| 18 | include $(CLEAR_VARS) |
| 19 | |
| 20 | LOCAL_SRC_FILES:= \ |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 21 | offload_visualizer.c |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 22 | |
| 23 | LOCAL_CFLAGS+= -O2 -fvisibility=hidden |
| 24 | |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 25 | LOCAL_CFLAGS += \ |
| 26 | -Wall \ |
| 27 | -Werror \ |
| 28 | -Wno-unused-variable \ |
| 29 | -Wno-unused-parameter \ |
| 30 | -Wno-gnu-designator \ |
| 31 | -Wno-unused-value \ |
| 32 | -Wno-typedef-redefinition |
Abhishek Arpure | ce11235 | 2018-01-31 21:29:03 +0530 | [diff] [blame] | 33 | |
Vatsal Bucha | c09ae06 | 2018-11-14 13:25:08 +0530 | [diff] [blame] | 34 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true) |
| 35 | LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 36 | LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 37 | LOCAL_STATIC_LIBRARIES += libprofile_rt |
| 38 | endif |
| 39 | |
Meng Wang | ef2f6e1 | 2018-10-08 13:06:05 +0800 | [diff] [blame] | 40 | ifneq ($(filter sdm660 sdm845 msm8998 apq8098_latv sdm710 qcs605 msmnile kona $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),) |
Weiyin Jiang | 2d95548 | 2017-04-12 19:06:32 +0800 | [diff] [blame] | 41 | LOCAL_CFLAGS += -DCAPTURE_DEVICE=7 |
Garmond Leung | 6406e9d | 2016-08-23 16:31:03 -0700 | [diff] [blame] | 42 | endif |
| 43 | |
Revathi Uddaraju | e8bd13c | 2018-04-02 21:27:54 +0530 | [diff] [blame] | 44 | LOCAL_HEADER_LIBRARIES := libsystem_headers \ |
| 45 | libhardware_headers |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 46 | LOCAL_SHARED_LIBRARIES := \ |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 47 | libcutils \ |
| 48 | liblog \ |
| 49 | libdl \ |
| 50 | libtinyalsa |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 51 | |
Apoorv Raghuvanshi | 1b555f7 | 2014-05-29 12:48:15 -0700 | [diff] [blame] | 52 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 53 | LOCAL_MODULE:= libqcomvisualizer |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 54 | LOCAL_VENDOR_MODULE := true |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 55 | |
| 56 | LOCAL_C_INCLUDES := \ |
Aalique Grahame | 22e4910 | 2018-12-18 14:23:57 -0800 | [diff] [blame] | 57 | external/tinyalsa/include \ |
| 58 | $(call include-path-for, audio-effects) |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 59 | |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 60 | LOCAL_CFLAGS += -Wno-unused-variable |
| 61 | LOCAL_CFLAGS += -Wno-sign-compare |
| 62 | LOCAL_CFLAGS += -Wno-unused-parameter |
| 63 | LOCAL_CFLAGS += -Wno-unused-label |
| 64 | LOCAL_CFLAGS += -Wno-gnu-designator |
| 65 | LOCAL_CFLAGS += -Wno-typedef-redefinition |
| 66 | LOCAL_CFLAGS += -Wno-shorten-64-to-32 |
| 67 | LOCAL_CFLAGS += -Wno-tautological-compare |
| 68 | LOCAL_CFLAGS += -Wno-unused-function |
| 69 | LOCAL_CFLAGS += -Wno-unused-local-typedef |
| 70 | |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 71 | include $(BUILD_SHARED_LIBRARY) |
Naresh Tanniru | f129015 | 2018-11-27 12:16:45 +0530 | [diff] [blame] | 72 | endif |