OSDN Git Service

Merge "Add power logging"
[android-x86/system-media.git] / audio_utils / tests / Android.bp
1 // Build the unit tests for audio_utils
2
3 cc_test {
4     name: "primitives_tests",
5     host_supported: true,
6
7     shared_libs: [
8         "liblog",
9         "libcutils",
10     ],
11     srcs: ["primitives_tests.cpp"],
12     cflags: [
13         "-Werror",
14         "-Wall",
15     ],
16     target: {
17         android: {
18             shared_libs: ["libaudioutils"],
19         },
20         host: {
21             static_libs: ["libaudioutils"],
22         },
23     }
24 }
25
26 cc_binary {
27     name: "fifo_tests",
28     host_supported: true,
29     srcs: ["fifo_tests.cpp"],
30     shared_libs: ["libaudioutils"],
31     static_libs: ["libsndfile"],
32     cflags: [
33         "-Werror",
34         "-Wall",
35     ],
36 }
37
38 cc_binary {
39     name: "fifo_multiprocess",
40     host_supported: false,
41     srcs: ["fifo_multiprocess.cpp"],
42     shared_libs: ["libaudioutils", "libcutils"],
43     static_libs: ["libsndfile"],
44     cflags: [
45         "-Werror",
46         "-Wall",
47     ],
48 }
49
50 cc_binary_host {
51     name: "fifo_threads",
52     // TODO move getch.c and .h to a utility library
53     srcs: [
54         "fifo_threads.cpp",
55         "getch.c",
56     ],
57     static_libs: [
58         "libaudioutils",
59         "liblog",
60     ],
61     cflags: [
62         "-Werror",
63         "-Wall",
64     ],
65 }
66
67 cc_binary_host {
68     name: "limiter_tests",
69     srcs: ["limiter_tests.c"],
70     static_libs: ["libaudioutils"],
71     cflags: [
72         "-Werror",
73         "-Wall",
74         "-UNDEBUG",
75     ],
76 }
77
78 cc_test {
79     name: "power_tests",
80     host_supported: true,
81
82     shared_libs: [
83         "libcutils",
84         "liblog",
85     ],
86     srcs: ["power_tests.cpp"],
87     cflags: [
88         "-Wall",
89         "-Werror",
90         "-Wextra",
91     ],
92     target: {
93         android: {
94             shared_libs: ["libaudioutils"],
95         },
96         host: {
97             static_libs: ["libaudioutils"],
98         },
99     }
100 }