blob: 7d7cfe9827e88d4c178f17b8141c7bf87ca6ad91 [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
Chih-Hung Hsieh5b86ac22018-01-02 11:50:49 -080038LOCAL_CFLAGS += \
39 -Wall \
40 -Werror \
41 -Wno-unused-variable \
42
Kevin Rocardbae0dcb2018-01-24 06:13:37 +000043LOCAL_HEADER_LIBRARIES := libhardware_headers
Steven Moreland30faba12017-06-30 15:02:57 -070044
Ajay Dudani89541032015-03-30 17:39:24 -070045LOCAL_MODULE_RELATIVE_PATH := soundfx
Eric Laurentc4aef752013-09-12 17:45:53 -070046LOCAL_MODULE:= libqcomvisualizer
Diego Wilson8c83e0a2017-03-17 15:29:43 -070047LOCAL_MODULE_OWNER := qcom
48LOCAL_PROPRIETARY_MODULE := true
Eric Laurentc4aef752013-09-12 17:45:53 -070049
50LOCAL_C_INCLUDES := \
51 external/tinyalsa/include \
Kevin Rocardbae0dcb2018-01-24 06:13:37 +000052 $(call include-path-for, audio-effects)
Eric Laurentc4aef752013-09-12 17:45:53 -070053
Vijay Venkatraman0c87ff02017-03-28 11:32:30 -070054LOCAL_HEADER_LIBRARIES += libsystem_headers
Eric Laurentc4aef752013-09-12 17:45:53 -070055include $(BUILD_SHARED_LIBRARY)