blob: 7af76ec5c4e73a625df31f0106b3ad55833547ba [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
24LOCAL_SHARED_LIBRARIES := \
25 libcutils \
26 liblog \
Ravi Kumar Alamanda8652b462014-11-14 16:51:10 -080027 libdl \
Eric Laurentc4aef752013-09-12 17:45:53 -070028 libtinyalsa
29
Kevin Rocardc76a5352017-09-01 10:50:33 -070030# HACK to set the right record proxy effect card number.
31# It should be retrieved from the primary hal USECASE_AUDIO_RECORD_AFE_PROXY.
32ifneq ($(filter msm8998,$(TARGET_BOARD_PLATFORM)),)
33 LOCAL_CFLAGS := -DCAPTURE_DEVICE=7
34else
35 LOCAL_CFLAGS := -DCAPTURE_DEVICE=8
36endif
37
Steven Moreland30faba12017-06-30 15:02:57 -070038LOCAL_HEADER_LIBRARIES := libhardware_headers
39
Ajay Dudani89541032015-03-30 17:39:24 -070040LOCAL_MODULE_RELATIVE_PATH := soundfx
Eric Laurentc4aef752013-09-12 17:45:53 -070041LOCAL_MODULE:= libqcomvisualizer
Diego Wilson8c83e0a2017-03-17 15:29:43 -070042LOCAL_MODULE_OWNER := qcom
43LOCAL_PROPRIETARY_MODULE := true
Eric Laurentc4aef752013-09-12 17:45:53 -070044
45LOCAL_C_INCLUDES := \
46 external/tinyalsa/include \
47 $(call include-path-for, audio-effects)
48
Vijay Venkatraman0c87ff02017-03-28 11:32:30 -070049LOCAL_HEADER_LIBRARIES += libsystem_headers
Eric Laurentc4aef752013-09-12 17:45:53 -070050include $(BUILD_SHARED_LIBRARY)