blob: 02f7529bdc69d74fed36abc95125def56f6997d1 [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",
11 "libaudio_system_headers",
12 "libmedia_headers",
13 ],
14 export_header_lib_headers: [
15 "libaudioclient_headers",
16 "libmedia_headers",
17 ],
18
19 shared_libs: [
20 "libaudioutils",
21 "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 {
32 name: "libnbaio_mono",
33 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",
Glenn Kastened99c2b2016-12-12 08:31:24 -080044 "NBLog.cpp",
Sanna Catherine de Treville Wagerd0dfe432017-06-22 15:09:38 -070045 "PerformanceAnalysis.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: [
Dan Willemsene90894f2016-10-04 00:14:41 -070059 "libaudioutils",
60 "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
71 include_dirs: ["system/media/audio_utils/include"],
Vijay Venkatramane2b43842017-02-02 13:35:37 -080072
Vijay Venkatramane2b43842017-02-02 13:35:37 -080073 export_include_dirs: ["include"],
Dan Willemsene90894f2016-10-04 00:14:41 -070074}