blob: e3e1dec00b0a99fadbe13bc4c2f782f21496fae7 [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 ],
11 shared_libs: [
12 "libinput",
13 "libcutils",
14 "libutils",
15 "libbinder",
16 "libui",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010017 "libbase",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070018 ]
19}
20
21// NOTE: This is a compile time test, and does not need to be
22// run. All assertions are static_asserts and will fail during
23// buildtime if something's wrong.
24cc_library_static {
25 name: "StructLayout_test",
26 srcs: ["StructLayout_test.cpp"],
27 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070028 "-O0",
29 ],
30}