blob: e0bab1156b87684780fa2687fafcc15cc2b93d37 [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",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +01009 "VelocityTracker_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070010 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070011 cflags: [
12 "-Wall",
13 "-Werror",
14 "-Wno-error=sign-compare", // to fix later
15 "-Wno-unused-variable",
16 ],
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070017 shared_libs: [
18 "libinput",
19 "libcutils",
20 "libutils",
21 "libbinder",
22 "libui",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010023 "libbase",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070024 ]
25}
26
27// NOTE: This is a compile time test, and does not need to be
28// run. All assertions are static_asserts and will fail during
29// buildtime if something's wrong.
30cc_library_static {
31 name: "StructLayout_test",
32 srcs: ["StructLayout_test.cpp"],
33 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070034 "-O0",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070035 "-Wall",
36 "-Werror",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070037 ],
38}