blob: a7586b2f926874aa838af5d05b6cc5c3234f23d2 [file] [log] [blame]
#
# Copyright (C) 2012 Wolfson Microelectronics plc
# Copyright (C) 2011 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)
include $(CLEAR_VARS)
LOCAL_MODULE := libaudiohalcm
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
LOCAL_MODULE_TAGS := optional
LOCAL_CFLAGS += -Werror
LOCAL_C_INCLUDES += \
external/tinycompress/include \
external/tinyalsa/include \
external/tinyhal/audio \
external/expat/lib \
$(call include-path-for, audio-utils)
LOCAL_SRC_FILES := \
audio_config.c
LOCAL_SHARED_LIBRARIES := \
libcutils \
libutils \
libdl \
liblog \
libexpat \
libtinyalsa \
include $(BUILD_SHARED_LIBRARY)
ifeq ($(strip $(BOARD_USES_TINYHAL_AUDIO)),true)
include $(CLEAR_VARS)
LOCAL_MODULE := audio.primary.omap4
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE_TAGS := optional
LOCAL_CFLAGS += -Werror
LOCAL_C_INCLUDES += \
external/tinycompress/include \
external/tinyalsa/include \
external/tinyhal/audio \
external/expat/lib \
$(call include-path-for, audio-utils)
LOCAL_SRC_FILES := \
audio_hw.c \
voice_trigger.cpp
LOCAL_STATIC_LIBRARIES := \
libmedia_helper
LOCAL_SHARED_LIBRARIES := \
libcutils \
libutils \
libdl \
liblog \
libhardware_legacy \
libtinyalsa \
libtinycompress \
libaudiohalcm \
libaudioutils \
libsysutils
include $(BUILD_SHARED_LIBRARY)
endif