blob: 6345742be7a1d7bcd5831b283c56c311715e3f5e [file] [log] [blame]
Steven Moreland6eb0c0e2017-07-06 11:11:31 -07001cc_defaults {
2 name: "libnbaio_mono_defaults",
3 srcs: [
4 "MonoPipe.cpp",
5 "MonoPipeReader.cpp",
6 "NBAIO.cpp",
7 ],
8 header_libs: [
9 "libaudioclient_headers",
Kevin Rocard07be14f2018-01-24 06:14:03 +000010 "libaudio_system_headers",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070011 "libmedia_headers",
12 ],
13 export_header_lib_headers: [
14 "libaudioclient_headers",
15 "libmedia_headers",
16 ],
17
18 shared_libs: [
Kevin Rocard07be14f2018-01-24 06:14:03 +000019 "libaudioutils",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070020 "liblog",
21 "libutils",
22 ],
Mikhail Naganov19171792019-08-02 08:57:25 -070023 export_shared_lib_headers: [
24 "libaudioutils",
25 ],
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070026
27 export_include_dirs: ["include_mono"],
28}
29
30// libnbaio_mono is the part of libnbaio that is available for vendors to use. Vendor modules can't
31// link against libnbaio and system modules can't link against libnbaio_mono. The rest of libnbaio
32// pulls in too many other dependencies.
33cc_library_shared {
Kevin Rocard07be14f2018-01-24 06:14:03 +000034 name: "libnbaio_mono",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070035 vendor: true,
36 defaults: ["libnbaio_mono_defaults"],
37}
38
Dan Willemsene90894f2016-10-04 00:14:41 -070039cc_library_shared {
40 name: "libnbaio",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070041 defaults: ["libnbaio_mono_defaults"],
Dan Willemsene90894f2016-10-04 00:14:41 -070042 srcs: [
43 "AudioBufferProviderSource.cpp",
Dan Willemsene90894f2016-10-04 00:14:41 -070044 "AudioStreamInSource.cpp",
Glenn Kastened99c2b2016-12-12 08:31:24 -080045 "AudioStreamOutSink.cpp",
Dan Willemsene90894f2016-10-04 00:14:41 -070046 "Pipe.cpp",
47 "PipeReader.cpp",
48 "SourceAudioBufferProvider.cpp",
Dan Willemsene90894f2016-10-04 00:14:41 -070049 ],
50
51 // libsndfile license is incompatible; uncomment to use for local debug only
52 // srcs: [
53 // "LibsndfileSink.cpp",
54 // "LibsndfileSource.cpp",
55 // ],
56 // static_libs: ["libsndfile"],
57
58 shared_libs: [
Kevin Rocard07be14f2018-01-24 06:14:03 +000059 "libaudioutils",
Dan Willemsene90894f2016-10-04 00:14:41 -070060 "libbinder",
61 "libcutils",
Dan Willemsene90894f2016-10-04 00:14:41 -070062 "liblog",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070063 "libutils",
Dan Willemsene90894f2016-10-04 00:14:41 -070064 ],
65
66 cflags: [
67 "-Werror",
68 "-Wall",
69 ],
Glenn Kastened99c2b2016-12-12 08:31:24 -080070
Vijay Venkatramane2b43842017-02-02 13:35:37 -080071 export_include_dirs: ["include"],
Dan Willemsene90894f2016-10-04 00:14:41 -070072}