| # Copyright (C) 2017 The Android Open Source Project |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| LOCAL_PATH := $(call my-dir) |
| SOC_BASE_PATH := $(TOP)/hardware/samsung_slsi-linaro/exynos |
| |
| include $(CLEAR_VARS) |
| |
| LOCAL_SRC_FILES := \ |
| audio_proxy.c \ |
| audio_usb_proxy.c |
| |
| LOCAL_C_INCLUDES += \ |
| $(SOC_BASE_PATH)/include/libaudio/audiohal \ |
| external/tinyalsa/include \ |
| external/tinycompress/include \ |
| external/kernel-headers/original/uapi/sound \ |
| $(call include-path-for, audio-utils) \ |
| $(call include-path-for, audio-route) \ |
| $(call include-path-for, alsa-utils) \ |
| external/expat/lib |
| |
| LOCAL_HEADER_LIBRARIES := libhardware_headers |
| LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa libtinycompress libaudioutils libaudioroute libalsautils libexpat |
| |
| # BT A2DP Offload HAL Interface |
| ifeq ($(BOARD_USE_BTA2DP_OFFLOAD),true) |
| LOCAL_CFLAGS += -DSUPPORT_BTA2DP_OFFLOAD |
| LOCAL_SRC_FILES += audio_a2dp_proxy.cpp |
| LOCAL_SHARED_LIBRARIES += libbase libhidlbase libhidlmemory libhwbinder libutils android.hidl.allocator@1.0 android.hidl.memory@1.0 |
| LOCAL_SHARED_LIBRARIES += vendor.samsung_slsi.hardware.ExynosA2DPOffload@1.0 |
| endif |
| |
| LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function |
| |
| # To use MCD specific definitions |
| LOCAL_CFLAGS += -DSUPPORT_MCD_FEATURE |
| |
| ifeq ($(BOARD_USE_SOUNDTRIGGER_HAL),true) |
| LOCAL_CFLAGS += -DSUPPORT_STHAL_INTERFACE |
| LOCAL_CFLAGS += -DTARGET_SOC_NAME=$(TARGET_SOC) |
| endif |
| |
| ifeq ($(BOARD_USE_QUAD_MIC),true) |
| LOCAL_CFLAGS += -DSUPPORT_QUAD_MIC |
| endif |
| |
| ifeq ($(BOARD_USE_DIRECT_RCVSPK_PATH),true) |
| LOCAL_CFLAGS += -DSUPPORT_DIRECT_RCVSPK_PATH |
| endif |
| |
| ifeq ($(TARGET_BOARD_PLATFORM),universal9820) |
| LOCAL_CFLAGS += -DENABLE_SPKAMP_PLAYBACK=true |
| endif |
| |
| ifeq ($(BOARD_USE_DUAL_SPEAKER),true) |
| LOCAL_CFLAGS += -DSUPPORT_DUAL_SPEAKER |
| endif |
| |
| LOCAL_MODULE := libaudioproxy |
| LOCAL_MODULE_TAGS := optional |
| |
| LOCAL_PROPRIETARY_MODULE := true |
| |
| include $(BUILD_SHARED_LIBRARY) |