blob: 848e42a33e54649fac33225c26bf550c7430e6d9 [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",
9 "legacy",
10 "utility",
11 ],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070012 header_libs: ["libaaudio_headers"],
13 export_header_lib_headers: ["libaaudio_headers"],
dimitry8e8a9682019-06-04 15:14:02 +020014 version_script: "libaaudio.map.txt",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070015
16 srcs: [
dimitryd81a84a2019-07-17 13:55:16 +020017 "core/AAudioAudio.cpp",
18 ],
19
20 cflags: [
21 "-Wno-unused-parameter",
22 "-Wall",
23 "-Werror",
24
25 // By default, all symbols are hidden.
26 // "-fvisibility=hidden",
27 // AAUDIO_API is used to explicitly export a function or a variable as a visible symbol.
28 "-DAAUDIO_API=__attribute__((visibility(\"default\")))",
29 ],
30
31 shared_libs: [
32 "libaaudio_internal",
33 "libaudioclient",
34 "libaudioutils",
35 "liblog",
36 "libcutils",
37 "libutils",
38 "libbinder",
39 ],
40}
41
42cc_library {
43 name: "libaaudio_internal",
44
45 local_include_dirs: [
46 "binding",
47 "client",
48 "core",
49 "fifo",
50 "legacy",
51 "utility",
52 ],
53
54 export_include_dirs: ["."],
55 header_libs: ["libaaudio_headers"],
56 export_header_lib_headers: ["libaaudio_headers"],
57
58 shared_libs: [
59 "libaudioclient",
60 "libaudioutils",
61 "liblog",
62 "libcutils",
63 "libutils",
64 "libbinder",
65 ],
66
67 cflags: [
68 "-Wno-unused-parameter",
69 "-Wall",
70 "-Werror",
71 ],
72
73 srcs: [
74 "core/AudioGlobal.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070075 "core/AudioStream.cpp",
76 "core/AudioStreamBuilder.cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070077 "core/AAudioStreamParameters.cpp",
78 "legacy/AudioStreamLegacy.cpp",
79 "legacy/AudioStreamRecord.cpp",
80 "legacy/AudioStreamTrack.cpp",
81 "utility/AAudioUtilities.cpp",
82 "utility/FixedBlockAdapter.cpp",
83 "utility/FixedBlockReader.cpp",
84 "utility/FixedBlockWriter.cpp",
85 "utility/LinearRamp.cpp",
86 "fifo/FifoBuffer.cpp",
87 "fifo/FifoControllerBase.cpp",
88 "client/AudioEndpoint.cpp",
89 "client/AudioStreamInternal.cpp",
90 "client/AudioStreamInternalCapture.cpp",
91 "client/AudioStreamInternalPlay.cpp",
92 "client/IsochronousClockModel.cpp",
93 "binding/AudioEndpointParcelable.cpp",
94 "binding/AAudioBinderClient.cpp",
95 "binding/AAudioStreamRequest.cpp",
96 "binding/AAudioStreamConfiguration.cpp",
97 "binding/IAAudioClient.cpp",
98 "binding/IAAudioService.cpp",
99 "binding/RingBufferParcelable.cpp",
100 "binding/SharedMemoryParcelable.cpp",
101 "binding/SharedRegionParcelable.cpp",
102 ],
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700103}