blob: 04ddcfffeb9c08b5d8b3275bfe9f1cbf5a01b7bf [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 ],
12 export_header_lib_headers: [
13 "libaudioclient_headers",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070014 ],
15
16 shared_libs: [
Kevin Rocard07be14f2018-01-24 06:14:03 +000017 "libaudioutils",
Mikhail Naganov9f3c02d2019-08-12 11:36:05 -070018 "libcutils",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070019 "liblog",
20 "libutils",
21 ],
Mikhail Naganov19171792019-08-02 08:57:25 -070022 export_shared_lib_headers: [
23 "libaudioutils",
24 ],
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070025
26 export_include_dirs: ["include_mono"],
Mikhail Naganov9f3c02d2019-08-12 11:36:05 -070027
28 cflags: [
29 "-Werror",
30 "-Wall",
31 ],
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070032}
33
34// libnbaio_mono is the part of libnbaio that is available for vendors to use. Vendor modules can't
35// link against libnbaio and system modules can't link against libnbaio_mono. The rest of libnbaio
36// pulls in too many other dependencies.
37cc_library_shared {
Kevin Rocard07be14f2018-01-24 06:14:03 +000038 name: "libnbaio_mono",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070039 vendor: true,
40 defaults: ["libnbaio_mono_defaults"],
41}
42
Dan Willemsene90894f2016-10-04 00:14:41 -070043cc_library_shared {
44 name: "libnbaio",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070045 defaults: ["libnbaio_mono_defaults"],
Dan Willemsene90894f2016-10-04 00:14:41 -070046 srcs: [
47 "AudioBufferProviderSource.cpp",
Dan Willemsene90894f2016-10-04 00:14:41 -070048 "AudioStreamInSource.cpp",
Glenn Kastened99c2b2016-12-12 08:31:24 -080049 "AudioStreamOutSink.cpp",
Dan Willemsene90894f2016-10-04 00:14:41 -070050 "Pipe.cpp",
51 "PipeReader.cpp",
52 "SourceAudioBufferProvider.cpp",
Dan Willemsene90894f2016-10-04 00:14:41 -070053 ],
54
55 // libsndfile license is incompatible; uncomment to use for local debug only
56 // srcs: [
57 // "LibsndfileSink.cpp",
58 // "LibsndfileSource.cpp",
59 // ],
60 // static_libs: ["libsndfile"],
61
Mikhail Naganov9f3c02d2019-08-12 11:36:05 -070062 header_libs: ["libaudiohal_headers"],
Glenn Kastened99c2b2016-12-12 08:31:24 -080063
Vijay Venkatramane2b43842017-02-02 13:35:37 -080064 export_include_dirs: ["include"],
Dan Willemsene90894f2016-10-04 00:14:41 -070065}