blob: baada229c7276ee2d74f17f010e3b0346d267a11 [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 Nelissen6b285942019-10-21 14:52:30 -070079 ],
dimitryd81a84a2019-07-17 13:55:16 +020080 export_header_lib_headers: ["libaaudio_headers"],
81
82 shared_libs: [
83 "libaudioclient",
84 "libaudioutils",
85 "liblog",
86 "libcutils",
87 "libutils",
88 "libbinder",
89 ],
90
91 cflags: [
92 "-Wno-unused-parameter",
93 "-Wall",
94 "-Werror",
95 ],
96
97 srcs: [
98 "core/AudioGlobal.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070099 "core/AudioStream.cpp",
100 "core/AudioStreamBuilder.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700101 "core/AAudioStreamParameters.cpp",
102 "legacy/AudioStreamLegacy.cpp",
103 "legacy/AudioStreamRecord.cpp",
104 "legacy/AudioStreamTrack.cpp",
105 "utility/AAudioUtilities.cpp",
106 "utility/FixedBlockAdapter.cpp",
107 "utility/FixedBlockReader.cpp",
108 "utility/FixedBlockWriter.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700109 "fifo/FifoBuffer.cpp",
110 "fifo/FifoControllerBase.cpp",
Phil Burk0127c1b2018-03-29 13:48:06 -0700111 "client/AAudioFlowGraph.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700112 "client/AudioEndpoint.cpp",
113 "client/AudioStreamInternal.cpp",
114 "client/AudioStreamInternalCapture.cpp",
115 "client/AudioStreamInternalPlay.cpp",
116 "client/IsochronousClockModel.cpp",
117 "binding/AudioEndpointParcelable.cpp",
118 "binding/AAudioBinderClient.cpp",
119 "binding/AAudioStreamRequest.cpp",
120 "binding/AAudioStreamConfiguration.cpp",
121 "binding/IAAudioClient.cpp",
122 "binding/IAAudioService.cpp",
123 "binding/RingBufferParcelable.cpp",
124 "binding/SharedMemoryParcelable.cpp",
125 "binding/SharedRegionParcelable.cpp",
Phil Burk64dce362018-03-28 15:30:39 -0700126 "flowgraph/AudioProcessorBase.cpp",
127 "flowgraph/ClipToRange.cpp",
128 "flowgraph/MonoToMultiConverter.cpp",
129 "flowgraph/RampLinear.cpp",
130 "flowgraph/SinkFloat.cpp",
131 "flowgraph/SinkI16.cpp",
132 "flowgraph/SinkI24.cpp",
133 "flowgraph/SourceFloat.cpp",
134 "flowgraph/SourceI16.cpp",
135 "flowgraph/SourceI24.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700136 ],
Cindy Zhou30ed5942019-10-30 13:24:37 -0700137 sanitize: {
138 integer_overflow: true,
139 misc_undefined: ["bounds"],
140 diag: {
141 integer_overflow: true,
142 misc_undefined: ["bounds"],
143 no_recover: [
144 "bounds",
145 "integer",
146 ],
147 },
148 },
149
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700150}