blob: 25246b3b7c258d66b3de36264f5854f93169e57e [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 ],
Zach Johnsonb4852382019-12-02 15:28:34 -080043
44 stubs: {
45 symbol_file: "libaaudio.map.txt",
46 versions: ["28"],
47 },
dimitryd81a84a2019-07-17 13:55:16 +020048}
49
50cc_library {
51 name: "libaaudio_internal",
52
53 local_include_dirs: [
54 "binding",
55 "client",
56 "core",
57 "fifo",
58 "legacy",
59 "utility",
60 ],
61
62 export_include_dirs: ["."],
Marco Nelissen6b285942019-10-21 14:52:30 -070063 header_libs: [
64 "libaaudio_headers",
65 "libmedia_headers"
66 ],
dimitryd81a84a2019-07-17 13:55:16 +020067 export_header_lib_headers: ["libaaudio_headers"],
68
69 shared_libs: [
70 "libaudioclient",
71 "libaudioutils",
72 "liblog",
73 "libcutils",
74 "libutils",
75 "libbinder",
76 ],
77
78 cflags: [
79 "-Wno-unused-parameter",
80 "-Wall",
81 "-Werror",
82 ],
83
84 srcs: [
85 "core/AudioGlobal.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070086 "core/AudioStream.cpp",
87 "core/AudioStreamBuilder.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070088 "core/AAudioStreamParameters.cpp",
89 "legacy/AudioStreamLegacy.cpp",
90 "legacy/AudioStreamRecord.cpp",
91 "legacy/AudioStreamTrack.cpp",
92 "utility/AAudioUtilities.cpp",
93 "utility/FixedBlockAdapter.cpp",
94 "utility/FixedBlockReader.cpp",
95 "utility/FixedBlockWriter.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070096 "fifo/FifoBuffer.cpp",
97 "fifo/FifoControllerBase.cpp",
Phil Burk0127c1b2018-03-29 13:48:06 -070098 "client/AAudioFlowGraph.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070099 "client/AudioEndpoint.cpp",
100 "client/AudioStreamInternal.cpp",
101 "client/AudioStreamInternalCapture.cpp",
102 "client/AudioStreamInternalPlay.cpp",
103 "client/IsochronousClockModel.cpp",
104 "binding/AudioEndpointParcelable.cpp",
105 "binding/AAudioBinderClient.cpp",
106 "binding/AAudioStreamRequest.cpp",
107 "binding/AAudioStreamConfiguration.cpp",
108 "binding/IAAudioClient.cpp",
109 "binding/IAAudioService.cpp",
110 "binding/RingBufferParcelable.cpp",
111 "binding/SharedMemoryParcelable.cpp",
112 "binding/SharedRegionParcelable.cpp",
Phil Burk64dce362018-03-28 15:30:39 -0700113 "flowgraph/AudioProcessorBase.cpp",
114 "flowgraph/ClipToRange.cpp",
115 "flowgraph/MonoToMultiConverter.cpp",
116 "flowgraph/RampLinear.cpp",
117 "flowgraph/SinkFloat.cpp",
118 "flowgraph/SinkI16.cpp",
119 "flowgraph/SinkI24.cpp",
120 "flowgraph/SourceFloat.cpp",
121 "flowgraph/SourceI16.cpp",
122 "flowgraph/SourceI24.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700123 ],
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700124}