blob: 0028655075a0adbb78d1e851a0baedd08d5a2855 [file] [log] [blame]
Dan Willemsenc7dd2b92016-08-25 17:05:22 -07001// Build the unit tests.
2cc_test {
3 name: "libinput_tests",
4 test_per_src: true,
5 srcs: [
6 "InputChannel_test.cpp",
7 "InputEvent_test.cpp",
8 "InputPublisherAndConsumer_test.cpp",
9 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070010 cflags: [
11 "-Wall",
12 "-Werror",
13 "-Wno-error=sign-compare", // to fix later
14 "-Wno-unused-variable",
15 ],
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070016 shared_libs: [
17 "libinput",
18 "libcutils",
19 "libutils",
20 "libbinder",
21 "libui",
22 ]
23}
24
25// NOTE: This is a compile time test, and does not need to be
26// run. All assertions are static_asserts and will fail during
27// buildtime if something's wrong.
28cc_library_static {
29 name: "StructLayout_test",
30 srcs: ["StructLayout_test.cpp"],
31 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070032 "-O0",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070033 "-Wall",
34 "-Werror",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070035 ],
36}