import exynos 7570 bsp
[GitHub/LineageOS/android_hardware_samsung_slsi_exynos.git] / libaudio / hal / Android.mk
CommitLineData
5763fb39
T
1# Copyright (C) 2014 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
15#
16# Primary Audio HAL
17#
18LOCAL_PATH := $(call my-dir)
19DEVICE_BASE_PATH := $(TOP)/device/samsung
20
21include $(CLEAR_VARS)
22
23LOCAL_SRC_FILES := \
24 audio_hw.c
25
26ifeq ($(BOARD_USE_SIPC_RIL), true)
27LOCAL_SRC_FILES += \
28 sec/voice_manager.c
29else
30LOCAL_SRC_FILES += \
31 ww/voice_manager.c
32endif
33
34LOCAL_C_INCLUDES += \
35 external/tinyalsa/include \
36 external/tinycompress/include \
37 external/kernel-headers/original/uapi/sound \
38 $(call include-path-for, audio-route) \
39 $(call include-path-for, audio-utils) \
40 $(DEVICE_BASE_PATH)/$(TARGET_BOOTLOADER_BOARD_NAME)/conf \
41 external/expat/lib
42
43ifeq ($(BOARD_USE_SIPC_RIL), true)
44LOCAL_C_INCLUDES += \
45 $(LOCAL_PATH)/sec
46else
47LOCAL_C_INCLUDES += \
48 $(LOCAL_PATH)/ww
49endif
50
51LOCAL_SHARED_LIBRARIES := \
52 liblog \
53 libcutils \
54 libtinyalsa \
55 libtinycompress \
56 libaudioroute \
57 libaudioutils \
58 libdl \
59 libexpat
60
61ifeq ($(BOARD_USE_SIPC_RIL), true)
62LOCAL_CFLAGS += -DSUPPORT_SIPC_RIL
63endif
64
65LOCAL_MODULE := audio.primary.$(TARGET_BOOTLOADER_BOARD_NAME)
66LOCAL_MODULE_RELATIVE_PATH := hw
67
68LOCAL_MODULE_TAGS := optional
69
70include $(BUILD_SHARED_LIBRARY)
71
72include $(call all-makefiles-under,$(LOCAL_PATH))