blob: e9422cce48432029a57ac707b32be77dd1bb018d [file] [log] [blame]
Bob Badour56786ac2021-02-25 15:24:36 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_av_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_av_license"],
8}
9
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070010cc_defaults {
11 name: "libnbaio_mono_defaults",
12 srcs: [
13 "MonoPipe.cpp",
14 "MonoPipeReader.cpp",
15 "NBAIO.cpp",
16 ],
17 header_libs: [
18 "libaudioclient_headers",
Kevin Rocard07be14f2018-01-24 06:14:03 +000019 "libaudio_system_headers",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070020 ],
21 export_header_lib_headers: [
22 "libaudioclient_headers",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070023 ],
24
25 shared_libs: [
Kevin Rocard07be14f2018-01-24 06:14:03 +000026 "libaudioutils",
Mikhail Naganov9f3c02d2019-08-12 11:36:05 -070027 "libcutils",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070028 "liblog",
29 "libutils",
30 ],
Mikhail Naganov19171792019-08-02 08:57:25 -070031 export_shared_lib_headers: [
32 "libaudioutils",
33 ],
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070034
35 export_include_dirs: ["include_mono"],
Mikhail Naganov9f3c02d2019-08-12 11:36:05 -070036
37 cflags: [
38 "-Werror",
39 "-Wall",
40 ],
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070041}
42
43// libnbaio_mono is the part of libnbaio that is available for vendors to use. Vendor modules can't
44// link against libnbaio and system modules can't link against libnbaio_mono. The rest of libnbaio
45// pulls in too many other dependencies.
46cc_library_shared {
Kevin Rocard07be14f2018-01-24 06:14:03 +000047 name: "libnbaio_mono",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070048 vendor: true,
49 defaults: ["libnbaio_mono_defaults"],
50}
51
Dan Willemsene90894f2016-10-04 00:14:41 -070052cc_library_shared {
53 name: "libnbaio",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070054 defaults: ["libnbaio_mono_defaults"],
Dan Willemsene90894f2016-10-04 00:14:41 -070055 srcs: [
56 "AudioBufferProviderSource.cpp",
Dan Willemsene90894f2016-10-04 00:14:41 -070057 "AudioStreamInSource.cpp",
Glenn Kastened99c2b2016-12-12 08:31:24 -080058 "AudioStreamOutSink.cpp",
Dan Willemsene90894f2016-10-04 00:14:41 -070059 "Pipe.cpp",
60 "PipeReader.cpp",
61 "SourceAudioBufferProvider.cpp",
Dan Willemsene90894f2016-10-04 00:14:41 -070062 ],
63
64 // libsndfile license is incompatible; uncomment to use for local debug only
65 // srcs: [
66 // "LibsndfileSink.cpp",
67 // "LibsndfileSource.cpp",
68 // ],
69 // static_libs: ["libsndfile"],
70
Mikhail Naganov9f3c02d2019-08-12 11:36:05 -070071 header_libs: ["libaudiohal_headers"],
Glenn Kastened99c2b2016-12-12 08:31:24 -080072
Vijay Venkatramane2b43842017-02-02 13:35:37 -080073 export_include_dirs: ["include"],
Dan Willemsene90894f2016-10-04 00:14:41 -070074}