blob: ce853a61c4ab05b29a5eaba49ce5945a19d17ff7 [file] [log] [blame]
Dan Willemsenb44c69e2017-10-23 17:15:03 -07001cc_library {
2 name: "libaaudio",
3
4 local_include_dirs: [
5 "binding",
6 "client",
7 "core",
8 "fifo",
Phil Burk64dce362018-03-28 15:30:39 -07009 "flowgraph",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070010 "legacy",
11 "utility",
12 ],
Marco Nelissen6b285942019-10-21 14:52:30 -070013 header_libs: [
14 "libaaudio_headers",
15 ],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070016 export_header_lib_headers: ["libaaudio_headers"],
dimitry8e8a9682019-06-04 15:14:02 +020017 version_script: "libaaudio.map.txt",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070018
19 srcs: [
dimitryd81a84a2019-07-17 13:55:16 +020020 "core/AAudioAudio.cpp",
21 ],
22
23 cflags: [
24 "-Wno-unused-parameter",
25 "-Wall",
26 "-Werror",
27
28 // By default, all symbols are hidden.
29 // "-fvisibility=hidden",
30 // AAUDIO_API is used to explicitly export a function or a variable as a visible symbol.
31 "-DAAUDIO_API=__attribute__((visibility(\"default\")))",
32 ],
33
34 shared_libs: [
35 "libaaudio_internal",
36 "libaudioclient",
37 "libaudioutils",
38 "liblog",
39 "libcutils",
40 "libutils",
41 "libbinder",
42 ],
Cindy Zhou30ed5942019-10-30 13:24:37 -070043
44 sanitize: {
45 integer_overflow: true,
46 misc_undefined: ["bounds"],
47 diag: {
48 integer_overflow: true,
49 misc_undefined: ["bounds"],
50 no_recover: [
51 "bounds",
52 "integer",
53 ],
54 },
55 },
56
Zach Johnson99c47ff2019-12-02 15:28:34 -080057 stubs: {
58 symbol_file: "libaaudio.map.txt",
59 versions: ["28"],
60 },
dimitryd81a84a2019-07-17 13:55:16 +020061}
62
63cc_library {
64 name: "libaaudio_internal",
65
66 local_include_dirs: [
67 "binding",
68 "client",
69 "core",
70 "fifo",
71 "legacy",
72 "utility",
73 ],
74
75 export_include_dirs: ["."],
Marco Nelissen6b285942019-10-21 14:52:30 -070076 header_libs: [
77 "libaaudio_headers",
Cindy Zhou30ed5942019-10-30 13:24:37 -070078 "libmedia_headers",
Marco Nelissen7c96ea72020-01-10 15:46:22 -080079 "libmediametrics_headers",
Marco Nelissen6b285942019-10-21 14:52:30 -070080 ],
dimitryd81a84a2019-07-17 13:55:16 +020081 export_header_lib_headers: ["libaaudio_headers"],
82
83 shared_libs: [
84 "libaudioclient",
85 "libaudioutils",
86 "liblog",
87 "libcutils",
88 "libutils",
89 "libbinder",
90 ],
91
92 cflags: [
93 "-Wno-unused-parameter",
94 "-Wall",
95 "-Werror",
96 ],
97
98 srcs: [
99 "core/AudioGlobal.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700100 "core/AudioStream.cpp",
101 "core/AudioStreamBuilder.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700102 "core/AAudioStreamParameters.cpp",
103 "legacy/AudioStreamLegacy.cpp",
104 "legacy/AudioStreamRecord.cpp",
105 "legacy/AudioStreamTrack.cpp",
106 "utility/AAudioUtilities.cpp",
107 "utility/FixedBlockAdapter.cpp",
108 "utility/FixedBlockReader.cpp",
109 "utility/FixedBlockWriter.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700110 "fifo/FifoBuffer.cpp",
111 "fifo/FifoControllerBase.cpp",
Phil Burk0127c1b2018-03-29 13:48:06 -0700112 "client/AAudioFlowGraph.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700113 "client/AudioEndpoint.cpp",
114 "client/AudioStreamInternal.cpp",
115 "client/AudioStreamInternalCapture.cpp",
116 "client/AudioStreamInternalPlay.cpp",
117 "client/IsochronousClockModel.cpp",
118 "binding/AudioEndpointParcelable.cpp",
119 "binding/AAudioBinderClient.cpp",
120 "binding/AAudioStreamRequest.cpp",
121 "binding/AAudioStreamConfiguration.cpp",
122 "binding/IAAudioClient.cpp",
123 "binding/IAAudioService.cpp",
124 "binding/RingBufferParcelable.cpp",
125 "binding/SharedMemoryParcelable.cpp",
126 "binding/SharedRegionParcelable.cpp",
Phil Burk64dce362018-03-28 15:30:39 -0700127 "flowgraph/AudioProcessorBase.cpp",
128 "flowgraph/ClipToRange.cpp",
129 "flowgraph/MonoToMultiConverter.cpp",
130 "flowgraph/RampLinear.cpp",
131 "flowgraph/SinkFloat.cpp",
132 "flowgraph/SinkI16.cpp",
133 "flowgraph/SinkI24.cpp",
134 "flowgraph/SourceFloat.cpp",
135 "flowgraph/SourceI16.cpp",
136 "flowgraph/SourceI24.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700137 ],
Cindy Zhou30ed5942019-10-30 13:24:37 -0700138 sanitize: {
139 integer_overflow: true,
140 misc_undefined: ["bounds"],
141 diag: {
142 integer_overflow: true,
143 misc_undefined: ["bounds"],
144 no_recover: [
145 "bounds",
146 "integer",
147 ],
148 },
149 },
150
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700151}