blob: a4df38dcab0486d4ee61c243348899ec00e67aa3 [file] [log] [blame]
Steven Moreland6eb0c0e2017-07-06 11:11:31 -07001
2cc_defaults {
3 name: "libnbaio_mono_defaults",
4 srcs: [
5 "MonoPipe.cpp",
6 "MonoPipeReader.cpp",
7 "NBAIO.cpp",
8 ],
9 header_libs: [
10 "libaudioclient_headers",
Kevin Rocard07be14f2018-01-24 06:14:03 +000011 "libaudio_system_headers",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070012 "libmedia_headers",
13 ],
14 export_header_lib_headers: [
15 "libaudioclient_headers",
16 "libmedia_headers",
17 ],
18
19 shared_libs: [
Kevin Rocard07be14f2018-01-24 06:14:03 +000020 "libaudioutils",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070021 "liblog",
22 "libutils",
23 ],
24
25 export_include_dirs: ["include_mono"],
26}
27
28// libnbaio_mono is the part of libnbaio that is available for vendors to use. Vendor modules can't
29// link against libnbaio and system modules can't link against libnbaio_mono. The rest of libnbaio
30// pulls in too many other dependencies.
31cc_library_shared {
Kevin Rocard07be14f2018-01-24 06:14:03 +000032 name: "libnbaio_mono",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070033 vendor: true,
34 defaults: ["libnbaio_mono_defaults"],
35}
36
Dan Willemsene90894f2016-10-04 00:14:41 -070037cc_library_shared {
38 name: "libnbaio",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070039 defaults: ["libnbaio_mono_defaults"],
Dan Willemsene90894f2016-10-04 00:14:41 -070040 srcs: [
41 "AudioBufferProviderSource.cpp",
Dan Willemsene90894f2016-10-04 00:14:41 -070042 "AudioStreamInSource.cpp",
Glenn Kastened99c2b2016-12-12 08:31:24 -080043 "AudioStreamOutSink.cpp",
Dan Willemsene90894f2016-10-04 00:14:41 -070044 "Pipe.cpp",
45 "PipeReader.cpp",
46 "SourceAudioBufferProvider.cpp",
Dan Willemsene90894f2016-10-04 00:14:41 -070047 ],
48
49 // libsndfile license is incompatible; uncomment to use for local debug only
50 // srcs: [
51 // "LibsndfileSink.cpp",
52 // "LibsndfileSource.cpp",
53 // ],
54 // static_libs: ["libsndfile"],
55
56 shared_libs: [
Kevin Rocard07be14f2018-01-24 06:14:03 +000057 "libaudioutils",
Dan Willemsene90894f2016-10-04 00:14:41 -070058 "libbinder",
59 "libcutils",
Dan Willemsene90894f2016-10-04 00:14:41 -070060 "liblog",
Steven Moreland6eb0c0e2017-07-06 11:11:31 -070061 "libutils",
Dan Willemsene90894f2016-10-04 00:14:41 -070062 ],
63
64 cflags: [
65 "-Werror",
66 "-Wall",
67 ],
Glenn Kastened99c2b2016-12-12 08:31:24 -080068
69 include_dirs: ["system/media/audio_utils/include"],
Vijay Venkatramane2b43842017-02-02 13:35:37 -080070
Vijay Venkatramane2b43842017-02-02 13:35:37 -080071 export_include_dirs: ["include"],
Dan Willemsene90894f2016-10-04 00:14:41 -070072}