blob: 4a53c510e8d2c8410109f83d3c4c5e4ab901954e [file] [log] [blame]
Eric Laurentc4aef752013-09-12 17:45:53 -07001# 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
15LOCAL_PATH:= $(call my-dir)
16
17include $(CLEAR_VARS)
18
19LOCAL_SRC_FILES:= \
20 offload_visualizer.c
21
22LOCAL_CFLAGS+= -O2 -fvisibility=hidden
23
Abhishek Arpurece112352018-01-31 21:29:03 +053024LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-parameter -Wno-gnu-designator -Wno-unused-value -Wno-typedef-redefinition
25
Vatsal Buchac09ae062018-11-14 13:25:08 +053026ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
27LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
28LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
29LOCAL_STATIC_LIBRARIES += libprofile_rt
30endif
31
Tanya Dixit6e3bccc2018-04-05 13:42:18 +053032ifneq ($(filter sdm660 sdm845 msm8998 apq8098_latv sdm710 qcs605 msmnile $(MSMSTEPPE),$(TARGET_BOARD_PLATFORM)),)
Weiyin Jiang2d955482017-04-12 19:06:32 +080033 LOCAL_CFLAGS += -DCAPTURE_DEVICE=7
Garmond Leung6406e9d2016-08-23 16:31:03 -070034endif
35
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +053036LOCAL_HEADER_LIBRARIES := libsystem_headers \
37 libhardware_headers
Eric Laurentc4aef752013-09-12 17:45:53 -070038LOCAL_SHARED_LIBRARIES := \
39 libcutils \
40 liblog \
Ravi Kumar Alamanda518bcbb2014-11-14 16:51:10 -080041 libdl \
Eric Laurentc4aef752013-09-12 17:45:53 -070042 libtinyalsa
43
Apoorv Raghuvanshi1b555f72014-05-29 12:48:15 -070044LOCAL_MODULE_RELATIVE_PATH := soundfx
Eric Laurentc4aef752013-09-12 17:45:53 -070045LOCAL_MODULE:= libqcomvisualizer
Naresh Tanniru10758b62017-06-05 21:05:53 +053046LOCAL_VENDOR_MODULE := true
Eric Laurentc4aef752013-09-12 17:45:53 -070047
48LOCAL_C_INCLUDES := \
49 external/tinyalsa/include \
50 $(call include-path-for, audio-effects)
51
Soumil Shah196157e2018-01-22 17:39:48 -080052LOCAL_CFLAGS += -Wno-unused-variable
53LOCAL_CFLAGS += -Wno-sign-compare
54LOCAL_CFLAGS += -Wno-unused-parameter
55LOCAL_CFLAGS += -Wno-unused-label
56LOCAL_CFLAGS += -Wno-gnu-designator
57LOCAL_CFLAGS += -Wno-typedef-redefinition
58LOCAL_CFLAGS += -Wno-shorten-64-to-32
59LOCAL_CFLAGS += -Wno-tautological-compare
60LOCAL_CFLAGS += -Wno-unused-function
61LOCAL_CFLAGS += -Wno-unused-local-typedef
62
Eric Laurentc4aef752013-09-12 17:45:53 -070063include $(BUILD_SHARED_LIBRARY)