blob: 8249542acff7c64135ea2673eba115af1936faa0 [file] [log] [blame]
Aalique Grahame6de37c02019-02-07 11:49:39 -08001# Copyright 2013 The Android Open Source Project
Eric Laurentc4aef752013-09-12 17:45:53 -07002#
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 Tanniruf1290152018-11-27 12:16:45 +053015ifneq ($(AUDIO_USE_STUB_HAL), true)
Eric Laurentc4aef752013-09-12 17:45:53 -070016LOCAL_PATH:= $(call my-dir)
17
18include $(CLEAR_VARS)
19
20LOCAL_SRC_FILES:= \
Aalique Grahame22e49102018-12-18 14:23:57 -080021 offload_visualizer.c
Eric Laurentc4aef752013-09-12 17:45:53 -070022
23LOCAL_CFLAGS+= -O2 -fvisibility=hidden
24
Aalique Grahame22e49102018-12-18 14:23:57 -080025LOCAL_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 Arpurece112352018-01-31 21:29:03 +053033
Vatsal Buchac09ae062018-11-14 13:25:08 +053034ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
35LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
36LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
37LOCAL_STATIC_LIBRARIES += libprofile_rt
38endif
39
Revathi Uddarajue8bd13c2018-04-02 21:27:54 +053040LOCAL_HEADER_LIBRARIES := libsystem_headers \
41 libhardware_headers
Eric Laurentc4aef752013-09-12 17:45:53 -070042LOCAL_SHARED_LIBRARIES := \
Aalique Grahame22e49102018-12-18 14:23:57 -080043 libcutils \
44 liblog \
45 libdl \
46 libtinyalsa
Eric Laurentc4aef752013-09-12 17:45:53 -070047
Apoorv Raghuvanshi1b555f72014-05-29 12:48:15 -070048LOCAL_MODULE_RELATIVE_PATH := soundfx
Eric Laurentc4aef752013-09-12 17:45:53 -070049LOCAL_MODULE:= libqcomvisualizer
Naresh Tanniru10758b62017-06-05 21:05:53 +053050LOCAL_VENDOR_MODULE := true
Eric Laurentc4aef752013-09-12 17:45:53 -070051
52LOCAL_C_INCLUDES := \
Aalique Grahame22e49102018-12-18 14:23:57 -080053 external/tinyalsa/include \
54 $(call include-path-for, audio-effects)
Eric Laurentc4aef752013-09-12 17:45:53 -070055
Soumil Shah196157e2018-01-22 17:39:48 -080056LOCAL_CFLAGS += -Wno-unused-variable
57LOCAL_CFLAGS += -Wno-sign-compare
58LOCAL_CFLAGS += -Wno-unused-parameter
59LOCAL_CFLAGS += -Wno-unused-label
60LOCAL_CFLAGS += -Wno-gnu-designator
61LOCAL_CFLAGS += -Wno-typedef-redefinition
62LOCAL_CFLAGS += -Wno-shorten-64-to-32
63LOCAL_CFLAGS += -Wno-tautological-compare
64LOCAL_CFLAGS += -Wno-unused-function
65LOCAL_CFLAGS += -Wno-unused-local-typedef
66
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +053067ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070068LOCAL_SANITIZE := integer_overflow
69endif
Eric Laurentc4aef752013-09-12 17:45:53 -070070include $(BUILD_SHARED_LIBRARY)
Naresh Tanniruf1290152018-11-27 12:16:45 +053071endif