blob: 64ada4852d7152a48f5076e02f7bb0734e578952 [file] [log] [blame]
Christopher N. Hesse297a6362017-01-28 12:40:45 +01001# Copyright (C) 2017 The LineageOS 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
15ifeq ($(TARGET_AUDIOHAL_VARIANT),samsung)
16
17LOCAL_PATH := $(call my-dir)
18
19include $(CLEAR_VARS)
20
21LOCAL_ARM_MODE := arm
22
23LOCAL_SRC_FILES := \
Christopher N. Hesse0fdef0c2017-02-25 01:37:56 +010024 audience.c \
Christopher N. Hesse757ac412017-01-28 14:42:48 +010025 audio_hw.c \
Christopher N. Hessebc52af52017-02-10 21:20:30 +010026 compress_offload.c \
Christopher N. Hesse41c9f3d2017-02-02 20:48:56 +010027 ril_interface.c \
28 voice.c
Christopher N. Hesse297a6362017-01-28 12:40:45 +010029
30# TODO: remove resampler if possible when AudioFlinger supports downsampling from 48 to 8
31LOCAL_SHARED_LIBRARIES := \
32 liblog \
33 libcutils \
34 libaudioutils \
Christopher N. Hesse6a2a3072017-08-04 21:17:55 +020035 libhardware \
Christopher N. Hesse297a6362017-01-28 12:40:45 +010036 libtinyalsa \
37 libtinycompress \
38 libaudioroute \
Christopher N. Hessebc52af52017-02-10 21:20:30 +010039 libdl \
40 libsecril-client
Christopher N. Hesse297a6362017-01-28 12:40:45 +010041
42
43LOCAL_C_INCLUDES += \
Christopher N. Hessed23c6b52017-01-28 14:18:10 +010044 $(LOCAL_PATH)/include \
Christopher N. Hesse297a6362017-01-28 12:40:45 +010045 external/tinyalsa/include \
46 external/tinycompress/include \
Christopher N. Hesse6a2a3072017-08-04 21:17:55 +020047 hardware/libhardware/include \
Christopher N. Hessebc52af52017-02-10 21:20:30 +010048 hardware/samsung/ril/libsecril-client \
Christopher N. Hesse297a6362017-01-28 12:40:45 +010049 $(call include-path-for, audio-utils) \
50 $(call include-path-for, audio-route) \
51 $(call include-path-for, audio-effects)
52
Andreas Schneider5a2f1002017-02-09 10:59:04 +010053LOCAL_CFLAGS := -Werror -Wall
Basil Gelloefdfdba2018-05-21 18:29:12 +030054LOCAL_CFLAGS += -DPREPROCESSING_ENABLED
Christopher N. Hesse297a6362017-01-28 12:40:45 +010055
56LOCAL_MODULE := audio.primary.$(TARGET_BOOTLOADER_BOARD_NAME)
57
58LOCAL_MODULE_RELATIVE_PATH := hw
59
60LOCAL_MODULE_TAGS := optional
61
62include $(BUILD_SHARED_LIBRARY)
63
64endif