blob: 901c28fde933bfa4652283ea25ec6e10080d3b7d [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"],
Cindy Zhou30ed5942019-10-30 13:24:37 -070047 },
48
Zach Johnson99c47ff2019-12-02 15:28:34 -080049 stubs: {
50 symbol_file: "libaaudio.map.txt",
51 versions: ["28"],
52 },
dimitryd81a84a2019-07-17 13:55:16 +020053}
54
55cc_library {
56 name: "libaaudio_internal",
57
58 local_include_dirs: [
59 "binding",
60 "client",
61 "core",
62 "fifo",
63 "legacy",
64 "utility",
65 ],
66
67 export_include_dirs: ["."],
Marco Nelissen6b285942019-10-21 14:52:30 -070068 header_libs: [
69 "libaaudio_headers",
Cindy Zhou30ed5942019-10-30 13:24:37 -070070 "libmedia_headers",
Marco Nelissen7c96ea72020-01-10 15:46:22 -080071 "libmediametrics_headers",
Marco Nelissen6b285942019-10-21 14:52:30 -070072 ],
dimitryd81a84a2019-07-17 13:55:16 +020073 export_header_lib_headers: ["libaaudio_headers"],
74
75 shared_libs: [
76 "libaudioclient",
77 "libaudioutils",
78 "liblog",
79 "libcutils",
80 "libutils",
81 "libbinder",
82 ],
83
84 cflags: [
85 "-Wno-unused-parameter",
86 "-Wall",
87 "-Werror",
88 ],
89
90 srcs: [
91 "core/AudioGlobal.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070092 "core/AudioStream.cpp",
93 "core/AudioStreamBuilder.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070094 "core/AAudioStreamParameters.cpp",
95 "legacy/AudioStreamLegacy.cpp",
96 "legacy/AudioStreamRecord.cpp",
97 "legacy/AudioStreamTrack.cpp",
98 "utility/AAudioUtilities.cpp",
99 "utility/FixedBlockAdapter.cpp",
100 "utility/FixedBlockReader.cpp",
101 "utility/FixedBlockWriter.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700102 "fifo/FifoBuffer.cpp",
103 "fifo/FifoControllerBase.cpp",
Phil Burk0127c1b2018-03-29 13:48:06 -0700104 "client/AAudioFlowGraph.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700105 "client/AudioEndpoint.cpp",
106 "client/AudioStreamInternal.cpp",
107 "client/AudioStreamInternalCapture.cpp",
108 "client/AudioStreamInternalPlay.cpp",
109 "client/IsochronousClockModel.cpp",
110 "binding/AudioEndpointParcelable.cpp",
111 "binding/AAudioBinderClient.cpp",
112 "binding/AAudioStreamRequest.cpp",
113 "binding/AAudioStreamConfiguration.cpp",
114 "binding/IAAudioClient.cpp",
115 "binding/IAAudioService.cpp",
116 "binding/RingBufferParcelable.cpp",
117 "binding/SharedMemoryParcelable.cpp",
118 "binding/SharedRegionParcelable.cpp",
Phil Burk64dce362018-03-28 15:30:39 -0700119 "flowgraph/AudioProcessorBase.cpp",
120 "flowgraph/ClipToRange.cpp",
121 "flowgraph/MonoToMultiConverter.cpp",
122 "flowgraph/RampLinear.cpp",
123 "flowgraph/SinkFloat.cpp",
124 "flowgraph/SinkI16.cpp",
125 "flowgraph/SinkI24.cpp",
126 "flowgraph/SourceFloat.cpp",
127 "flowgraph/SourceI16.cpp",
128 "flowgraph/SourceI24.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700129 ],
Cindy Zhou30ed5942019-10-30 13:24:37 -0700130 sanitize: {
131 integer_overflow: true,
132 misc_undefined: ["bounds"],
Cindy Zhou30ed5942019-10-30 13:24:37 -0700133 },
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700134}