123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- // Build the unit tests for audio_utils
- cc_test {
- name: "fdtostring_tests",
- host_supported: false,
- shared_libs: [
- "libcutils",
- "liblog",
- "libutils", //for systemTime
- ],
- srcs: ["fdtostring_tests.cpp"],
- cflags: [
- "-Wall",
- "-Werror",
- "-Wextra",
- ],
- target: {
- android: {
- shared_libs: ["libaudioutils"],
- },
- }
- }
- 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: "primitives_benchmark",
- host_supported: true,
- target: {
- darwin: {
- enabled: false,
- },
- },
- srcs: ["primitives_benchmark.cpp"],
- cflags: [
- "-Werror",
- "-Wall",
- ],
- static_libs: [
- "libgoogle-benchmark",
- "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",
- ],
- }
- cc_test {
- name: "power_tests",
- host_supported: true,
- shared_libs: [
- "libcutils",
- "liblog",
- ],
- srcs: ["power_tests.cpp"],
- cflags: [
- "-Wall",
- "-Werror",
- "-Wextra",
- ],
- target: {
- android: {
- shared_libs: ["libaudioutils"],
- },
- host: {
- static_libs: ["libaudioutils"],
- },
- }
- }
- cc_test {
- name: "errorlog_tests",
- host_supported: false,
- shared_libs: [
- "libcutils",
- "liblog",
- ],
- srcs: ["errorlog_tests.cpp"],
- cflags: [
- "-Wall",
- "-Werror",
- "-Wextra",
- ],
- target: {
- android: {
- shared_libs: ["libaudioutils"],
- },
- host: {
- static_libs: ["libaudioutils"],
- },
- }
- }
- cc_test {
- name: "powerlog_tests",
- host_supported: false,
- shared_libs: [
- "libcutils",
- "liblog",
- ],
- srcs: ["powerlog_tests.cpp"],
- cflags: [
- "-Wall",
- "-Werror",
- "-Wextra",
- ],
- target: {
- android: {
- shared_libs: ["libaudioutils"],
- },
- host: {
- static_libs: ["libaudioutils"],
- },
- }
- }
- cc_test {
- name: "simplelog_tests",
- host_supported: false,
- shared_libs: [
- "libcutils",
- "liblog",
- ],
- srcs: ["simplelog_tests.cpp"],
- cflags: [
- "-Wall",
- "-Werror",
- "-Wextra",
- ],
- target: {
- android: {
- shared_libs: ["libaudioutils"],
- },
- host: {
- static_libs: ["libaudioutils"],
- },
- }
- }
- cc_test {
- name: "channels_tests",
- host_supported: true,
- shared_libs: [
- "libcutils",
- "liblog",
- ],
- srcs: ["channels_tests.cpp"],
- cflags: [
- "-Wall",
- "-Werror",
- ],
- target: {
- android: {
- shared_libs: ["libaudioutils"],
- },
- host: {
- static_libs: ["libaudioutils"],
- },
- }
- }
- cc_test {
- name: "string_tests",
- host_supported: false,
- shared_libs: ["libaudioutils"],
- srcs: ["string_tests.cpp"],
- cflags: [
- "-Wall",
- "-Werror",
- ],
- }
- cc_test {
- name: "format_tests",
- host_supported: true,
- shared_libs: [
- "liblog",
- ],
- srcs: ["format_tests.cpp"],
- cflags: [
- "-Werror",
- "-Wall",
- ],
- target: {
- android: {
- shared_libs: ["libaudioutils"],
- },
- host: {
- static_libs: ["libaudioutils"],
- },
- }
- }
- cc_test {
- name: "statistics_tests",
- host_supported: false,
- shared_libs: ["libaudioutils"],
- srcs: ["statistics_tests.cpp"],
- cflags: [
- "-Wall",
- "-Werror",
- "-Wextra",
- ],
- }
- cc_test {
- name: "timestampverifier_tests",
- host_supported: false,
- shared_libs: ["libaudioutils"],
- srcs: ["timestampverifier_tests.cpp"],
- cflags: [
- "-Wall",
- "-Werror",
- "-Wextra",
- ],
- }
- cc_test {
- name: "variadic_tests",
- host_supported: false,
- shared_libs: ["libaudioutils"],
- srcs: ["variadic_tests.cpp"],
- cflags: [
- "-Wall",
- "-Werror",
- "-Wextra",
- ],
- }
- cc_test {
- name: "logplot_tests",
- host_supported: true,
- shared_libs: [
- "liblog",
- "libcutils",
- ],
- srcs: ["logplot_tests.cpp"],
- cflags: [
- "-Werror",
- "-Wall",
- ],
- target: {
- android: {
- shared_libs: ["libaudioutils"],
- },
- host: {
- static_libs: ["libaudioutils"],
- },
- }
- }
- cc_binary {
- name: "statistics_benchmark",
- host_supported: false,
- srcs: ["statistics_benchmark.cpp"],
- cflags: [
- "-Werror",
- "-Wall",
- ],
- static_libs: [
- "libgoogle-benchmark",
- "libaudioutils",
- ],
- }
- cc_test {
- name: "sample_tests",
- host_supported: true,
- shared_libs: [
- "liblog",
- "libcutils",
- ],
- srcs: ["sample_tests.cpp"],
- cflags: [
- "-Werror",
- "-Wall",
- ],
- target: {
- android: {
- shared_libs: ["libaudioutils"],
- },
- host: {
- static_libs: ["libaudioutils"],
- },
- }
- }
|