1cc_defaults {
2    name: "libnbaio_mono_defaults",
3    srcs: [
4        "MonoPipe.cpp",
5        "MonoPipeReader.cpp",
6        "NBAIO.cpp",
7    ],
8    header_libs: [
9        "libaudioclient_headers",
10        "libaudio_system_headers",
11    ],
12    export_header_lib_headers: [
13        "libaudioclient_headers",
14    ],
15
16    shared_libs: [
17        "libaudioutils",
18        "libcutils",
19        "liblog",
20        "libutils",
21    ],
22    export_shared_lib_headers: [
23        "libaudioutils",
24    ],
25
26    export_include_dirs: ["include_mono"],
27
28    cflags: [
29        "-Werror",
30        "-Wall",
31    ],
32}
33
34// libnbaio_mono is the part of libnbaio that is available for vendors to use. Vendor modules can't
35// link against libnbaio and system modules can't link against libnbaio_mono. The rest of libnbaio
36// pulls in too many other dependencies.
37cc_library_shared {
38    name: "libnbaio_mono",
39    vendor: true,
40    defaults: ["libnbaio_mono_defaults"],
41}
42
43cc_library_shared {
44    name: "libnbaio",
45    defaults: ["libnbaio_mono_defaults"],
46    srcs: [
47        "AudioBufferProviderSource.cpp",
48        "AudioStreamInSource.cpp",
49        "AudioStreamOutSink.cpp",
50        "Pipe.cpp",
51        "PipeReader.cpp",
52        "SourceAudioBufferProvider.cpp",
53    ],
54
55    // libsndfile license is incompatible; uncomment to use for local debug only
56    // srcs: [
57    //     "LibsndfileSink.cpp",
58    //     "LibsndfileSource.cpp",
59    // ],
60    // static_libs: ["libsndfile"],
61
62    header_libs: ["libaudiohal_headers"],
63
64    export_include_dirs: ["include"],
65}
66