1# 2# Copyright (C) 2016 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16 17LOCAL_PATH := $(call my-dir) 18 19# 20# Service 21# 22 23include $(CLEAR_VARS) 24LOCAL_MODULE := android.hardware.audio@2.0-service 25LOCAL_INIT_RC := android.hardware.audio@2.0-service.rc 26LOCAL_MODULE_RELATIVE_PATH := hw 27LOCAL_PROPRIETARY_MODULE := true 28LOCAL_SRC_FILES := \ 29 service.cpp 30 31LOCAL_CFLAGS := -Wall -Werror 32 33LOCAL_SHARED_LIBRARIES := \ 34 libcutils \ 35 libbinder \ 36 libhidlbase \ 37 libhidltransport \ 38 liblog \ 39 libutils \ 40 libhardware \ 41 libhwbinder \ 42 android.hardware.audio@2.0 \ 43 android.hardware.audio@4.0 \ 44 android.hardware.audio@5.0 \ 45 android.hardware.audio.common@2.0 \ 46 android.hardware.audio.common@4.0 \ 47 android.hardware.audio.common@5.0 \ 48 android.hardware.audio.effect@2.0 \ 49 android.hardware.audio.effect@4.0 \ 50 android.hardware.audio.effect@5.0 \ 51 android.hardware.bluetooth.a2dp@1.0 \ 52 android.hardware.bluetooth.audio@2.0 \ 53 android.hardware.soundtrigger@2.0 \ 54 android.hardware.soundtrigger@2.1 \ 55 android.hardware.soundtrigger@2.2 56 57# Can not switch to Android.bp until AUDIOSERVER_MULTILIB 58# is deprecated as build config variable are not supported 59ifeq ($(strip $(AUDIOSERVER_MULTILIB)),) 60LOCAL_MULTILIB := 32 61else 62LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) 63endif 64 65include $(BUILD_EXECUTABLE) 66