1e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# Copyright (C) 2012 The Android Open Source Project 2e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# 3e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# Licensed under the Apache License, Version 2.0 (the "License"); 4e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# you may not use this file except in compliance with the License. 5e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# You may obtain a copy of the License at 6e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# 7e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# http://www.apache.org/licenses/LICENSE-2.0 8e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# 9e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# Unless required by applicable law or agreed to in writing, software 10e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# distributed under the License is distributed on an "AS IS" BASIS, 11e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# See the License for the specific language governing permissions and 13e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare# limitations under the License. 14e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare 15e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce BeareLOCAL_PATH := $(call my-dir) 16e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare 17e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beareinclude $(CLEAR_VARS) 18e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare 19e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce BeareLOCAL_MODULE_RELATIVE_PATH := hw 20e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce BeareLOCAL_SRC_FILES := \ 21d29449ddd2a165389723aede7d49e66a8baa682fBruce Beare ../audio_hal.c 22e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce BeareLOCAL_C_INCLUDES += \ 23e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare external/tinyalsa/include \ 24e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare $(call include-path-for, audio-utils) \ 25e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare $(call include-path-for, alsa-utils) 26e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce BeareLOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa libaudioutils libalsautils 27e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce BeareLOCAL_MODULE_TAGS := optional 28d29449ddd2a165389723aede7d49e66a8baa682fBruce Beare 29d29449ddd2a165389723aede7d49e66a8baa682fBruce Beare# setting to build for primary audio or usb audio 30d29449ddd2a165389723aede7d49e66a8baa682fBruce Beare# set -DTARGET_AUDIO_PRIMARY to 1 for Primary (audio jack) 31d29449ddd2a165389723aede7d49e66a8baa682fBruce Beare# set -DTARGET_AUDIO_PRIMARY to 0 for USB audio 32d29449ddd2a165389723aede7d49e66a8baa682fBruce BeareLOCAL_CFLAGS := -Wno-unused-parameter -DTARGET_AUDIO_PRIMARY=1 33d29449ddd2a165389723aede7d49e66a8baa682fBruce BeareLOCAL_MODULE := audio.primary.$(TARGET_DEVICE) 34e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare 35e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beareinclude $(BUILD_SHARED_LIBRARY) 36e0fc48a2e5bd89517312cfa39c0143b24048b5fdBruce Beare 37