blob: 6fa3f82960a2e6018df3b08d0aaa184d0b1c54ab [file] [log] [blame]
// Build the unit tests for audio_utils
cc_test {
name: "primitives_tests",
host_supported: true,
shared_libs: [
"liblog",
"libcutils",
],
srcs: ["primitives_tests.cpp"],
cflags: [
"-Werror",
"-Wall",
],
target: {
android: {
shared_libs: ["libaudioutils"],
},
host: {
static_libs: ["libaudioutils"],
},
}
}
cc_binary {
name: "fifo_tests",
host_supported: true,
srcs: ["fifo_tests.cpp"],
shared_libs: ["libaudioutils"],
static_libs: ["libsndfile"],
cflags: [
"-Werror",
"-Wall",
],
}
cc_binary {
name: "fifo_multiprocess",
host_supported: false,
srcs: ["fifo_multiprocess.cpp"],
shared_libs: ["libaudioutils", "libcutils"],
static_libs: ["libsndfile"],
cflags: [
"-Werror",
"-Wall",
],
}
cc_binary_host {
name: "fifo_threads",
// TODO move getch.c and .h to a utility library
srcs: [
"fifo_threads.cpp",
"getch.c",
],
static_libs: [
"libaudioutils",
"liblog",
],
cflags: [
"-Werror",
"-Wall",
],
}
cc_binary_host {
name: "limiter_tests",
srcs: ["limiter_tests.c"],
static_libs: ["libaudioutils"],
cflags: [
"-Werror",
"-Wall",
"-UNDEBUG",
],
}