blob: 78157709a36bc5edc680ecad18126daf91f1c8c7 [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
Chih-Hung Hsiehaa016a52017-11-06 11:39:27 -080024LOCAL_CFLAGS+= \
25 -Wall \
26 -Werror \
27 -Wno-unused-variable \
28
Eric Laurentc4aef752013-09-12 17:45:53 -070029LOCAL_SHARED_LIBRARIES := \
30 libcutils \
31 liblog \
Ravi Kumar Alamanda8652b462014-11-14 16:51:10 -080032 libdl \
Eric Laurentc4aef752013-09-12 17:45:53 -070033 libtinyalsa
34
Kevin Rocardc76a5352017-09-01 10:50:33 -070035# HACK to set the right record proxy effect card number.
36# It should be retrieved from the primary hal USECASE_AUDIO_RECORD_AFE_PROXY.
37ifneq ($(filter msm8998,$(TARGET_BOARD_PLATFORM)),)
38 LOCAL_CFLAGS := -DCAPTURE_DEVICE=7
39else
40 LOCAL_CFLAGS := -DCAPTURE_DEVICE=8
41endif
42
Steven Moreland30faba12017-06-30 15:02:57 -070043LOCAL_HEADER_LIBRARIES := libhardware_headers
44
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 \
52 $(call include-path-for, audio-effects)
53
Vijay Venkatraman0c87ff02017-03-28 11:32:30 -070054LOCAL_HEADER_LIBRARIES += libsystem_headers
Eric Laurentc4aef752013-09-12 17:45:53 -070055include $(BUILD_SHARED_LIBRARY)