1// 2// Copyright (C) 2011 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 16cc_binary { 17 name: "android.hardware.audio.service.ranchu", 18 vendor: true, 19 init_rc: ["android.hardware.audio.service.ranchu.rc"], 20 vintf_fragments: ["android.hardware.audio@6.0-impl.ranchu.xml"], 21 relative_install_path: "hw", 22 defaults: ["hidl_defaults"], 23 srcs: [ 24 "entry.cpp", 25 "device_factory.cpp", 26 "primary_device.cpp", 27 "stream_common.cpp", 28 "stream_in.cpp", 29 "stream_out.cpp", 30 "io_thread.cpp", 31 "device_port_source.cpp", 32 "device_port_sink.cpp", 33 "talsa.cpp", 34 "util.cpp", 35 ], 36 shared_libs: [ 37 "android.hardware.audio@6.0", 38 "android.hardware.audio.common@6.0", 39 "android.hardware.audio.common@6.0-util", 40 "libaudioutils", 41 "libbase", 42 "libbinder", 43 "libcutils", 44 "libhidlbase", 45 "liblog", 46 "libtinyalsa", 47 "libutils", 48 "libfmq", 49 "libprocessgroup", 50 ], 51 header_libs: [ 52 "libaudio_system_headers", 53 ], 54 cflags: [ 55 "-DLOG_TAG=\"android.hardware.audio.service.ranchu\"", 56 ], 57 // android.hardware.audio.service.ranchu loads android.hardware.audio@6.0-impl 58 // which loads audio.r_submix.default which provides the r_submix device, 59 // see b/161485545. Should be retired once a better r_submix is available. 60 required: [ 61 "android.hardware.audio@6.0-impl", 62 "audio.r_submix.default", 63 ], 64} 65