• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cc_library {
2    name: "libaaudio",
3
4    local_include_dirs: [
5        "binding",
6        "client",
7        "core",
8        "fifo",
9        "flowgraph",
10        "legacy",
11        "utility",
12    ],
13    export_include_dirs: ["."],
14    header_libs: ["libaaudio_headers"],
15    export_header_lib_headers: ["libaaudio_headers"],
16
17    srcs: [
18        "core/AudioStream.cpp",
19        "core/AudioStreamBuilder.cpp",
20        "core/AAudioAudio.cpp",
21        "core/AAudioStreamParameters.cpp",
22        "legacy/AudioStreamLegacy.cpp",
23        "legacy/AudioStreamRecord.cpp",
24        "legacy/AudioStreamTrack.cpp",
25        "utility/AAudioUtilities.cpp",
26        "utility/FixedBlockAdapter.cpp",
27        "utility/FixedBlockReader.cpp",
28        "utility/FixedBlockWriter.cpp",
29        "fifo/FifoBuffer.cpp",
30        "fifo/FifoControllerBase.cpp",
31        "client/AAudioFlowGraph.cpp",
32        "client/AudioEndpoint.cpp",
33        "client/AudioStreamInternal.cpp",
34        "client/AudioStreamInternalCapture.cpp",
35        "client/AudioStreamInternalPlay.cpp",
36        "client/IsochronousClockModel.cpp",
37        "binding/AudioEndpointParcelable.cpp",
38        "binding/AAudioBinderClient.cpp",
39        "binding/AAudioStreamRequest.cpp",
40        "binding/AAudioStreamConfiguration.cpp",
41        "binding/IAAudioClient.cpp",
42        "binding/IAAudioService.cpp",
43        "binding/RingBufferParcelable.cpp",
44        "binding/SharedMemoryParcelable.cpp",
45        "binding/SharedRegionParcelable.cpp",
46        "flowgraph/AudioProcessorBase.cpp",
47        "flowgraph/ClipToRange.cpp",
48        "flowgraph/MonoToMultiConverter.cpp",
49        "flowgraph/RampLinear.cpp",
50        "flowgraph/SinkFloat.cpp",
51        "flowgraph/SinkI16.cpp",
52        "flowgraph/SinkI24.cpp",
53        "flowgraph/SourceFloat.cpp",
54        "flowgraph/SourceI16.cpp",
55        "flowgraph/SourceI24.cpp",
56    ],
57
58    cflags: [
59        "-Wno-unused-parameter",
60        "-Wall",
61        "-Werror",
62
63        // By default, all symbols are hidden.
64        // "-fvisibility=hidden",
65        // AAUDIO_API is used to explicitly export a function or a variable as a visible symbol.
66        "-DAAUDIO_API=__attribute__((visibility(\"default\")))",
67    ],
68
69    shared_libs: [
70        "libaudioclient",
71        "libaudioutils",
72        "liblog",
73        "libcutils",
74        "libutils",
75        "libbinder",
76        "libaudiomanager",
77    ],
78}
79