blob: 170d2c1f2c9cf3d4e8fe313d70d7d621a07cdede [file] [log] [blame]
Roman Kiryanovfc012082020-04-21 17:44:06 -07001//
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
Roman Kiryanov8a67b302020-07-18 20:23:07 -070016cc_library_shared {
17 name: "android.hardware.audio.legacy@6.0-impl.ranchu",
18 defaults: ["android.hardware.audio@6.0-impl_default"],
19 relative_install_path: "hw",
Roman Kiryanovfc012082020-04-21 17:44:06 -070020 vendor: true,
Roman Kiryanov8a67b302020-07-18 20:23:07 -070021}
22
23cc_library_shared {
24 name: "android.hardware.audio@6.0-impl.ranchu",
25 vendor: true,
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070026 vintf_fragments: ["android.hardware.audio@6.0-impl.ranchu.xml"],
Roman Kiryanovfc012082020-04-21 17:44:06 -070027 relative_install_path: "hw",
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070028 defaults: ["hidl_defaults"],
29 srcs: [
30 "entry.cpp",
31 "device_factory.cpp",
32 "primary_device.cpp",
33 "stream_common.cpp",
34 "stream_in.cpp",
35 "stream_out.cpp",
36 "io_thread.cpp",
Roman Kiryanov2146e1c2020-06-19 11:20:45 -070037 "device_port_source.cpp",
38 "device_port_sink.cpp",
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070039 "talsa.cpp",
Roman Kiryanov95467ad2020-07-22 16:43:37 -070040 "ring_buffer.cpp",
Roman Kiryanov2ab979a2020-07-17 19:07:03 -070041 "audio_ops.cpp",
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070042 "util.cpp",
43 ],
Roman Kiryanovfc012082020-04-21 17:44:06 -070044 shared_libs: [
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070045 "android.hardware.audio@6.0",
46 "android.hardware.audio.common@6.0",
47 "android.hardware.audio.common@6.0-util",
Roman Kiryanov76e82792020-06-19 12:24:34 -070048 "libaudioutils",
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070049 "libbase",
Roman Kiryanovfc012082020-04-21 17:44:06 -070050 "libcutils",
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070051 "libhidlbase",
Roman Kiryanovfc012082020-04-21 17:44:06 -070052 "liblog",
53 "libtinyalsa",
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070054 "libutils",
55 "libfmq",
Roman Kiryanovb9a904c2020-06-22 10:50:55 -070056 "libprocessgroup",
Roman Kiryanove05b5122020-05-20 13:27:40 -070057 ],
58 header_libs: [
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070059 "libaudio_system_headers",
Roman Kiryanove05b5122020-05-20 13:27:40 -070060 ],
Roman Kiryanovfc012082020-04-21 17:44:06 -070061 cflags: [
Roman Kiryanov8a67b302020-07-18 20:23:07 -070062 "-DLOG_TAG=\"android.hardware.audio@6.0-impl.ranchu\"",
Roman Kiryanovfc012082020-04-21 17:44:06 -070063 ],
Roman Kiryanov8a67b302020-07-18 20:23:07 -070064 // a.h.audio@6.0-impl.ranchu (see above) loads a.h.audio.legacy@6.0-impl
Roman Kiryanovbc4287b2020-07-18 19:05:12 -070065 // which loads audio.r_submix.default which provides the r_submix device,
66 // see b/161485545. Should be retired once a better r_submix is available.
67 required: [
Roman Kiryanov8a67b302020-07-18 20:23:07 -070068 "android.hardware.audio.legacy@6.0-impl.ranchu",
Roman Kiryanovbc4287b2020-07-18 19:05:12 -070069 "audio.r_submix.default",
70 ],
Roman Kiryanovfc012082020-04-21 17:44:06 -070071}