blob: 92e04b0c5366cf1f84460d12e751868edcfe8972 [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",
Phil Burka9876702020-04-20 18:16:15 -070038 "libmedia_helper",
39 "libmediametrics",
40 "libmediautils",
dimitryd81a84a2019-07-17 13:55:16 +020041 "liblog",
42 "libcutils",
43 "libutils",
44 "libbinder",
45 ],
Cindy Zhou30ed5942019-10-30 13:24:37 -070046
47 sanitize: {
48 integer_overflow: true,
49 misc_undefined: ["bounds"],
Cindy Zhou30ed5942019-10-30 13:24:37 -070050 },
51
Zach Johnson99c47ff2019-12-02 15:28:34 -080052 stubs: {
53 symbol_file: "libaaudio.map.txt",
54 versions: ["28"],
55 },
dimitryd81a84a2019-07-17 13:55:16 +020056}
57
58cc_library {
59 name: "libaaudio_internal",
60
61 local_include_dirs: [
62 "binding",
63 "client",
64 "core",
65 "fifo",
66 "legacy",
67 "utility",
68 ],
69
70 export_include_dirs: ["."],
Marco Nelissen6b285942019-10-21 14:52:30 -070071 header_libs: [
72 "libaaudio_headers",
Cindy Zhou30ed5942019-10-30 13:24:37 -070073 "libmedia_headers",
Marco Nelissen7c96ea72020-01-10 15:46:22 -080074 "libmediametrics_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",
Phil Burka9876702020-04-20 18:16:15 -070081 "libmedia_helper",
82 "libmediametrics",
83 "libmediautils",
dimitryd81a84a2019-07-17 13:55:16 +020084 "liblog",
85 "libcutils",
86 "libutils",
87 "libbinder",
Ytai Ben-Tsvi0412f732020-08-17 14:43:36 -070088 "aaudio-aidl-cpp",
dimitryd81a84a2019-07-17 13:55:16 +020089 ],
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",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700121 "binding/IAAudioService.cpp",
122 "binding/RingBufferParcelable.cpp",
123 "binding/SharedMemoryParcelable.cpp",
124 "binding/SharedRegionParcelable.cpp",
Phil Burk64dce362018-03-28 15:30:39 -0700125 "flowgraph/AudioProcessorBase.cpp",
126 "flowgraph/ClipToRange.cpp",
127 "flowgraph/MonoToMultiConverter.cpp",
128 "flowgraph/RampLinear.cpp",
129 "flowgraph/SinkFloat.cpp",
130 "flowgraph/SinkI16.cpp",
131 "flowgraph/SinkI24.cpp",
132 "flowgraph/SourceFloat.cpp",
133 "flowgraph/SourceI16.cpp",
134 "flowgraph/SourceI24.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700135 ],
Cindy Zhou30ed5942019-10-30 13:24:37 -0700136 sanitize: {
137 integer_overflow: true,
138 misc_undefined: ["bounds"],
Cindy Zhou30ed5942019-10-30 13:24:37 -0700139 },
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700140}
Ytai Ben-Tsvi0412f732020-08-17 14:43:36 -0700141
142aidl_interface {
143 name: "aaudio-aidl",
144 unstable: true,
145 local_include_dir: "binding/aidl",
146 srcs: [
147 "binding/aidl/aaudio/IAAudioClient.aidl",
148 ],
149}