blob: 04ddcfffeb9c08b5d8b3275bfe9f1cbf5a01b7bf [file] [log] [blame]
cc_defaults {
name: "libnbaio_mono_defaults",
srcs: [
"MonoPipe.cpp",
"MonoPipeReader.cpp",
"NBAIO.cpp",
],
header_libs: [
"libaudioclient_headers",
"libaudio_system_headers",
],
export_header_lib_headers: [
"libaudioclient_headers",
],
shared_libs: [
"libaudioutils",
"libcutils",
"liblog",
"libutils",
],
export_shared_lib_headers: [
"libaudioutils",
],
export_include_dirs: ["include_mono"],
cflags: [
"-Werror",
"-Wall",
],
}
// libnbaio_mono is the part of libnbaio that is available for vendors to use. Vendor modules can't
// link against libnbaio and system modules can't link against libnbaio_mono. The rest of libnbaio
// pulls in too many other dependencies.
cc_library_shared {
name: "libnbaio_mono",
vendor: true,
defaults: ["libnbaio_mono_defaults"],
}
cc_library_shared {
name: "libnbaio",
defaults: ["libnbaio_mono_defaults"],
srcs: [
"AudioBufferProviderSource.cpp",
"AudioStreamInSource.cpp",
"AudioStreamOutSink.cpp",
"Pipe.cpp",
"PipeReader.cpp",
"SourceAudioBufferProvider.cpp",
],
// libsndfile license is incompatible; uncomment to use for local debug only
// srcs: [
// "LibsndfileSink.cpp",
// "LibsndfileSource.cpp",
// ],
// static_libs: ["libsndfile"],
header_libs: ["libaudiohal_headers"],
export_include_dirs: ["include"],
}