1// Copyright (C) 2019 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 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "frameworks_av_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["frameworks_av_license"], 22} 23 24cc_library { 25 26 name: "libaaudioservice", 27 28 srcs: [ 29 "AAudioClientTracker.cpp", 30 "AAudioEndpointManager.cpp", 31 "AAudioMixer.cpp", 32 "AAudioService.cpp", 33 "AAudioServiceEndpoint.cpp", 34 "AAudioServiceEndpointCapture.cpp", 35 "AAudioServiceEndpointMMAP.cpp", 36 "AAudioServiceEndpointPlay.cpp", 37 "AAudioServiceEndpointShared.cpp", 38 "AAudioServiceStreamBase.cpp", 39 "AAudioServiceStreamMMAP.cpp", 40 "AAudioServiceStreamShared.cpp", 41 "AAudioStreamTracker.cpp", 42 "AAudioThread.cpp", 43 "SharedMemoryProxy.cpp", 44 "SharedRingBuffer.cpp", 45 "TimestampScheduler.cpp", 46 ], 47 48 cflags: [ 49 "-Wthread-safety", 50 "-Wno-unused-parameter", 51 "-Wall", 52 "-Werror", 53 ], 54 55 shared_libs: [ 56 "libaaudio_internal", 57 "libaudioclient", 58 "libaudioflinger", 59 "libaudioutils", 60 "libmedia_helper", 61 "libmediametrics", 62 "libmediautils", 63 "libbase", 64 "libbinder", 65 "libcutils", 66 "liblog", 67 "libutils", 68 "aaudio-aidl-cpp", 69 "framework-permission-aidl-cpp", 70 "libaudioclient_aidl_conversion", 71 ], 72 73 export_shared_lib_headers: [ 74 "libaaudio_internal", 75 "framework-permission-aidl-cpp", 76 ], 77 78 header_libs: [ 79 "libaudiohal_headers", 80 ], 81 82 include_dirs: [ 83 "frameworks/av/media/libnbaio/include_mono", 84 "frameworks/av/media/libnbaio/include", 85 ], 86} 87