blob: 463f6062728d830d3a805fac2802a7a905677af0 [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
dimitryd81a84a2019-07-17 13:55:16 +020057}
58
59cc_library {
60 name: "libaaudio_internal",
61
62 local_include_dirs: [
63 "binding",
64 "client",
65 "core",
66 "fifo",
67 "legacy",
68 "utility",
69 ],
70
71 export_include_dirs: ["."],
Marco Nelissen6b285942019-10-21 14:52:30 -070072 header_libs: [
73 "libaaudio_headers",
Cindy Zhou30ed5942019-10-30 13:24:37 -070074 "libmedia_headers",
Marco Nelissen6b285942019-10-21 14:52:30 -070075 ],
dimitryd81a84a2019-07-17 13:55:16 +020076 export_header_lib_headers: ["libaaudio_headers"],
77
78 shared_libs: [
79 "libaudioclient",
80 "libaudioutils",
81 "liblog",
82 "libcutils",
83 "libutils",
84 "libbinder",
85 ],
86
87 cflags: [
88 "-Wno-unused-parameter",
89 "-Wall",
90 "-Werror",
91 ],
92
93 srcs: [
94 "core/AudioGlobal.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070095 "core/AudioStream.cpp",
96 "core/AudioStreamBuilder.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070097 "core/AAudioStreamParameters.cpp",
98 "legacy/AudioStreamLegacy.cpp",
99 "legacy/AudioStreamRecord.cpp",
100 "legacy/AudioStreamTrack.cpp",
101 "utility/AAudioUtilities.cpp",
102 "utility/FixedBlockAdapter.cpp",
103 "utility/FixedBlockReader.cpp",
104 "utility/FixedBlockWriter.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700105 "fifo/FifoBuffer.cpp",
106 "fifo/FifoControllerBase.cpp",
Phil Burk0127c1b2018-03-29 13:48:06 -0700107 "client/AAudioFlowGraph.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700108 "client/AudioEndpoint.cpp",
109 "client/AudioStreamInternal.cpp",
110 "client/AudioStreamInternalCapture.cpp",
111 "client/AudioStreamInternalPlay.cpp",
112 "client/IsochronousClockModel.cpp",
113 "binding/AudioEndpointParcelable.cpp",
114 "binding/AAudioBinderClient.cpp",
115 "binding/AAudioStreamRequest.cpp",
116 "binding/AAudioStreamConfiguration.cpp",
117 "binding/IAAudioClient.cpp",
118 "binding/IAAudioService.cpp",
119 "binding/RingBufferParcelable.cpp",
120 "binding/SharedMemoryParcelable.cpp",
121 "binding/SharedRegionParcelable.cpp",
Phil Burk64dce362018-03-28 15:30:39 -0700122 "flowgraph/AudioProcessorBase.cpp",
123 "flowgraph/ClipToRange.cpp",
124 "flowgraph/MonoToMultiConverter.cpp",
125 "flowgraph/RampLinear.cpp",
126 "flowgraph/SinkFloat.cpp",
127 "flowgraph/SinkI16.cpp",
128 "flowgraph/SinkI24.cpp",
129 "flowgraph/SourceFloat.cpp",
130 "flowgraph/SourceI16.cpp",
131 "flowgraph/SourceI24.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700132 ],
Cindy Zhou30ed5942019-10-30 13:24:37 -0700133 sanitize: {
134 integer_overflow: true,
135 misc_undefined: ["bounds"],
136 diag: {
137 integer_overflow: true,
138 misc_undefined: ["bounds"],
139 no_recover: [
140 "bounds",
141 "integer",
142 ],
143 },
144 },
145
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700146}