Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 1 | # Copyright 2013 The Android Open Source Project |
| 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 | |
| 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
| 17 | include $(CLEAR_VARS) |
| 18 | |
| 19 | LOCAL_SRC_FILES:= \ |
| 20 | offload_visualizer.c |
| 21 | |
| 22 | LOCAL_CFLAGS+= -O2 -fvisibility=hidden |
| 23 | |
Abhishek Arpure | ce11235 | 2018-01-31 21:29:03 +0530 | [diff] [blame] | 24 | LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-parameter -Wno-gnu-designator -Wno-unused-value -Wno-typedef-redefinition |
| 25 | |
Tanya Dixit | 6e3bccc | 2018-04-05 13:42:18 +0530 | [diff] [blame] | 26 | ifneq ($(filter sdm660 sdm845 msm8998 apq8098_latv sdm710 qcs605 msmnile $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),) |
Weiyin Jiang | 2d95548 | 2017-04-12 19:06:32 +0800 | [diff] [blame] | 27 | LOCAL_CFLAGS += -DCAPTURE_DEVICE=7 |
Garmond Leung | 6406e9d | 2016-08-23 16:31:03 -0700 | [diff] [blame] | 28 | endif |
| 29 | |
Revathi Uddaraju | e8bd13c | 2018-04-02 21:27:54 +0530 | [diff] [blame] | 30 | LOCAL_HEADER_LIBRARIES := libsystem_headers \ |
| 31 | libhardware_headers |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 32 | LOCAL_SHARED_LIBRARIES := \ |
| 33 | libcutils \ |
| 34 | liblog \ |
Ravi Kumar Alamanda | 518bcbb | 2014-11-14 16:51:10 -0800 | [diff] [blame] | 35 | libdl \ |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 36 | libtinyalsa |
| 37 | |
Apoorv Raghuvanshi | 1b555f7 | 2014-05-29 12:48:15 -0700 | [diff] [blame] | 38 | LOCAL_MODULE_RELATIVE_PATH := soundfx |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 39 | LOCAL_MODULE:= libqcomvisualizer |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 40 | LOCAL_VENDOR_MODULE := true |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 41 | |
| 42 | LOCAL_C_INCLUDES := \ |
| 43 | external/tinyalsa/include \ |
| 44 | $(call include-path-for, audio-effects) |
| 45 | |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 46 | LOCAL_CFLAGS += -Wno-unused-variable |
| 47 | LOCAL_CFLAGS += -Wno-sign-compare |
| 48 | LOCAL_CFLAGS += -Wno-unused-parameter |
| 49 | LOCAL_CFLAGS += -Wno-unused-label |
| 50 | LOCAL_CFLAGS += -Wno-gnu-designator |
| 51 | LOCAL_CFLAGS += -Wno-typedef-redefinition |
| 52 | LOCAL_CFLAGS += -Wno-shorten-64-to-32 |
| 53 | LOCAL_CFLAGS += -Wno-tautological-compare |
| 54 | LOCAL_CFLAGS += -Wno-unused-function |
| 55 | LOCAL_CFLAGS += -Wno-unused-local-typedef |
| 56 | |
Eric Laurent | c4aef75 | 2013-09-12 17:45:53 -0700 | [diff] [blame] | 57 | include $(BUILD_SHARED_LIBRARY) |