blob: fdbc9c579f6b661b9c4386f6cb5f7ba9f44c6a40 [file] [log] [blame]
Bob Badour948e6aa2021-02-12 21:02:31 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_av_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_av_license"],
8}
9
Dan Willemsenb44c69e2017-10-23 17:15:03 -070010cc_library {
11 name: "libaaudio",
12
13 local_include_dirs: [
14 "binding",
15 "client",
16 "core",
17 "fifo",
Phil Burk64dce362018-03-28 15:30:39 -070018 "flowgraph",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070019 "legacy",
20 "utility",
21 ],
Marco Nelissen6b285942019-10-21 14:52:30 -070022 header_libs: [
23 "libaaudio_headers",
24 ],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070025 export_header_lib_headers: ["libaaudio_headers"],
dimitry8e8a9682019-06-04 15:14:02 +020026 version_script: "libaaudio.map.txt",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070027
28 srcs: [
dimitryd81a84a2019-07-17 13:55:16 +020029 "core/AAudioAudio.cpp",
30 ],
31
32 cflags: [
33 "-Wno-unused-parameter",
34 "-Wall",
35 "-Werror",
36
37 // By default, all symbols are hidden.
38 // "-fvisibility=hidden",
39 // AAUDIO_API is used to explicitly export a function or a variable as a visible symbol.
40 "-DAAUDIO_API=__attribute__((visibility(\"default\")))",
41 ],
42
43 shared_libs: [
44 "libaaudio_internal",
45 "libaudioclient",
46 "libaudioutils",
Phil Burka9876702020-04-20 18:16:15 -070047 "libmedia_helper",
48 "libmediametrics",
49 "libmediautils",
dimitryd81a84a2019-07-17 13:55:16 +020050 "liblog",
51 "libcutils",
52 "libutils",
53 "libbinder",
54 ],
Cindy Zhou30ed5942019-10-30 13:24:37 -070055
56 sanitize: {
57 integer_overflow: true,
58 misc_undefined: ["bounds"],
Cindy Zhou30ed5942019-10-30 13:24:37 -070059 },
60
Zach Johnson99c47ff2019-12-02 15:28:34 -080061 stubs: {
62 symbol_file: "libaaudio.map.txt",
63 versions: ["28"],
64 },
dimitryd81a84a2019-07-17 13:55:16 +020065}
66
67cc_library {
68 name: "libaaudio_internal",
69
70 local_include_dirs: [
71 "binding",
72 "client",
73 "core",
74 "fifo",
75 "legacy",
76 "utility",
77 ],
78
79 export_include_dirs: ["."],
Marco Nelissen6b285942019-10-21 14:52:30 -070080 header_libs: [
81 "libaaudio_headers",
Cindy Zhou30ed5942019-10-30 13:24:37 -070082 "libmedia_headers",
Marco Nelissen7c96ea72020-01-10 15:46:22 -080083 "libmediametrics_headers",
Marco Nelissen6b285942019-10-21 14:52:30 -070084 ],
dimitryd81a84a2019-07-17 13:55:16 +020085 export_header_lib_headers: ["libaaudio_headers"],
86
87 shared_libs: [
88 "libaudioclient",
89 "libaudioutils",
Phil Burka9876702020-04-20 18:16:15 -070090 "libmedia_helper",
91 "libmediametrics",
92 "libmediautils",
dimitryd81a84a2019-07-17 13:55:16 +020093 "liblog",
94 "libcutils",
95 "libutils",
96 "libbinder",
97 ],
98
99 cflags: [
100 "-Wno-unused-parameter",
101 "-Wall",
102 "-Werror",
103 ],
104
105 srcs: [
106 "core/AudioGlobal.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700107 "core/AudioStream.cpp",
108 "core/AudioStreamBuilder.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700109 "core/AAudioStreamParameters.cpp",
110 "legacy/AudioStreamLegacy.cpp",
111 "legacy/AudioStreamRecord.cpp",
112 "legacy/AudioStreamTrack.cpp",
113 "utility/AAudioUtilities.cpp",
114 "utility/FixedBlockAdapter.cpp",
115 "utility/FixedBlockReader.cpp",
116 "utility/FixedBlockWriter.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700117 "fifo/FifoBuffer.cpp",
118 "fifo/FifoControllerBase.cpp",
Phil Burk0127c1b2018-03-29 13:48:06 -0700119 "client/AAudioFlowGraph.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700120 "client/AudioEndpoint.cpp",
121 "client/AudioStreamInternal.cpp",
122 "client/AudioStreamInternalCapture.cpp",
123 "client/AudioStreamInternalPlay.cpp",
124 "client/IsochronousClockModel.cpp",
125 "binding/AudioEndpointParcelable.cpp",
126 "binding/AAudioBinderClient.cpp",
127 "binding/AAudioStreamRequest.cpp",
128 "binding/AAudioStreamConfiguration.cpp",
129 "binding/IAAudioClient.cpp",
130 "binding/IAAudioService.cpp",
131 "binding/RingBufferParcelable.cpp",
132 "binding/SharedMemoryParcelable.cpp",
133 "binding/SharedRegionParcelable.cpp",
Phil Burk64dce362018-03-28 15:30:39 -0700134 "flowgraph/AudioProcessorBase.cpp",
135 "flowgraph/ClipToRange.cpp",
136 "flowgraph/MonoToMultiConverter.cpp",
137 "flowgraph/RampLinear.cpp",
138 "flowgraph/SinkFloat.cpp",
139 "flowgraph/SinkI16.cpp",
140 "flowgraph/SinkI24.cpp",
141 "flowgraph/SourceFloat.cpp",
142 "flowgraph/SourceI16.cpp",
143 "flowgraph/SourceI24.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700144 ],
Cindy Zhou30ed5942019-10-30 13:24:37 -0700145 sanitize: {
146 integer_overflow: true,
147 misc_undefined: ["bounds"],
Cindy Zhou30ed5942019-10-30 13:24:37 -0700148 },
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700149}